|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 Patchesbug55325.patch (last revision 2011-07-30 15:34 UTC by laruence@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits              [2011-07-30 15:34 UTC] laruence@php.net
  [2011-07-30 15:53 UTC] laruence@php.net
 
-Status: Open
+Status: Duplicate
  [2011-07-30 15:53 UTC] laruence@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 00:00:01 2025 UTC | 
Description: ------------ this is similar to #50816 but not quite same. Test script: --------------- define("FIRST_KEY", "a"); define("THIRD_KEY", "c"); function test() { static $arr = array( "a" => "222", FIRST_KEY => "111", "c" => "333", THIRD_KEY => "444", ); print_r($arr); } test(); Expected result: ---------------- Array ( [a] => 111 [c] => 444 ) Actual result: -------------- Array ( [a] => 222 [c] => 444 )