Skip to content
Closed
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
4 changes: 2 additions & 2 deletions Zend/tests/009.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ 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
Deprecated: 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
Deprecated: Non-static method foo::bar() should not be called statically in %s on line %d
string(3) "foo"
string(3) "foo"
string(3) "foo"
Expand Down
1 change: 0 additions & 1 deletion Zend/tests/abstract-static.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ abstract class TestClass
===DONE===
--EXPECTF--

Strict Standards: Static function TestClass::getName() should not be abstract in %sabstract-static.php on line %d
===DONE===
2 changes: 1 addition & 1 deletion Zend/tests/argument_restriction_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class Sub extends Base {
}
?>
--EXPECTF--
Strict Standards: Declaration of Sub::test() should be compatible with & Base::test($foo, array $bar, $option = NULL, $extra = 'llllllllll...') in %sargument_restriction_001.php on line %d
Warning: Declaration of Sub::test() should be compatible with & Base::test($foo, array $bar, $option = NULL, $extra = 'llllllllll...') in %sargument_restriction_001.php on line %d
2 changes: 1 addition & 1 deletion Zend/tests/argument_restriction_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class Sub extends Base {
}
?>
--EXPECTF--
Strict Standards: Declaration of Sub::test() should be compatible with Base::test($foo, array &$bar, $option = NULL, $extra = 3.1415926535898) in %sargument_restriction_002.php on line %d
Warning: Declaration of Sub::test() should be compatible with Base::test($foo, array &$bar, $option = NULL, $extra = 3.1415926535898) in %sargument_restriction_002.php on line %d
2 changes: 1 addition & 1 deletion Zend/tests/argument_restriction_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ class Sub extends Base {
}
?>
--EXPECTF--
Strict Standards: Declaration of Sub::test() should be compatible with Base::test(Foo $foo, array $bar, $option = NULL, $extra = 'llllllllll...') in %sargument_restriction_003.php on line %d
Warning: Declaration of Sub::test() should be compatible with Base::test(Foo $foo, array $bar, $option = NULL, $extra = 'llllllllll...') in %sargument_restriction_003.php on line %d
2 changes: 1 addition & 1 deletion Zend/tests/argument_restriction_006.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class Sub extends Base {
}
?>
--EXPECTF--
Strict Standards: Declaration of Sub::test() should be compatible with Base::test($foo, $extra = Array) in %sargument_restriction_006.php on line %d
Warning: Declaration of Sub::test() should be compatible with Base::test($foo, $extra = Array) in %sargument_restriction_006.php on line %d
4 changes: 2 additions & 2 deletions Zend/tests/bug30820.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ $b = new Blah();
$b->show();
?>
--EXPECTF--
Strict Standards: Accessing static property Blah::$x as non static in %sbug30820.php on line 7
Notice: Accessing static property Blah::$x as non static in %sbug30820.php on line 7
Blah::$x = 1

Strict Standards: Accessing static property Blah::$x as non static in %sbug30820.php on line 10
Notice: Accessing static property Blah::$x as non static in %sbug30820.php on line 10
$this->x = 5
2 changes: 1 addition & 1 deletion Zend/tests/bug31525.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ $bar->destroyThis();
var_dump($bar);
?>
--EXPECTF--
Strict Standards: Only variables should be assigned by reference in %sbug31525.php on line 7
Notice: Only variables should be assigned by reference in %sbug31525.php on line 7
object(Foo)#1 (0) {
}
4 changes: 2 additions & 2 deletions Zend/tests/bug32322.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ Try static instance inside class :
New class Singleton1 created
Using old class Singleton1

Strict Standards: Only variables should be assigned by reference in %sbug32322.php on line 49
Notice: Only variables should be assigned by reference in %sbug32322.php on line 49
Using old class Singleton1
Try static instance inside function :
New class Singleton2 created
Using old class Singleton2

Strict Standards: Only variables should be assigned by reference in %sbug32322.php on line 55
Notice: Only variables should be assigned by reference in %sbug32322.php on line 55
Using old class Singleton2
Class Singleton1 destroyed at script end
Class Singleton2 destroyed at script end
2 changes: 1 addition & 1 deletion Zend/tests/bug33257.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ array_splice(X::getArr(), 1, 1);
print_r(X::getArr());
?>
--EXPECTF--
Strict Standards: Only variables should be passed by reference in %sbug33257.php on line 10
Notice: Only variables should be passed by reference in %sbug33257.php on line 10
Array
(
[0] => a
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug35393.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Array
[0] => main
)

