| 448: | // 这里不得不用全局变量来解决这个问题 |
| 449: | $_ENV['preg_replace_callback_arg'] = $conf; |
| 450: | $s2 = preg_replace_callback('#\t*\/\/\s*hook\s+([^\s]+)#is', 'core::process_hook_callback', $s2); |
| 451: | core::process_urlrewrite($conf, $s2); |
| 452: | file_put_contents($tmptmpfile, $s2); |
| 453: | $s = str_replace($m[0][$k], "\r\n\tinclude '$tmpfile';", $s); |
| 454: | } |
| 455: | } |
| 456: | |
| 457: | // 直接包含内容会加速PHP,但是代码阅读性差,不利于调试。 |
| ID | File | Line | Function |
|---|---|---|---|
| 0 | D:\phpstudy_pro\WWW\framework\lib\core.class.php | 452 | file_put_contents() |
| 1 | D:\phpstudy_pro\WWW\framework\lib\core.class.php | 508 | process_include() |
| 2 | D:\phpstudy_pro\WWW\index.php | 43 | run() |
$_GET = Array
(
[0] => models
[1] => f
[m] => index
[n] => index
)
$_POST = Array ( )
$_COOKIE = Array ( )
include = Array
(
[0] => D:\phpstudy_pro\WWW\index.php
[1] => D:\phpstudy_pro\WWW\conf\conf.php
[2] => D:\phpstudy_pro\WWW\framework\core.php
[3] => D:\phpstudy_pro\WWW\framework\lib\core.class.php
[4] => D:\phpstudy_pro\WWW\framework\lib\misc.class.php
[5] => D:\phpstudy_pro\WWW\framework\lib\log.class.php
[6] => D:\phpstudy_pro\WWW\framework\lib\xn_exception.class.php
[7] => D:\phpstudy_pro\WWW\framework\lib\db.interface.php
[8] => D:\phpstudy_pro\WWW\framework\lib\db_mysqli.class.php
[9] => D:\phpstudy_pro\WWW\framework\lib\cache.interface.php
[10] => D:\phpstudy_pro\WWW\framework\lib\base_control.class.php
[11] => D:\phpstudy_pro\WWW\framework\lib\base_model.class.php
[12] => D:\phpstudy_pro\WWW\framework\lib\encrypt.func.php
[13] => D:\phpstudy_pro\WWW\framework\lib\template.class.php
[14] => D:\phpstudy_pro\WWW\framework\lib\des3.class.php
[15] => D:\phpstudy_pro\WWW\framework\lib\PHPExcel.class.php
[16] => D:\phpstudy_pro\WWW\framework\lib\PHPExcel\Autoloader.php
[17] => D:\phpstudy_pro\WWW\framework\lib\PHPExcel\Shared\String.php
[18] => D:\phpstudy_pro\WWW\framework\lib\PHPExcel\Calculation.php
[19] => D:\phpstudy_pro\WWW\framework\errorpage\exception.htm
)
memory = 2020272
processtime = 0.0418