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