Bug #17934 Updated: sleep() no longer supported
| From: | sander@php.net | Date: | Sun, 23 Jun 2002 17:42:06 +0000 |
| Subject: | Bug #17934 Updated: sleep() no longer supported | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11844@lists.php.net to get a copy of this message | ||
ID: 17934
Updated by: sander@php.net
Reported By: matt@haught.com
-Status: Feedback
+Status: Open
Bug Type: Unknown/Other Function
Operating System: FreeBSD 4.4-RELEASE
PHP Version: 4.2.1
Previous Comments:
------------------------------------------------------------------------
[2002-06-23 13:38:59] rasmus@php.net
Well, it hasn't been removed from PHP in any way. I have no idea why
it isn't working for you. However, you need to realize that Apache 2,
especially on FreeBSD, is nowhere near production quality.
Apache2+PHP+FreeBSD is about as half-baked as you can get.
------------------------------------------------------------------------
[2002-06-23 13:17:55] matt@haught.com
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
------------------------------------------------------------------------
[2002-06-23 13:01:43] rasmus@php.net
That doesn't make any sense. sleep() is not conditional in any way.
Could you show us line 38 of that file?
------------------------------------------------------------------------
[2002-06-23 12:51:18] matt@haught.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17934&edit=1