Bug #41932 [Com]: fsockopen - apache2 poblem with many vhosts

2010-03-14 Thread marcelo at tpn dot com dot br
Edit report at http://bugs.php.net/bug.php?id=41932&edit=1

 ID:   41932
 Comment by:   marcelo at tpn dot com dot br
 Reported by:  yaboll at interia dot pl
 Summary:  fsockopen - apache2 poblem with many vhosts
 Status:   Bogus
 Type: Bug
 Package:  Sockets related
 Operating System: linux
 PHP Version:  4.4.7

 New Comment:

See http://bugs.php.net/bug.php?id=39803


Previous Comments:

[2007-07-10 08:03:14] yaboll at interia dot pl

There is no nfile limit in apache server.

When i change nfile limit I have the same results (error or seqfault) 



Limit are set to unlimited/high value intentionally for this test:



This is results in 

system('ulimit -a');



core file size (blocks, -c) unlimited

data seg size (kbytes, -d) unlimited

file size (blocks, -f) unlimited

max locked memory (kbytes, -l) unlimited

max memory size (kbytes, -m) unlimited

open files (-n) 1048576

pipe size (512 bytes, -p) 8

stack size (kbytes, -s) 8192

cpu time (seconds, -t) unlimited

max user processes (-u) unlimited

virtual memory (kbytes, -v) 25







I would like to emphasize that when I use php 5.2 everything works fine
within the same limits/apache2 config.





The problem is connected with php 4.4.7 in mod_php.



When i use 4.4.7 in cgi, or php 5.2 in mod_php (same ulimit and apache2
config) or 5.2 in cgi mode script return good results.


[2007-07-09 20:32:22] tony2...@php.net

You've run into your system's file descriptor limit.

Not PHP problem.


[2007-07-09 08:10:19] yaboll at interia dot pl

Well, as this bug is version 4.4.7 related, I hope that this is some
kind of automatic reply :D

Downloading 5.2 will solve the problem, but it would be nice to see it
corrected in php4.


[2007-07-09 07:53:00] der...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi


[2007-07-09 07:43:44] yaboll at interia dot pl

Description:

I found problem in fsockopen() when I use php as module mod_php in
apache2.



When I create many vhost fsckopen() doesn't work good and generate child
sigterm error.



I made some experimets with vhost number:



vhosts number - error



less than 1005 - work fine

1006-1007 - white page (no error)

1008 - around 1164 - "Operation now in progress (115)"

around 1150 - around 1164 - "Bad file descriptor (9)"

around 1164 - around 1200 - "Operation now in progress (115)"

1200 and more - apache child sigterm







core in sigterm:

(gdb) bt

#0 php_hostconnect (host=Cannot access memory at address 0xc

) at /srv/dev-dev/php4-debug/php4/php4-4.4.7/main/network.c:490

Cannot access memory at address 0x4

(gdb)





When I use php in cgi/cli mode all works fine.

Reproduce code:
---
\n";

 } else {

   $out = "GET / HTTP/1.1\r\n";

   $out .= "Host: www.onet.pl\r\n";

   $out .= "Connection: Close\r\n\r\n";

   fwrite($fp, $out);

   while (!feof($fp)) {

echo fgets($fp, 128);

   }

   fclose($fp);

 }

?>







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


Bug #39803 [Bgs]: fsockopen() bug

2010-03-14 Thread marcelo at tpn dot com dot br
Edit report at http://bugs.php.net/bug.php?id=39803&edit=1

 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported by:  marcelo at tpn dot com dot br
 Summary:  fsockopen() bug
 Status:   Bogus
 Type: Bug
 Package:  Sockets related
 Operating System: FreeBSD 6.2
 PHP Version:  4.4.9

 New Comment:

Folks,



Regardless if it's a PHP problem or not, here is the SOLUTION:



fsockopen(), fopen() and other socket functions will not work in Apache
with 

many virtualhosts.



You need to increase the file descriptor limits when compiling Apache
and PHP 

(including its 

modules).



If you use FreeBSD, edit your /etc/make.conf and add:



EXTRA_CFLAGS="-DFD_SETSIZE=8192"



And rebuild Apache, PHP and its modules. I believe that 8192 is a number
big 

