mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +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
|