com php-src: Fix list() test wrt new assignment order: tests/lang/engine_assignExecutionOrder_002.phpt

From: Date: Fri, 15 Aug 2014 16:25:58 +0000
Subject: com php-src: Fix list() test wrt new assignment order: tests/lang/engine_assignExecutionOrder_002.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-80869@lists.php.net to get a copy of this message
Commit: 7d8383149a9dbecff992351e43bc7beee43767d8 Author: Nikita Popov <nikic@php.net> Fri, 15 Aug 2014 18:25:58 +0200 Parents: 919cb32f720561dc5f1c8853173ed2a9970820b5 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7d8383149a9dbecff992351e43bc7beee43767d8 Log: Fix list() test wrt new assignment order Changed paths: M tests/lang/engine_assignExecutionOrder_002.phpt Diff: diff --git a/tests/lang/engine_assignExecutionOrder_002.phpt b/tests/lang/engine_assignExecutionOrder_002.phpt index ba88150..c090a45 100644 --- a/tests/lang/engine_assignExecutionOrder_002.phpt +++ b/tests/lang/engine_assignExecutionOrder_002.phpt @@ -26,7 +26,7 @@ $g1 = array(10,10); $g2 = array(20,20); $g3 = array(30,30); $g = array($g1,$g2,$g3); -list($e[$f++],$e[$f++]) = $g[$f]; +list($e[$f++],$e[$f++]) = $g[2]; // expect 30,30 var_dump($e); @@ -39,7 +39,7 @@ $i = array($i1,$i2,$i3,$i4); $j = array(0,0,0); $h = 0; // a list of lists -list(list($j[$h++],$j[$h++]),$j[$h++]) = $i[$h]; +list(list($j[$h++],$j[$h++]),$j[$h++]) = $i[3]; var_dump($j); @@ -116,9 +116,9 @@ L=100 M=200 N=300 O= and P= 10 20 40 50 60 70 80 -Notice: Undefined offset: 1 in %s on line %d - Notice: Undefined offset: 0 in %s on line %d + +Notice: Undefined offset: 1 in %s on line %d Y=,Z= Notice: Undefined offset: 1 in %s on line %d

« previous php.cvs (#80869) next »