enough, btw you can 

try a different number. I don't know how to do this using Linux, but
should be 

similar.



There are MANY people with the same problem, and you are always saying
this 

isn't a PHP bug, and 

the user should fix him system.



IMHO, if its not a bug, why have I to recompile it to make it works?



My suggestion: create a compile parameter to compile PHP and its modules
with a 

bigger file 

descriptor limit (e.g. --big-fd-limit).



That's my two cents. ;-)



--

Marcelo Coelho


Previous Comments:

[2009-07-23 22:48:03] j...@php.net

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

------------
[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] j...@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] tony2...@php.net

>The system is always returning EINPROGRESS.

Why is that PHP problem?

Fix your system instead.




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/bug.php?id=39803


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


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

2009-07-13 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
-Status:   No Feedback
+Status:   Open
 Bug Type: Sockets related
-Operating System: FreeBSD 5.3
+Operating System: FreeBSD 6.2
-PHP Version:  4.4.4
+PHP Version:  4.4.9
 New Comment:

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


Previous Comments:


[2007-07-19 01:00:03] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2007-07-11 12:40:39] j...@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] tony2...@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



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

2007-05-03 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
-Status:   No Feedback
+Status:   Open
 Bug Type: Sockets related
 Operating System: FreeBSD 5.3
 PHP Version:  4.4.4
 New Comment:

This is a PHP problem.

I have both CGI and Apache Module.

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


Previous Comments:


[2007-04-13 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2007-04-05 19:59:08] [EMAIL PROTECTED]

>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.



[2006-12-26 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2006-12-18 17:11:42] [EMAIL PROTECTED]

I really doubt I can reproduce or investigate it with only an FTP
account. When I said "account on this machine" I meant SSH access.



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


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

2007-04-05 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
-Status:   No Feedback
+Status:   Open
 Bug Type: Sockets related
 Operating System: FreeBSD 5.3
 PHP Version:  4.4.4
 New Comment:

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.


Previous Comments:


[2006-12-26 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2006-12-18 17:11:42] [EMAIL PROTECTED]

I really doubt I can reproduce or investigate it with only an FTP
account. When I said "account on this machine" I meant SSH access.



[2006-12-18 17:03:42] marcelo at tpn dot com dot br

Someone else can help me to fix this bug?



[2006-12-14 13:28:18] marcelo at tpn dot com dot br

Did you receive my e-mail?



[2006-12-13 14:30:38] marcelo at tpn dot com dot br

Sent to [EMAIL PROTECTED]



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


#39803 [Opn]: fsockopen() bug

2006-12-18 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
 Status:   Open
 Bug Type: Sockets related
 Operating System: FreeBSD 5.3
 PHP Version:  4.4.4
 New Comment:

Someone else can help me to fix this bug?


Previous Comments:


[2006-12-14 13:28:18] marcelo at tpn dot com dot br

Did you receive my e-mail?



[2006-12-13 14:30:38] marcelo at tpn dot com dot br

Sent to [EMAIL PROTECTED]



[2006-12-13 13:27:31] [EMAIL PROTECTED]

Sure.



[2006-12-13 13:13:10] marcelo at tpn dot com dot br

Can I send the account information to [EMAIL PROTECTED] for privacy?



[2006-12-13 10:09:48] [EMAIL PROTECTED]

Please provide more information on how to reproduce it or an account on
this machine.



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


#39803 [Opn]: fsockopen() bug

2006-12-14 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
 Status:   Open
 Bug Type: Sockets related
 Operating System: FreeBSD 5.3
 PHP Version:  4.4.4
 New Comment:

Did you receive my e-mail?


Previous Comments:


[2006-12-13 14:30:38] marcelo at tpn dot com dot br

Sent to [EMAIL PROTECTED]



[2006-12-13 13:27:31] [EMAIL PROTECTED]

Sure.



[2006-12-13 13:13:10] marcelo at tpn dot com dot br

Can I send the account information to [EMAIL PROTECTED] for privacy?



[2006-12-13 10:09:48] [EMAIL PROTECTED]

Please provide more information on how to reproduce it or an account on
this machine.



