4
用XDebug在PHP中运行apache一段时间后,在Mac OSX上“打开太多文件”
我正在运行Mac OS X 10.9.4,包括带有来自brew的PHP 5.5.14的内置apache2 Web服务器(软件包:php55,php55-intl,php55-pdo-pgsql,php55-xdebug)。 运行此设置时,效果很好。但是,一段时间后,我将为每个请求运行403错误。我查看了apache错误日志,发现如下内容: [Fri Jul 25 05:28:18 2014] [error] [client 127.0.0.1] PHP Warning: require_once(/Users/daniel/Development/massiveart/sulu-complete/app/bootstrap.php.cache): failed to open stream: Too many open files in /Users/daniel/Development/massiveart/sulu-complete/web/website.php on line 10, referer: http://sulu.lo/de [Fri Jul 25 05:28:18 2014] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://sulu.lo/de [Fri Jul 25 05:28:18 …