[PHP-DEV] Bug #12360 Updated: fsockopen timeout doesn't work

2001-08-06 Thread jeroen

ID: 12360
Updated by: jeroen
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: Sockets related
Operating System: RedHat 6.2
PHP Version: 4.0.6
New Comment:

[EMAIL PROTECTED]:
 I have not looked into this a lot so I might be mistaken, but it
 seems that the problem is that fcntl.h is not defined in main/network.c
 
 If I add the following lines to main/network.c it seems that timeout
 works again:
 
 #ifndef _FCNTL_H
 #include fcntl.h
 #endif
 
 I'm running Debian 2.2r3 with PHP 4.0.6
 
 Regards,
 Michael

Previous Comments:


[2001-07-25 09:34:30] [EMAIL PROTECTED]

I have reproduced this error.

When requesting an valid address, but a port that the server
does not listen on, the script hangs.

(*Andy*)




[2001-07-25 09:30:06] [EMAIL PROTECTED]

or at least it doesn't time out until after a very long time



[2001-07-25 09:29:17] [EMAIL PROTECTED]

it never times out...



[2001-07-25 09:24:26] [EMAIL PROTECTED]

are you saying that is eventually times out (but not a the
number you specified) or are you saying it never times out.




[2001-07-25 07:08:38] [EMAIL PROTECTED]

When I try to connect to a port on a server that isn't reachable or the packets are 
dropped the timeout doesn't work...

This worked when I was using PHP 4.0.4pl1

#!/usr/local/bin/php
?php

echo opening socket... \n;
fsockopen(microsoft.com, 12, $errno, $errstr, 5.0);
echo $errno\n$errstr\n;
echo done!\n;

?

I have also tried this on a Red Hat 7.1 machine and it's just the samee there...


My configure line: './configure' '--with-zlib-dir=/usr/lib' 
'--with-png-dir=/usr/local/lib' '--with-gd=/usr/local' '--with-ttf=/software/freetype' 
'--with-apxs=/software/web/bin/apxs' '--with-mysql=/software/mysql/'





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12360 Updated: fsockopen timeout doesn't work

2001-07-25 Thread andy

ID: 12360
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Sockets related
Operating System: RedHat 6.2
PHP Version: 4.0.6
New Comment:

are you saying that is eventually times out (but not a the
number you specified) or are you saying it never times out.


Previous Comments:


[2001-07-25 07:08:38] [EMAIL PROTECTED]

When I try to connect to a port on a server that isn't reachable or the packets are 
dropped the timeout doesn't work...

This worked when I was using PHP 4.0.4pl1

#!/usr/local/bin/php
?php

echo opening socket... \n;
fsockopen(microsoft.com, 12, $errno, $errstr, 5.0);
echo $errno\n$errstr\n;
echo done!\n;

?

I have also tried this on a Red Hat 7.1 machine and it's just the samee there...


My configure line: './configure' '--with-zlib-dir=/usr/lib' 
'--with-png-dir=/usr/local/lib' '--with-gd=/usr/local' '--with-ttf=/software/freetype' 
'--with-apxs=/software/web/bin/apxs' '--with-mysql=/software/mysql/'





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12360 Updated: fsockopen timeout doesn't work

2001-07-25 Thread hordur

ID: 12360
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Sockets related
Operating System: RedHat 6.2
PHP Version: 4.0.6
New Comment:

it never times out...

Previous Comments:


[2001-07-25 09:24:26] [EMAIL PROTECTED]

are you saying that is eventually times out (but not a the
number you specified) or are you saying it never times out.




[2001-07-25 07:08:38] [EMAIL PROTECTED]

When I try to connect to a port on a server that isn't reachable or the packets are 
dropped the timeout doesn't work...

This worked when I was using PHP 4.0.4pl1

#!/usr/local/bin/php
?php

echo opening socket... \n;
fsockopen(microsoft.com, 12, $errno, $errstr, 5.0);
echo $errno\n$errstr\n;
echo done!\n;

?

I have also tried this on a Red Hat 7.1 machine and it's just the samee there...


My configure line: './configure' '--with-zlib-dir=/usr/lib' 
'--with-png-dir=/usr/local/lib' '--with-gd=/usr/local' '--with-ttf=/software/freetype' 
'--with-apxs=/software/web/bin/apxs' '--with-mysql=/software/mysql/'





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12360 Updated: fsockopen timeout doesn't work

2001-07-25 Thread hordur

ID: 12360
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Sockets related
Operating System: RedHat 6.2
PHP Version: 4.0.6
New Comment:

or at least it doesn't time out until after a very long time

Previous Comments:


[2001-07-25 09:29:17] [EMAIL PROTECTED]

it never times out...



[2001-07-25 09:24:26] [EMAIL PROTECTED]

are you saying that is eventually times out (but not a the
number you specified) or are you saying it never times out.




[2001-07-25 07:08:38] [EMAIL PROTECTED]

When I try to connect to a port on a server that isn't reachable or the packets are 
dropped the timeout doesn't work...

This worked when I was using PHP 4.0.4pl1

#!/usr/local/bin/php
?php

echo opening socket... \n;
fsockopen(microsoft.com, 12, $errno, $errstr, 5.0);
echo $errno\n$errstr\n;
echo done!\n;

?

I have also tried this on a Red Hat 7.1 machine and it's just the samee there...


My configure line: './configure' '--with-zlib-dir=/usr/lib' 
'--with-png-dir=/usr/local/lib' '--with-gd=/usr/local' '--with-ttf=/software/freetype' 
'--with-apxs=/software/web/bin/apxs' '--with-mysql=/software/mysql/'





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12360 Updated: fsockopen timeout doesn't work

2001-07-25 Thread andy

ID: 12360
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Analyzed
Bug Type: Sockets related
Operating System: RedHat 6.2
PHP Version: 4.0.6
New Comment:

I have reproduced this error.

When requesting an valid address, but a port that the server
does not listen on, the script hangs.

(*Andy*)


Previous Comments:


[2001-07-25 09:30:06] [EMAIL PROTECTED]

or at least it doesn't time out until after a very long time



[2001-07-25 09:29:17] [EMAIL PROTECTED]

it never times out...



[2001-07-25 09:24:26] [EMAIL PROTECTED]

are you saying that is eventually times out (but not a the
number you specified) or are you saying it never times out.




[2001-07-25 07:08:38] [EMAIL PROTECTED]

When I try to connect to a port on a server that isn't reachable or the packets are 
dropped the timeout doesn't work...

This worked when I was using PHP 4.0.4pl1

#!/usr/local/bin/php
?php

echo opening socket... \n;
fsockopen(microsoft.com, 12, $errno, $errstr, 5.0);
echo $errno\n$errstr\n;
echo done!\n;

?

I have also tried this on a Red Hat 7.1 machine and it's just the samee there...


My configure line: './configure' '--with-zlib-dir=/usr/lib' 
'--with-png-dir=/usr/local/lib' '--with-gd=/usr/local' '--with-ttf=/software/freetype' 
'--with-apxs=/software/web/bin/apxs' '--with-mysql=/software/mysql/'





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]