xref: /PHP-7.3/ext/opcache/tests/bug76796.phpt (revision 75bc3446)
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--SKIPIF--
9<?php require_once('skipif.inc'); ?>
10--FILE--
11<?php
12
13var_dump(strpos('foo', 'bar'));
14
15?>
16--EXPECTF--
17Warning: strpos() has been disabled for security reasons in %s on line %d
18NULL
19