Strict Standards: Only variables should be passed by reference in %sbug35393.php on line 12
Notice: Only variables should be passed by reference in %sbug35393.php on line 12
Array
(
[0] => main
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug40621.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ Foo::get();
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Non-static method Foo::get() should not be called statically in %s on line %d
Deprecated: 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
2 changes: 1 addition & 1 deletion Zend/tests/bug45805.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ $o->bar();
--EXPECTF--
Fatal error: Uncaught exception 'RuntimeException' in %sbug45805.php:%d
Stack trace:
#0 %sbug45805.php(%d): PHPUnit_Util_ErrorHandler::handleError(2048, 'Only variables ...', '%s', %d, Array)
#0 %sbug45805.php(%d): PHPUnit_Util_ErrorHandler::handleError(8, 'Only variables ...', '%s', %d, Array)
#1 [internal function]: B->foo()
#2 %sbug45805.php(%d): ReflectionMethod->invoke(Object(B))
#3 %sbug45805.php(%d): B->bar()
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug47054.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ Called class: C

Warning: get_called_class() called from outside a class in %s on line %d

Strict Standards: Non-static method D::m() should not be called statically in %s on line %d
Deprecated: Non-static method D::m() should not be called statically in %s on line %d

Fatal error: Using $this when not in object context in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/bug48533.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ int(2)
%unicode|string%(9) "__call::c"
%unicode|string%(15) "__callStatic::a"

Strict Standards: Non-static method foo::b() should not be called statically in %s on line %d
Deprecated: Non-static method foo::b() should not be called statically in %s on line %d
int(2)
%unicode|string%(15) "__callStatic::c"
2 changes: 0 additions & 2 deletions Zend/tests/bug60536_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ $t->hello = "foo";
?>
--EXPECTF--
PRE-CLASS-GUARD

Strict Standards: Notice and THello1 define the same property ($hello) in the composition of Notice. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in %s on line %d
POST-CLASS-GUARD

Fatal error: TraitsTest and THello1 define the same property ($hello) in the composition of TraitsTest. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
2 changes: 0 additions & 2 deletions Zend/tests/bug60536_004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,4 @@ echo "POST-CLASS-GUARD2\n";
--EXPECTF--
PRE-CLASS-GUARD
POST-CLASS-GUARD

Strict Standards: Notice and THello1 define the same property ($hello) in the composition of Notice. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in %sbug60536_004.php on line %d
POST-CLASS-GUARD2
4 changes: 0 additions & 4 deletions Zend/tests/bug60536_005.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,5 @@ echo "POST-CLASS-GUARD2\n";
?>
--EXPECTF--
PRE-CLASS-GUARD

Strict Standards: Base and THello1 define the same property ($hello) in the composition of SameNameInSubClassProducesNotice. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in %s on line %d
POST-CLASS-GUARD

Strict Standards: Notice and THello1 define the same property ($hello) in the composition of Notice. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in %s on line %d
POST-CLASS-GUARD2
4 changes: 2 additions & 2 deletions Zend/tests/bug60573.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public function setSelf(Foo6 $s) { }

}
--EXPECTF--
Strict Standards: Declaration of Bar4::setSelf() should be compatible with Foo4::setSelf(Foo4 $s) in %sbug60573.php on line %d
Warning: Declaration of Bar4::setSelf() should be compatible with Foo4::setSelf(Foo4 $s) in %sbug60573.php on line %d

Strict Standards: Declaration of Bar5::setSelf() should be compatible with Foo5::setSelf(Base $s) in %sbug60573.php on line %d
Warning: Declaration of Bar5::setSelf() should be compatible with Foo5::setSelf(Base $s) in %sbug60573.php on line %d

Fatal error: Declaration of Bar6::setSelf() must be compatible with Foo6::setSelf(Base $s) in %sbug60573.php on line %d
2 changes: 1 addition & 1 deletion Zend/tests/bug62358.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ class B extends A {
}
?>
--EXPECTF--
Strict Standards: Declaration of B::foo() should be compatible with A::foo() in %sbug62358.php on line %d
Warning: Declaration of B::foo() should be compatible with A::foo() in %sbug62358.php on line %d
1 change: 0 additions & 1 deletion Zend/tests/bug63111.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Bar::foo();
Foo::bar();
?>
--EXPECTF--
Strict Standards: Static function Foo::bar() should not be abstract in %sbug63111.php on line 3
bool(false)
bool(false)
bool(false)
Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug63336.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class Child extends Base {
}
?>
--EXPECT--
Strict Standards: Declaration of Child::foo() should be compatible with Base::foo($var = '123', $more = NULL) in %sbug63336.php on line %d
Warning: Declaration of Child::foo() should be compatible with Base::foo($var = '123', $more = NULL) in %sbug63336.php on line %d

