php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #23305 max_execution_time on CLI mode
Submitted: 2003-04-22 08:09 UTC Modified: 2003-04-23 17:54 UTC
From: cwl_999 at hotmail dot com Assigned: helly (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4CVS-2003-04-22 (stable) OS: ANY
Private report: No CVE-ID: None
 [2003-04-22 08:09 UTC] cwl_999 at hotmail dot com
The new CLI mode on 4.3 version is s'pose to have the max_execution_time overiden to 0.  This doesn't seem to be happening.

---
E:\htdocs>c:\php\cli\php -v
PHP 4.3.2-RC (cli) (built: Apr 22 2003 02:18:25)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
---

The foolowing code produces

<?
	echo ini_get("max_execution_time");
?>

---
E:\htdocs>c:\php\cli\php test4.php
30
---

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-23 02:48 UTC] sniper@php.net
As I mentioned to Marcus before, he broke this.

 [2003-04-23 16:32 UTC] helly@php.net
At this time it is the intended behavior. You are expected to have a dedicated ini file for CLI or have no ini for CLI. The latter can simply be accomplished by invoking CLI with parameter -n which suppresses ini parsing. I leave this still open yet.
 [2003-04-23 17:54 UTC] helly@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Ok enough of the discussion. Old behavior reverted.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 21:01:29 2024 UTC