mirror of
https://github.com/php/php-src.git
synced 2024-12-18 22:41:20 +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
|