Strict Standards: Declaration of Child::bar() should be compatible with Base::bar($var, $more = 'XXX') in %sbug63336.php on line %d
Warning: Declaration of Child::bar() should be compatible with Base::bar($var, $more = 'XXX') in %sbug63336.php on line %d
2 changes: 1 addition & 1 deletion Zend/tests/bug64988.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ $o = new Smooth1();
echo "okey";
?>
--EXPECTF--
Strict Standards: Declaration of Smooth1::insert() should be compatible with Noisy1::insert(array $data, $option1 = NULL) in %sbug64988.php on line 20
Warning: Declaration of Smooth1::insert() should be compatible with Noisy1::insert(array $data, $option1 = NULL) in %sbug64988.php on line 20
okey
2 changes: 1 addition & 1 deletion Zend/tests/bug67436/bug67436_nohandler.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ $b = new b();
$b->test();

--EXPECTF--
Strict Standards: Declaration of b::test() should be compatible with a::test($arg = c::TESTCONSTANT) in %s%ebug67436%eb.php on line %d
Warning: Declaration of b::test() should be compatible with a::test($arg = c::TESTCONSTANT) in %s%ebug67436%eb.php on line %d
b::test()
a::test(c::TESTCONSTANT)
4 changes: 2 additions & 2 deletions Zend/tests/call_static_006.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ foo::__construct();

?>
--EXPECTF--
Strict Standards: Non-static method foo::aa() should not be called statically in %s on line %d
Deprecated: Non-static method foo::aa() should not be called statically in %s on line %d
ok

Strict Standards: Non-static method foo::aa() should not be called statically in %s on line %d
Deprecated: Non-static method foo::aa() should not be called statically in %s on line %d
ok

Fatal error: Cannot call constructor in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/call_user_func_004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ call_user_func(array('foo', 'teste'));

?>
--EXPECTF--
Strict Standards: %son-static method foo::teste() should not be called statically in %s on line %d
Deprecated: %son-static method foo::teste() should not be called statically in %s on line %d

Fatal error: Using $this when not in object context in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/call_user_func_005.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var_dump(call_user_func(array('foo', 'teste')));

