Bug #61347 [NEW]: inconsist isset behavior of Arrayobject

From: Date: Sun, 11 Mar 2012 05:17:21 +0000
Subject: Bug #61347 [NEW]: inconsist isset behavior of Arrayobject
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-168345@lists.php.net to get a copy of this message
From: laruence Operating system: PHP version: Irrelevant Package: SPL related Bug Type: Bug Bug description:inconsist isset behavior of Arrayobject Description: ------------ isset(arrayobject['index']) act inconsistently with isset(array['index']) Test script: --------------- <?php $a = array('b' => NULL); var_dump(isset($a['b'])); $b = new ArrayObject($a); var_dump(isset($b['b'])); Expected result: ---------------- bool(false) bool(false) Actual result: -------------- bool(false) bool(true) -- Edit bug report at https://bugs.php.net/bug.php?id=61347&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61347&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61347&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61347&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61347&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61347&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61347&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61347&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61347&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61347&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61347&r=support Expected behavior: https://bugs.php.net/fix.php?id=61347&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61347&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61347&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61347&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61347&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61347&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61347&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61347&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61347&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61347&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61347&r=mysqlcfg

« previous php.bugs (#168345) next »