mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
13 lines
178 B
PHP
13 lines
178 B
PHP
--TEST--
|
|
Trying redeclare class with class_alias()
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo { }
|
|
|
|
class_alias('foo', 'FOO');
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Cannot redeclare class FOO in %s on line %d
|