Bug #49948 [Asn->Opn]: stream_select() / _get_osfhandle

From: Date: Tue, 24 Oct 2017 07:32:14 +0000
Subject: Bug #49948 [Asn->Opn]: stream_select() / _get_osfhandle
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212096@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=49948&edit=1

 ID:                 49948
 Updated by:         kalle@php.net
 Reported by:        uw@php.net
 Summary:            stream_select() / _get_osfhandle
-Status:             Assigned
+Status:             Open
 Type:               Bug
 Package:            Streams related
 Operating System:   win32 only - Windows
 PHP Version:        5.3SVN-2009-10-21 (snap)
-Assigned To:        pajoye
+Assigned To:        
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2012-03-11 22:46:02] uuf6429 at gmail dot com

Same issue on Windows 7 64bit + PHP 5.4 (Zend Server Community Edition).

------------------------------------------------------------------------
[2011-03-15 09:12:27] ivan dot enderlin at hoa-project dot net

I got the same problem with PHP5.3.4 on Windows7 (6.1.7600).

------------------------------------------------------------------------
[2011-03-15 08:35:03] ivan dot enderlin at hoa-project dot net

I got the same problem with PHP5.3.3 on Windows7 (6.1.7600) and maybe with 5.3.2 too. Problem comes
from stream_select and produces a warning: invalid CRT.

------------------------------------------------------------------------
[2010-08-23 19:03:38] thekid@php.net

Same on with VC9 binaries from 5.3.3-RELEASE using the non-threadsafe version. So basically anything
with VC9.

The warning I get (both Windows XP and Windows Vista) is:

  "Invalid CRT parameters detected"

I'm using the second example (w/ fsockopen("www.google.com"[...])).

------------------------------------------------------------------------
[2010-06-21 19:45:38] will at flourishlib dot com

I am getting the same bug with the PHP 5.3.3RC1 VC9 x86 Thread Safe build. The 
server is a Windows 2008 R2 x64 machine. The code that is producing the error 
for me is:

<?php
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);

date_default_timezone_set('America/New_York');
$con = fsockopen('www.google.com', 80);
$read = array($con);
$write = NULL;
$except = NULL;
stream_select($read, $write, $except, 1, 0);
?>

The error is:
Warning: Invalid CRT parameters detected in C:\tmp\stream_select.php on line 10

I can probably provide access to the machine if need be.

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=49948


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


Thread (9 messages)

« previous php.bugs (#212096) next »