mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
1c30c5e707
Fixes GH-13950 Closes GH-13999
16 lines
249 B
PHP
16 lines
249 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 redeclare class test (previously declared in %s:%d) in %s on line %d
|