Bug #51271 [Fbk->NoF]: CLI script + Sockets + Windows causes hang/pause at end of script execution

From: Date: Fri, 01 Nov 2013 04:05:02 +0000
Subject: Bug #51271 [Fbk->NoF]: CLI script + Sockets + Windows causes hang/pause at end of script execution
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182537@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=51271&edit=1

 ID:               51271
 Updated by:       php-bugs@lists.php.net
 Reported by:      funnymonkeybanana at gmail dot com
 Summary:          CLI script + Sockets + Windows causes hang/pause at
                   end of script execution
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          CGI/CLI related
 Operating System: win32 only
 PHP Version:      5.2.13
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2013-10-24 08:11:33] yohgaki@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.4-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------
[2010-03-11 02:45:51] funnymonkeybanana at gmail dot com

Description:
------------
I've experienced this problem for years but have never bothered to report it until now.  I
write a lot of command-line PHP scripts and I've found that scripts that do not attempt to open
a socket connection terminate immediately at the end of the program.  However, scripts that contact
remote (or even 'localhost') servers (i.e. open a socket during script execution) hang for
about 5 seconds before returning control to the command prompt.  I only experience this issue on
Windows machines.  Linux and OSX boxes seem unaffected.

Test script:
---------------
<?php
	file_get_contents("http://www.google.com/");
	echo "Hi!\n";
?>

Expected result:
----------------
Return to the command prompt as soon as the "Hi!" is output.

Actual result:
--------------
Reaches the end of the script (after displaying "Hi!") and simply hangs for 5 seconds or
so.


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=51271&edit=1


Thread (4 messages)

« previous php.bugs (#182537) next »