source: src/router/php7/ext/opcache/tests/bug73583.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 455 bytes
Line 
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--SKIPIF--
9<?php require_once('skipif.inc'); ?>
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
Note: See TracBrowser for help on using the repository browser.