- killed off UEXPECT

- altered EXPECT for parser errors. This may or may not be a Good Thing.
This commit is contained in:
Steph Fox 2008-05-26 14:33:44 +00:00
parent d0d2a79f34
commit 6d8760677d
333 changed files with 264 additions and 6716 deletions

View File

@ -35,7 +35,7 @@ var_dump(func_num_args());
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
int(0)
int(1)

View File

@ -42,7 +42,7 @@ var_dump(func_get_arg(1));
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Warning: func_get_arg(): The argument number should be >= 0 in %s on line %d
bool(false)

View File

@ -36,7 +36,7 @@ var_dump(func_get_args());
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
array(0) {
}
array(1) {

View File

@ -12,7 +12,7 @@ var_dump(strncmp("qwerty", "qwerty123", 7));
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Warning: strncmp() expects exactly 3 parameters, 2 given in %s on line %d
NULL
int(0)

View File

@ -14,18 +14,7 @@ var_dump(strcasecmp("01", "01"));
echo "Done\n";
?>
--EXPECTF--
Warning: strcasecmp() expects exactly 2 parameters, 1 given in %s on line %d
NULL
int(0)
int(-3)
int(-1)
int(0)
int(0)
int(0)
int(0)
Done
--UEXPECTF--
--EXPECTF--
Warning: strcasecmp() expects exactly 2 parameters, 1 given in %s on line %d
NULL
int(0)

View File

@ -15,21 +15,7 @@ var_dump(strncasecmp("01", "01", 1000));
echo "Done\n";
?>
--EXPECTF--
Warning: strncasecmp() expects exactly 3 parameters, 1 given in %s on line %d
NULL
Warning: Length must be greater than or equal to 0 in %s on line %d
bool(false)
int(0)
int(-3)
int(0)
int(0)
int(2)
int(0)
int(0)
Done
--UEXPECTF--
--EXPECTF--
Warning: strncasecmp() expects exactly 3 parameters, 1 given in %s on line %d
NULL

View File

@ -21,47 +21,7 @@ var_dump(each($a));
echo "Done\n";
?>
--EXPECTF--
Warning: Wrong parameter count for each() in %s on line %d
NULL
Warning: Variable passed to each() is not an array or object in %s on line %d
NULL
Warning: Variable passed to each() is not an array or object in %s on line %d
NULL
array(4) {
[1]=>
int(1)
["value"]=>
int(1)
[0]=>
int(0)
["key"]=>
int(0)
}
array(4) {
[1]=>
int(1)
["value"]=>
int(1)
[0]=>
string(1) "a"
["key"]=>
string(1) "a"
}
array(4) {
[1]=>
int(1)
["value"]=>
int(1)
[0]=>
int(0)
["key"]=>
int(0)
}
Done
--UEXPECTF--
--EXPECTF--
Warning: Wrong parameter count for each() in %s on line %d
NULL

View File

@ -22,7 +22,7 @@ var_dump(constant("test const"));
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Warning: Wrong parameter count for define() in %s on line %d
NULL

View File

@ -29,22 +29,7 @@ var_dump(get_class($f2));
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Non-static method foo::bar() should not be called statically in %s on line %d
string(3) "foo"
Strict Standards: Non-static method foo::bar() should not be called statically in %s on line %d
string(3) "foo"
string(3) "foo"
string(3) "foo"
Warning: get_class() called without object from outside a class in %s on line %d
bool(false)
bool(false)
string(3) "foo"
string(4) "foo2"
Done
--UEXPECTF--
--EXPECTF--
Strict Standards: Non-static method foo::bar() should not be called statically in %s on line %d
unicode(3) "foo"

View File

@ -41,23 +41,7 @@ var_dump(get_parent_class(1));
echo "Done\n";
?>
--EXPECTF--
bool(false)
bool(false)
string(3) "foo"
string(3) "foo"
bool(false)
string(3) "foo"
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
Done
--UEXPECTF--
--EXPECT--
bool(false)
bool(false)
unicode(3) "foo"

View File

@ -52,7 +52,7 @@ $bar->test();
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Warning: Wrong parameter count for property_exists() in %s on line %d
NULL

View File

@ -18,7 +18,7 @@ var_dump(class_exists("stdClass"));
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Warning: class_exists() expects at least 1 parameter, 0 given in %s on line %d
NULL
bool(false)

View File

@ -18,7 +18,7 @@ var_dump(interface_exists("stdClass"));
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Warning: interface_exists() expects at least 1 parameter, 0 given in %s on line %d
NULL
bool(false)

View File

@ -20,37 +20,7 @@ var_dump(get_included_files());
echo "Done\n";
?>
--EXPECTF--
array(1) {
[0]=>
string(%d) "%s"
}
array(2) {
[0]=>
string(%d) "%s"
[1]=>
string(%d) "%s"
}
Warning: get_included_files() expects exactly 0 parameters, 2 given in %s on line %d
NULL
array(2) {
[0]=>
string(%d) "%s"
[1]=>
string(%d) "%s"
}
Warning: get_included_files() expects exactly 0 parameters, 1 given in %s on line %d
NULL
array(2) {
[0]=>
string(%d) "%s"
[1]=>
string(%d) "%s"
}
Done
--UEXPECTF--
--EXPECTF--
array(1) {
[0]=>
unicode(%d) "%s"

View File

@ -12,7 +12,7 @@ var_dump(trigger_error("error", E_USER_WARNING));
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Warning: Wrong parameter count for trigger_error() in %s on line %d
NULL

View File

@ -8,5 +8,5 @@ isset($foo->bar->bar);
echo "Done\n";
?>
--EXPECT--
--EXPECT--
Done

View File

@ -44,47 +44,7 @@ var_dump(count(get_extension_funcs("zend")));
echo "Done\n";
?>
--EXPECTF--
Warning: Wrong parameter count for get_resource_type() in %s on line %d
NULL
Warning: Supplied argument is not a valid resource handle in %s on line %d
bool(false)
string(6) "stream"
string(7) "Unknown"
string(5) "array"
int(%d)
string(5) "array"
int(%d)
Warning: get_loaded_extensions() expects at most 1 parameter, 2 given in %s line %d
NULL
Warning: get_defined_constants() expects at most 1 parameter, 2 given in %s on line %d
NULL
string(5) "array"
string(5) "array"
int(%d)
Warning: get_defined_functions() expects exactly 0 parameters, 1 given in %s on line %d
NULL
string(5) "array"
int(%d)
Warning: get_declared_interfaces() expects exactly 0 parameters, 1 given in %s on line %d
NULL
string(5) "array"
int(%d)
Warning: get_extension_funcs() expects exactly 1 parameter, 0 given in %s on line %d
NULL
bool(false)
string(5) "array"
int(%d)
string(5) "array"
int(%d)
Done
--UEXPECTF--
--EXPECTF--
Warning: Wrong parameter count for get_resource_type() in %s on line %d
NULL

View File

@ -17,22 +17,7 @@ var_dump(constant("TEST_CONST2"));
echo "Done\n";
?>
--EXPECTF--
Warning: constant() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: constant() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: constant(): Couldn't find constant in %s on line %d
NULL
Warning: constant() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d
NULL
int(1)
string(4) "test"
Done
--UEXPECTF--
--EXPECTF--
Warning: constant() expects exactly 1 parameter, 0 given in %s on line %d
NULL

View File

@ -965,976 +965,6 @@ bool(true)
array(0) {
}
Notice: Undefined variable: array_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
--- Outerloop Iteration 8 ---
bool(false)
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
-- Innerloop Iteration 1 of Outerloop Iteration 8 --
array(1) {
[2]=>
string(3) "two"
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(1) {
[2]=>
string(3) "two"
}
-- Innerloop Iteration 2 of Outerloop Iteration 8 --
array(0) {
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(0) {
}
Notice: Undefined variable: array_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
--- Outerloop Iteration 9 ---
bool(false)
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
-- Innerloop Iteration 1 of Outerloop Iteration 9 --
array(1) {
["Age"]=>
string(2) "30"
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(1) {
["Age"]=>
string(2) "30"
}
-- Innerloop Iteration 2 of Outerloop Iteration 9 --
array(0) {
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(0) {
}
Notice: Undefined variable: array_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
--- Outerloop Iteration 10 ---
bool(false)
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
-- Innerloop Iteration 1 of Outerloop Iteration 10 --
array(4) {
[1]=>
int(2)
["One"]=>
string(1) "1"
[2]=>
string(3) "two"
[""]=>
string(0) ""
}
Notice: Undefined variable: key_val in %s on line %d
bool(true)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(4) {
[1]=>
int(2)
["One"]=>
string(1) "1"
[2]=>
string(3) "two"
[""]=>
string(0) ""
}
-- Innerloop Iteration 2 of Outerloop Iteration 10 --
array(3) {
["One"]=>
string(1) "1"
[2]=>
string(3) "two"
[""]=>
string(0) ""
}
Notice: Undefined variable: key_val in %s on line %d
bool(true)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(3) {
["One"]=>
string(1) "1"
[2]=>
string(3) "two"
[""]=>
string(0) ""
}
-- Innerloop Iteration 3 of Outerloop Iteration 10 --
array(2) {
[2]=>
string(3) "two"
[""]=>
string(0) ""
}
Notice: Undefined variable: key_val in %s on line %d
bool(true)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(2) {
[2]=>
string(3) "two"
[""]=>
string(0) ""
}
-- Innerloop Iteration 4 of Outerloop Iteration 10 --
array(1) {
[""]=>
string(0) ""
}
Notice: Undefined variable: key_val in %s on line %d
bool(true)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(1) {
[""]=>
string(0) ""
}
-- Innerloop Iteration 5 of Outerloop Iteration 10 --
array(0) {
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(0) {
}
Notice: Undefined variable: array_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
*** Testing unset(), emtpy() & isset() with resource variables ***
-- Iteration 1 --
resource(5) of type (stream)
bool(true)
bool(false)
bool(true)
resource(5) of type (stream)
bool(false)
bool(true)
bool(false)
bool(false)
Notice: Undefined variable: resource in %s on line %d
NULL
-- Iteration 2 --
resource(6) of type (stream)
bool(true)
bool(false)
bool(true)
resource(6) of type (stream)
bool(false)
bool(true)
bool(false)
bool(false)
Notice: Undefined variable: resource in %s on line %d
NULL
Notice: Undefined variable: resources in %s on line %d
NULL
bool(false)
bool(true)
*** Testing unset(), empty() & isset() with objects ***
object(Point)#1 (3) {
["x"]=>
int(30)
["y"]=>
int(40)
["lable"]=>
NULL
}
bool(true)
bool(false)
Notice: Undefined variable: lable in %s on line %d
bool(false)
Notice: Undefined variable: lable in %s on line %d
bool(true)
Notice: Undefined variable: lable in %s on line %d
bool(false)
Notice: Undefined variable: lable in %s on line %d
bool(true)
object(Point)#1 (3) {
["x"]=>
int(30)
["y"]=>
int(40)
["lable"]=>
string(6) "Point1"
}
object(Point)#1 (2) {
["y"]=>
int(40)
["lable"]=>
string(6) "Point1"
}
bool(false)
bool(true)
object(Point)#1 (0) {
}
bool(true)
bool(false)
bool(false)
bool(true)
Notice: Undefined variable: point1 in %s on line %d
NULL
bool(false)
bool(true)
bool(false)
bool(true)
array(3) {
[0]=>
string(5) "Point"
[1]=>
string(8) "setLable"
[2]=>
string(9) "testPoint"
}
object(Point)#1 (3) {
["x"]=>
int(5)
["y"]=>
int(6)
["lable"]=>
NULL
}
*** Testing possible variation in operation for isset(), empty() & unset() ***
** Testing unset() variation 1: unset on static variable inside a function **
value of static_var before unset: 1
bool(true)
bool(false)
Notice: Undefined variable: static_var in %s on line %d
value of static_var after unset:
bool(false)
bool(true)
value of static_var after new assignment: 20
value of static_var before unset: 2
bool(true)
bool(false)
Notice: Undefined variable: static_var in %s on line %d
value of static_var after unset:
bool(false)
bool(true)
value of static_var after new assignment: 20
value of static_var before unset: 3
bool(true)
bool(false)
Notice: Undefined variable: static_var in %s on line %d
value of static_var after unset:
bool(false)
bool(true)
value of static_var after new assignment: 20
** Testing unset() variation 2: unset on a variable passed by ref. inside of a function **
string(5) "value"
bool(false)
bool(true)
string(5) "value"
** Testing unset() variation 3: unset on a global variable inside of a function **
int(10)
bool(true)
bool(false)
bool(false)
bool(true)
int(10)
Done
--UEXPECTF--
*** Testing unset(), empty() & isset() with scalar variables ***
-- Iteration 1 --
bool(true)
bool(true)
bool(true)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 2 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 3 --
bool(true)
bool(true)
bool(true)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 4 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 5 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 6 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 7 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 8 --
bool(true)
bool(true)
bool(true)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 9 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 10 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 11 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 12 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 13 --
bool(true)
bool(true)
bool(true)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 14 --
bool(true)
bool(true)
bool(true)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 15 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 16 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 17 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 18 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 19 --
bool(true)
bool(true)
bool(true)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 20 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 21 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 22 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 23 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 24 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 25 --
bool(true)
bool(true)
bool(true)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 26 --
bool(true)
bool(true)
bool(false)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
-- Iteration 27 --
bool(true)
bool(true)
bool(true)
Notice: Undefined variable: scalar_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
*** Testing unset(), empty() & isset() with arrays ***
--- Outerloop Iteration 1 ---
bool(false)
bool(false)
bool(false)
bool(true)
bool(true)
bool(true)
Notice: Undefined variable: array_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
--- Outerloop Iteration 2 ---
bool(false)
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
-- Innerloop Iteration 1 of Outerloop Iteration 2 --
array(0) {
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(0) {
}
Notice: Undefined variable: array_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
--- Outerloop Iteration 3 ---
bool(false)
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
-- Innerloop Iteration 1 of Outerloop Iteration 3 --
array(0) {
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(0) {
}
Notice: Undefined variable: array_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
--- Outerloop Iteration 4 ---
bool(false)
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
-- Innerloop Iteration 1 of Outerloop Iteration 4 --
array(0) {
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(0) {
}
Notice: Undefined variable: array_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
--- Outerloop Iteration 5 ---
bool(false)
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
-- Innerloop Iteration 1 of Outerloop Iteration 5 --
array(0) {
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(0) {
}
Notice: Undefined variable: array_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
--- Outerloop Iteration 6 ---
bool(false)
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
-- Innerloop Iteration 1 of Outerloop Iteration 6 --
array(3) {
[1]=>
int(2)
[2]=>
int(3)
[3]=>
int(4)
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(3) {
[1]=>
int(2)
[2]=>
int(3)
[3]=>
int(4)
}
-- Innerloop Iteration 2 of Outerloop Iteration 6 --
array(2) {
[2]=>
int(3)
[3]=>
int(4)
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(2) {
[2]=>
int(3)
[3]=>
int(4)
}
-- Innerloop Iteration 3 of Outerloop Iteration 6 --
array(1) {
[3]=>
int(4)
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(1) {
[3]=>
int(4)
}
-- Innerloop Iteration 4 of Outerloop Iteration 6 --
array(0) {
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(0) {
}
Notice: Undefined variable: array_var in %s on line %d
NULL
bool(false)
bool(false)
bool(true)
--- Outerloop Iteration 7 ---
bool(false)
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
-- Innerloop Iteration 1 of Outerloop Iteration 7 --
array(2) {
[1]=>
float(2.5)
[2]=>
float(5.6)
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(2) {
[1]=>
float(2.5)
[2]=>
float(5.6)
}
-- Innerloop Iteration 2 of Outerloop Iteration 7 --
array(1) {
[2]=>
float(5.6)
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(1) {
[2]=>
float(5.6)
}
-- Innerloop Iteration 3 of Outerloop Iteration 7 --
array(0) {
}
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(false)
Notice: Undefined variable: key_val in %s on line %d
bool(true)
array(0) {
}
Notice: Undefined variable: array_var in %s on line %d
NULL
bool(false)

View File

@ -19,7 +19,7 @@ foo(1,2);
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
bool(false)
Warning: func_get_arg(): Called from the global scope - no function context in %s on line %d

View File

@ -27,18 +27,6 @@ print_r($e);
bool(true)
bool(true)
int(23)
string(3) "bar"
int(23)
float(23.5)
int(1)
Array
(
[e] => e
)
--UEXPECT--
bool(true)
bool(true)
int(23)
unicode(3) "bar"
int(23)
float(23.5)

View File

@ -41,10 +41,5 @@ var_dump($$$$d('foo'));
--EXPECT--
Test
foo!
string(4) "bar!"
string(3) "FOO"
--UEXPECT--
Test
foo!
unicode(4) "bar!"
unicode(3) "FOO"

View File

@ -16,40 +16,6 @@ var_dump($arr);
?>
--EXPECT--
array(1) {
[0]=>
object(stdClass)#1 (1) {
["a"]=>
object(stdClass)#2 (0) {
}
}
}
array(1) {
[0]=>
object(stdClass)#1 (2) {
["a"]=>
object(stdClass)#2 (0) {
}
["b"]=>
object(stdClass)#3 (0) {
}
}
}
array(1) {
[0]=>
object(stdClass)#1 (3) {
["a"]=>
object(stdClass)#2 (0) {
}
["b"]=>
object(stdClass)#3 (0) {
}
["c"]=>
object(stdClass)#2 (0) {
}
}
}
--UEXPECT--
array(1) {
[0]=>
object(stdClass)#1 (1) {

View File

@ -31,42 +31,6 @@ $test->bar();
?>
--EXPECTF--
object(Exception)#2 (6) {
["message":protected]=>
string(3) "foo"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(%d) "%s"
["line":protected]=>
int(%d)
["trace":"Exception":private]=>
array(1) {
[0]=>
array(6) {
["file"]=>
string(%d) "%s"
["line"]=>
int(%d)
["function"]=>
string(3) "bar"
["class"]=>
string(3) "foo"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
}
}
'test' => '0'
'test_2' => '1'
'test_3' => '2'
ok
--UEXPECTF--
object(Exception)#2 (6) {
[u"message":protected]=>
unicode(3) "foo"

View File

@ -10,5 +10,5 @@ class test {
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Fatal error: Multiple access type modifiers are not allowed in %s on line %d

View File

@ -9,5 +9,5 @@ class test {
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Fatal error: Multiple access type modifiers are not allowed in %s on line %d

View File

@ -9,5 +9,5 @@ final final class test {
echo "Done\n";
?>
--EXPECTF--
Parse error: syntax error, unexpected T_FINAL, expecting T_CLASS in %s on line %d
--EXPECTF--
Parse error: parse error, expecting `T_CLASS' in %saccess_modifiers_003.php on line %d

View File

@ -10,5 +10,5 @@ class test {
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Fatal error: Multiple abstract modifiers are not allowed in %s on line %d

View File

@ -10,5 +10,5 @@ class test {
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Fatal error: Multiple final modifiers are not allowed in %s on line %d

View File

@ -10,5 +10,5 @@ class test {
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Fatal error: Multiple static modifiers are not allowed in %s on line %d

View File

@ -9,5 +9,5 @@ class test {
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Fatal error: Cannot use the final modifier on an abstract class member in %s on line %d

View File

@ -29,49 +29,7 @@ var_dump($c);
echo "Done\n";
?>
--EXPECTF--
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
array(3) {
["a"]=>
string(3) "aaa"
[0]=>
int(2)
[1]=>
int(3)
}
array(3) {
["a"]=>
string(3) "aaa"
[0]=>
int(2)
[1]=>
int(3)
}
array(3) {
["a"]=>
string(3) "aaa"
[0]=>
int(2)
[1]=>
int(3)
}
Done
--UEXPECTF--
--EXPECT--
array(3) {
[0]=>
int(1)

View File

@ -13,7 +13,7 @@ var_dump($c);
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Notice: Object of class stdClass could not be converted to int in %s on line %d
Fatal error: Unsupported operand types in %s on line %d

View File

@ -13,7 +13,7 @@ var_dump($c);
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Notice: Object of class stdClass could not be converted to int in %s on line %d
Fatal error: Unsupported operand types in %s on line %d

View File

@ -10,5 +10,5 @@ var_dump($c);
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Fatal error: Unsupported operand types in %s on line %d

View File

@ -16,7 +16,7 @@ var_dump($c);
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
float(2834756759.1231)
float(2834756759.1231)
Done

View File

@ -37,7 +37,7 @@ var_dump($c);
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
int(75636)
int(951858)
int(48550510)

View File

@ -12,5 +12,5 @@ var_dump($c);
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Fatal error: Unsupported operand types in %s on line %d

View File

@ -30,7 +30,7 @@ var_dump($s);
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
string(3) "020"
string(4) "pead"
string(4) "pead"

View File

@ -14,8 +14,3 @@ array(1) {
[0]=>
int(1)
}
--UEXPECT--
array(1) {
[0]=>
int(1)
}

View File

@ -12,7 +12,7 @@ var_dump($var1);
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
int(2)
int(2)
Done

View File

@ -12,11 +12,7 @@ var_dump($var1);
echo "Done\n";
?>
--EXPECTF--
string(1) "g"
string(1) "g"
Done
--UEXPECTF--
--EXPECT--
unicode(1) "g"
unicode(1) "g"
Done

View File

@ -12,7 +12,7 @@ var_dump($var1);
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
NULL
NULL
Done

View File

@ -15,12 +15,7 @@ var_dump($var2);
echo "Done\n";
?>
--EXPECTF--
string(5) "space"
string(5) "space"
string(5) "space"
Done
--UEXPECTF--
--EXPECT--
unicode(5) "space"
unicode(5) "space"
unicode(5) "space"

View File

@ -15,24 +15,7 @@ for ($i = 0; $i < 8; $i++) {
$h =& f();
}
?>
--EXPECTF--
string(3) "foo"
'foo'
string(3) "foo"
'foo'
string(3) "foo"
'foo'
string(3) "foo"
'foo'
string(3) "foo"
'foo'
string(3) "foo"
'foo'
string(3) "foo"
'foo'
string(3) "foo"
'foo'
--UEXPECTF--
--EXPECT--
unicode(3) "foo"
'foo'
unicode(3) "foo"

View File

@ -9,6 +9,4 @@ function foo($bar = array("a", "b", "c"))
foo();
?>
--EXPECT--
string(1) "a"
--UEXPECT--
unicode(1) "a"

View File

@ -12,11 +12,6 @@ $obj_vars = get_object_vars($data);
var_dump($obj_vars);
?>
--EXPECT--
array(1) {
["public"]=>
string(6) "public"
}
--UEXPECT--
array(1) {
[u"public"]=>
unicode(6) "public"

View File

@ -68,13 +68,6 @@ catch (Exception $e) {
--EXPECTF--
Hello World!
===NONE===
string(52) "Method None::__toString() must return a string value"
===THROW===
Fatal error: Method Error::__toString() must not throw an exception in %sbug26166.php on line %d
--UEXPECTF--
Hello World!
===NONE===
unicode(52) "Method None::__toString() must return a string value"
===THROW===

View File

@ -19,4 +19,4 @@ for ($i = 0; $i < $len; $i++) {
===DONE===
--EXPECT--
a-s-d-d-/-?+
===DONE===
===DONE===

View File

@ -16,7 +16,7 @@ var_dump(class_exists('NotExistingClass'));
?>
===DONE===
--EXPECTF--
--EXPECT--
__autoload(NotExistingClass)
bool(false)
__autoload(NotExistingClass), done

View File

@ -13,6 +13,6 @@ Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dy
A::$y[0]();
?>
===DONE===
--EXPECTF--
--EXPECT--
Hello World
===DONE===

View File

@ -35,43 +35,6 @@ var_dump(get_object_vars(new Child));
===DONE===
--EXPECT--
Base::__construct
array(3) {
["Foo"]=>
int(1)
["Bar"]=>
int(2)
["Baz"]=>
int(3)
}
array(1) {
["Foo"]=>
int(1)
}
Base::__construct
array(3) {
["Foo"]=>
int(1)
["Bar"]=>
int(2)
["Baz"]=>
int(3)
}
Child::__construct
array(3) {
["Baz"]=>
int(4)
["Foo"]=>
int(1)
["Bar"]=>
int(2)
}
array(1) {
["Foo"]=>
int(1)
}
===DONE===
--UEXPECT--
Base::__construct
array(3) {
[u"Foo"]=>
int(1)

View File

@ -45,25 +45,7 @@ var_dump(ClassC::$prop);
?>
===DONE===
--EXPECTF--
===INIT===
string(1) "A"
string(1) "C"
string(1) "C"
===SetA===
string(2) "A2"
string(1) "C"
string(1) "C"
===SetB===
string(2) "A2"
string(2) "B2"
string(2) "B2"
===SetC===
string(2) "A2"
string(2) "C2"
string(2) "C2"
===DONE===
--UEXPECTF--
--EXPECT--
===INIT===
unicode(1) "A"
unicode(1) "C"

View File

@ -56,30 +56,6 @@ var_dump($y->z->x = 6);
?>
===DONE===
--EXPECTF--
object(Object)#%d (1) {
["x"]=>
int(2)
}
int(2)
int(3)
Overloaded::__set(y,3)
int(3)
Overloaded::__get(y)
int(3)
string(55) "Object of class Object could not be converted to string"
Overloaded::__set(z,)
object(Object)#%d (1) {
["x"]=>
int(4)
}
Overloaded::__get(z)
int(4)
Overloaded::__get(z)
int(5)
Overloaded::__get(z)
int(6)
===DONE===
--UEXPECTF--
object(Object)#%d (1) {
[u"x"]=>
int(2)

View File

@ -89,7 +89,7 @@ if (is_callable(array('test_class','test_func4'))) {
$object = new foo();
$object->test();
?>
--EXPECTF--
--EXPECT--
test_func1
test_func2
test_func3

View File

@ -28,7 +28,7 @@ unset($bar);
?>
===DONE===
--EXPECTF--
--EXPECT--
Foo::__construct
Caught exception!
===DONE===

View File

@ -13,23 +13,6 @@ var_dump(get_class_vars('Test'));
?>
===DONE===
--EXPECT--
array(2) {
["empty"]=>
array(0) {
}
["three"]=>
array(3) {
[0]=>
int(1)
["b"]=>
string(1) "c"
[3]=>
array(0) {
}
}
}
===DONE===
--UEXPECT--
array(2) {
[u"empty"]=>
array(0) {

View File

@ -31,16 +31,6 @@ $obj->printVars();
===DONE===
--EXPECTF--
===BASE===
string(4) "Base"
Notice: Undefined property: BaseClass::$private_child in %sbug29674.php on line %d
NULL
===CHILD===
string(4) "Base"
Fatal error: Cannot access private property ChildClass::$private_child in %sbug29674.php on line %d
--UEXPECTF--
===BASE===
unicode(4) "Base"
Notice: Undefined property: BaseClass::$private_child in %sbug29674.php on line %d

View File

@ -25,4 +25,3 @@ GenerateError2("Test2");
#0 userErrorHandler(8, Undefined variable: b, %sbug29896.php, 11, Array ([A1] => Test1)) called at [%sbug29896.php:11]
#1 GenerateError1(Test1) called at [%sbug29896.php:16]
#2 GenerateError2(Test2) called at [%sbug29896.php:19]

View File

@ -13,4 +13,3 @@ switch ($a) {
?>
--EXPECT--
ok

View File

@ -2,13 +2,13 @@
Bug #30080 (Passing array or non array of objects)
--FILE--
<?php
class foo {
function foo($arrayobj) {
class foo {
function foo($arrayobj) {
var_dump($arrayobj);
}
}
new foo(array(new stdClass));
new foo(array(new stdClass));
?>
--EXPECT--
array(1) {

View File

@ -22,13 +22,6 @@ var_dump(B::$test2);
var_dump(B::$test3);
?>
--EXPECT--
string(1) "x"
string(1) "y"
string(1) "z"
string(1) "x"
string(1) "y"
string(1) "z"
--UEXPECT--
unicode(1) "x"
unicode(1) "y"
unicode(1) "z"

View File

@ -44,15 +44,6 @@ var_dump($db);
--EXPECTF--
Notice: Undefined variable: db in %sbug30162.php on line 35
NULL
object(hariCow)#1 (2) {
["x"]=>
string(1) "x"
["y"]=>
string(1) "y"
}
--UEXPECTF--
Notice: Undefined variable: db in %sbug30162.php on line 35
NULL
object(hariCow)#1 (2) {
[u"x"]=>
unicode(1) "x"

View File

@ -13,10 +13,6 @@ haricow();
?>
===DONE===
--EXPECT--
string(3) "one"
string(3) "one"
===DONE===
--UEXPECT--
unicode(3) "one"
unicode(3) "one"
===DONE===

View File

@ -7,4 +7,3 @@ class test implements a {
?>
--EXPECTF--
Fatal error: Interface 'a' not found in %sbug30519.php on line 2

View File

@ -23,21 +23,6 @@ $x= new bar();
var_dump($x);
?>
--EXPECT--
object(bar)#1 (6) {
["c1"]=>
int(1)
["c2"]=>
int(2)
["c3"]=>
int(1)
["c4"]=>
int(2)
["c5"]=>
int(1)
["c6"]=>
int(1)
}
--UEXPECT--
object(bar)#1 (6) {
[u"c1"]=>
int(1)

View File

@ -25,15 +25,6 @@ var_dump($c);
?>
--EXPECT--
string(50) "Object of class a could not be converted to string"
string(50) "Object of class a could not be converted to string"
object(a)#2 (1) {
["a"]=>
int(4)
}
--UEXPECT--
unicode(50) "Object of class a could not be converted to string"
unicode(50) "Object of class a could not be converted to string"

View File

@ -69,33 +69,6 @@ for ($i=0; $i < 2; $i++) {
}
?>
--EXPECT--
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
NULL
string(2) "ok"
string(2) "ok"
---
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
NULL
string(2) "ok"
string(2) "ok"
---
--UEXPECT--
unicode(2) "ok"
unicode(2) "ok"
unicode(2) "ok"

View File

@ -24,4 +24,3 @@ echo "this is still executed\n";
BUG
please fix this thing, it wasted a nice part of my life!
this is still executed

View File

@ -5,4 +5,4 @@ Bug #33318 (throw 1; results in Invalid opcode 108/1/8)
throw 1;
?>
--EXPECTF--
Fatal error: Can only throw objects in %sbug33318.php on line 2
Fatal error: Can only throw objects in %sbug33318.php on line 2

View File

@ -58,13 +58,6 @@ class TheObj {
print $SomeObj->{'Virtual'.(3)}."\n";
?>
--EXPECT--
string(9) "somevalue"
othervaluetoo
int(-1)
-1
-1
-1
--UEXPECT--
unicode(9) "somevalue"
othervaluetoo
int(-1)

View File

@ -18,4 +18,3 @@ echo "$a\n";
?>
--EXPECT--
ok

View File

@ -33,7 +33,7 @@ var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
int(16383)
int(16383)
int(14335)

View File

@ -18,17 +18,6 @@ $baz = (float)$foo;
var_dump($baz);
?>
--EXPECTF--
object(Foo)#1 (1) {
["bar"]=>
string(3) "bat"
}
Notice: Object of class Foo could not be converted to int in %sbug33999.php on line 9
int(1)
Notice: Object of class Foo could not be converted to double in %sbug33999.php on line 12
float(1)
--UEXPECTF--
object(Foo)#1 (1) {
[u"bar"]=>
unicode(3) "bat"

View File

@ -21,4 +21,3 @@ try {
(((
here
)))

View File

@ -26,13 +26,6 @@ $o = new XmlTest();
$o->run();
?>
--EXPECTF--
array(1) {
[0]=>
string(2) "ok"
}
Fatal error: Cannot use [] for reading in %sbug34064.php on line 18
--UEXPECTF--
array(1) {
[0]=>
unicode(2) "ok"

View File

@ -15,4 +15,4 @@ function boom()
boom();
?>
--EXPECT--
ok
ok

View File

@ -22,9 +22,6 @@ $myPwa->test();
echo "Done\n";
?>
--EXPECT--
string(7) "myvalue"
Done
--UEXPECT--
--EXPECT--
unicode(7) "myvalue"
Done

View File

@ -8,4 +8,4 @@ print_r(str_replace('a', 'b', array(-1 =>-1)));
Array
(
[-1] => -1
)
)

View File

@ -62,4 +62,3 @@ array(3) {
}
}
}

View File

@ -12,32 +12,6 @@ $a->b = null;
$a = null;
?>
--EXPECT--
object(stdClass)#1 (1) {
["b"]=>
&array(3) {
[0]=>
int(2)
[1]=>
&array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
[2]=>
&array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
}
}
--UEXPECT--
object(stdClass)#1 (1) {
[u"b"]=>
&array(3) {

View File

@ -13,33 +13,6 @@ $a->x0->y1 = "ok\n";
echo $a->x0;
?>
--EXPECT--
object(stdClass)#1 (1) {
["x0"]=>
&object(stdClass)#2 (3) {
["y0"]=>
string(1) "b"
["y1"]=>
&object(stdClass)#2 (3) {
["y0"]=>
string(1) "b"
["y1"]=>
*RECURSION*
["y2"]=>
*RECURSION*
}
["y2"]=>
&object(stdClass)#2 (3) {
["y0"]=>
string(1) "b"
["y1"]=>
*RECURSION*
["y2"]=>
*RECURSION*
}
}
}
ok
--UEXPECT--
object(stdClass)#1 (1) {
[u"x0"]=>
&object(stdClass)#2 (3) {

View File

@ -46,28 +46,6 @@ array(2) {
[1]=>
int(2)
}
object(ArrayObject)#%d (1) {
["storage":"ArrayObject":private]=>
array(2) {
[0]=>
int(1)
[1]=>
int(2)
}
}
--UEXPECTF--
array(2) {
[0]=>
int(1)
[1]=>
int(2)
}
array(2) {
[0]=>
int(1)
[1]=>
int(2)
}
object(ArrayObject)#%d (1) {
[u"storage":u"ArrayObject":private]=>
array(2) {

View File

@ -18,4 +18,3 @@ stch::g ();
EHLO
EHLO
EHLO

View File

@ -40,20 +40,6 @@ var_dump($B);
?>
===DONE===
--EXPECTF--
object(B)#%d (1) {
["value":protected]=>
string(1) "B"
}
object(C)#%d (1) {
["value":protected]=>
string(1) "C"
}
object(B)#%d (1) {
["value":protected]=>
string(1) "C"
}
===DONE===
--UEXPECTF--
object(B)#%d (1) {
[u"value":protected]=>
unicode(1) "B"

View File

@ -28,30 +28,6 @@ var_dump($obj);
?>
===DONE===
--EXPECTF--
string(3) "bar"
Notice: Undefined offset: 2 in %sbug37667.php on line 16
NULL
object(Test)#%d (1) {
["property":protected]=>
array(1) {
["foo"]=>
string(3) "bar"
}
}
Notice: Indirect modification of overloaded property Test::$property has no effect in %sbug37667.php on line 20
Notice: Indirect modification of overloaded property Test::$property has no effect in %sbug37667.php on line 21
object(Test)#%d (1) {
["property":protected]=>
array(1) {
["foo"]=>
string(3) "bar"
}
}
===DONE===
--UEXPECTF--
unicode(3) "bar"
Notice: Undefined offset: 2 in %sbug37667.php on line %d

View File

@ -13,4 +13,3 @@ echo "NO LEAK\n";
--EXPECT--
clonned
NO LEAK

View File

@ -19,14 +19,6 @@ var_dump(Baz);
?>
===DONE===
--EXPECTF--
string(3) "Foo"
Warning: Constants may only evaluate to scalar values in %sbug37811.php on line %d
Notice: Use of undefined constant Baz - assumed 'Baz' in %sbug37811.php on line %d
string(3) "Baz"
===DONE===
--UEXPECTF--
unicode(3) "Foo"
Warning: Constants may only evaluate to scalar values in %sbug37811.php on line %d

View File

@ -21,5 +21,5 @@ $op->x = 'test';
echo "Done\n";
?>
--EXPECT--
--EXPECT--
Done

View File

@ -25,7 +25,7 @@ $impl = new impl();
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Fatal error: Uncaught exception 'Exception' with message 'doesn't work' in %s:%d
Stack trace:
#0 %s(%d): impl->__get('counter')

View File

@ -30,5 +30,5 @@ require 'Loader://qqq.php';
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Parse error: %s error%sin Loader://qqq.php on line %d

View File

@ -38,14 +38,11 @@ fwrite($fp1, "<"."?php blah blah?".">");
fclose($fp1);
include $filename;
echo "Done\n";
?>
--EXPECTF--
Parse error: %s error%sin %s on line %d
string(6) "flush!"
string(6) "close!"
--UEXPECTF--
===DONE===
--CLEAN--
<?php unlink(dirname(__FILE__) . '/bug38779.txt'); ?>
--EXPECTF--
Parse error: %s error%sin %s on line %d
unicode(6) "flush!"
unicode(6) "close!"

View File

@ -14,4 +14,4 @@ echo $current($a)."\n";
?>
--EXPECT--
one
two
two

View File

@ -20,5 +20,5 @@ test($obj);
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Catchable fatal error: Argument 1 passed to test() must be an instance of OtherClassName, instance of ClassName given, called in %s on line %d and defined in %s on line %d

View File

@ -13,7 +13,7 @@ var_dump($key);
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Notice: Undefined variable: key in %s on line %d
NULL
Done

View File

@ -13,7 +13,7 @@ var_dump(is_callable(array($b,"__construct")));
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
%s(13) "a::a() called"
bool(true)
bool(false)

View File

@ -14,7 +14,7 @@ Foo::get();
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Strict Standards: Non-static method Foo::get() should not be called statically in %s on line %d
Fatal error: Non-static method Foo::__construct() cannot be called statically in %s on line %d

View File

@ -18,7 +18,7 @@ $b = new B;
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
I'm A
I'm A
Done

View File

@ -14,5 +14,5 @@ set_exception_handler("ehandle::exh");
throw new Exception ("Whiii");
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
foo

View File

@ -20,7 +20,7 @@ try_class::main ();
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Done
Warning: (Registered shutdown functions) Unable to call self::on_shutdown() - function does not exist in Unknown on line 0

Some files were not shown because too many files have changed in this diff Show More