summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug76796.phpt
blob: ba7e26a0d5dc3ba873b57763018c5554565b761e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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

var_dump(strpos('foo', 'bar'));

?>
--EXPECTF--
Warning: strpos() has been disabled for security reasons in %s on line %d
NULL