summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
Diffstat (limited to 'Zend')
-rw-r--r--Zend/tests/009.phpt4
-rw-r--r--Zend/tests/abstract-static.phpt1
-rw-r--r--Zend/tests/argument_restriction_001.phpt2
-rw-r--r--Zend/tests/argument_restriction_002.phpt2
-rw-r--r--Zend/tests/argument_restriction_003.phpt2
-rw-r--r--Zend/tests/argument_restriction_006.phpt2
-rw-r--r--Zend/tests/bug30820.phpt4
-rw-r--r--Zend/tests/bug31525.phpt2
-rw-r--r--Zend/tests/bug32322.phpt4
-rw-r--r--Zend/tests/bug33257.phpt2
-rw-r--r--Zend/tests/bug35393.phpt2
-rw-r--r--Zend/tests/bug40621.phpt2
-rw-r--r--Zend/tests/bug45805.phpt2
-rw-r--r--Zend/tests/bug47054.phpt2
-rw-r--r--Zend/tests/bug48533.phpt2
-rw-r--r--Zend/tests/bug60536_002.phpt2
-rw-r--r--Zend/tests/bug60536_004.phpt2
-rw-r--r--Zend/tests/bug60536_005.phpt4
-rw-r--r--Zend/tests/bug60573.phpt4
-rw-r--r--Zend/tests/bug62358.phpt2
-rw-r--r--Zend/tests/bug63111.phpt1
-rw-r--r--Zend/tests/bug63336.phpt4
-rw-r--r--Zend/tests/bug64988.phpt2
-rw-r--r--Zend/tests/bug65322.phpt10
-rw-r--r--Zend/tests/bug67436/bug67436_nohandler.phpt2
-rw-r--r--Zend/tests/call_static_006.phpt4
-rw-r--r--Zend/tests/call_user_func_004.phpt2
-rw-r--r--Zend/tests/call_user_func_005.phpt2
-rw-r--r--Zend/tests/callable_type_hint_001.phpt2
-rw-r--r--Zend/tests/errmsg_018.phpt1
-rw-r--r--Zend/tests/errmsg_045.phpt4
-rw-r--r--Zend/tests/fr47160.phpt4
-rw-r--r--Zend/tests/objects_002.phpt2
-rw-r--r--Zend/tests/objects_003.phpt2
-rw-r--r--Zend/tests/objects_004.phpt2
-rw-r--r--Zend/tests/objects_005.phpt2
-rw-r--r--Zend/tests/objects_006.phpt2
-rw-r--r--Zend/tests/objects_007.phpt2
-rw-r--r--Zend/tests/objects_008.phpt2
-rw-r--r--Zend/tests/objects_009.phpt2
-rw-r--r--Zend/tests/objects_027.phpt8
-rw-r--r--Zend/tests/offset_array.phpt2
-rw-r--r--Zend/tests/strict_001.phpt2
-rw-r--r--Zend/tests/strict_002.phpt2
-rw-r--r--Zend/tests/traits/property001.phpt4
-rw-r--r--Zend/tests/traits/property005.phpt2
-rw-r--r--Zend/tests/traits/property006.phpt2
-rw-r--r--Zend/tests/traits/property007.phpt4
-rw-r--r--Zend/tests/traits/property009.phpt2
-rw-r--r--Zend/zend_API.c8
-rw-r--r--Zend/zend_API.h2
-rw-r--r--Zend/zend_compile.c3
-rw-r--r--Zend/zend_execute.c2
-rw-r--r--Zend/zend_execute_API.c2
-rw-r--r--Zend/zend_inheritance.c22
-rw-r--r--Zend/zend_object_handlers.c4
-rw-r--r--Zend/zend_vm_def.h10
-rw-r--r--Zend/zend_vm_execute.h40
58 files changed, 95 insertions, 129 deletions
diff --git a/Zend/tests/009.phpt b/Zend/tests/009.phpt
index f122b714da..b44a6ba687 100644
--- a/Zend/tests/009.phpt
+++ b/Zend/tests/009.phpt
@@ -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"
diff --git a/Zend/tests/abstract-static.phpt b/Zend/tests/abstract-static.phpt
index c4ab8f2483..bf7ed391ed 100644
--- a/Zend/tests/abstract-static.phpt
+++ b/Zend/tests/abstract-static.phpt
@@ -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===
diff --git a/Zend/tests/argument_restriction_001.phpt b/Zend/tests/argument_restriction_001.phpt
index e62ad300c9..abb27e20e0 100644
--- a/Zend/tests/argument_restriction_001.phpt
+++ b/Zend/tests/argument_restriction_001.phpt
@@ -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
diff --git a/Zend/tests/argument_restriction_002.phpt b/Zend/tests/argument_restriction_002.phpt
index c6a472e0f5..921c28e2b2 100644
--- a/Zend/tests/argument_restriction_002.phpt
+++ b/Zend/tests/argument_restriction_002.phpt
@@ -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
diff --git a/Zend/tests/argument_restriction_003.phpt b/Zend/tests/argument_restriction_003.phpt
index 393581fcfc..6979810e37 100644
--- a/Zend/tests/argument_restriction_003.phpt
+++ b/Zend/tests/argument_restriction_003.phpt
@@ -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
diff --git a/Zend/tests/argument_restriction_006.phpt b/Zend/tests/argument_restriction_006.phpt
index 948fc304c7..abef1cde0b 100644
--- a/Zend/tests/argument_restriction_006.phpt
+++ b/Zend/tests/argument_restriction_006.phpt
@@ -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
diff --git a/Zend/tests/bug30820.phpt b/Zend/tests/bug30820.phpt
index a0f71e72a7..3ba1ffe2ff 100644
--- a/Zend/tests/bug30820.phpt
+++ b/Zend/tests/bug30820.phpt
@@ -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
diff --git a/Zend/tests/bug31525.phpt b/Zend/tests/bug31525.phpt
index b1a01b61ef..bbde7f7781 100644
--- a/Zend/tests/bug31525.phpt
+++ b/Zend/tests/bug31525.phpt
@@ -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) {
}
diff --git a/Zend/tests/bug32322.phpt b/Zend/tests/bug32322.phpt
index f69c5259e8..9f05e3f41f 100644
--- a/Zend/tests/bug32322.phpt
+++ b/Zend/tests/bug32322.phpt
@@ -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
diff --git a/Zend/tests/bug33257.phpt b/Zend/tests/bug33257.phpt
index c17ddfd17f..c7bfe55e23 100644
--- a/Zend/tests/bug33257.phpt
+++ b/Zend/tests/bug33257.phpt
@@ -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
diff --git a/Zend/tests/bug35393.phpt b/Zend/tests/bug35393.phpt
index ce3bdd001a..9b8dc19398 100644
--- a/Zend/tests/bug35393.phpt
+++ b/Zend/tests/bug35393.phpt
@@ -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
diff --git a/Zend/tests/bug40621.phpt b/Zend/tests/bug40621.phpt
index 564ba55be2..b15a43171b 100644
--- a/Zend/tests/bug40621.phpt
+++ b/Zend/tests/bug40621.phpt
@@ -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
diff --git a/Zend/tests/bug45805.phpt b/Zend/tests/bug45805.phpt
index 986187ee61..f8a2484438 100644
--- a/Zend/tests/bug45805.phpt
+++ b/Zend/tests/bug45805.phpt
@@ -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()
diff --git a/Zend/tests/bug47054.phpt b/Zend/tests/bug47054.phpt
index ab6c6e1de4..6e5f4f68ab 100644
--- a/Zend/tests/bug47054.phpt
+++ b/Zend/tests/bug47054.phpt
@@ -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
diff --git a/Zend/tests/bug48533.phpt b/Zend/tests/bug48533.phpt
index 274013c7dc..61a56d38ac 100644
--- a/Zend/tests/bug48533.phpt
+++ b/Zend/tests/bug48533.phpt
@@ -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"
diff --git a/Zend/tests/bug60536_002.phpt b/Zend/tests/bug60536_002.phpt
index 0bca98382e..1dcba1dbc5 100644
--- a/Zend/tests/bug60536_002.phpt
+++ b/Zend/tests/bug60536_002.phpt
@@ -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
diff --git a/Zend/tests/bug60536_004.phpt b/Zend/tests/bug60536_004.phpt
index 4f20836093..e0c9dc0b4d 100644
--- a/Zend/tests/bug60536_004.phpt
+++ b/Zend/tests/bug60536_004.phpt
@@ -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
diff --git a/Zend/tests/bug60536_005.phpt b/Zend/tests/bug60536_005.phpt
index 378adcc9c0..a285ed47ab 100644
--- a/Zend/tests/bug60536_005.phpt
+++ b/Zend/tests/bug60536_005.phpt
@@ -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
diff --git a/Zend/tests/bug60573.phpt b/Zend/tests/bug60573.phpt
index d41a5f3ec3..5cd576e8f1 100644
--- a/Zend/tests/bug60573.phpt
+++ b/Zend/tests/bug60573.phpt
@@ -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
diff --git a/Zend/tests/bug62358.phpt b/Zend/tests/bug62358.phpt
index 35d8b483d9..552a1e1908 100644
--- a/Zend/tests/bug62358.phpt
+++ b/Zend/tests/bug62358.phpt
@@ -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
diff --git a/Zend/tests/bug63111.phpt b/Zend/tests/bug63111.phpt
index 3f19068668..be6c0c31f5 100644
--- a/Zend/tests/bug63111.phpt
+++ b/Zend/tests/bug63111.phpt
@@ -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)
diff --git a/Zend/tests/bug63336.phpt b/Zend/tests/bug63336.phpt
index d2c3d41131..cf54a99216 100644
--- a/Zend/tests/bug63336.phpt
+++ b/Zend/tests/bug63336.phpt
@@ -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
diff --git a/Zend/tests/bug64988.phpt b/Zend/tests/bug64988.phpt
index 34fd482f38..cb657ace6e 100644
--- a/Zend/tests/bug64988.phpt
+++ b/Zend/tests/bug64988.phpt
@@ -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
diff --git a/Zend/tests/bug65322.phpt b/Zend/tests/bug65322.phpt
index b8b97dd777..9095a91ae4 100644
--- a/Zend/tests/bug65322.phpt
+++ b/Zend/tests/bug65322.phpt
@@ -5,20 +5,20 @@ Bug #65322: compile time errors won't trigger auto loading
spl_autoload_register(function($class) {
var_dump($class);
- class B {}
+ class X {}
});
set_error_handler(function($_, $msg, $file) {
var_dump($msg, $file);
- new B;
+ new X;
});
/* This is just a particular example of a non-fatal compile-time error
* If this breaks in future, just find another example and use it instead */
-eval('abstract class foo { abstract static function bar(); }');
+eval('class A { function test() { } } class B extends A { function test($a) { } }');
?>
--EXPECTF--
-string(%d) "Static function foo::bar() should not be abstract"
+string(60) "Declaration of B::test() should be compatible with A::test()"
string(%d) "%s(%d) : eval()'d code"
-string(1) "B"
+string(1) "X"
diff --git a/Zend/tests/bug67436/bug67436_nohandler.phpt b/Zend/tests/bug67436/bug67436_nohandler.phpt
index 21ce8e6122..482fd87ec5 100644
--- a/Zend/tests/bug67436/bug67436_nohandler.phpt
+++ b/Zend/tests/bug67436/bug67436_nohandler.phpt
@@ -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)
diff --git a/Zend/tests/call_static_006.phpt b/Zend/tests/call_static_006.phpt
index e172f4e164..b160acc63a 100644
--- a/Zend/tests/call_static_006.phpt
+++ b/Zend/tests/call_static_006.phpt
@@ -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
diff --git a/Zend/tests/call_user_func_004.phpt b/Zend/tests/call_user_func_004.phpt
index 9df650ec9d..add15249db 100644
--- a/Zend/tests/call_user_func_004.phpt
+++ b/Zend/tests/call_user_func_004.phpt
@@ -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
diff --git a/Zend/tests/call_user_func_005.phpt b/Zend/tests/call_user_func_005.phpt
index a602f59a12..525b853fbf 100644
--- a/Zend/tests/call_user_func_005.phpt
+++ b/Zend/tests/call_user_func_005.phpt
@@ -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]=>
diff --git a/Zend/tests/callable_type_hint_001.phpt b/Zend/tests/callable_type_hint_001.phpt
index 36643fa64d..5ab892cd7c 100644
--- a/Zend/tests/callable_type_hint_001.phpt
+++ b/Zend/tests/callable_type_hint_001.phpt
@@ -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"
diff --git a/Zend/tests/errmsg_018.phpt b/Zend/tests/errmsg_018.phpt
index fb05cb1a53..dc136ef57b 100644
--- a/Zend/tests/errmsg_018.phpt
+++ b/Zend/tests/errmsg_018.phpt
@@ -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
diff --git a/Zend/tests/errmsg_045.phpt b/Zend/tests/errmsg_045.phpt
index 331425ad9c..9f3b8558fd 100644
--- a/Zend/tests/errmsg_045.phpt
+++ b/Zend/tests/errmsg_045.phpt
@@ -10,11 +10,11 @@ set_error_handler(function($_, $msg, $file) {
/* This is just a particular example of a non-fatal compile-time error
* If this breaks in future, just find another example and use it instead */
-eval('abstract class foo { abstract static function bar(); }');
+eval('class A { function test() { } } class B extends A { function test($a) { } }');
?>
--EXPECTF--
-string(%d) "Static function foo::bar() should not be abstract"
+string(60) "Declaration of B::test() should be compatible with A::test()"
string(%d) "%s(%d) : eval()'d code"
Notice: Undefined variable: undefined in %s on line %d
diff --git a/Zend/tests/fr47160.phpt b/Zend/tests/fr47160.phpt
index 898e0eda97..ed2f15f990 100644
--- a/Zend/tests/fr47160.phpt
+++ b/Zend/tests/fr47160.phpt
@@ -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
diff --git a/Zend/tests/objects_002.phpt b/Zend/tests/objects_002.phpt
index e2db140b18..83d3dc7758 100644
--- a/Zend/tests/objects_002.phpt
+++ b/Zend/tests/objects_002.phpt
@@ -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
diff --git a/Zend/tests/objects_003.phpt b/Zend/tests/objects_003.phpt
index 7e0f083267..59ab9a3a18 100644
--- a/Zend/tests/objects_003.phpt
+++ b/Zend/tests/objects_003.phpt
@@ -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
diff --git a/Zend/tests/objects_004.phpt b/Zend/tests/objects_004.phpt
index eb04124474..cb0445f35e 100644
--- a/Zend/tests/objects_004.phpt
+++ b/Zend/tests/objects_004.phpt
@@ -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
diff --git a/Zend/tests/objects_005.phpt b/Zend/tests/objects_005.phpt
index 908e797243..1db8a91cb8 100644
--- a/Zend/tests/objects_005.phpt
+++ b/Zend/tests/objects_005.phpt
@@ -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
diff --git a/Zend/tests/objects_006.phpt b/Zend/tests/objects_006.phpt
index f84a3053e9..7ed0781794 100644
--- a/Zend/tests/objects_006.phpt
+++ b/Zend/tests/objects_006.phpt
@@ -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
diff --git a/Zend/tests/objects_007.phpt b/Zend/tests/objects_007.phpt
index 75e0817589..cc51799368 100644
--- a/Zend/tests/objects_007.phpt
+++ b/Zend/tests/objects_007.phpt
@@ -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
diff --git a/Zend/tests/objects_008.phpt b/Zend/tests/objects_008.phpt
index f6d5826eb8..0f7e99e4a6 100644
--- a/Zend/tests/objects_008.phpt
+++ b/Zend/tests/objects_008.phpt
@@ -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
diff --git a/Zend/tests/objects_009.phpt b/Zend/tests/objects_009.phpt
index 04b1118e09..b16fe98767 100644
--- a/Zend/tests/objects_009.phpt
+++ b/Zend/tests/objects_009.phpt
@@ -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
diff --git a/Zend/tests/objects_027.phpt b/Zend/tests/objects_027.phpt
index e3d399d3bc..9355169b2f 100644
--- a/Zend/tests/objects_027.phpt
+++ b/Zend/tests/objects_027.phpt
@@ -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) {
}
diff --git a/Zend/tests/offset_array.phpt b/Zend/tests/offset_array.phpt
index eba6611e6c..790ed1d13c 100644
--- a/Zend/tests/offset_array.phpt
+++ b/Zend/tests/offset_array.phpt
@@ -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
diff --git a/Zend/tests/strict_001.phpt b/Zend/tests/strict_001.phpt
index 8070eb9fe7..f287d5e4dc 100644
--- a/Zend/tests/strict_001.phpt
+++ b/Zend/tests/strict_001.phpt
@@ -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
diff --git a/Zend/tests/strict_002.phpt b/Zend/tests/strict_002.phpt
index d8a5af2f47..cdeb73e0d8 100644
--- a/Zend/tests/strict_002.phpt
+++ b/Zend/tests/strict_002.phpt
@@ -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)
diff --git a/Zend/tests/traits/property001.phpt b/Zend/tests/traits/property001.phpt
index d5e4ddc617..002a252a72 100644
--- a/Zend/tests/traits/property001.phpt
+++ b/Zend/tests/traits/property001.phpt
@@ -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) \ No newline at end of file
+bool(true)
diff --git a/Zend/tests/traits/property005.phpt b/Zend/tests/traits/property005.phpt
index 899a332acc..3d2d4484f5 100644
--- a/Zend/tests/traits/property005.phpt
+++ b/Zend/tests/traits/property005.phpt
@@ -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
diff --git a/Zend/tests/traits/property006.phpt b/Zend/tests/traits/property006.phpt
index 1a709199a9..bfe74543fd 100644
--- a/Zend/tests/traits/property006.phpt
+++ b/Zend/tests/traits/property006.phpt
@@ -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
diff --git a/Zend/tests/traits/property007.phpt b/Zend/tests/traits/property007.phpt
index 0f7c3b3948..fb3c517876 100644
--- a/Zend/tests/traits/property007.phpt
+++ b/Zend/tests/traits/property007.phpt
@@ -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
diff --git a/Zend/tests/traits/property009.phpt b/Zend/tests/traits/property009.phpt
index 135129d31f..590a5e9b7d 100644
--- a/Zend/tests/traits/property009.phpt
+++ b/Zend/tests/traits/property009.phpt
@@ -42,9 +42,7 @@ var_dump($b);
?>
--EXPECTF--
-Strict Standards: BaseWithPropA and AHelloProperty define the same property ($hello) in the composition of SubclassA. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in %s on line %d
-Strict Standards: BaseWithTPropB and AHelloProperty define the same property ($hello) in the composition of SubclassB. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in %s on line %d
object(SubclassClassicInheritance)#1 (1) {
["hello"]=>
int(0)
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 4295159c7b..5a01d546ab 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -710,7 +710,7 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons
if (zend_fcall_info_init(arg, 0, fci, fcc, NULL, &is_callable_error) == SUCCESS) {
if (is_callable_error) {
- *severity = E_STRICT;
+ *severity = E_DEPRECATED;
zend_spprintf(error, 0, "to be a valid callback, %s", is_callable_error);
efree(is_callable_error);
*spec = spec_walk;
@@ -772,7 +772,7 @@ static int zend_parse_arg(int arg_num, zval *arg, va_list *va, const char **spec
zend_zval_type_name(arg));
}
}
- if (severity != E_STRICT) {
+ if (severity != E_DEPRECATED) {
return FAILURE;
}
}
@@ -1638,7 +1638,7 @@ ZEND_API int array_set_zval_key(HashTable *ht, zval *key, zval *value) /* {{{ */
result = zend_symtable_update(ht, STR_EMPTY_ALLOC(), value);
break;
case IS_RESOURCE:
- zend_error(E_STRICT, "Resource ID#" ZEND_LONG_FMT " used as offset, casting to integer (%pd)", Z_RES_HANDLE_P(key), Z_RES_HANDLE_P(key));
+ zend_error(E_NOTICE, "Resource ID#" ZEND_LONG_FMT " used as offset, casting to integer (%pd)", Z_RES_HANDLE_P(key), Z_RES_HANDLE_P(key));
result = zend_hash_index_update(ht, Z_RES_HANDLE_P(key), value);
break;
case IS_FALSE:
@@ -3098,7 +3098,7 @@ get_function_via_handler:
int severity;
char *verb;
if (fcc->function_handler->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
- severity = E_STRICT;
+ severity = E_DEPRECATED;
verb = "should not";
} else {
/* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index b70dd26ef8..b8547e685e 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -854,7 +854,7 @@ ZEND_API void ZEND_FASTCALL zend_wrong_callback_error(int severity, int num, cha
break; \
} \
} else if (UNEXPECTED(_error != NULL)) { \
- zend_wrong_callback_error(E_STRICT, _i, _error); \
+ zend_wrong_callback_error(E_DEPRECATED, _i, _error); \
}
#define Z_PARAM_FUNC(dest_fci, dest_fcc) \
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index b1dcfcd66b..e3e2abfc01 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -4323,9 +4323,6 @@ void zend_begin_method_decl(zend_op_array *op_array, zend_string *name, zend_boo
"%s::%s() must be omitted", ce->name->val, name->val);
}
op_array->fn_flags |= ZEND_ACC_ABSTRACT;
- } else if (is_static && (op_array->fn_flags & ZEND_ACC_ABSTRACT)) {
- zend_error(E_STRICT, "Static function %s::%s() should not be abstract",
- ce->name->val, name->val);
}
if (op_array->fn_flags & ZEND_ACC_ABSTRACT) {
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index 0fe2a26e97..593ed9d33d 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -1370,7 +1370,7 @@ str_index:
hval = zend_dval_to_lval(Z_DVAL_P(dim));
goto num_index;
case IS_RESOURCE:
- zend_error(E_STRICT, "Resource ID#%pd used as offset, casting to integer (%pd)", Z_RES_HANDLE_P(dim), Z_RES_HANDLE_P(dim));
+ zend_error(E_NOTICE, "Resource ID#%pd used as offset, casting to integer (%pd)", Z_RES_HANDLE_P(dim), Z_RES_HANDLE_P(dim));
hval = Z_RES_HANDLE_P(dim);
goto num_index;
case IS_FALSE:
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index ec26ddc4d2..ff447e22cd 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -752,7 +752,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache) /
if (error[0] >= 'a' && error[0] <= 'z') {
error[0] += ('A' - 'a');
}
- zend_error(E_STRICT, "%s", error);
+ zend_error(E_DEPRECATED, "%s", error);
efree(error);
}
zend_string_release(callable_name);
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c
index fd40c8ed84..bd4fc373e0 100644
--- a/Zend/zend_inheritance.c
+++ b/Zend/zend_inheritance.c
@@ -565,12 +565,10 @@ static void do_inheritance_check_on_method(zend_function *child, zend_function *
if (UNEXPECTED(!zend_do_perform_implementation_check(child, child->common.prototype))) {
zend_error_noreturn(E_COMPILE_ERROR, "Declaration of %s::%s() must be compatible with %s", ZEND_FN_SCOPE_NAME(child), child->common.function_name->val, zend_get_function_declaration(child->common.prototype)->val);
}
- } else if (EG(error_reporting) & E_STRICT || Z_TYPE(EG(user_error_handler)) != IS_UNDEF) { /* Check E_STRICT (or custom error handler) before the check so that we save some time */
- if (UNEXPECTED(!zend_do_perform_implementation_check(child, parent))) {
- zend_string *method_prototype = zend_get_function_declaration(parent);
- zend_error(E_STRICT, "Declaration of %s::%s() should be compatible with %s", ZEND_FN_SCOPE_NAME(child), child->common.function_name->val, method_prototype->val);
- zend_string_free(method_prototype);
- }
+ } else if (UNEXPECTED(!zend_do_perform_implementation_check(child, parent))) {
+ zend_string *method_prototype = zend_get_function_declaration(parent);
+ zend_error(E_WARNING, "Declaration of %s::%s() should be compatible with %s", ZEND_FN_SCOPE_NAME(child), child->common.function_name->val, method_prototype->val);
+ zend_string_free(method_prototype);
}
}
/* }}} */
@@ -1494,16 +1492,10 @@ static void zend_do_traits_property_binding(zend_class_entry *ce) /* {{{ */
property_info->ce->name->val,
prop_name->val,
ce->name->val);
- } else {
- zend_error(E_STRICT,
- "%s and %s define the same property ($%s) in the composition of %s. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed",
- find_first_definition(ce, i, prop_name, coliding_prop->ce)->name->val,
- property_info->ce->name->val,
- prop_name->val,
- ce->name->val);
- zend_string_release(prop_name);
- continue;
}
+
+ zend_string_release(prop_name);
+ continue;
}
}
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c
index 8dcd81a99a..41d791a930 100644
--- a/Zend/zend_object_handlers.c
+++ b/Zend/zend_object_handlers.c
@@ -323,7 +323,7 @@ static zend_always_inline uint32_t zend_get_property_offset(zend_class_entry *ce
|| UNEXPECTED((flags & ZEND_ACC_PRIVATE))) {
if (UNEXPECTED((flags & ZEND_ACC_STATIC) != 0)) {
if (!silent) {
- zend_error(E_STRICT, "Accessing static property %s::$%s as non static", ce->name->val, member->val);
+ zend_error(E_NOTICE, "Accessing static property %s::$%s as non static", ce->name->val, member->val);
}
return ZEND_DYNAMIC_PROPERTY_OFFSET;
}
@@ -401,7 +401,7 @@ ZEND_API zend_property_info *zend_get_property_info(zend_class_entry *ce, zend_s
|| UNEXPECTED((flags & ZEND_ACC_PRIVATE))) {
if (UNEXPECTED((flags & ZEND_ACC_STATIC) != 0)) {
if (!silent) {
- zend_error(E_STRICT, "Accessing static property %s::$%s as non static", ce->name->val, member->val);
+ zend_error(E_NOTICE, "Accessing static property %s::$%s as non static", ce->name->val, member->val);
}
}
goto exit;
diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h
index dfa83df734..6e97362922 100644
--- a/Zend/zend_vm_def.h
+++ b/Zend/zend_vm_def.h
@@ -2233,7 +2233,7 @@ ZEND_VM_HANDLER(39, ZEND_ASSIGN_REF, VAR|CV, VAR|CV)
if (!OP2_FREE) {
PZVAL_LOCK(value_ptr); /* undo the effect of get_zval_ptr_ptr() */
}
- zend_error(E_STRICT, "Only variables should be assigned by reference");
+ zend_error(E_NOTICE, "Only variables should be assigned by reference");
if (UNEXPECTED(EG(exception) != NULL)) {
FREE_OP2_VAR_PTR();
HANDLE_EXCEPTION();
@@ -2936,7 +2936,7 @@ ZEND_VM_HANDLER(113, ZEND_INIT_STATIC_METHOD_CALL, CONST|VAR, CONST|TMPVAR|UNUSE
but passing $this. This is done for compatibility with php-4. */
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
zend_error(
- object ? E_DEPRECATED : E_STRICT,
+ E_DEPRECATED,
"Non-static method %s::%s() should not be called statically%s",
fbc->common.scope->name->val, fbc->common.function_name->val,
object ? ", assuming $this from incompatible context" : "");
@@ -3087,7 +3087,7 @@ ZEND_VM_C_LABEL(try_function_name):
}
if (!(fbc->common.fn_flags & ZEND_ACC_STATIC)) {
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
- zend_error(E_STRICT,
+ zend_error(E_DEPRECATED,
"Non-static method %s::%s() should not be called statically",
fbc->common.scope->name->val, fbc->common.function_name->val);
} else {
@@ -3170,7 +3170,7 @@ ZEND_VM_HANDLER(118, ZEND_INIT_USER_CALL, CONST, CONST|TMPVAR|CV)
} else if (func->common.scope &&
!(func->common.fn_flags & ZEND_ACC_STATIC)) {
if (func->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
- zend_error(E_STRICT,
+ zend_error(E_DEPRECATED,
"Non-static method %s::%s() should not be called statically",
func->common.scope->name->val, func->common.function_name->val);
} else {
@@ -3998,7 +3998,7 @@ ZEND_VM_HANDLER(106, ZEND_SEND_VAR_NO_REF, VAR|CV, ANY)
if ((opline->extended_value & ZEND_ARG_COMPILE_TIME_BOUND) ?
!(opline->extended_value & ZEND_ARG_SEND_SILENT) :
!ARG_MAY_BE_SENT_BY_REF(EX(call)->func, opline->op2.num)) {
- zend_error(E_STRICT, "Only variables should be passed by reference");
+ zend_error(E_NOTICE, "Only variables should be passed by reference");
}
}
diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h
index 50bb1cc508..a9b5a7c300 100644
--- a/Zend/zend_vm_execute.h
+++ b/Zend/zend_vm_execute.h
@@ -1958,7 +1958,7 @@ try_function_name:
}
if (!(fbc->common.fn_flags & ZEND_ACC_STATIC)) {
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
- zend_error(E_STRICT,
+ zend_error(E_DEPRECATED,
"Non-static method %s::%s() should not be called statically",
fbc->common.scope->name->val, fbc->common.function_name->val);
} else {
@@ -2350,7 +2350,7 @@ try_function_name:
}
if (!(fbc->common.fn_flags & ZEND_ACC_STATIC)) {
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
- zend_error(E_STRICT,
+ zend_error(E_DEPRECATED,
"Non-static method %s::%s() should not be called statically",
fbc->common.scope->name->val, fbc->common.function_name->val);
} else {
@@ -2539,7 +2539,7 @@ try_function_name:
}
if (!(fbc->common.fn_flags & ZEND_ACC_STATIC)) {
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
- zend_error(E_STRICT,
+ zend_error(E_DEPRECATED,
"Non-static method %s::%s() should not be called statically",
fbc->common.scope->name->val, fbc->common.function_name->val);
} else {
@@ -5075,7 +5075,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_C
but passing $this. This is done for compatibility with php-4. */
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
zend_error(
- object ? E_DEPRECATED : E_STRICT,
+ E_DEPRECATED,
"Non-static method %s::%s() should not be called statically%s",
fbc->common.scope->name->val, fbc->common.function_name->val,
object ? ", assuming $this from incompatible context" : "");
@@ -5138,7 +5138,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_USER_CALL_SPEC_CONST_CONS
} else if (func->common.scope &&
!(func->common.fn_flags & ZEND_ACC_STATIC)) {
if (func->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
- zend_error(E_STRICT,
+ zend_error(E_DEPRECATED,
"Non-static method %s::%s() should not be called statically",
func->common.scope->name->val, func->common.function_name->val);
} else {
@@ -6999,7 +6999,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_C
but passing $this. This is done for compatibility with php-4. */
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
zend_error(
- object ? E_DEPRECATED : E_STRICT,
+ E_DEPRECATED,
"Non-static method %s::%s() should not be called statically%s",
fbc->common.scope->name->val, fbc->common.function_name->val,
object ? ", assuming $this from incompatible context" : "");
@@ -8483,7 +8483,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_C
but passing $this. This is done for compatibility with php-4. */
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
zend_error(
- object ? E_DEPRECATED : E_STRICT,
+ E_DEPRECATED,
"Non-static method %s::%s() should not be called statically%s",
fbc->common.scope->name->val, fbc->common.function_name->val,
object ? ", assuming $this from incompatible context" : "");
@@ -8546,7 +8546,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_USER_CALL_SPEC_CONST_CV_H
} else if (func->common.scope &&
!(func->common.fn_flags & ZEND_ACC_STATIC)) {
if (func->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
- zend_error(E_STRICT,
+ zend_error(E_DEPRECATED,
"Non-static method %s::%s() should not be called statically",
func->common.scope->name->val, func->common.function_name->val);
} else {
@@ -10030,7 +10030,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_C
but passing $this. This is done for compatibility with php-4. */
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
zend_error(
- object ? E_DEPRECATED : E_STRICT,
+ E_DEPRECATED,
"Non-static method %s::%s() should not be called statically%s",
fbc->common.scope->name->val, fbc->common.function_name->val,
object ? ", assuming $this from incompatible context" : "");
@@ -10093,7 +10093,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_USER_CALL_SPEC_CONST_TMPV
} else if (func->common.scope &&
!(func->common.fn_flags & ZEND_ACC_STATIC)) {
if (func->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
- zend_error(E_STRICT,
+ zend_error(E_DEPRECATED,
"Non-static method %s::%s() should not be called statically",
func->common.scope->name->val, func->common.function_name->val);
} else {
@@ -13626,7 +13626,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_SEND_VAR_NO_REF_SPEC_VAR_HANDL
if ((opline->extended_value & ZEND_ARG_COMPILE_TIME_BOUND) ?
!(opline->extended_value & ZEND_ARG_SEND_SILENT) :
!ARG_MAY_BE_SENT_BY_REF(EX(call)->func, opline->op2.num)) {
- zend_error(E_STRICT, "Only variables should be passed by reference");
+ zend_error(E_NOTICE, "Only variables should be passed by reference");
}
}
@@ -15890,7 +15890,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_V
but passing $this. This is done for compatibility with php-4. */
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
zend_error(
- object ? E_DEPRECATED : E_STRICT,
+ E_DEPRECATED,
"Non-static method %s::%s() should not be called statically%s",
fbc->common.scope->name->val, fbc->common.function_name->val,
object ? ", assuming $this from incompatible context" : "");
@@ -16701,7 +16701,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_REF_SPEC_VAR_VAR_HANDLE
if (!(free_op2 != NULL)) {
PZVAL_LOCK(value_ptr); /* undo the effect of get_zval_ptr_ptr() */
}
- zend_error(E_STRICT, "Only variables should be assigned by reference");
+ zend_error(E_NOTICE, "Only variables should be assigned by reference");
if (UNEXPECTED(EG(exception) != NULL)) {
if (free_op2) {zval_ptr_dtor_nogc(free_op2);};
HANDLE_EXCEPTION();
@@ -17463,7 +17463,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_V
but passing $this. This is done for compatibility with php-4. */
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
zend_error(
- object ? E_DEPRECATED : E_STRICT,
+ E_DEPRECATED,
"Non-static method %s::%s() should not be called statically%s",
fbc->common.scope->name->val, fbc->common.function_name->val,
object ? ", assuming $this from incompatible context" : "");
@@ -18938,7 +18938,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_REF_SPEC_VAR_CV_HANDLER
if (!0) {
PZVAL_LOCK(value_ptr); /* undo the effect of get_zval_ptr_ptr() */
}
- zend_error(E_STRICT, "Only variables should be assigned by reference");
+ zend_error(E_NOTICE, "Only variables should be assigned by reference");
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();
@@ -19078,7 +19078,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_V
but passing $this. This is done for compatibility with php-4. */
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
zend_error(
- object ? E_DEPRECATED : E_STRICT,
+ E_DEPRECATED,
"Non-static method %s::%s() should not be called statically%s",
fbc->common.scope->name->val, fbc->common.function_name->val,
object ? ", assuming $this from incompatible context" : "");
@@ -20635,7 +20635,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_V
but passing $this. This is done for compatibility with php-4. */
if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
zend_error(
- object ? E_DEPRECATED : E_STRICT,
+ E_DEPRECATED,
"Non-static method %s::%s() should not be called statically%s",
fbc->common.scope->name->val, fbc->common.function_name->val,
object ? ", assuming $this from incompatible context" : "");
@@ -26623,7 +26623,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_SEND_VAR_NO_REF_SPEC_CV_HANDLE
if ((opline->extended_value & ZEND_ARG_COMPILE_TIME_BOUND) ?
!(opline->extended_value & ZEND_ARG_SEND_SILENT) :
!ARG_MAY_BE_SENT_BY_REF(EX(call)->func, opline->op2.num)) {
- zend_error(E_STRICT, "Only variables should be passed by reference");
+ zend_error(E_NOTICE, "Only variables should be passed by reference");
}
}
@@ -31011,7 +31011,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_REF_SPEC_CV_VAR_HANDLER
if (!(free_op2 != NULL)) {
PZVAL_LOCK(value_ptr); /* undo the effect of get_zval_ptr_ptr() */
}
- zend_error(E_STRICT, "Only variables should be assigned by reference");
+ zend_error(E_NOTICE, "Only variables should be assigned by reference");
if (UNEXPECTED(EG(exception) != NULL)) {
if (free_op2) {zval_ptr_dtor_nogc(free_op2);};
HANDLE_EXCEPTION();
@@ -34309,7 +34309,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_REF_SPEC_CV_CV_HANDLER(
if (!0) {
PZVAL_LOCK(value_ptr); /* undo the effect of get_zval_ptr_ptr() */
}
- zend_error(E_STRICT, "Only variables should be assigned by reference");
+ zend_error(E_NOTICE, "Only variables should be assigned by reference");
if (UNEXPECTED(EG(exception) != NULL)) {
HANDLE_EXCEPTION();