mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
15 lines
200 B
PHP
15 lines
200 B
PHP
--TEST--
|
|
Trying use an existing alias name in class declaration
|
|
--FILE--
|
|
<?php
|
|
|
|
interface a { }
|
|
|
|
class_alias('a', 'b');
|
|
|
|
class b { }
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Cannot redeclare class b in %s on line %d
|