[2006-12-12 17:43:15] marcelo at tpn dot com dot br

I'm using PHP 4.4.4, not PHP 5.

network.c has two pieces that uses EINPROGRESS:

if ((n = connect(sockfd, addr, addrlen)) < 0) {
  if (errno != EINPROGRESS) {
return -1;
  }
}

if (ret == -1 && error == EINPROGRESS) {
  error = 0;
  goto retry_again;
}

Where should I put "if (error == EINPROGRESS) error = 0;" ?



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


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

2006-12-13 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
-Status:   Feedback
+Status:   Open
 Bug Type: Sockets related
 Operating System: FreeBSD 5.3
 PHP Version:  4.4.4
 New Comment:

Sent to [EMAIL PROTECTED]


Previous Comments:


[2006-12-13 13:27:31] [EMAIL PROTECTED]

Sure.



[2006-12-13 13:13:10] marcelo at tpn dot com dot br

Can I send the account information to [EMAIL PROTECTED] for privacy?



[2006-12-13 10:09:48] [EMAIL PROTECTED]

Please provide more information on how to reproduce it or an account on
this machine.



[2006-12-12 17:43:15] marcelo at tpn dot com dot br

I'm using PHP 4.4.4, not PHP 5.

network.c has two pieces that uses EINPROGRESS:

if ((n = connect(sockfd, addr, addrlen)) < 0) {
  if (errno != EINPROGRESS) {
return -1;
  }
}

if (ret == -1 && error == EINPROGRESS) {
  error = 0;
  goto retry_again;
}

Where should I put "if (error == EINPROGRESS) error = 0;" ?



[2006-12-12 16:32:18] [EMAIL PROTECTED]

Does the fix from http://bugs.php.net/bug.php?id=38568 work for you?



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


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

2006-12-13 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
-Status:   Feedback
+Status:   Open
 Bug Type: Sockets related
 Operating System: FreeBSD 5.3
 PHP Version:  4.4.4
 New Comment:

Can I send the account information to [EMAIL PROTECTED] for privacy?


Previous Comments:


[2006-12-13 10:09:48] [EMAIL PROTECTED]

Please provide more information on how to reproduce it or an account on
this machine.



[2006-12-12 17:43:15] marcelo at tpn dot com dot br

I'm using PHP 4.4.4, not PHP 5.

network.c has two pieces that uses EINPROGRESS:

if ((n = connect(sockfd, addr, addrlen)) < 0) {
  if (errno != EINPROGRESS) {
return -1;
  }
}

if (ret == -1 && error == EINPROGRESS) {
  error = 0;
  goto retry_again;
}

Where should I put "if (error == EINPROGRESS) error = 0;" ?



[2006-12-12 16:32:18] [EMAIL PROTECTED]

Does the fix from http://bugs.php.net/bug.php?id=38568 work for you?

----

[2006-12-12 16:19:34] marcelo at tpn dot com dot br

Yes, I've disabled my firewall. I'm sure that isn't a firewall
problem.

The problem doesn't depend the hostname or IP address. I got the same
error trying to connect to localhost, 127.0.0.1, 10.0.0.9 (internal
network)

This also didn't work:

 

This also didn't work (connect to an internal server):

 

But I can use socket_connect without problems. Example:



I also can use "fetch" utility to get data from these servers. I also
wrote a PERL script, and it worked.

I also type in prompt "telnet 127.0.0.1 80", "telnet www.google.com
80", the connection was sucessfull.

Only while I'm using fsockopen I got errors, always error returns 36
and error string returns "Operation now in progress".



[2006-12-12 15:42:40] [EMAIL PROTECTED]

>I believe that if the code is the same, should produce the
> same result, else there is a bug.
No, it most likely means that it has nothing to do with this code and
you're looking for a problem in wrong place.
Have you already disabled your firewall?



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


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

2006-12-12 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
-Status:   Feedback
+Status:   Open
 Bug Type: Sockets related
 Operating System: FreeBSD 5.3
 PHP Version:  4.4.4
 New Comment:

I'm using PHP 4.4.4, not PHP 5.

network.c has two pieces that uses EINPROGRESS:

