Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Zend/tests/attributes/008_wrong_attribution.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Attributes: Prevent Attribute on non classes
function foo() {}
?>
--EXPECTF--
Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s
Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s on line %d
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ class C1 { }

?>
--EXPECTF--
Fatal error: Constant expression contains invalid operations in %s
Fatal error: Constant expression contains invalid operations in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/attributes/016_custom_attribute_validation.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ function foo() {
}
?>
--EXPECTF--
Fatal error: Only classes can be marked with #[ZendTestAttribute] in %s
Fatal error: Only classes can be marked with #[ZendTestAttribute] in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/attributes/024_internal_target_validation.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ function a1() { }

?>
--EXPECTF--
Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s
Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s on line %d
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class A1 { }

?>
--EXPECTF--
Fatal error: Attribute "Attribute" must not be repeated in %s
Fatal error: Attribute "Attribute" must not be repeated in %s on line %d
8 changes: 4 additions & 4 deletions Zend/tests/attributes/deprecated/functions/001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ new Constructor();

?>
--EXPECTF--
Deprecated: Function test() is deprecated in %s
Deprecated: Function test() is deprecated in %s on line %d

Deprecated: Function test2() is deprecated, use test() instead in %s on line %d

Deprecated: Function test() is deprecated in %s on line %d

Deprecated: Method Clazz::test() is deprecated in %s
Deprecated: Method Clazz::test() is deprecated in %s on line %d

Deprecated: Method Clazz::test2() is deprecated, use test() instead in %s
Deprecated: Method Clazz::test2() is deprecated, use test() instead in %s on line %d

Deprecated: Method Clazz::test() is deprecated in %s
Deprecated: Method Clazz::test() is deprecated in %s on line %d

Deprecated: Function {closure:%s:%d}() is deprecated in %s on line %d

Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/attributes/deprecated/functions/magic_call.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ Clazz::test2();

?>
--EXPECTF--
Deprecated: Method Clazz::test() is deprecated in %s
Deprecated: Method Clazz::test() is deprecated in %s on line %d

Deprecated: Method Clazz::test2() is deprecated, due to some reason in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/autoload/bug39003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test($obj);
echo "Done\n";
?>
--EXPECTF--
Fatal error: Uncaught TypeError: test(): Argument #1 ($object) must be of type OtherClassName, ClassName given, called in %s:%d
Fatal error: Uncaught TypeError: test(): Argument #1 ($object) must be of type OtherClassName, ClassName given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): test(Object(ClassName))
#1 {main}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ try {
ERR#2: include(class://non.existent.Class): Failed to open stream: "CLWrapper::stream_open" call failed @ include
ERR#2: include(): Failed opening 'class://non.existent.Class' for inclusion (include_path='%s') @ include

Fatal error: Uncaught Exception: Failed loading class://non.existent.Class in %s
Fatal error: Uncaught Exception: Failed loading class://non.existent.Class in %s:%d
Stack trace:
#0 %s(%d): CL->load('class://non.exi...')
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug73954.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ takes_int(log(tan(3.14)));
float(NAN)
bool(true)

Fatal error: Uncaught TypeError: takes_int(): Argument #1 ($int) must be of type int, float given, called in %s:%d
Fatal error: Uncaught TypeError: takes_int(): Argument #1 ($int) must be of type int, float given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(9): takes_int(NAN)
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/closures/closure_027.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ NULL
Warning: Undefined variable $y in %s on line %d
Exception: Too few arguments to function {closure:%s:%d}(), 0 passed in %s on line %d and exactly 1 expected

