Hello,
I have reported this bug http://bugs.php.net/bug.php?id=46354, because
new behaviour breaks my script. The question is how fix scripts for new
behaviour. Example:
// common array
$a = array('item' => NULL);
isset($a['item']) -> FALSE
array_key_exists($a['item']) -> TRUE
// ArrayObject
$o = new ArrayObject($a);
isset($o['item']) -> TRUE (!)
$o->offsetExists($o['item']) -> TRUE (!), in PHP 5.2.1 FALSE (!)
Should one rely on this 'isset' behaviour, i.e. will isset($a['item'])
return TRUE in future?
David Grudl
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php