pierrick                                 Mon, 26 Apr 2010 00:27:04 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=298569

Log:
Update tests related to allow_call_time_pass_reference

Changed paths:
    U   
php/php-src/trunk/ext/standard/tests/general_functions/debug_zval_dump_b.phpt
    U   
php/php-src/trunk/ext/standard/tests/general_functions/debug_zval_dump_b_64bit.phpt

Modified: php/php-src/trunk/ext/standard/tests/general_functions/debug_zval_dump_b.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/general_functions/debug_zval_dump_b.phpt	2010-04-26 00:21:18 UTC (rev 298568)
+++ php/php-src/trunk/ext/standard/tests/general_functions/debug_zval_dump_b.phpt	2010-04-26 00:27:04 UTC (rev 298569)
@@ -6,7 +6,6 @@
 ?>
 --INI--
 precision=14
-allow_call_time_pass_reference=1
 --FILE--
 <?php
 /* Prototype: void debug_zval_dump ( mixed $variable );
@@ -92,7 +91,6 @@
 foreach( $values as $value ) {
   echo "-- Iteration $counter --\n";
   debug_zval_dump( $value );
-  debug_zval_dump( &$value );
   $counter++;
 }

@@ -105,177 +103,114 @@
 *** Testing debug_zval_dump() on scalar and non-scalar variables ***
 -- Iteration 1 --
 long(0) refcount(3)
-&long(0) refcount(2)
 -- Iteration 2 --
 long(83) refcount(3)
-&long(83) refcount(2)
 -- Iteration 3 --
 long(123000000) refcount(3)
-&long(123000000) refcount(2)
 -- Iteration 4 --
 long(-83) refcount(3)
-&long(-83) refcount(2)
 -- Iteration 5 --
 long(-12300000) refcount(3)
-&long(-12300000) refcount(2)
 -- Iteration 6 --
 long(16777215) refcount(3)
-&long(16777215) refcount(2)
 -- Iteration 7 --
 long(123456789) refcount(3)
-&long(123456789) refcount(2)
 -- Iteration 8 --
 long(1) refcount(3)
-&long(1) refcount(2)
 -- Iteration 9 --
 long(-1) refcount(3)
-&long(-1) refcount(2)
 -- Iteration 10 --
 double(0) refcount(3)
-&double(0) refcount(2)
 -- Iteration 11 --
 double(0) refcount(3)
-&double(0) refcount(2)
 -- Iteration 12 --
 double(1.234) refcount(3)
-&double(1.234) refcount(2)
 -- Iteration 13 --
 double(-1.234) refcount(3)
-&double(-1.234) refcount(2)
 -- Iteration 14 --
 double(-2) refcount(3)
-&double(-2) refcount(2)
 -- Iteration 15 --
 double(2) refcount(3)
-&double(2) refcount(2)
 -- Iteration 16 --
 double(-400010) refcount(3)
-&double(-400010) refcount(2)
 -- Iteration 17 --
 double(400010) refcount(3)
-&double(400010) refcount(2)
 -- Iteration 18 --
 double(6.99999989) refcount(3)
-&double(6.99999989) refcount(2)
 -- Iteration 19 --
 double(-0.5) refcount(3)
-&double(-0.5) refcount(2)
 -- Iteration 20 --
 double(0.567) refcount(3)
-&double(0.567) refcount(2)
 -- Iteration 21 --
 double(-0.00067) refcount(3)
-&double(-0.00067) refcount(2)
 -- Iteration 22 --
 double(-670) refcount(3)
-&double(-670) refcount(2)
 -- Iteration 23 --
 double(1.0E-5) refcount(3)
-&double(1.0E-5) refcount(2)
 -- Iteration 24 --
 double(-100000) refcount(3)
-&double(-100000) refcount(2)
 -- Iteration 25 --
 double(100000) refcount(3)
-&double(100000) refcount(2)
 -- Iteration 26 --
 double(1.0E-5) refcount(3)
-&double(1.0E-5) refcount(2)
 -- Iteration 27 --
 string(0) "" refcount(3)
-&string(0) "" refcount(2)
 -- Iteration 28 --
 string(0) "" refcount(3)
-&string(0) "" refcount(2)
 -- Iteration 29 --
 string(1) " " refcount(3)
-&string(1) " " refcount(2)
 -- Iteration 30 --
 string(1) " " refcount(3)
-&string(1) " " refcount(2)
 -- Iteration 31 --
 string(1) "0" refcount(3)
-&string(1) "0" refcount(2)
 -- Iteration 32 --
 string(1) "" refcount(3)
-&string(1) "" refcount(2)
 -- Iteration 33 --
 string(2) "\0" refcount(3)
-&string(2) "\0" refcount(2)
 -- Iteration 34 --
 string(1) "	" refcount(3)
-&string(1) "	" refcount(2)
 -- Iteration 35 --
 string(2) "\t" refcount(3)
-&string(2) "\t" refcount(2)
 -- Iteration 36 --
 string(3) "PHP" refcount(3)
-&string(3) "PHP" refcount(2)
 -- Iteration 37 --
 string(3) "PHP" refcount(3)
-&string(3) "PHP" refcount(2)
 -- Iteration 38 --
 string(34) "1234
 5678
 	9100
 abcda00cdehstuv" refcount(3)
-&string(34) "1234
-5678
-	9100
-abcda00cdehstuv" refcount(2)
 -- Iteration 39 --
 bool(true) refcount(3)
-&bool(true) refcount(2)
 -- Iteration 40 --
 bool(false) refcount(3)
-&bool(false) refcount(2)
 -- Iteration 41 --
 bool(true) refcount(3)
-&bool(true) refcount(2)
 -- Iteration 42 --
 bool(false) refcount(3)
-&bool(false) refcount(2)
 -- Iteration 43 --
 array(0) refcount(3){
 }
-&array(0) refcount(2){
-}
 -- Iteration 44 --
 array(1) refcount(3){
   [0]=>
   NULL refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  NULL refcount(2)
-}
 -- Iteration 45 --
 array(1) refcount(3){
   [0]=>
   bool(true) refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  bool(true) refcount(2)
-}
 -- Iteration 46 --
 array(1) refcount(3){
   [0]=>
   string(0) "" refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  string(0) "" refcount(2)
-}
 -- Iteration 47 --
 array(1) refcount(3){
   [0]=>
   string(0) "" refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  string(0) "" refcount(2)
-}
 -- Iteration 48 --
 array(2) refcount(3){
   [0]=>
@@ -293,22 +228,6 @@
     string(1) "b" refcount(1)
   }
 }
-&array(2) refcount(2){
-  [0]=>
-  array(2) refcount(2){
-    [0]=>
-    long(1) refcount(1)
-    [1]=>
-    long(2) refcount(1)
-  }
-  [1]=>
-  array(2) refcount(2){
-    [0]=>
-    string(1) "a" refcount(1)
-    [1]=>
-    string(1) "b" refcount(1)
-  }
-}
 -- Iteration 49 --
 array(2) refcount(3){
   ["test"]=>
@@ -316,30 +235,16 @@
   [1]=>
   string(3) "One" refcount(1)
 }
-&array(2) refcount(2){
-  ["test"]=>
-  string(8) "is_array" refcount(2)
-  [1]=>
-  string(3) "One" refcount(2)
-}
 -- Iteration 50 --
 array(1) refcount(3){
   [0]=>
   long(0) refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  long(0) refcount(2)
-}
 -- Iteration 51 --
 array(1) refcount(3){
   [0]=>
   long(-1) refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  long(-1) refcount(2)
-}
 -- Iteration 52 --
 array(2) refcount(3){
   [0]=>
@@ -347,12 +252,6 @@
   [1]=>
   double(5.6) refcount(1)
 }
-&array(2) refcount(2){
-  [0]=>
-  double(10.5) refcount(2)
-  [1]=>
-  double(5.6) refcount(2)
-}
 -- Iteration 53 --
 array(2) refcount(3){
   [0]=>
@@ -360,12 +259,6 @@
   [1]=>
   string(4) "test" refcount(1)
 }
-&array(2) refcount(2){
-  [0]=>
-  string(6) "string" refcount(2)
-  [1]=>
-  string(4) "test" refcount(2)
-}
 -- Iteration 54 --
 array(2) refcount(3){
   [0]=>
@@ -373,13 +266,6 @@
   [1]=>
   string(4) "test" refcount(1)
 }
-&array(2) refcount(2){
-  [0]=>
-  string(6) "string" refcount(2)
-  [1]=>
-  string(4) "test" refcount(2)
-}
 -- Iteration 55 --
 resource(%d) of type (stream) refcount(4)
-&resource(%d) of type (stream) refcount(2)
 Done

Modified: php/php-src/trunk/ext/standard/tests/general_functions/debug_zval_dump_b_64bit.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/general_functions/debug_zval_dump_b_64bit.phpt	2010-04-26 00:21:18 UTC (rev 298568)
+++ php/php-src/trunk/ext/standard/tests/general_functions/debug_zval_dump_b_64bit.phpt	2010-04-26 00:27:04 UTC (rev 298569)
@@ -6,7 +6,6 @@
 ?>
 --INI--
 precision=14
-allow_call_time_pass_reference=1
 --FILE--
 <?php
 /* Prototype: void debug_zval_dump ( mixed $variable );
@@ -92,7 +91,6 @@
 foreach( $values as $value ) {
   echo "-- Iteration $counter --\n";
   debug_zval_dump( $value );
-  debug_zval_dump( &$value );
   $counter++;
 }

@@ -105,177 +103,114 @@
 *** Testing debug_zval_dump() on scalar and non-scalar variables ***
 -- Iteration 1 --
 long(0) refcount(3)
-&long(0) refcount(2)
 -- Iteration 2 --
 long(83) refcount(3)
-&long(83) refcount(2)
 -- Iteration 3 --
 long(123000000) refcount(3)
-&long(123000000) refcount(2)
 -- Iteration 4 --
 long(-83) refcount(3)
-&long(-83) refcount(2)
 -- Iteration 5 --
 long(-12300000) refcount(3)
-&long(-12300000) refcount(2)
 -- Iteration 6 --
 long(16777215) refcount(3)
-&long(16777215) refcount(2)
 -- Iteration 7 --
 long(123456789) refcount(3)
-&long(123456789) refcount(2)
 -- Iteration 8 --
 long(1) refcount(3)
-&long(1) refcount(2)
 -- Iteration 9 --
 long(-1) refcount(3)
-&long(-1) refcount(2)
 -- Iteration 10 --
 double(0) refcount(3)
-&double(0) refcount(2)
 -- Iteration 11 --
 double(0) refcount(3)
-&double(0) refcount(2)
 -- Iteration 12 --
 double(1.234) refcount(3)
-&double(1.234) refcount(2)
 -- Iteration 13 --
 double(-1.234) refcount(3)
-&double(-1.234) refcount(2)
 -- Iteration 14 --
 double(-2) refcount(3)
-&double(-2) refcount(2)
 -- Iteration 15 --
 double(2) refcount(3)
-&double(2) refcount(2)
 -- Iteration 16 --
 double(-400010) refcount(3)
-&double(-400010) refcount(2)
 -- Iteration 17 --
 double(400010) refcount(3)
-&double(400010) refcount(2)
 -- Iteration 18 --
 double(6.99999989) refcount(3)
-&double(6.99999989) refcount(2)
 -- Iteration 19 --
 double(-0.5) refcount(3)
-&double(-0.5) refcount(2)
 -- Iteration 20 --
 double(0.567) refcount(3)
-&double(0.567) refcount(2)
 -- Iteration 21 --
 double(-0.00067) refcount(3)
-&double(-0.00067) refcount(2)
 -- Iteration 22 --
 double(-670) refcount(3)
-&double(-670) refcount(2)
 -- Iteration 23 --
 double(1.0E-5) refcount(3)
-&double(1.0E-5) refcount(2)
 -- Iteration 24 --
 double(-100000) refcount(3)
-&double(-100000) refcount(2)
 -- Iteration 25 --
 double(100000) refcount(3)
-&double(100000) refcount(2)
 -- Iteration 26 --
 double(1.0E-5) refcount(3)
-&double(1.0E-5) refcount(2)
 -- Iteration 27 --
 string(0) "" refcount(3)
-&string(0) "" refcount(2)
 -- Iteration 28 --
 string(0) "" refcount(3)
-&string(0) "" refcount(2)
 -- Iteration 29 --
 string(1) " " refcount(3)
-&string(1) " " refcount(2)
 -- Iteration 30 --
 string(1) " " refcount(3)
-&string(1) " " refcount(2)
 -- Iteration 31 --
 string(1) "0" refcount(3)
-&string(1) "0" refcount(2)
 -- Iteration 32 --
 string(1) "" refcount(3)
-&string(1) "" refcount(2)
 -- Iteration 33 --
 string(2) "\0" refcount(3)
-&string(2) "\0" refcount(2)
 -- Iteration 34 --
 string(1) "	" refcount(3)
-&string(1) "	" refcount(2)
 -- Iteration 35 --
 string(2) "\t" refcount(3)
-&string(2) "\t" refcount(2)
 -- Iteration 36 --
 string(3) "PHP" refcount(3)
-&string(3) "PHP" refcount(2)
 -- Iteration 37 --
 string(3) "PHP" refcount(3)
-&string(3) "PHP" refcount(2)
 -- Iteration 38 --
 string(34) "1234
 5678
 	9100
 abcda00cdehstuv" refcount(3)
-&string(34) "1234
-5678
-	9100
-abcda00cdehstuv" refcount(2)
 -- Iteration 39 --
 bool(true) refcount(3)
-&bool(true) refcount(2)
 -- Iteration 40 --
 bool(false) refcount(3)
-&bool(false) refcount(2)
 -- Iteration 41 --
 bool(true) refcount(3)
-&bool(true) refcount(2)
 -- Iteration 42 --
 bool(false) refcount(3)
-&bool(false) refcount(2)
 -- Iteration 43 --
 array(0) refcount(3){
 }
-&array(0) refcount(2){
-}
 -- Iteration 44 --
 array(1) refcount(3){
   [0]=>
   NULL refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  NULL refcount(2)
-}
 -- Iteration 45 --
 array(1) refcount(3){
   [0]=>
   bool(true) refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  bool(true) refcount(2)
-}
 -- Iteration 46 --
 array(1) refcount(3){
   [0]=>
   string(0) "" refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  string(0) "" refcount(2)
-}
 -- Iteration 47 --
 array(1) refcount(3){
   [0]=>
   string(0) "" refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  string(0) "" refcount(2)
-}
 -- Iteration 48 --
 array(2) refcount(3){
   [0]=>
@@ -293,22 +228,6 @@
     string(1) "b" refcount(1)
   }
 }
-&array(2) refcount(2){
-  [0]=>
-  array(2) refcount(2){
-    [0]=>
-    long(1) refcount(1)
-    [1]=>
-    long(2) refcount(1)
-  }
-  [1]=>
-  array(2) refcount(2){
-    [0]=>
-    string(1) "a" refcount(1)
-    [1]=>
-    string(1) "b" refcount(1)
-  }
-}
 -- Iteration 49 --
 array(2) refcount(3){
   ["test"]=>
@@ -316,30 +235,16 @@
   [1]=>
   string(3) "One" refcount(1)
 }
-&array(2) refcount(2){
-  ["test"]=>
-  string(8) "is_array" refcount(2)
-  [1]=>
-  string(3) "One" refcount(2)
-}
 -- Iteration 50 --
 array(1) refcount(3){
   [0]=>
   long(0) refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  long(0) refcount(2)
-}
 -- Iteration 51 --
 array(1) refcount(3){
   [0]=>
   long(-1) refcount(1)
 }
-&array(1) refcount(2){
-  [0]=>
-  long(-1) refcount(2)
-}
 -- Iteration 52 --
 array(2) refcount(3){
   [0]=>
@@ -347,12 +252,6 @@
   [1]=>
   double(5.6) refcount(1)
 }
-&array(2) refcount(2){
-  [0]=>
-  double(10.5) refcount(2)
-  [1]=>
-  double(5.6) refcount(2)
-}
 -- Iteration 53 --
 array(2) refcount(3){
   [0]=>
@@ -360,12 +259,6 @@
   [1]=>
   string(4) "test" refcount(1)
 }
-&array(2) refcount(2){
-  [0]=>
-  string(6) "string" refcount(2)
-  [1]=>
-  string(4) "test" refcount(2)
-}
 -- Iteration 54 --
 array(2) refcount(3){
   [0]=>
@@ -373,13 +266,6 @@
   [1]=>
   string(4) "test" refcount(1)
 }
-&array(2) refcount(2){
-  [0]=>
-  string(6) "string" refcount(2)
-  [1]=>
-  string(4) "test" refcount(2)
-}
 -- Iteration 55 --
 resource(%d) of type (stream) refcount(4)
-&resource(%d) of type (stream) refcount(2)
 Done
-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to