]> granicus.if.org Git - php/commitdiff
- Fix tests (allow_call_time_pass_reference might be off for properly configured...
authorJani Taskinen <jani@php.net>
Wed, 5 Mar 2008 15:37:48 +0000 (15:37 +0000)
committerJani Taskinen <jani@php.net>
Wed, 5 Mar 2008 15:37:48 +0000 (15:37 +0000)
ext/standard/tests/array/array_key_exists_variation4.phpt
ext/standard/tests/array/array_merge_variation9.phpt
ext/standard/tests/array/array_push_variation4.phpt
ext/standard/tests/array/array_slice_variation9.phpt
ext/standard/tests/array/array_values_variation6.phpt
ext/standard/tests/array/each_variation4.phpt
ext/standard/tests/array/rsort_variation4.phpt

index 349396b401fb9b5a89f207a498c739331428e4a9..edc39269a56c6f1e85deca66913a0e776708725a 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test array_key_exists() function : usage variations - referenced variables
+--INI--
+allow_call_time_pass_reference=on
 --FILE--
 <?php
 /* Prototype  : bool array_key_exists(mixed $key, array $search)
@@ -41,4 +43,4 @@ bool(true)
 
 -- Both arguments are referenced variables --
 bool(true)
-Done
\ No newline at end of file
+Done
index 34ab3e821872ee9480d1a67c422ddc028d818c4b..e42e292827840c4e44dd2eefd7ee1b0cfab09c2f 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test array_merge() function : usage variations - referenced variables
+--INI--
+allow_call_time_pass_reference=on
 --FILE--
 <?php
 /* Prototype  : array array_merge(array $arr1, array $arr2 [, array $...])
@@ -109,4 +111,4 @@ array(3) {
   ["key3"]=>
   string(4) "val3"
 }
-Done
\ No newline at end of file
+Done
index 5bb20f32c688c1f19a94b57b0644688ff6a1f4ea..ed339204f433c69155a9b20a3429c23ce3a82e43 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test array_push() function : usage variations - referenced variables
+--INI--
+allow_call_time_pass_reference=on
 --FILE--
 <?php
 /* Prototype  : int array_push(array $stack, mixed $var [, mixed $...])
@@ -126,4 +128,4 @@ array(10) {
     }
   }
 }
-Done
\ No newline at end of file
+Done
index 1961a4046c1308dc889d1e45426f19531c701c8b..030d4bd73a4adc92d820c80cde030d2f88490671 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test array_slice() function : usage variations - referenced variables
+--INI--
+allow_call_time_pass_reference=on
 --FILE--
 <?php
 /* Prototype  : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
@@ -70,4 +72,4 @@ array(3) {
   [2]=>
   int(3)
 }
-Done
\ No newline at end of file
+Done
index 8d2d8631a524dc4c3a2ba1a6cd0e38d1d7070962..e565150760ab2266e98f7602d283c5d97d8ec5b7 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test array_values() function : usage variations - Referenced variables
+--INI--
+allow_call_time_pass_reference=on
 --FILE--
 <?php
 /* Prototype  : array array_values(array $input)
@@ -65,4 +67,4 @@ array(3) {
   [2]=>
   int(3)
 }
-Done
\ No newline at end of file
+Done
index 16b60963964ac6e0996f2852d71f59302aadade9..6ac57a736e5e8ec1e679012673575a2e5a2a09ce 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test each() function : usage variations - Referenced variables
+--INI--
+allow_call_time_pass_reference=on
 --FILE--
 <?php
 /* Prototype  : array each(array $arr)
@@ -85,4 +87,4 @@ array(3) {
   [2]=>
   string(3) "two"
 }
-Done
\ No newline at end of file
+Done
index abbed35badf68b0dd59d8231832e3502957da9ca..4cab1a933402e190726681d837ab17ca26d8d2ff 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test rsort() function : usage variations - referenced variables
+--INI--
+allow_call_time_pass_reference=on
 --FILE--
 <?php
 /* Prototype  : bool rsort(array &$array_arg [, int $sort_flags])
@@ -75,4 +77,4 @@ array(3) {
   [2]=>
   &int(33)
 }
-Done
\ No newline at end of file
+Done