diff options
Diffstat (limited to 'Zend/tests/call_static_004.phpt')
-rw-r--r-- | Zend/tests/call_static_004.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Zend/tests/call_static_004.phpt b/Zend/tests/call_static_004.phpt new file mode 100644 index 0000000..5af33ef --- /dev/null +++ b/Zend/tests/call_static_004.phpt @@ -0,0 +1,21 @@ +--TEST-- +Invalid method name in dynamic static call +--FILE-- +<?php + +class foo { + static function __callstatic($a, $b) { + var_dump($a); + } +} + +foo::AaA(); + +$a = 1; +foo::$a(); + +?> +--EXPECTF-- +string(3) "AaA" + +Fatal error: Function name must be a string in %s on line %d |