ID: 38568
Updated by: iliaa@php.net
Reported By: pierre-marie dot mouliere at arc-intl dot com
-Status: Open
+Status: Feedback
Bug Type: Sockets related
Operating System: HP-UX B.11.23 (Itanium IA64)
PHP Version: 5.1.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2006-12-14 10:06:11] nlopess at _php dot net
http://lxr.php.net/source/php-src/main/network.c#277
seems to already
account for EINPROGRESS, and it polls the connection when in blocking
mode.
------------------------------------------------------------------------
[2006-08-24 10:10:03] pierre-marie dot mouliere at arc-intl dot com
You are right,
But I think that this update will be ok for all others systems because
the error EINPROGRESS is not a real error after the getsockopt()
function (no block mode)
It's seen that the open socket is still in progress when the
getsockopt() function is call.
We look for HP support and we found no patches and no information about
this
the getsockopt() return code is OK
To detect it we use TUSC Tools
-------
socket(AF_INET, SOCK_STREAM, 0) .......................... = 3
fcntl(3, F_GETFL, 0) ..................................... = 2
fcntl(3, F_SETFL, 65538) ................................. = 0
connect(3, 0x60000000002ead58, 16) ....................... ERR#245
EINPROGRESS
poll(0x9fffffffffffce38, 1, 60000) ....................... = 1
getsockopt(3, SOL_SOCKET, SO_ERROR, 0x9fffffffffffce30,
0x9fffffffffffce40) = 0
fcntl(3, F_SETFL, 2) ..................................... = 0
open("/usr/lib/nls/msg/C/strerror.cat", O_RDONLY|0x800, 0113572) = 4
-------
------------------------------------------------------------------------
[2006-08-24 08:03:52] tony2001@php.net
>We use also PHP for windows and on HPUX 32 Bits and we
>have no problem. The problem in only on new 64 Bits HPUX.
I guess the problem is not _on_ 64bit HPUX, but _in_ 64bit HPUX. Did
you try to look into their docs/bugs/contact support etc?
I've serious doubts we're going to commit patches changing behaviour on
all systems because of a broken 64bit HPUX.
------------------------------------------------------------------------
[2006-08-24 05:54:52] pierre-marie dot mouliere at arc-intl dot com
Hello Tony,
We try to use the new package. The result is exactly the same. the
network.c files doesn't change except a static const declare. So, I'm
not surprised that we have the same result.
We use also PHP for windows and on HPUX 32 Bits and we have no problem.
The problem in only on new 64 Bits HPUX.
Best regards
Pierre Marie
------------------------------------------------------------------------
[2006-08-23 16:38:00] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
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
http://bugs.php.net/38568
--
Edit this bug report at http://bugs.php.net/?id=38568&edit=1