dis-bench / src /php /php-src /Zend /tests /gh15976 /interface-names.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
312 Bytes
--TEST--
GH-15976: Bad interface names
--FILE--
<?php
interface _ {}
interface bool {}
?>
--EXPECTF--
Deprecated: Using "_" as an interface name is deprecated since 8.4 in %sinterface-names.php on line 3
Fatal error: Cannot use "bool" as an interface name as it is reserved in %sinterface-names.php on line 4