php – 如何调试没有错误信息的错误?
发布时间:2020-12-13 13:14:46 所属栏目:PHP教程 来源:网络整理
导读:如何调试没有错误信息的错误? 在加载PHP页面时,我在Firefox中收到此错误. The connection to the server was reset while the page was loading. 它没有表明为什么除了它似乎是Apache崩溃. Apache错误日志显示: [Wed Nov 03 10:23:04 2010] [notice] Paren
如何调试没有错误信息的错误?
在加载PHP页面时,我在Firefox中收到此错误. The connection to the server was reset while the page was loading. 它没有表明为什么除了它似乎是Apache崩溃. Apache错误日志显示: [Wed Nov 03 10:23:04 2010] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Wed Nov 03 10:23:06 2010] [notice] Digest: generating secret for digest authentication ... [Wed Nov 03 10:23:06 2010] [notice] Digest: done [Wed Nov 03 10:23:06 2010] [notice] Apache/2.2.14 (Win32) DAV/2 mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations [Wed Nov 03 10:23:06 2010] [notice] Server built: Nov 11 2009 14:29:03 [Wed Nov 03 10:23:06 2010] [notice] Parent: Created child process 5100 [Wed Nov 03 10:23:07 2010] [notice] Digest: generating secret for digest authentication ... [Wed Nov 03 10:23:07 2010] [notice] Digest: done [Wed Nov 03 10:23:07 2010] [notice] Child 5100: Child process is running [Wed Nov 03 10:23:07 2010] [notice] Child 5100: Acquired the start mutex. [Wed Nov 03 10:23:07 2010] [notice] Child 5100: Starting 150 worker threads. [Wed Nov 03 10:23:07 2010] [notice] Child 5100: Starting thread to listen on port 80. [Wed Nov 03 10:23:07 2010] [notice] Child 5100: Starting thread to listen on port 80. 我尝试搜索3221225477代码,但发现没有任何工作. Windows事件查看器也显示: Faulting application name: httpd.exe,version: 2.2.14.0,time stamp: 0x4aeb9704 Faulting module name: php5ts.dll,version: 5.3.1.0,time stamp: 0x4b06c41d Exception code: 0xc0000005 Fault offset: 0x00082391 Faulting process id: 0x8f4 Faulting application start time: 0x01cb7b85fa74bf83 Faulting application path: C:xamppapachebinhttpd.exe Faulting module path: C:xamppphpphp5ts.dll Report Id: 73996201-e779-11df-938f-e0cb4e5b154a 当我打电话时发生这种情况: return mysql_fetch_object($result,$class_name); 当我使用$_SESSION时,它也发生在另一个页面上 如果我切换到使用CGI而不是php5ts.dll和php5apache2_2.dll我得到: Premature end of script headers: php-cgi.exe 它只发生在一些页面.其他工作正常. >没有发生PHP错误或异常.错误报告设置为E_ALL& ?E_NOTICE& ?E_DEPRECATED. display_errors打开. 有没有人知道如何有效地调试这个错误?
那么,您可以先阅读
“Generating a Backtrace”并搜索与您类似的注册PHP错误报告,如果您真的没有发现错误报告,则可以提交错误信息.如果你真的很感兴趣,你可以检查
PHP Source并提出补丁.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |