PageRenderTime 246ms CodeModel.GetById 37ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/zend/bad/ext/opcache/tests/blacklist.php

http://github.com/facebook/hiphop-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
  1. <?php
  2. $conf = opcache_get_configuration();
  3. $conf = $conf['blacklist'];
  4. $conf[3] = preg_replace("!^\\Q".dirname(__FILE__)."\\E!", "__DIR__", $conf[3]);
  5. $conf[4] = preg_replace("!^\\Q".dirname(__FILE__)."\\E!", "__DIR__", $conf[4]);
  6. print_r($conf);
  7. include("blacklist.inc");
  8. $status = opcache_get_status();
  9. print_r(count($status['scripts']));
  10. ?>