|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-09-18 13:25 UTC] at php dot net
[2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 11:00:02 2025 UTC |
Description: ------------ On our staging system I got 500 internal server errors behind a lighttpd -> fastcgi -> php setup, when I redeclare a class. With the same built as cli, I only get the expected error without process-dying. I use the last stable release (3.0.19) of APC. Without APC, I see the error-line in the browser window, and when I enable APC again, I come back to the 500. The script is very simple: <?php include '/srv/ship/lib/sql.php'; include '/srv/ship/lib/sql.php'; ?> and the end of the strace output looks like: read(4, "<?php\n\n\ninclude \'/srv/ship/lib/sql.php\';\ninclude \'/srv/ship/lib/sql.php\';\n\n?>", 8192) = 93 read(4, "", 4096) = 0 read(4, "", 8192) = 0 time(NULL) = 1251305564 close(4) = 0 munmap(0xb7efd000, 4096) = 0 stat64("/srv/ship/lib/sql.php", {st_mode=S_IFREG|0644, st_size=8250, ...}) = 0 stat64("/srv/ship/lib/sql.php", {st_mode=S_IFREG|0644, st_size=8250, ...}) = 0 time(NULL) = 1251305564 write(2, "[Wed Aug 26 18:52:44 2009] [apc-error] ", 39) = 39 write(2, "Cannot redeclare class sql", 26) = 26 write(2, "\n", 1) = 1 exit_group(2) = ? Process 32267 detached Hope this helps. Maybe I find the time to search for the bug to post a simple fix. Robert