From:             hack988 at gmail dot com
Operating system: windows
PHP version:      6SVN-2009-09-05 (snap)
PHP Bug Type:     Scripting Engine problem
Bug description:  use set_time_limit() trow an Warning info.

Description:
------------
I'm test set_time_limit function with no param,it trow an warning info.I
have see description in online manual:
When called, set_time_limit() restarts the timeout counter from zero. In
other words, if the timeout is the default 30 seconds, and 25 seconds into
script execution a call such as set_time_limit(20) is made, the script will
run for a total of 45 seconds before timing out. 

It's means this function with no param must work well.

BTW:I'm test codes in php6-dev and php 5.2.9 all of them trow an
warning.:(

Reproduce code:
---------------
set_time_limit(50);
set_time_limit();
exit;

Expected result:
----------------
Warning: set_time_limit() expects exactly 1 parameter, 0 given in xxxxxxx
on line 3
PHP Warning: set_time_limit() expects exactly 1 parameter, 0 given in
xxxxxxx on line 3 


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

Reply via email to