From:             majkl578 at gmail dot com
Operating system: Linux Debian
PHP version:      5.3SVN-2009-10-13 (snap)
PHP Bug Type:     Scripting Engine problem
Bug description:  max_execution_time affected by max_input_time

Description:
------------
PHP ignores the max_execution_time set in php.ini and sets (somehow
internally) it to the value of max_input_time. ini_get returns correct
values of both of these settings, but the script is halted after the time
set as max_input_time.

This bug affects PHP5.3RC1 and also the latest snapshot of PHP5.3.
It is probably similar to an old bug #37306.

Related php.ini values:
max_execution_time = 5
max_input_time = 10

Configure command:
./configure --prefix=/usr --sysconfdir=/etc --cache-file=./config.cache
--with-config-file-path=/etc/php
--with-config-file-scan-dir=/etc/php/extensions --with-apxs2=/usr/bin/apxs2
--with-mysql --with-mysqli --with-curl --with-sqlite --enable-sqlite-utf8
--with-gd --enable-mbstring --with-openssl --disable-short-tags
--with-mcrypt --with-bz2 --with-zlib --enable-zip --with-xmlrpc
--enable-soap --without-mssql --with-pgsql --with-tidy --enable-debug
--disable-posix --enable-exif --enable-ftp --with-gettext --with-mhash
--enable-pcntl --with-pspell --enable-sockets --with-xsl --enable-cli
--enable-calendar --disable-cgi --enable-zend-multibyte

Reproduce code:
---------------
<?php
echo ini_get('max_execution_time'), ' | ', ini_get('max_input_time');

while(true);

Expected result:
----------------
5 | 10
Fatal error: Maximum execution time of 5 seconds exceeded in /foo/bar.php
on line 4

Actual result:
--------------
5 | 10
Fatal error: Maximum execution time of 10 seconds exceeded in /foo/bar.php
on line 4

-- 
Edit bug report at http://bugs.php.net/?id=49868&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=49868&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=49868&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=49868&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=49868&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49868&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=49868&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=49868&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=49868&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=49868&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=49868&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=49868&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=49868&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=49868&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=49868&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49868&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49868&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=49868&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=49868&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=49868&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=49868&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=49868&r=mysqlcfg

Reply via email to