php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2039 set_socket_blocking causes the script to stall
Submitted: 1999-08-11 23:35 UTC Modified: 1999-08-29 11:25 UTC
From: iliaa at home dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 2 OS: FreeBSD 3.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: iliaa at home dot com
New email:
PHP Version: OS:

 

 [1999-08-11 23:35 UTC] iliaa at home dot com
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" ); 
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-17 14:09 UTC] sas at cvs dot php dot net
Works perfectly for me with the latest CVS. Could you send me a backtrace of the process where it got stuck?
 [1999-08-29 11:25 UTC] sas at cvs dot php dot net
fixed in cvs
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jul 05 07:00:01 2026 UTC