#44160 [Opn->Fbk]: Windows Scheduled Task Hangs when using php-win.exe
ID: 44160
Updated by: jani@php.net
Reported By: Erik at broadlux dot com
-Status: Open
+Status: Feedback
Bug Type: Performance problem
Operating System: Windows Server 2003
PHP Version: 5.2.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[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
Thread (3 messages)