diff options
Diffstat (limited to 'Zend/tests/call_static_006.phpt')
-rw-r--r-- | Zend/tests/call_static_006.phpt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Zend/tests/call_static_006.phpt b/Zend/tests/call_static_006.phpt new file mode 100644 index 0000000000..f5df139dd0 --- /dev/null +++ b/Zend/tests/call_static_006.phpt @@ -0,0 +1,32 @@ +--TEST-- +Testing __callStatic +--XFAIL-- +http://bugs.php.net/bug.php?id=45089 +--FILE-- +<?php + +class foo { + public function aa() { + print "ok\n"; + } + static function __callstatic($a, $b) { + var_dump($a); + } +} + +foo::aa(); + +$b = 'AA'; +foo::$b(); + +foo::__construct(); + +?> +--EXPECTF-- +Strict Standards: 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 +ok + +Fatal error: Can not call constructor in %s on line %d |