1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/opcache/tests/bug73583.phpt
Ilija Tovilo 1c30c5e707 Print location on class redeclaration
Fixes GH-13950
Closes GH-13999
2024-04-30 14:34:43 +02:00

20 lines
448 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 function A() (previously declared in %sbug73583.php:4) in %sbug73583.php on line 5