Bug #17934 Updated: sleep() no longer supported
| From: | matt at haught dot com | Date: | Mon, 24 Jun 2002 18:18:25 +0000 |
| Subject: | Bug #17934 Updated: sleep() no longer supported | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11956@lists.php.net to get a copy of this message | ||
ID: 17934
Updated by: matt@haught.com
Reported By: matt@haught.com
Status: Open
Bug Type: Apache2 related
Operating System: FreeBSD 4.4-RELEASE
PHP Version: 4.2.1
New Comment:
I just got done compiling apache2.0.39 and the latest
snap on FreeBSD 4.6 and sleep works there. They both have
the exact same config except for the version of Fbsd. It
looks like a problem with FreeBSD 4.4 and/or the combo
with apache2, or my system alone somehow. I am using
prefork, b/c i know the threaded apache absolutly does not
work on this version of fbsd. This looks like its not a
php problem. Thanks again for all your help. (usleep
does work on both, so if anyone else is having the same
problem use that instead)
-Matt
Previous Comments:
------------------------------------------------------------------------
[2002-06-24 13:45:13] rasmus@php.net
Since we don't have any sort of configure checks for the sleep()
function, I really don't see how this can happen. However, it might be
something related to running PHP in ZTS (threaded) mode. Unless you
have specifically built Apache2 on FreeBSD with a threaded MPM, then
you really don't need the threaded version of PHP. If you grab the
latest CVS version of PHP and try again, it will build non-threaded
against Apache2-prefork (which is the default mpm on fbsd) and perhaps
this would fix this.
Do a 'man sleep' as well. Perhaps sleep() is not threadsafe on fbsd?
Sounds flaky though. I don't see why sleep() wouldn't be threadsafe.
------------------------------------------------------------------------
[2002-06-24 13:37:13] matt@haught.com
I don't have any disable_functions in either php.ini or apache's
config. I just updated my development machine which is running
WinXP+apache2.0.39 and the latest snap, and sleep() works. Could it be
something with FreeBSD or apache2 on FreeBSD? Does the sleep function
require something from the OS or apache2 in order to work? I have
FreeBSD 4.6 on another machine that I am going compile everything to
see if it exists there, i will get back to you. Hopefully its not
completely unique to my server :)
--Matt
------------------------------------------------------------------------
[2002-06-24 05:12:24] wez@php.net
You haven't got a disable_functions= line in your php.ini
or apache config, have you?
------------------------------------------------------------------------
[2002-06-23 13:57:20] matt@haught.com
I know FreeBSD+apache2+php4 is very half baked, but it has been working
somewhat well using the prefork mpm (apache.org after all is using the
same thing without the php). I switched to using usleep(3000000); and
that works for some reason. (i think that equals 3 seconds). I guess
it is an apache2 problem. I know apache2 is not high on your list of
fixes, I was just trying to help.
I noticed that
checking for usleep... (cached) yes
was in my configure output, should their also be a entry for sleep? I
am not a programmer so I have no idea.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17934
--
Edit this bug report at http://bugs.php.net/?id=17934&edit=1