?>
--EXPECTF--
Strict Standards: %son-static method foo::teste() should not be called statically in %s on line %d
Deprecated: %son-static method foo::teste() should not be called statically in %s on line %d
%string|unicode%(1) "x"
array(1) {
[0]=>
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/callable_type_hint_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ foo($closure);
string(6) "strpos"
string(3) "foo"

Strict Standards: Non-static method bar::baz() should not be called statically in %scallable_type_hint_001.php on line %d
Deprecated: Non-static method bar::baz() should not be called statically in %scallable_type_hint_001.php on line %d
array(2) {
[0]=>
string(3) "bar"
Expand Down
1 change: 0 additions & 1 deletion Zend/tests/errmsg_018.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ class test {
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Static function test::foo() should not be abstract in %s on line %d

Fatal error: Class test contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (test::foo) in %s on line %d
4 changes: 2 additions & 2 deletions Zend/tests/fr47160.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ var_dump(call_user_func($f, 'you'));

?>
--EXPECTF--
Strict Standards: Non-static method Hello::world() should not be called statically in %s on line %d
Deprecated: Non-static method Hello::world() should not be called statically in %s on line %d
Hello, you

Notice: Undefined variable: this in %s on line %d
NULL

Strict Standards: %son-static method Hello::world() should not be called statically in %s on line %d
Deprecated: %son-static method Hello::world() should not be called statically in %s on line %d
Hello, you

Notice: Undefined variable: this in %s on line %d
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/objects_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class test3 extends test {
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Declaration of test3::foo() should be compatible with test::foo() in %s on line %d
Warning: Declaration of test3::foo() should be compatible with test::foo() in %s on line %d
Done
2 changes: 1 addition & 1 deletion Zend/tests/objects_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class test3 extends test {
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Declaration of test3::foo() should be compatible with test::foo($arg) in %s on line %d
Warning: Declaration of test3::foo() should be compatible with test::foo($arg) in %s on line %d
Done
2 changes: 1 addition & 1 deletion Zend/tests/objects_004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class test3 extends test {
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Declaration of test3::foo() should be compatible with test::foo($arg) in %s on line %d
Warning: Declaration of test3::foo() should be compatible with test::foo($arg) in %s on line %d
Done
2 changes: 1 addition & 1 deletion Zend/tests/objects_005.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class test3 extends test {
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Declaration of test3::foo() should be compatible with & test::foo() in %s on line %d
Warning: Declaration of test3::foo() should be compatible with & test::foo() in %s on line %d
Done
2 changes: 1 addition & 1 deletion Zend/tests/objects_006.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class test3 extends test {
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Declaration of test3::foo() should be compatible with test::foo($arg, $arg2 = NULL) in %s on line %d
Warning: Declaration of test3::foo() should be compatible with test::foo($arg, $arg2 = NULL) in %s on line %d
Done
2 changes: 1 addition & 1 deletion Zend/tests/objects_007.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class test3 extends test {
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Declaration of test3::foo() should be compatible with test::foo($arg, &$arg2 = NULL) in %s on line %d
Warning: Declaration of test3::foo() should be compatible with test::foo($arg, &$arg2 = NULL) in %s on line %d
Done
2 changes: 1 addition & 1 deletion Zend/tests/objects_008.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class test3 extends test {
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Declaration of test3::foo() should be compatible with test::foo(Test $arg) in %s on line %d
Warning: Declaration of test3::foo() should be compatible with test::foo(Test $arg) in %s on line %d
Done
2 changes: 1 addition & 1 deletion Zend/tests/objects_009.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class test3 extends test {
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Declaration of test3::foo() should be compatible with test::foo(Test $arg) in %s on line %d
Warning: Declaration of test3::foo() should be compatible with test::foo(Test $arg) in %s on line %d
Done
8 changes: 4 additions & 4 deletions Zend/tests/objects_027.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ call_user_func(array('foo', 'test'));
object(foo)#%d (0) {
}

Strict Standards: Non-static method foo::test() should not be called statically in %s on line %d
Deprecated: Non-static method foo::test() should not be called statically in %s on line %d

Strict Standards: Non-static method bar::show() should not be called statically in %s on line %d
Deprecated: Non-static method bar::show() should not be called statically in %s on line %d
object(foo)#%d (0) {
}
object(foo)#%d (0) {
}

Strict Standards: %son-static method foo::test() should not be called statically in %s on line %d
Deprecated: %son-static method foo::test() should not be called statically in %s on line %d

Strict Standards: Non-static method bar::show() should not be called statically in %s on line %d
Deprecated: Non-static method bar::show() should not be called statically in %s on line %d
object(foo)#%d (0) {
}

Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/offset_array.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ NULL
int(2)
int(1)

Strict Standards: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
Notice: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
int(%d)

Warning: Illegal offset type in %s on line %d
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/strict_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ var_dump($array[$fp]);
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
Notice: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
int(%d)
Done
2 changes: 1 addition & 1 deletion Zend/tests/strict_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var_dump($t);
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Accessing static property test::$foo as non static in %s on line %d
Notice: Accessing static property test::$foo as non static in %s on line %d
object(test)#%d (1) {
["foo"]=>
int(5)
Expand Down
4 changes: 1 addition & 3 deletions Zend/tests/traits/property001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,5 @@ var_dump(property_exists('TraitsTest2', 'foo'));
--EXPECTF--
PRE-CLASS-GUARD-TraitsTest
PRE-CLASS-GUARD-TraitsTest2

Strict Standards: THello1 and THello2 define the same property ($foo) in the composition of TraitsTest2. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in %s on line %d
bool(true)
bool(true)
bool(true)
2 changes: 0 additions & 2 deletions Zend/tests/traits/property005.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ $t->hello = "foo";
?>
--EXPECTF--
PRE-CLASS-GUARD

Strict Standards: Notice and THello1 define the same property ($hello) in the composition of Notice. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in %s on line %d
POST-CLASS-GUARD

Fatal error: TraitsTest and THello1 define the same property ($hello) in the composition of TraitsTest. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
2 changes: 0 additions & 2 deletions Zend/tests/traits/property006.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,4 @@ echo "POST-CLASS-GUARD2\n";
--EXPECTF--
PRE-CLASS-GUARD
POST-CLASS-GUARD

Strict Standards: Notice and THello1 define the same property ($hello) in the composition of Notice. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in %s on line %d
POST-CLASS-GUARD2
Loading