php-src/tests/classes/static_mix_1.phpt
Nikita Popov d1e5006c14 Fix lineno for more inheritance errors
And also include explicit linenos in tests.
2019-03-27 13:02:28 +01:00

25 lines
449 B
PHP

--TEST--
ZE2 You cannot overload a static method with a non static method
--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 10