php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44160 Windows Scheduled Task Hangs when using php-win.exe
Submitted: 2008-02-18 19:45 UTC Modified: 2009-09-21 20:08 UTC
From: Erik at broadlux dot com Assigned:
Status: Closed Package: Performance problem
PHP Version: 5.2.5 OS: Windows Server 2003
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Erik at broadlux dot com
New email:
PHP Version: OS:

 

 [2008-02-18 19:45 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-26 23:24 UTC] 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-11-03 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".
 [2009-09-21 20:08 UTC] Erik at broadlux dot com
unknown
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 20:01:35 2025 UTC