mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
67b907f059
C:\> php -r "interface stdClass { }" Error: Cannot declare interface stdClass, because the name is already in use in Command Line Code on line 1
15 lines
238 B
PHP
15 lines
238 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 declare interface b, because the name is already in use in %s on line %d
|