php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33636 max_execution_time from php.ini ignored
Submitted: 2005-07-10 22:13 UTC Modified: 2005-07-11 10:57 UTC
From: kfiadeg at wp dot pl Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 4.3.11 OS: Gentoo, Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kfiadeg at wp dot pl
New email:
PHP Version: OS:

 

 [2005-07-10 22:13 UTC] kfiadeg at wp dot pl
Description:
------------
I'm trying to convert images to gallery using GD library - it takes time, no matter how fast machine you run your server on. I keep getting "Fatal error: Maximum execution time of 10 seconds exceeded in..." on every server (Linux/Gentoo, Windows), while default setting of php.ini is 30 seconds... I've tried to run latest CVS version, but it does not work either.
Configuration:
- Apache/2.0.52, 2.0.54 (Gentoo/Linux), (Win32)
- PHP4.3.11/0.2.7 or 4.4.0RC3-dev
- configure line (from gentoo):
'./configure' '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--with-apxs2=/usr/sbin/apxs2' '--with-ndbm=/usr' '--with-db4=/usr' '--with-mcrypt=/usr' '--with-mhash=/usr' '--without-interbase' '--with-ming=/usr' '--with-swf=/usr' '--with-sybase=/usr' '--with-gdbm=/usr' '--without-fdftk' '--with-java=/opt/sun-jdk-1.4.2.07' '--without-mcal' '--with-unixODBC=/usr' '--with-pgsql=/usr' '--without-snmp' '--without-gmp' '--with-mssql=/usr' '--with-pdflib=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-png=/usr' '--with-png-dir=/usr' '--with-jpeg=/usr' '--with-jpeg-dir=/usr' '--enable-exif' '--with-tiff=/usr' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-freetype-dir=/usr' '--with-ttf=/usr' '--with-t1lib=/usr' '--with-gettext' '--without-qtdom' '--with-pspell=/usr' '--with-openssl=/usr' '--without-imap' '--with-ldap=/usr' '--with-dom=/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--without-kerberos' '--with-pam' '--disable-memory-limit' '--enable-ipv6' '--without-yaz' '--disable-debug' '--with-curlwrappers' '--with-curl=/usr' '--enable-dbx' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml' '--enable-mbstring=all' '--enable-mbregex' '--with-bz2=/usr' '--with-crack=/usr' '--with-cdb' '--enable-pcntl' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-yp' '--without-ncurses' '--without-readline' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/apache2-php4' '--libdir=/usr/lib/php' '--without-pear'

- php as a module (mod4apache2.dll or php4_module (libphp4.so))

- a part of php.ini:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 300     ; Maximum execution time of each script, in seconds
max_input_time = 600	; Maximum amount of time each script may spend parsing request data
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)


No matter what I put as a values of these variables - effect is always the same - 10 seconds exceeded.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-10 22:15 UTC] tony2001@php.net
Where is your php.ini and what does phpinfo() say about it's  location ?
 [2005-07-11 00:44 UTC] kfiadeg at wp dot pl
my php.ini is located at:
1) linux:  /etc/php/apache2-php4/php.ini
2) windows: C:\Program Files\PHP\php.ini

phpinfo() says everything correct about php.ini and max_execution_time and max_input_time...

Apache's HTTP_KEEP_ALIVE is set to 300, I don't know what else could I change to fix my problem...
 [2005-07-11 10:57 UTC] tony2001@php.net
Can't reproduce.
Probably you've set it somewhere in httpd.conf, .htaccess etc.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 23:01:29 2024 UTC