mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +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
251 B
PHP
15 lines
251 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 declare class test, because the name is already in use in %s on line %d
|