xref: /PHP-8.2/ext/opcache/tests/bug76796.phpt (revision e9f783fc)
1--TEST--
2Bug #76796: Compile-time evaluation of disabled function in opcache (SCCP) causes segfault
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7disable_functions=strpos
8--EXTENSIONS--
9opcache
10--FILE--
11<?php
12
13try {
14    var_dump(strpos('foo', 'bar'));
15} catch (Error $e) {
16    echo $e->getMessage(), "\n";
17}
18
19?>
20--EXPECT--
21Call to undefined function strpos()
22