Fatal error: Uncaught TypeError: test(): Argument #1 ($a) must be of type Closure, stdClass given, called in %s:%d
Fatal error: Uncaught TypeError: test(): Argument #1 ($a) must be of type Closure, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): test(Object(stdClass))
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/exceptions/bug48228.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $l_aa=new aa();
$l_aa->dosome();
?>
--EXPECTF--
Fatal error: Uncaught Exception in %s
Fatal error: Uncaught Exception in %s:%d
Stack trace:
#0 %s(%d): do_throw()
#1 %s(%d): aa->dosome()
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/exceptions/bug48408.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ catch(Exception $e){
}
?>
--EXPECTF--
Fatal error: Uncaught Exception in %s
Fatal error: Uncaught Exception in %s:%d
Stack trace:
#0 %s(%d): C->generate(0)
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/exceptions/exception_017.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Error: Cannot call abstract method C::foo() in %s:%d
Stack trace:
#0 {main}

TypeError: foo(): Argument #1 ($x) must be of type callable, string given, called in %s:%d
TypeError: foo(): Argument #1 ($x) must be of type callable, string given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo('C::foo')
#1 {main}
Expand Down
46 changes: 23 additions & 23 deletions Zend/tests/falsetoarray.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -119,76 +119,76 @@ unset($a[0]);
--EXPECTF--
[001]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[002]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d

Function
[003]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[004]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[005]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[006]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d

Properties
[007]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[008]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[009]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[010]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[011]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[012]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[013]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d

