Re: set_time_limit() bug - pending for PHP 4.1.0
| From: | Zeev Suraski | Date: | Sun, 18 Nov 2001 14:17:28 +0000 |
| Subject: | Re: set_time_limit() bug - pending for PHP 4.1.0 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70806@lists.php.net to get a copy of this message | ||
Works fine for me :I
At 03:42 PM 11/18/2001, derick@php.net wrote:
Hallo, put this in httpd.conf: MinSpaceServers 1 MaxSpareServers 1 StartServers 1 script one: bug13711a.php: <?php set_time_limit(1); ?> script two: bug13711b.php: <?php for($i=0; $i<1000000; $i++) { base64_encode(md5($i)); } ?> restart HTTPD load script one load script two That's all, Derick On Sun, 18 Nov 2001, Zeev Suraski wrote: Can you describe the exact steps you made in order to reproduce it? It appears to be working fine on my box. Zeev At 02:50 PM 11/18/2001, derick@php.net wrote:On Sun, 18 Nov 2001, Zeev Suraski wrote:easy. OnUhm, what exactly did you reproduce?That set_time_limit() affects the whole apache child, and not only the current script. DerickZeev At 02:19 PM 11/18/2001, Derick Rethans wrote:On Sun, 18 Nov 2001, Sander Roobol wrote: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 veryaddressedLinux,you should repeatedly load both the first and the second script.Reproducing under Linux was very easy for me, I just set the following things in httpd.conf: MinSpareServers 1 MaxSpareServers 1 StartServers 1 And voila, reproduced. SO this is a real problem, and need to bephp-list-admin@lists.php.netbefore release. I used the CVS of last night, following configure line: ./configure \ --with-apache=/dat/dev/php/$APACHE_DIR \ --with-gd \ --with-ttf --with-mysql --with-pdflib=/usr/local \ --enable-pdflib --with-config-file-path=/etc/httpd \ --enable-track-vars --enable-magiq-quotes --enable-memory-limit \ --enable-ftp --with-srm=/opt/srm --with-mcrypt \ --with-ctype --with-gmp --with-ldap \ --with-ncurses \ --enable-shmop --enable-sockets --enable-sysvsem \ --enable-sysvshm --enable-wddx --with-zlib (and yes, I know that magic-quotes does not work :) regards, Derick -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail:php-list-admin@lists.php.net-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail:-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net