blob: 47950b31650d52644ac752cbe1275137e6519c52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--TEST--
You cannot overload astatic methods with a non static methods
--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 of cause
?>
--EXPECTF--
Fatal error: Cannot make static method pass::show() non static in class fail in %s on line %d
|