Destructuring
[014]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[015]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[016]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[017]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[018]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[019]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[020]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[021]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[022]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
[023]

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/generators/generator_with_type_check.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function gen(array $a) { yield; }
gen(42);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: gen(): Argument #1 ($a) must be of type array, int given, called in %s:%d
Fatal error: Uncaught TypeError: gen(): Argument #1 ($a) must be of type array, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %sgenerator_with_type_check.php(3): gen(42)
#1 {main}
Expand Down
8 changes: 4 additions & 4 deletions Zend/tests/indexing_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int(1)
Cannot use a scalar value as an array
bool(true)

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
array(1) {
["foo"]=>
array(1) {
Expand Down Expand Up @@ -105,7 +105,7 @@ int(1)
Cannot use a scalar value as an array
bool(true)

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
array(1) {
["foo"]=>
&array(1) {
Expand Down Expand Up @@ -137,7 +137,7 @@ int(1)
Cannot use a scalar value as an array
bool(true)

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
array(1) {
[0]=>
array(1) {
Expand Down Expand Up @@ -170,7 +170,7 @@ int(1)
Cannot use a scalar value as an array
bool(true)

Deprecated: Automatic conversion of false to array is deprecated in %s
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
array(1) {
[0]=>
&array(1) {
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/inheritance/abstract_inheritance_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ abstract class B extends A { abstract function bar($x); }
echo "DONE";
?>
--EXPECTF--
Fatal error: Declaration of B::bar($x) must be compatible with A::bar($x, $y = 0) in %s
Fatal error: Declaration of B::bar($x) must be compatible with A::bar($x, $y = 0) in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/inheritance/bug73987_1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ class B extends A {

?>
--EXPECTF--
Fatal error: Declaration of B::example(): string must be compatible with A::example(): int in %s
Fatal error: Declaration of B::example(): string must be compatible with A::example(): int in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/inheritance/bug73987_3.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ class C extends B {

?>
--EXPECTF--
Fatal error: Declaration of C::example(): string must be compatible with B::example(): int in %s
Fatal error: Declaration of C::example(): string must be compatible with B::example(): int in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/namespaces/bug42802.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ok
ok
ok

Fatal error: Uncaught TypeError: foo\test5(): Argument #1 ($bar) must be of type bar, foo\bar given, called in %s:%d
Fatal error: Uncaught TypeError: foo\test5(): Argument #1 ($bar) must be of type bar, foo\bar given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo\test5(Object(foo\bar))
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/namespaces/ns_071.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ new bar(new \stdclass);
--EXPECTF--
NULL

Fatal error: Uncaught TypeError: foo\bar::__construct(): Argument #1 ($x) must be of type ?array, stdClass given, called in %s:%d
Fatal error: Uncaught TypeError: foo\bar::__construct(): Argument #1 ($x) must be of type ?array, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo\bar->__construct(Object(stdClass))
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/namespaces/ns_072.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object(foo\test)#%d (0) {
}
NULL

Fatal error: Uncaught TypeError: foo\bar::__construct(): Argument #1 ($x) must be of type ?foo\foo, stdClass given, called in %s:%d
Fatal error: Uncaught TypeError: foo\bar::__construct(): Argument #1 ($x) must be of type ?foo\foo, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo\bar->__construct(Object(stdClass))
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/object_types/type_hint_in_class_method.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $one->a(new One());
$one->a(123);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: One::a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d
Fatal error: Uncaught TypeError: One::a(): Argument #1 ($obj) must be of type object, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(9): One->a(123)
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/object_types/type_hint_in_function.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ a(new A());
a(123);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d
Fatal error: Uncaught TypeError: a(): Argument #1 ($obj) must be of type object, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(7): a(123)
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/objects/objects_022.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object(bar)#%d (0) {
object(baz)#%d (0) {
}

Fatal error: Uncaught TypeError: foo::testFoo(): Argument #1 ($obj) must be of type foo, stdClass given, called in %s:%d
Fatal error: Uncaught TypeError: foo::testFoo(): Argument #1 ($obj) must be of type foo, stdClass given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo->testFoo(Object(stdClass))
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/parameter_default_values/bug68446.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ array(1) {
int(1)
}

Fatal error: Uncaught TypeError: a(): Argument #1 ($a) must be of type array, null given, called in %s:%d
Fatal error: Uncaught TypeError: a(): Argument #1 ($a) must be of type array, null given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): a(NULL)
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/traits/bug74269.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ class PropertiesExample
}
?>
--EXPECTF--
Fatal error: PropertiesExample and PropertiesTrait define the same property ($same) in the composition of PropertiesExample. However, the definition differs and is considered incompatible. Class was composed in %s
Fatal error: PropertiesExample and PropertiesTrait define the same property ($same) in the composition of PropertiesExample. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/type_declarations/array_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ foo(123);
--EXPECTF--
3

Fatal error: Uncaught TypeError: foo(): Argument #1 ($a) must be of type array, int given, called in %s:%d
Fatal error: Uncaught TypeError: foo(): Argument #1 ($a) must be of type array, int given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo(123)
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/type_declarations/callable/callable_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ array(2) {
string(3) "foo"
}

Fatal error: Uncaught TypeError: foo(): Argument #1 ($bar) must be of type callable, array given, called in %s:%d
Fatal error: Uncaught TypeError: foo(): Argument #1 ($bar) must be of type callable, array given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo(Array)
#1 {main}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ class Test2 extends Test {
?>
===DONE===
--EXPECTF--
Fatal error: Could not check compatibility between Test2::method2(): (X&MyIterator)|int and Test::method2(): Traversable|array|int, because class X is not available in %s
Fatal error: Could not check compatibility between Test2::method2(): (X&MyIterator)|int and Test::method2(): Traversable|array|int, because class X is not available in %s on line %d
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require 'weak_include_strict_2.inc';
// calls within that file should stay strict, despite being included by weak file
?>
--EXPECTF--
Fatal error: Uncaught TypeError: takes_int(): Argument #1 ($x) must be of type int, float given, called in %s:%d
Fatal error: Uncaught TypeError: takes_int(): Argument #1 ($x) must be of type int, float given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): takes_int(1.0)
#1 %s(%d): require('%s')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ foo(null);

?>
--EXPECTF--
Fatal error: Uncaught TypeError: foo(): Argument #1 ($ex) must be of type bar, null given, called in %s:%d
Fatal error: Uncaught TypeError: foo(): Argument #1 ($ex) must be of type bar, null given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): foo(NULL)
#1 {main}
Expand Down
Loading
Loading