|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-09-22 08:02 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
-Package: PHP Language Specification
+Package: Scripting Engine problem
[2015-09-22 08:02 UTC] requinix@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 22:00:02 2026 UTC |
Description: ------------ Reference to undeclared array element, creates element, instead return null pointer. Test script: --------------- $array = array('a'); print_r($array); $a= &$array[4]; print_r($array); $array2 = array('b'); print_r($array2); $a= $array2[4]; print_r($array2); Expected result: ---------------- Array ( [0] => a ) Array ( [0] => a ) Actual result: -------------- Array ( [0] => a ) Array ( [0] => a [4] => )