if ((n = connect(sockfd, addr, addrlen)) < 0) {
  if (errno != EINPROGRESS) {
return -1;
  }
}

if (ret == -1 && error == EINPROGRESS) {
  error = 0;
  goto retry_again;
}

Where should I put "if (error == EINPROGRESS) error = 0;" ?


Previous Comments:


[2006-12-12 16:32:18] [EMAIL PROTECTED]

Does the fix from http://bugs.php.net/bug.php?id=38568 work for you?

----

[2006-12-12 16:19:34] marcelo at tpn dot com dot br

Yes, I've disabled my firewall. I'm sure that isn't a firewall
problem.

The problem doesn't depend the hostname or IP address. I got the same
error trying to connect to localhost, 127.0.0.1, 10.0.0.9 (internal
network)

This also didn't work:

 

This also didn't work (connect to an internal server):

 

But I can use socket_connect without problems. Example:



I also can use "fetch" utility to get data from these servers. I also
wrote a PERL script, and it worked.

I also type in prompt "telnet 127.0.0.1 80", "telnet www.google.com
80", the connection was sucessfull.

Only while I'm using fsockopen I got errors, always error returns 36
and error string returns "Operation now in progress".



[2006-12-12 15:42:40] [EMAIL PROTECTED]

>I believe that if the code is the same, should produce the
> same result, else there is a bug.
No, it most likely means that it has nothing to do with this code and
you're looking for a problem in wrong place.
Have you already disabled your firewall?

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

[2006-12-12 15:22:51] marcelo at tpn dot com dot br

I don't understand.

If worked with CGI but not as an Apache Module, why you don't consider
this a bug?

I believe that if the code is the same, should produce the same result,
else there is a bug.



[2006-12-12 14:22:58] [EMAIL PROTECTED]

Both CGI and Apache module share the same code for fsockopen(), so
fsockopen() doesn't depend on the Server API used.



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


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

2006-12-12 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
-Status:   Feedback
+Status:   Open
 Bug Type: Sockets related
 Operating System: FreeBSD 5.3
 PHP Version:  4.4.4
 New Comment:

Yes, I've disabled my firewall. I'm sure that isn't a firewall
problem.

The problem doesn't depend the hostname or IP address. I got the same
error trying to connect to localhost, 127.0.0.1, 10.0.0.9 (internal
network)

This also didn't work:

 

This also didn't work (connect to an internal server):

 

But I can use socket_connect without problems. Example:



I also can use "fetch" utility to get data from these servers. I also
wrote a PERL script, and it worked.

I also type in prompt "telnet 127.0.0.1 80", "telnet www.google.com
80", the connection was sucessfull.

Only while I'm using fsockopen I got errors, always error returns 36
and error string returns "Operation now in progress".


Previous Comments:


[2006-12-12 15:42:40] [EMAIL PROTECTED]

>I believe that if the code is the same, should produce the
> same result, else there is a bug.
No, it most likely means that it has nothing to do with this code and
you're looking for a problem in wrong place.
Have you already disabled your firewall?

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

[2006-12-12 15:22:51] marcelo at tpn dot com dot br

I don't understand.

If worked with CGI but not as an Apache Module, why you don't consider
this a bug?

I believe that if the code is the same, should produce the same result,
else there is a bug.



[2006-12-12 14:22:58] [EMAIL PROTECTED]

Both CGI and Apache module share the same code for fsockopen(), so
fsockopen() doesn't depend on the Server API used.

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

[2006-12-12 14:10:09] marcelo at tpn dot com dot br

More details:

Using php-cgi, fsockopen works correctly.

The build date of the PHP (Apache Module) and PHP-CGI is the same.

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

[2006-12-12 12:58:52] marcelo at tpn dot com dot br

Why socket_create() works and fsockopen() doesn't?

If there is some wrong outside PHP, why just fsockopen fails?



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


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

2006-12-12 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
-Status:   Bogus
+Status:   Open
 Bug Type: Sockets related
 Operating System: FreeBSD 5.3
 PHP Version:  4.4.4
 New Comment:

I don't understand.

If worked with CGI but not as an Apache Module, why you don't consider
this a bug?

I believe that if the code is the same, should produce the same result,
else there is a bug.


Previous Comments:


