php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30665 With safe_mod = On Maximum execution time of 30 seconds exceeded
Submitted: 2004-11-02 17:18 UTC Modified: 2004-11-19 01:00 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: udovdh at yahoo dot com Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 4.3.8 OS: FC2/Linux 2.6.10-rc1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
46 + 50 = ?
Subscribe to this entry?

 
 [2004-11-02 17:18 UTC] udovdh at yahoo dot com
Description:
------------
With safe_mode = On I get PHP Fatal error:  Maximum execution time of 30 seconds exceeded in Unknown on line 0 in the error_log  after each view of this PHP using IE6:

<html>
<head>
<title>Uptime records for this host</title>
</head>
<body bgcolor="#ffffff">
<h1>Uptime records for this host</h1>
This host runs a cool program called <b>uptimed</b> to log uptime records.
It comes with a nice program to examine the logs and display them in a
humane manner.<BR>
As you can see this program runs as php thingie as well as cgi!
<p>
Here are the uptime records for this system:
<p>
<pre>
<? system("/usr/bin/uprecords -a"); ?>
</pre>
<p>
Cool eh?
<p>
You can now <a href="/index.html">go back to the main page</a> of my site.
</body>
</html>

It's the stock Fedora Core 2 PHP RPM and the line appears every time after a view.

Expected result:
----------------
No error message, just a functioning and safe php.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-02 18:29 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 [2004-11-03 07:51 UTC] udovdh at yahoo dot com
You wrote:
> Sorry, but your problem does not imply a bug in PHP itself.

Please explain. Please tell why older bug reports like this one were PHP related. Please tell what info you'd need to make it a PHP bug or a definite Apache bug.
 [2004-11-03 08:55 UTC] derick@php.net
You can't pass parameters to commands called with system() in safe_mode.
 [2004-11-03 09:35 UTC] udovdh at yahoo dot com
That measn that there is another BUG! (since the command works as implemented)
Also this does not explain the execution time message, the original complaint.
 [2004-11-11 13:45 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.

Please, provide a reproduce script, as we do not know what's 'uprecords' and how does it behave without '-a' option.
 [2004-11-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC