> > >----------------------------------------------------------------------
> > >Bug 13711:
> > >[set_time_limit affects other requests on the same Apache process]
> > >
> > >Trying to reproduce this now.
> >
> > Pretty much by definition this cannot happen.  We'd have to go through
> > hoops to create this behavior under Linux.
> >
> > Under Windows, there may be a bug that breaks the multithreaded alarm
> > system, and I'll check it out, but for the same reasons above, I don't
> > think it should stale 4.1.0.
>
> THis was reproduced by sander. Sander, do you have more information?

I created two scripts.

<?php set_time_limit(1); ?>

<?php
for($i=0; $i<1000000; $i++) {
  base64_encode(md5($i));
}
?>

Reproducing this bug on Linux is hard. On Windows, it's very easy. On Linux,
you should repeatedly load both the first and the second script.

Today I tried 4.0.6 and 4.1.0RC2 and they show both the same (incorrect)
behaviour on Windows 2000 using Apache 1.3.22.

Also, I was able to reproduce this bug on Apache 1.3.20 with 4.0.6 on Debian
(Potato) Linux, configure line:
 './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-zlib'
'--with-bzip2' '--enable-bcmath' '--enable-calendar' '--enable-ftp'
'--with-ctype' '--enable-dbase' '--enable-dbx' '--enable-exif'
'--enable-filepro' '--with-mysql=/usr/local/mysql'
'--with-pgsql=/usr/local/pgsql' '--enable-readline' '--enable-shmop'
'--enable-sockets' '--with-xml' '--with-wddx' '--enable-yp' '--with-mcrypt'
'--with-mhash' '--enable-sysvsem' '--enable-sysvshm' '--with-gd'
'--enable-gd-native-ttf' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-zlib-dir=/usr/local'
'--with-freetype-dir=/usr/local' '--enable-inline-optimization'
'--with-zziplib' '--with-openssl' '--with-gettext' '--with-gmp'
'--with-hyperwave' '--enable-mbstring' '--enable-mbstr-enc-trans'
'--with-recode' '--with-mcal=/usr/local/mcal' '--with-curl' '--with-ming'

I couldn't manage to reproduce it on another box, with Debian (Potato) Linux
running 4.0.6 on 1.3.22, configure line:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-bcmath' '--
enable-ftp' '--enable-calendar' '--with-mysql'

If you wait a while (a few minutes), and then try the second script again,
it works fine. Therefor, I presume that set_time_limit() only affects one
child of Apache.

If you have more specific questions, feel free to ask them...

Sander



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to