summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-01-24 16:59:24 +0000
committerMarcus Boerger <helly@php.net>2004-01-24 16:59:24 +0000
commit3ca44539a13d2815c30a7fd9b172adcb0f2666f0 (patch)
tree8265b64b46f249c5c5bba412880df609f17002d1 /tests
parente36cfeb0a9cda2399627910785e68fa5b3689269 (diff)
downloadphp-git-3ca44539a13d2815c30a7fd9b172adcb0f2666f0.tar.gz
Switch from ZEND_ACC_DYNAMIC to ZEND_ACC_ALLOW_STATIC and disallow calling
internal non-static methods statically. # As discussed with Zeev: # - For BC standard userspace methods allow this with an E_STRICT message. # - If you want to implement an internal method taht can be called both # statically and non-statically then use flag ZEND_ACC_ALLOW_STATIC. # - Magic user space methods __*() cannot and __construct, __destruct, # __clone can never be called statically.
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/bug23384.phpt5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lang/bug23384.phpt b/tests/lang/bug23384.phpt
index e6184c4690..f48d89a3b0 100644
--- a/tests/lang/bug23384.phpt
+++ b/tests/lang/bug23384.phpt
@@ -1,5 +1,7 @@
--TEST--
Bug #23384 (use of class constants in statics)
+--INI--
+error_reporting=4095
--FILE--
<?php
define('TEN', 10);
@@ -18,7 +20,8 @@ class Foo {
Foo::test();
echo Foo::HUN."\n";
?>
---EXPECT--
+--EXPECTF--
+Strict Standards: Non-static method Foo::test() cannot be called statically in %sbug23384.php on line %d
Array
(
[100] => ten