mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
16 lines
218 B
PHP
16 lines
218 B
PHP
--TEST--
|
|
Testing creation of alias using an existing interface name
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo { }
|
|
|
|
interface test { }
|
|
|
|
|
|
class_alias('foo', 'test');
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Cannot redeclare class test in %s on line %d
|