/hphp/test/zend/bad/ext/opcache/tests/blacklist.php
PHP | 10 lines | 10 code | 0 blank | 0 comment | 0 complexity | 062b8890efcbc64f1a926842c773365e MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?php
- $conf = opcache_get_configuration();
- $conf = $conf['blacklist'];
- $conf[3] = preg_replace("!^\\Q".dirname(__FILE__)."\\E!", "__DIR__", $conf[3]);
- $conf[4] = preg_replace("!^\\Q".dirname(__FILE__)."\\E!", "__DIR__", $conf[4]);
- print_r($conf);
- include("blacklist.inc");
- $status = opcache_get_status();
- print_r(count($status['scripts']));
- ?>