php-src/ext/pcre/tests/check_jit_enabled.phpt

20 lines
290 B
Plaintext
Raw Normal View History

--TEST--
Check for JIT enablement status
2016-10-29 06:23:25 +00:00
--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)