ID:               38568
 Comment by:       nlopess at _php dot net
 Reported By:      pierre-marie dot mouliere at arc-intl dot com
 Status:           Open
 Bug Type:         Sockets related
 Operating System: HP-UX B.11.23 (Itanium IA64)
 PHP Version:      5.1.5
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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] [EMAIL PROTECTED]

>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] [EMAIL PROTECTED]

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



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

[2006-08-23 16:21:52] pierre-marie dot mouliere at arc-intl dot com

Hello, 
It's difficult to give more information. 
The php source code to test is 
<?php
  $sk = fsockopen("dev2.emea.dmai.net",80);
  echo "socket = " . $sk;
?>
May be the problem in only on HPUX. We found a solution to fixed it.
It's running and for us it's OK now. But we prefer to include our
sources change of network.c in the global release. If not, we need to
change source code at each releases. 
Best regards
Pierre Marie MOULIERE

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

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

Reply via email to