xref: /php-src/tests/classes/static_mix_1.phpt (revision f8d79582)
1--TEST--
2ZE2 You cannot overload a static method with a non static method
3--FILE--
4<?php
5
6class pass {
7    static function show() {
8        echo "Call to function pass::show()\n";
9    }
10}
11
12class fail extends pass {
13    function show() {
14        echo "Call to function fail::show()\n";
15    }
16}
17
18pass::show();
19fail::show();
20
21echo "Done\n"; // shouldn't be displayed
22?>
23--EXPECTF--
24Fatal error: Cannot make static method pass::show() non static in class fail in %s on line 10
25