mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
fix tests
This commit is contained in:
parent
4de3c0b985
commit
f5f92c1940
@ -1,5 +1,5 @@
|
||||
--TEST--
|
||||
Test array_walk() function : error conditions(Bug#43558)
|
||||
Test array_walk() function : error conditions
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
|
||||
@ -44,5 +44,5 @@ NULL
|
||||
-- Testing array_walk() function with non existent callback function --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
Done
|
||||
|
@ -1,5 +1,5 @@
|
||||
--TEST--
|
||||
Test array_walk() function : error conditions - callback parameters(Bug#43558)
|
||||
Test array_walk() function : error conditions - callback parameters
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
|
||||
@ -40,12 +40,12 @@ echo "Done";
|
||||
Warning: Missing argument 3 for callback1() in %s on line %d
|
||||
|
||||
callback1() invoked
|
||||
bool(false)
|
||||
bool(true)
|
||||
|
||||
Warning: Missing argument 4 for callback2() in %s on line %d
|
||||
|
||||
callback2() invoked
|
||||
bool(false)
|
||||
bool(true)
|
||||
|
||||
callback1() invoked
|
||||
bool(true)
|
||||
|
@ -1,5 +1,5 @@
|
||||
--TEST--
|
||||
Test array_walk_recursive() function : error conditions(Bug#43558)
|
||||
Test array_walk_recursive() function : error conditions
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : bool array_walk_recursive(array $input, string $funcname [, mixed $userdata])
|
||||
@ -45,5 +45,5 @@ NULL
|
||||
-- Testing array_walk_recursive() function with non existent callback function --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
Done
|
||||
|
@ -1,5 +1,5 @@
|
||||
--TEST--
|
||||
Test array_walk_recursive() function : error conditions - callback parameters(Bug#43558)
|
||||
Test array_walk_recursive() function : error conditions - callback parameters
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : bool array_walk_recursive(array $input, string $funcname [, mixed $userdata])
|
||||
@ -40,12 +40,12 @@ echo "Done";
|
||||
Warning: Missing argument 3 for callback1() in %s on line %d
|
||||
|
||||
callback1() invoked
|
||||
bool(false)
|
||||
bool(true)
|
||||
|
||||
Warning: Missing argument 4 for callback2() in %s on line %d
|
||||
|
||||
callback2() invoked
|
||||
bool(false)
|
||||
bool(true)
|
||||
|
||||
callback1() invoked
|
||||
bool(true)
|
||||
|
@ -1,5 +1,5 @@
|
||||
--TEST--
|
||||
Test array_walk_recursive() function : usage variations - unexpected values in place of 'funcname' argument(Bug#43558)
|
||||
Test array_walk_recursive() function : usage variations - unexpected values in place of 'funcname' argument
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : bool array_walk_recursive(array $input, string $funcname [, mixed $userdata])
|
||||
@ -93,176 +93,176 @@ echo "Done"
|
||||
-- Iteration 1 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 2 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 3 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 4 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 5 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 6 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 7 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 8 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 9 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 10 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 11 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 12 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 13 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 14 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 15 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 16 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 17 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 18 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 19 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 20 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 21 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 22 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, object given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, object given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 23 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, resource given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, resource given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 24 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 25 --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
Done
|
||||
|
@ -1,5 +1,5 @@
|
||||
--TEST--
|
||||
Test array_walk_recursive() function : usage variations - buit-in function as callback(Bug#43558)
|
||||
Test array_walk_recursive() function : usage variations - buit-in function as callback
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : bool array_walk_recursive(array $input, string $funcname [, mixed $userdata])
|
||||
@ -38,5 +38,5 @@ bool(true)
|
||||
-- With 'echo' language construct --
|
||||
|
||||
Warning: array_walk_recursive() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
Done
|
||||
|
@ -1,5 +1,5 @@
|
||||
--TEST--
|
||||
Test array_walk() function : usage variations - unexpected values in place of 'funcname' argument(Bug#43558)
|
||||
Test array_walk() function : usage variations - unexpected values in place of 'funcname' argument
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
|
||||
@ -93,176 +93,176 @@ echo "Done"
|
||||
-- Iteration 1 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 2 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 3 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 4 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, integer given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 5 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 6 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 7 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 8 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 9 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, double given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 10 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 11 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 12 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 13 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, array given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 14 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 15 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 16 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 17 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 18 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 19 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, boolean given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 20 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 21 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 22 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, object given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, object given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 23 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, resource given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, resource given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 24 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
-- Iteration 25 --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, null given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
Done
|
||||
|
@ -1,5 +1,5 @@
|
||||
--TEST--
|
||||
Test array_walk() function : usage variations - buit-in function as callback(Bug#43558)
|
||||
Test array_walk() function : usage variations - buit-in function as callback
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
|
||||
@ -38,5 +38,5 @@ bool(true)
|
||||
-- With 'echo' language construct --
|
||||
|
||||
Warning: array_walk() expects parameter 2 to be valid callback, string given in %s on line %d
|
||||
bool(false)
|
||||
NULL
|
||||
Done
|
||||
|
Loading…
Reference in New Issue
Block a user