summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_045.phpt
diff options
context:
space:
mode:
authorAndrea Faulds <ajf@ajf.me>2015-03-31 16:10:22 +0200
committerNikita Popov <nikic@php.net>2015-03-31 17:55:27 +0200
commitdb76b708cf14ed2794d26600c0e49df8aa36fbea (patch)
tree043fe016f4319fea36c3208af06c227ceb7bb459 /Zend/tests/errmsg_045.phpt
parentd252c9f8324a1fac35aac01b7de7cc800ea76865 (diff)
downloadphp-git-db76b708cf14ed2794d26600c0e49df8aa36fbea.tar.gz
Deprecate PHP 4 constructors
Diffstat (limited to 'Zend/tests/errmsg_045.phpt')
-rw-r--r--Zend/tests/errmsg_045.phpt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zend/tests/errmsg_045.phpt b/Zend/tests/errmsg_045.phpt
index b27f67ade4..331425ad9c 100644
--- a/Zend/tests/errmsg_045.phpt
+++ b/Zend/tests/errmsg_045.phpt
@@ -8,11 +8,13 @@ set_error_handler(function($_, $msg, $file) {
echo $undefined;
});
-eval('class A { function a() {} function __construct() {} }');
+/* 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(); }');
?>
--EXPECTF--
-string(50) "Redefining already defined constructor for class A"
+string(%d) "Static function foo::bar() should not be abstract"
string(%d) "%s(%d) : eval()'d code"
Notice: Undefined variable: undefined in %s on line %d