mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
20 lines
439 B
PHP
20 lines
439 B
PHP
--TEST--
|
|
Bug #73583 (Segfaults when conditionally declared class and function have the same name)
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=0x4ff
|
|
opcache.file_update_protection=0
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
if (true) {
|
|
class A { }
|
|
function A() { }
|
|
function A() { }
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot redeclare A() (previously declared in %sbug73583.php:4) in %sbug73583.php on line 5
|