Bug #78693 [NEW]: @ operator evaluates @$foo['undefined'] to $foo[0] on strings

From: Date: Fri, 18 Oct 2019 20:14:50 +0000
Subject: Bug #78693 [NEW]: @ operator evaluates @$foo['undefined'] to $foo[0] on strings
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223275@lists.php.net to get a copy of this message
From: david at vielhuber dot de Operating system: Ubuntu 18 PHP version: 7.3.10 Package: Unknown/Other Function Bug Type: Bug Bug description:@ operator evaluates @$foo['undefined'] to $foo[0] on strings Description: ------------ $foo = 1337; @$foo['undefined'] // evaluates to null $foo = '1337'; @$foo['undefined'] // evaluates to '1' Desired behaviour: @$foo['undefined'] should also evaluate to null. -- Edit bug report at https://bugs.php.net/bug.php?id=78693&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78693&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78693&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78693&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78693&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78693&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78693&r=support Expected behavior: https://bugs.php.net/fix.php?id=78693&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78693&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78693&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78693&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78693&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78693&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78693&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78693&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78693&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78693&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78693&r=mysqlcfg

« previous php.bugs (#223275) next »