[wp-trac] Re: [WordPress Trac] #9043: set_time_limit in import/wordpress.php causing issues.

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 5 00:02:59 GMT 2009


#9043: set_time_limit in import/wordpress.php causing issues.
-----------------------------------------------+----------------------------
 Reporter:  joostdevalk                        |        Owner:  joostdevalk
     Type:  defect (bug)                       |       Status:  new        
 Priority:  normal                             |    Milestone:  2.8        
Component:  Import                             |      Version:             
 Severity:  normal                             |   Resolution:             
 Keywords:  has-patchdev-feedback 2nd-opinion  |  
-----------------------------------------------+----------------------------
Comment (by tellyworth):

 I don't think this works as you expect.

 set_time_limit(123) doesn't set the time limit to 123 seconds since script
 execution started.  It adds 123 new seconds from the current point.  So if
 the original time limit is 30 seconds, when you call
 set_time_limit($orig_timelimit) you're adding a further 30 seconds of
 execution time, not winding back the total limit to 30 seconds.

 This is covered in the set_time_limit() docs:

 http://au.php.net/manual/en/function.set-time-limit.php

 Can you elaborate on what the bug is?

-- 
Ticket URL: <http://trac.wordpress.org/ticket/9043#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list