【错误信息】
#Error: file_put_contents(D:/phpstudy_pro/WWW/tmp/control_common_control.class.php): failed to open stream: Invalid argument
#File: D:\phpstudy_pro\WWW\framework\lib\core.class.php
#Line:452
【代码】
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,但是代码阅读性差,不利于调试。
【BackTrace】
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()
【环境变量】
#URL: /
#IP: 46.149.204.235
#Time: 2026/7/30 05:51
#Cookie:
【SQL】
【INCLUDE】
D:\phpstudy_pro\WWW\index.php
D:\phpstudy_pro\WWW\conf\conf.php
D:\phpstudy_pro\WWW\framework\core.php
D:\phpstudy_pro\WWW\framework\lib\core.class.php
D:\phpstudy_pro\WWW\framework\lib\misc.class.php
D:\phpstudy_pro\WWW\framework\lib\log.class.php
D:\phpstudy_pro\WWW\framework\lib\xn_exception.class.php
D:\phpstudy_pro\WWW\framework\lib\db.interface.php
D:\phpstudy_pro\WWW\framework\lib\db_mysqli.class.php
D:\phpstudy_pro\WWW\framework\lib\cache.interface.php
D:\phpstudy_pro\WWW\framework\lib\base_control.class.php
D:\phpstudy_pro\WWW\framework\lib\base_model.class.php
D:\phpstudy_pro\WWW\framework\lib\encrypt.func.php
D:\phpstudy_pro\WWW\framework\lib\template.class.php
D:\phpstudy_pro\WWW\framework\lib\des3.class.php
D:\phpstudy_pro\WWW\framework\lib\PHPExcel.class.php
D:\phpstudy_pro\WWW\framework\lib\PHPExcel\Autoloader.php
D:\phpstudy_pro\WWW\framework\lib\PHPExcel\Shared\String.php
D:\phpstudy_pro\WWW\framework\lib\PHPExcel\Calculation.php
D:\phpstudy_pro\WWW\framework\errorpage\exception.htm
$_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
memory = 2020272
processtime = 0.0418