diff options
Diffstat (limited to 'ext/standard/tests/array/array_reverse_variation4.phpt')
-rw-r--r-- | ext/standard/tests/array/array_reverse_variation4.phpt | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/ext/standard/tests/array/array_reverse_variation4.phpt b/ext/standard/tests/array/array_reverse_variation4.phpt index 88f36ea025..09b2eb4bee 100644 --- a/ext/standard/tests/array/array_reverse_variation4.phpt +++ b/ext/standard/tests/array/array_reverse_variation4.phpt @@ -85,11 +85,11 @@ echo "Done"; Warning: Illegal offset type in %s on line %d -Warning: Illegal offset type in %s on line %d +Notice: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d Warning: Illegal offset type in %s on line %d -Warning: Illegal offset type in %s on line %d +Notice: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d -- Iteration 1 -- - default argument - array(0) { @@ -314,23 +314,29 @@ array(2) { } -- Iteration 10 -- - default argument - -array(1) { +array(2) { + [0]=> + string(8) "resource" [""]=> string(5) "hello" } - $preserve keys = true - -array(1) { +array(2) { + [5]=> + string(8) "resource" [""]=> string(5) "hello" } - $preserve_keys = false - -array(1) { +array(2) { + [0]=> + string(8) "resource" [""]=> string(5) "hello" } -- Iteration 11 -- - default argument - -array(6) { +array(7) { ["Hello world"]=> string(7) "heredoc" [""]=> @@ -339,13 +345,15 @@ array(6) { string(5) "float" [1]=> string(3) "int" + [2]=> + string(8) "resource" ["fruit"]=> float(2.2) ["hello"]=> int(1) } - $preserve keys = true - -array(6) { +array(7) { ["Hello world"]=> string(7) "heredoc" [""]=> @@ -354,13 +362,15 @@ array(6) { string(5) "float" [133]=> string(3) "int" + [5]=> + string(8) "resource" ["fruit"]=> float(2.2) ["hello"]=> int(1) } - $preserve_keys = false - -array(6) { +array(7) { ["Hello world"]=> string(7) "heredoc" [""]=> @@ -369,6 +379,8 @@ array(6) { string(5) "float" [1]=> string(3) "int" + [2]=> + string(8) "resource" ["fruit"]=> float(2.2) ["hello"]=> |