#49474 [Bgs]: use set_time_limit() trow an Warning info.

From: Date: Sun, 06 Sep 2009 04:18:03 +0000
Subject: #49474 [Bgs]: use set_time_limit() trow an Warning info.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2732@lists.php.net to get a copy of this message
ID: 49474 User updated by: hack988 at gmail dot com Reported By: hack988 at gmail dot com Status: Bogus Bug Type: Documentation problem Operating System: windows PHP Version: 6SVN-2009-09-05 (snap) New Comment: Ohh,I see,I'm sorry for my mistake Previous Comments: ------------------------------------------------------------------------ [2009-09-05 18:36:50] felipe@php.net Negative. You misread the description. 'set_time_limit()' was used just to indicate the function name. ------------------------------------------------------------------------ [2009-09-05 16:58:23] hack988 at gmail dot com 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 this bug report at http://bugs.php.net/?id=49474&edit=1

« previous php.doc.bugs (#2732) next »