php-src/ext/pcre/tests/check_jit_enabled.phpt
2016-10-29 14:23:25 +08:00

20 lines
290 B
PHP

--TEST--
Check for JIT enablement status
--SKIPIF--
<?php
if (ini_get("pcre.jit") === FALSE) {
die("skip no jit built");
}
--FILE--
<?php
ob_start();
phpinfo();
$info = ob_get_contents();
ob_end_clean();
var_dump(preg_match(",PCRE JIT Support .* enabled,", $info));
?>
--EXPECT--
int(1)