[2006-12-12 14:22:58] [EMAIL PROTECTED]

Both CGI and Apache module share the same code for fsockopen(), so
fsockopen() doesn't depend on the Server API used.



[2006-12-12 14:10:09] marcelo at tpn dot com dot br

More details:

Using php-cgi, fsockopen works correctly.

The build date of the PHP (Apache Module) and PHP-CGI is the same.



[2006-12-12 12:58:52] marcelo at tpn dot com dot br

Why socket_create() works and fsockopen() doesn't?

If there is some wrong outside PHP, why just fsockopen fails?



[2006-12-12 07:32:24] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Please consult your system administrator on how to disable the
firewall.



[2006-12-12 01:10:21] marcelo at tpn dot com dot br

Description:

The function fsockopen() is always failing and returning -1.

I already tried with differents hostnames and IP address.

I'm using FreeBSD 5.3.

Reproduce code:
---
 

Expected result:

$fp should be TRUE...

Actual result:
--
But...

$fp is returning FALSE
$errno is returning 36
$errstr is returning "Operation now in progress"





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


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

2006-12-12 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
-Status:   Bogus
+Status:   Open
 Bug Type: Sockets related
 Operating System: FreeBSD 5.3
 PHP Version:  4.4.4
 New Comment:

More details:

Using php-cgi, fsockopen works correctly.

The build date of the PHP (Apache Module) and PHP-CGI is the same.


Previous Comments:


[2006-12-12 12:58:52] marcelo at tpn dot com dot br

Why socket_create() works and fsockopen() doesn't?

If there is some wrong outside PHP, why just fsockopen fails?



[2006-12-12 07:32:24] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Please consult your system administrator on how to disable the
firewall.



[2006-12-12 01:10:21] marcelo at tpn dot com dot br

Description:

The function fsockopen() is always failing and returning -1.

I already tried with differents hostnames and IP address.

I'm using FreeBSD 5.3.

Reproduce code:
---
 

Expected result:

$fp should be TRUE...

Actual result:
--
But...

$fp is returning FALSE
$errno is returning 36
$errstr is returning "Operation now in progress"





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


#39803 [Bgs]: fsockopen() bug

2006-12-12 Thread marcelo at tpn dot com dot br
 ID:   39803
 User updated by:  marcelo at tpn dot com dot br
 Reported By:  marcelo at tpn dot com dot br
 Status:   Bogus
 Bug Type: Sockets related
 Operating System: FreeBSD 5.3
 PHP Version:  4.4.4
 New Comment:

Why socket_create() works and fsockopen() doesn't?

If there is some wrong outside PHP, why just fsockopen fails?


Previous Comments:


[2006-12-12 07:32:24] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Please consult your system administrator on how to disable the
firewall.



[2006-12-12 01:10:21] marcelo at tpn dot com dot br

Description:

The function fsockopen() is always failing and returning -1.

I already tried with differents hostnames and IP address.

I'm using FreeBSD 5.3.

Reproduce code:
---
 

Expected result:

$fp should be TRUE...

Actual result:
--
But...

$fp is returning FALSE
$errno is returning 36
$errstr is returning "Operation now in progress"





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


#39803 [NEW]: fsockopen() bug

2006-12-11 Thread marcelo at tpn dot com dot br
From: marcelo at tpn dot com dot br
Operating system: FreeBSD 5.3
PHP version:  4.4.4
PHP Bug Type: Sockets related
Bug description:  fsockopen() bug

Description:

The function fsockopen() is always failing and returning -1.

I already tried with differents hostnames and IP address.

I'm using FreeBSD 5.3.

Reproduce code:
---
 

Expected result:

$fp should be TRUE...

Actual result:
--
But...

$fp is returning FALSE
$errno is returning 36
$errstr is returning "Operation now in progress"

-- 
Edit bug report at http://bugs.php.net/?id=39803&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39803&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39803&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39803&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39803&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=39803&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=39803&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=39803&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=39803&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=39803&r=support
Expected behavior:http://bugs.php.net/fix.php?id=39803&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=39803&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=39803&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39803&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39803&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39803&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=39803&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=39803&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39803&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=39803&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=39803&r=mysqlcfg