From:             jschwabik at koop dot cz
Operating system: CentOS release 4.3
PHP version:      5.2.0
PHP Bug Type:     Performance problem
Bug description:  Maximum execution time exceeded even if is unlimited

Description:
------------
I've got script running from linux shell and sometimes it crashes with
"Maximum execution time of 30 seconds exceeded in some line" error in the
script. 

The command on which it crashes is unpredictable. The script is runnig
sometimes 10 minutes, sometimes 30 minutes and crashes on different lines.
(It never runs 30 seconds).  

I am running it from command line (CLI) (max_execution_time should be 0)
an I set it with set_time_limit(0) to 0.

I've tried two servers 4 php versions (4.4.2, 4.4.4,5.1.6,5.2.0)

In my php.ini is max_execution_time set to 0.

Sometimes it ends on ifx_fetch_row().
Sometimes it ends on mktime().

My configure
'./configure' '--with-config-file-path=/etc/php.ini'
'--with-apache=../apache_1.3.37/' '--with-informix=/opt/informix'
'--with-mysql=/usr/local/mysql/' '--enable-ftp' '--with-gd'
'--enable-gd-native-ttf' '--enable-gd-imgstrttf' '--with-zlib'
'--with-jpeg-dir=/usr/' '--with-freetype-dir=/usr' '--with-dom=./ext'
'--with-ldap' '--with-mssql=/usr/local/' '--enable-dbase'
'--with-iconv=/usr/local' 


PHP Core Info
.
.
.
max_execution_time => 0 => 30
max_input_time => -1 => 60
open_basedir => no value => no value
output_buffering => 0 => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 12 => 12
safe_mode => Off => Off
.
.
.

Reproduce code:
---------------
<? 
set_time_limit(0);

//connection to MYsql database
//connection to Informix database

//running Informix query (10 queries)


//doing some transformations and inserting into MYsql database (multiple
insert every 100 rows)

echo "End";
 

?>




Expected result:
----------------
"End" is echoed or some meaningful error message. 

Actual result:
--------------
Fatal error:Maximum execution time of 30 seconds exceeded in ...

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

Reply via email to