Doc #61507 [NEW]: Incompatibilty when using isset() on a string with a string key as offset

From: Date: Mon, 26 Mar 2012 10:18:34 +0000
Subject: Doc #61507 [NEW]: Incompatibilty when using isset() on a string with a string key as offset
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8116@lists.php.net to get a copy of this message
From: Operating system: Linux PHP version: 5.4.0 Package: Strings related Bug Type: Documentation Problem Bug description:Incompatibilty when using isset() on a string with a string key as offset Description: ------------ Incompatibility when using isset() on a string with a string key as offset. Probably an effect of the change "Simplified string offset reading. $str[1][0] is now a legal construct.". Current implementation seems correct although this is an incompatibility in previous versions and should be documented. A previous bug (#37727) noted that behavior before 5.4 was incorrect but was filed as 'not a bug'. Test script: --------------- $ php -r '$str = "str"; var_dump(isset($str["x"]));' Expected result: ---------------- bool(false) Actual result: -------------- PHP 5.3.9: bool(true) PHP 5.4.0: bool(false) -- Edit bug report at https://bugs.php.net/bug.php?id=61507&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61507&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61507&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61507&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61507&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61507&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61507&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61507&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61507&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61507&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61507&r=support Expected behavior: https://bugs.php.net/fix.php?id=61507&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61507&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61507&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61507&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61507&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61507&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61507&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61507&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61507&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61507&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61507&r=mysqlcfg

« previous php.doc.bugs (#8116) next »