#44160 [NoF->Csd]: Windows Scheduled Task Hangs when using php-win.exe
| From: | Erik at broadlux dot com | Date: | Mon, 21 Sep 2009 20:09:00 +0000 |
| Subject: | #44160 [NoF->Csd]: Windows Scheduled Task Hangs when using php-win.exe | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-142643@lists.php.net to get a copy of this message | ||
ID: 44160
User updated by: Erik at broadlux dot com
Reported By: Erik at broadlux dot com
-Status: No Feedback
+Status: Closed
Bug Type: Performance problem
Operating System: Windows Server 2003
PHP Version: 5.2.5
New Comment:
unknown
Previous Comments:
------------------------------------------------------------------------
[2008-11-03 01:00:01] 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".
------------------------------------------------------------------------
[2008-10-26 23:24:40] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2008-02-18 19:45:33] Erik at broadlux dot com
Description:
------------
I run a Windows Server 2003 Scheduled Task job every 5 minutes using
php-win.exe . The php-win.exe process hangs after it runs the script.
My script simply pings another host.
In order to rule-out my code, I place the following in my script:
<?php
ini_set('error_log','error.txt');
error_log('Info: Begin '.date('Y-m-d g:i:sa'));
set_time_limit(180);
error_reporting(E_ALL | E_STRICT);
...<other code>
error_log('Info: End '.date('Y-m-d g:i:sa'));
?>
The script gets to the last statement "...Info: End" and prints,
however, the php-win.exe process does not end. This blocks the Windows
Scheduled Task from running again in 5 minutes. My script runs < 1
sec.
In addtion, notice the set_time_limit call? This is not executing
after 180 seconds.
Actual result:
--------------
php-win.exe seems to be hanging or not ending properly. N
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44160&edit=1