22 lines
414 B
PHP
22 lines
414 B
PHP
--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()
|