diff options
Diffstat (limited to 'tests/classes/static_mix_1.phpt')
-rw-r--r-- | tests/classes/static_mix_1.phpt | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/classes/static_mix_1.phpt b/tests/classes/static_mix_1.phpt deleted file mode 100644 index ecc9c01a28..0000000000 --- a/tests/classes/static_mix_1.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -ZE2 You cannot overload a static method with a non static method ---SKIPIF-- -<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?> ---FILE-- -<?php - -class pass { - static function show() { - echo "Call to function pass::show()\n"; - } -} - -class fail extends pass { - function show() { - echo "Call to function fail::show()\n"; - } -} - -pass::show(); -fail::show(); - -echo "Done\n"; // shouldn't be displayed -?> ---EXPECTF-- -Fatal error: Cannot make static method pass::show() non static in class fail in %s on line %d
\ No newline at end of file |