Re: [PHP-DEV] PHP 4.0 Bug #2039: set_socket_blocking causes the script to stall From: Sascha Schumann (sascha <email protected>)
Date: 08/12/99

On Thu, Aug 12, 1999 at 03:35:41AM -0000, iliaa <email protected> wrote:
> From: iliaa <email protected>
> 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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>