|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-09-22 10:48 UTC] zeev
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 13:00:01 2025 UTC |
The following bit of code randomly loads one of a small number of pages: $timeval = mktime(); srand($timeval); $randval = rand() % $num_files; $file = $path . $files[$randval]; if(is_readable($file)) { $fp = fopen($file, "r"); $pass = fpassthru($fp); } Sometimes this code crashes apache(1.3b5) and causes the following error_log message: [Mon Apr 6 13:12:36 1998] [notice] httpd: caught SIGSEGV, attempting to dump core in /usr/local/apache