mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +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
13 lines
212 B
PHP
13 lines
212 B
PHP
--TEST--
|
|
Trying redeclare class with class_alias()
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo { }
|
|
|
|
class_alias('foo', 'FOO');
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Cannot declare class FOO, because the name is already in use in %s on line %d
|