xref: /PHP-8.3/ext/opcache/tests/bug73583.phpt (revision e9f783fc)
1--TEST--
2Bug #73583 (Segfaults when conditionally declared class and function have the same name)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=0x4ff
7opcache.file_update_protection=0
8--EXTENSIONS--
9opcache
10--FILE--
11<?php
12if (true) {
13    class A { }
14    function A() { }
15    function A() { }
16}
17?>
18--EXPECTF--
19Fatal error: Cannot redeclare A() (previously declared in %sbug73583.php:4) in %sbug73583.php on line 5
20