在5.6.8.0下,也就是最新的xampp里面那个,关闭调试莫时候会出错,查看错误日志为
[11-May-2015 21:12:38 Europe/Berlin] PHP Parse error: syntax error, unexpected 'define' (T_STRING) in C:\xampp\htdocs\hdzx_new\Application\Runtime\common~runtime.php on line 1经过对common~runtime.php的分析,发现是在引入function.php的时候,变成了namespace {php define('PERMISSION_ADMIN', 1); define('PERMISSION_SCHOOL_READONLY', 2); 而原始文件是<?php
define('PERMISSION_ADMIN', 1);
define('PERMISSION_SCHOOL_READONLY', 2);临时解决方案是,把function.php中的开口改成<?,也就是不要“php”原因未知。。。。 最佳答案