blob: 18f25d2558907b3d473ba0afb9dfb496671af924 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--TEST--
Bug #76796: Compile-time evaluation of disabled function in opcache (SCCP) causes segfault
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
disable_functions=strpos
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
try {
var_dump(strpos('foo', 'bar'));
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Call to undefined function strpos()
|