1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/ext/opcache/tests/bug76796.phpt
2018-09-07 14:02:03 +02:00

17 lines
344 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
--FILE--
<?php
var_dump(strpos('foo', 'bar'));
?>
--EXPECTF--
Warning: strpos() has been disabled for security reasons in %s on line %d
NULL