summaryrefslogtreecommitdiff
path: root/tests/classes/static_mix_1.phpt
blob: 01704193cda32f06854f97bca481e864092c0db7 (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
--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