diff options
Diffstat (limited to 'ext/standard/tests/general_functions')
-rw-r--r-- | ext/standard/tests/general_functions/bug29038.phpt | 20 | ||||
-rw-r--r-- | ext/standard/tests/general_functions/call_user_func_return.phpt | 8 | ||||
-rw-r--r-- | ext/standard/tests/general_functions/debug_zval_dump_b.phpt | bin | 5004 -> 4585 bytes | |||
-rw-r--r-- | ext/standard/tests/general_functions/debug_zval_dump_o.phpt | 598 | ||||
-rw-r--r-- | ext/standard/tests/general_functions/debug_zval_dump_v.phpt | 50 | ||||
-rw-r--r-- | ext/standard/tests/general_functions/ini_get_all.phpt | 15 |
6 files changed, 353 insertions, 338 deletions
diff --git a/ext/standard/tests/general_functions/bug29038.phpt b/ext/standard/tests/general_functions/bug29038.phpt index 0f79229994..d0c87fb199 100644 --- a/ext/standard/tests/general_functions/bug29038.phpt +++ b/ext/standard/tests/general_functions/bug29038.phpt @@ -2,37 +2,41 @@ Bug #29038 (extract(), EXTR_PREFIX_SAME option prefixes empty strings) --FILE-- <?php +function my_print_r($a) { + ksort($a); + print_r($a); +} function f1() { $c = extract(array("" => 1),EXTR_PREFIX_SAME,"prefix"); echo "Extracted:"; var_dump($c); - print_r(get_defined_vars()); + my_print_r(get_defined_vars()); } function f2() { $a = 1; $c = extract(array("a" => 1),EXTR_PREFIX_SAME,"prefix"); echo "Extracted:"; var_dump($c); - print_r(get_defined_vars()); + my_print_r(get_defined_vars()); } function f3() { $a = 1; $c = extract(array("a" => 1),EXTR_PREFIX_ALL,"prefix"); echo "Extracted:"; var_dump($c); - print_r(get_defined_vars()); + my_print_r(get_defined_vars()); } function f4() { $c = extract(array("" => 1),EXTR_PREFIX_ALL,"prefix"); echo "Extracted:"; var_dump($c); - print_r(get_defined_vars()); + my_print_r(get_defined_vars()); } function f5() { $c = extract(array("111" => 1),EXTR_PREFIX_ALL,"prefix"); echo "Extracted:"; var_dump($c); - print_r(get_defined_vars()); + my_print_r(get_defined_vars()); } f1(); @@ -51,15 +55,15 @@ Extracted:int(1) Array ( [a] => 1 - [prefix_a] => 1 [c] => 1 + [prefix_a] => 1 ) Extracted:int(1) Array ( [a] => 1 - [prefix_a] => 1 [c] => 1 + [prefix_a] => 1 ) Extracted:int(0) Array @@ -69,6 +73,6 @@ Array Extracted:int(1) Array ( - [prefix_111] => 1 [c] => 1 + [prefix_111] => 1 ) diff --git a/ext/standard/tests/general_functions/call_user_func_return.phpt b/ext/standard/tests/general_functions/call_user_func_return.phpt index 929fdd7e35..cb0f6998dc 100644 --- a/ext/standard/tests/general_functions/call_user_func_return.phpt +++ b/ext/standard/tests/general_functions/call_user_func_return.phpt @@ -34,11 +34,11 @@ test('test2'); ===DONE=== --EXPECTF-- Direct Call -string(5) "test1" refcount(1) +string(5) "test1" refcount(%d) User Func -string(5) "test1" refcount(1) +string(5) "test1" refcount(%d) Direct Call -string(5) "test2" refcount(2) +string(5) "test2" refcount(%d) User Func -string(5) "test2" refcount(1) +string(5) "test2" refcount(%d) ===DONE=== diff --git a/ext/standard/tests/general_functions/debug_zval_dump_b.phpt b/ext/standard/tests/general_functions/debug_zval_dump_b.phpt Binary files differindex e83cdbf540..00ec7a88a4 100644 --- a/ext/standard/tests/general_functions/debug_zval_dump_b.phpt +++ b/ext/standard/tests/general_functions/debug_zval_dump_b.phpt diff --git a/ext/standard/tests/general_functions/debug_zval_dump_o.phpt b/ext/standard/tests/general_functions/debug_zval_dump_o.phpt index 78f0f03003..4f286ec606 100644 --- a/ext/standard/tests/general_functions/debug_zval_dump_o.phpt +++ b/ext/standard/tests/general_functions/debug_zval_dump_o.phpt @@ -118,613 +118,613 @@ echo "Done\n"; --EXPECTF-- *** Testing debug_zval_dump() on objects *** -- Iteration 1 -- -object(object_class)#%d (6) refcount(5){ +object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(5){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } -- Iteration 2 -- -object(no_member_class)#%d (0) refcount(4){ +object(no_member_class)#%d (0) refcount(%d){ } -- Iteration 3 -- -object(contains_object_class)#%d (9) refcount(4){ +object(contains_object_class)#%d (9) refcount(%d){ ["p"]=> - long(30) refcount(2) + long(30) ["p1":protected]=> - long(40) refcount(2) + long(40) ["p2":"contains_object_class":private]=> - long(50) refcount(2) + long(50) ["class_object1"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } ["class_object2"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } ["class_object3":"contains_object_class":private]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } ["class_object4":protected]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } ["no_member_class_object"]=> - object(no_member_class)#%d (0) refcount(3){ + object(no_member_class)#%d (0) refcount(%d){ } ["class_object5"]=> - object(contains_object_class)#%d (9) refcount(1){ + object(contains_object_class)#%d (9) refcount(%d){ ["p"]=> - long(30) refcount(2) + long(30) ["p1":protected]=> - long(40) refcount(2) + long(40) ["p2":"contains_object_class":private]=> - long(50) refcount(2) + long(50) ["class_object1"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } ["class_object2"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } ["class_object3":"contains_object_class":private]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } ["class_object4":protected]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(7){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } ["no_member_class_object"]=> - object(no_member_class)#%d (0) refcount(3){ + object(no_member_class)#%d (0) refcount(%d){ } ["class_object5"]=> *RECURSION* } } -- Iteration 4 -- -object(object_class)#%d (6) refcount(9){ +object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(9){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } -- Iteration 5 -- -object(object_class)#%d (6) refcount(9){ +object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(9){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } -- Iteration 6 -- -object(no_member_class)#%d (0) refcount(5){ +object(no_member_class)#%d (0) refcount(%d){ } -- Iteration 7 -- -NULL refcount(1) +NULL -- Iteration 8 -- -object(object_class)#%d (6) refcount(9){ +object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(9){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } -- Iteration 9 -- -object(object_class)#%d (6) refcount(9){ +object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (6) refcount(9){ + object(object_class)#%d (6) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(5) + long(10) ["value3":protected]=> - long(20) refcount(5) + long(20) ["value4"]=> - long(30) refcount(7) + long(30) ["array_var"]=> - array(2) refcount(5){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* } } -- Iteration 10 -- -long(30) refcount(9) +long(30) -- Iteration 11 -- -NULL refcount(1) +NULL -- Testing debug_zval_dump() on overwritten object variables -- -long(500) refcount(1) -long(500) refcount(1) -long(500) refcount(1) -long(500) refcount(1) +long(500) +long(500) +long(500) +long(500) -- Testing debug_zval_dump() on objects having circular reference -- -object(object_class)#%d (7) refcount(1){ +object(object_class)#%d (7) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(7) + long(10) ["value3":protected]=> - long(20) refcount(7) + long(20) ["value4"]=> - long(30) refcount(8) + long(30) ["array_var"]=> - array(2) refcount(7){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (7) refcount(1){ + object(object_class)#%d (7) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(7) + long(10) ["value3":protected]=> - long(20) refcount(7) + long(20) ["value4"]=> - long(30) refcount(8) + long(30) ["array_var"]=> - array(2) refcount(7){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* ["obj"]=> - &object(object_class)#%d (7) refcount(2){ + &object(object_class)#%d (7) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(7) + long(10) ["value3":protected]=> - long(20) refcount(7) + long(20) ["value4"]=> - long(30) refcount(8) + long(30) ["array_var"]=> - array(2) refcount(7){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (7) refcount(1){ + object(object_class)#%d (7) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(7) + long(10) ["value3":protected]=> - long(20) refcount(7) + long(20) ["value4"]=> - long(30) refcount(8) + long(30) ["array_var"]=> - array(2) refcount(7){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* @@ -736,57 +736,57 @@ object(object_class)#%d (7) refcount(1){ } } ["obj"]=> - &object(object_class)#%d (7) refcount(2){ + &object(object_class)#%d (7) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(7) + long(10) ["value3":protected]=> - long(20) refcount(7) + long(20) ["value4"]=> - long(30) refcount(8) + long(30) ["array_var"]=> - array(2) refcount(7){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> - object(object_class)#%d (7) refcount(1){ + object(object_class)#%d (7) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(7) + long(10) ["value3":protected]=> - long(20) refcount(7) + long(20) ["value4"]=> - long(30) refcount(8) + long(30) ["array_var"]=> - array(2) refcount(7){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* ["obj"]=> - &object(object_class)#%d (7) refcount(2){ + &object(object_class)#%d (7) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(7) + long(10) ["value3":protected]=> - long(20) refcount(7) + long(20) ["value4"]=> - long(30) refcount(8) + long(30) ["array_var"]=> - array(2) refcount(7){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* @@ -795,40 +795,40 @@ object(object_class)#%d (7) refcount(1){ } } ["obj"]=> - &object(object_class)#%d (7) refcount(2){ + &object(object_class)#%d (7) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(7) + long(10) ["value3":protected]=> - long(20) refcount(7) + long(20) ["value4"]=> - long(30) refcount(8) + long(30) ["array_var"]=> - array(2) refcount(7){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* ["obj"]=> - &object(object_class)#%d (7) refcount(2){ + &object(object_class)#%d (7) refcount(%d){ ["value1"]=> - long(5) refcount(1) + long(5) ["value2":"object_class":private]=> - long(10) refcount(7) + long(10) ["value3":protected]=> - long(20) refcount(7) + long(20) ["value4"]=> - long(30) refcount(8) + long(30) ["array_var"]=> - array(2) refcount(7){ + array(2) refcount(%d){ ["key1"]=> - long(1) refcount(1) + long(1) ["key2 "]=> - long(3) refcount(1) + long(3) } ["object_class1"]=> *RECURSION* diff --git a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt index 82ee2a63d5..f4b768a77e 100644 --- a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt +++ b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt @@ -124,81 +124,81 @@ echo "Done\n"; --- Variation 1: global variable inside a function --- -- Value of global variable, before calling dump_globalvar() -- -long(10) refcount(2) +long(10) -- Value of local variable inside dump_globalvar() -- -long(10) refcount(1) +long(10) -- Value of global variable inside dump_globalvar() -- -long(10) refcount(1) +long(10) -- Value of global variable, after exiting dump_globalvar() -- -long(10) refcount(2) +long(10) --- Variation 2: one variable references another --- -- Value of $first_var: -- -long(10) refcount(2) +long(10) -- Value of $ref_first_var -- -NULL refcount(1) +NULL -- Value of $first_var -- -long(10) refcount(2) +long(10) -- Value of $ref_first_var -- Notice: Undefined variable: ref_first_var in %s on line %d -NULL refcount(1) +NULL -- Value of $first_var -- -long(10) refcount(2) +long(10) --- Variation 3: multiple references of variables --- -- Value of $var_1: (before referencing) -- -long(10) refcount(1) +long(10) -- Value of $var_2: (referencing var_1) -- -long(10) refcount(1) +long(10) -- Value of $var_3: (referencing var_2) -- -long(10) refcount(1) +long(10) -- Value of $var_3: (after unsetting var_3) -- Notice: Undefined variable: var_3 in %s on line %d -NULL refcount(1) +NULL -- Value of $var_2: -- -long(10) refcount(1) +long(10) -- Value of $var_3: -- -long(10) refcount(1) +long(10) -- Value of $var_1: (after unsetting variable_1) -- Notice: Undefined variable: var_1 in %s on line %d -NULL refcount(1) +NULL -- Value of $var_2: -- -long(10) refcount(2) +long(10) *** Testing debug_zval_dump() on miscelleneous input arguments *** -- Iteration 1 -- -NULL refcount(3) +NULL -- Iteration 2 -- -NULL refcount(3) +NULL -- Iteration 3 -- -NULL refcount(1) +NULL -- Iteration 4 -- -NULL refcount(1) +NULL -- Iteration 5 -- -string(7) "TRUE123" refcount(3) +string(7) "TRUE123" refcount(%d) -- Iteration 6 -- -string(9) "123string" refcount(3) +string(9) "123string" refcount(%d) -- Iteration 7 -- -string(9) "string123" refcount(3) +string(9) "string123" refcount(%d) -- Iteration 8 -- -string(10) "NULLstring" refcount(3) +string(10) "NULLstring" refcount(%d) Done diff --git a/ext/standard/tests/general_functions/ini_get_all.phpt b/ext/standard/tests/general_functions/ini_get_all.phpt index 60cd38a723..806831edfc 100644 --- a/ext/standard/tests/general_functions/ini_get_all.phpt +++ b/ext/standard/tests/general_functions/ini_get_all.phpt @@ -30,7 +30,7 @@ Warning: ini_get_all(): Unable to find extension 'nosuchextension' in %s on line bool(false) array(0) { } -array(2) { +array(3) { ["pcre.backtrack_limit"]=> array(3) { ["global_value"]=> @@ -40,6 +40,15 @@ array(2) { ["access"]=> int(7) } + ["pcre.jit"]=> + array(3) { + ["global_value"]=> + string(1) "1" + ["local_value"]=> + string(1) "1" + ["access"]=> + int(7) + } ["pcre.recursion_limit"]=> array(3) { ["global_value"]=> @@ -50,9 +59,11 @@ array(2) { int(7) } } -array(2) { +array(3) { ["pcre.backtrack_limit"]=> string(7) "1000000" + ["pcre.jit"]=> + string(1) "1" ["pcre.recursion_limit"]=> string(6) "100000" } |