#39803 [Opn->Bgs]: fsockopen() bug

From: Date: Thu, 23 Jul 2009 22:48:04 +0000
Subject: #39803 [Opn->Bgs]: fsockopen() bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-140171@lists.php.net to get a copy of this message
 ID:               39803
 Updated by:       jani@php.net
 Reported By:      marcelo at tpn dot com dot br
-Status:           Open
+Status:           Bogus
 Bug Type:         Sockets related
 Operating System: FreeBSD 6.2
 PHP Version:      4.4.9
 New Comment:

Apparently this isn't any PHP bug like already said many times.


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

[2009-07-14 05:05:45] marcelo at tpn dot com dot br

Now fsockopen crashes apache, but only when PHP is in apache module 
mode.

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

[2007-07-11 12:40:39] jani@php.net

So you're saying this problem exist in PHP 5.2.3 also?
If so, please set the version in this report to "5.2.3, 4.4.7" 

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

[2007-05-03 18:29:51] marcelo at tpn dot com dot br

This is a PHP problem.

I have both CGI and Apache Module.

fsockopen() works on CGI mode, but doesn't in Apache Module.

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

[2007-04-05 19:59:08] tony2001@php.net

>The system is always returning EINPROGRESS.
Why is that PHP problem?
Fix your system instead.

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

[2007-04-05 13:39:29] marcelo at tpn dot com dot br

An user could fix this problem in PHP 5 adding 3 lines of code in
main/network.c.

   if (!asynchronous) {
      /* back to blocking mode */
      RESTORE_SOCKET_BLOCKING_MODE(sockfd, orig_flags);
   }
/* Start changes */
   if (error == EINPROGRESS) {
       error = 0;
   }
/* End changes */
   if (error_code) {
      *error_code = error;
   }
   if (error && error_string) {
     *error_string = php_socket_strerror(error, NULL, 0);
     ret = -1;
   }
   return ret;

I try to modify PHP 4 but the code is a bit different. Can you help me
to fix this problem?

The system is always returning EINPROGRESS.

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

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/39803

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



Thread (24 messages)

« previous php.bugs (#140171) next »