mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
d88b212ea6
If this error is missing because the rtd_key was renamed to lcname, fetch the class based on lcname and use the class type and cased name from there.
15 lines
238 B
PHP
15 lines
238 B
PHP
--TEST--
|
|
Cannot declare class, because the name is already in use
|
|
--FILE--
|
|
<?php
|
|
|
|
function test() {
|
|
class A {}
|
|
}
|
|
test();
|
|
test();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot declare class A, because the name is already in use in %s on line %d
|