#44160 [NEW]: Windows Scheduled Task Hangs when using php-win.exe

From: Date: Mon, 18 Feb 2008 19:45:33 +0000
Subject: #44160 [NEW]: Windows Scheduled Task Hangs when using php-win.exe
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122432@lists.php.net to get a copy of this message
From: Erik at broadlux dot com Operating system: Windows Server 2003 PHP version: 5.2.5 PHP Bug Type: Performance problem Bug description: Windows Scheduled Task Hangs when using php-win.exe 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 bug report at http://bugs.php.net/?id=44160&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44160&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44160&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44160&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44160&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44160&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44160&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44160&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44160&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44160&r=support Expected behavior: http://bugs.php.net/fix.php?id=44160&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44160&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44160&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44160&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44160&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44160&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44160&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44160&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44160&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44160&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44160&r=mysqlcfg

« previous php.bugs (#122432) next »