|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-23 12:51 UTC] matt at haught dot com
I have a few scripts that use sleep() to provide a delay when incorrect passwords are given. When using php snap php4-200206230600 + apache-2.0.39 + FreeBSD 4.4, i receive this error when trying to use "sleep(3);" : Fatal error: Call to undefined function: sleep() in /home/bob/include/auth.inc.php on line 38 Please note that this function does work on Win32/apache2.0.35/php-4.2.0. I will continue to try new snaps on the BSD box as soon as they are out. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 16:00:01 2025 UTC |
Here are lines 36 - 41 } else { //password or login did not match - try again sleep(3); header("Location:login.php?error=1"); exit(); } //if I have been compiling snaps daily, but I am not sure how long it has been doing this, as I had my caps lock on today and got the error when i tried to log into my site. I just updated to snap php4-200206230900, and I still get the error. What am i doing wrong? Does sleep require something in apache2 that is causing the problems? What else should I check, does anyone else get this? I am currently using: if (function_exists('sleep')) { sleep(3); } to get around the error. But I really would like to use sleep(). --Matt