Re: PHP 4.0 Bug #2039: set_socket_blocking causes the script to stall
| From: | Sascha Schumann | Date: | Thu, 12 Aug 1999 05:36:36 +0000 |
| Subject: | Re: PHP 4.0 Bug #2039: set_socket_blocking causes the script to stall | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-9777@lists.php.net to get a copy of this message | ||
On Thu, Aug 12, 1999 at 03:35:41AM -0000, iliaa@home.com wrote:
> From: iliaa@home.com
> Operating system: FreeBSD 3.2
> PHP version: 4.0 Beta 2
> PHP Bug Type: Misbehaving function
> Bug description: set_socket_blocking causes the script to stall
>
> The script stalls on the set_socket_blocking function, if the function is commented out or
> removed the script works perfectly in php 4.0 Beta 2. This script works entirely in
> php 3.0.8 versions an higher.
>
> $fp = fsockopen ( $mail_server, 25 );
> if ($fp) {
> set_socket_blocking ( $fp, false );
> echo "works";
> fputs ( $fp, "QUIT\n" );
> }
The code in 4.0b2 and 3.0.11+ is the same, so you might try your
script with the latest php3 release first and post the results
afterwards.
--
Regards,
Sascha Schumann
Consultant