fsockopen & new cPanel Buildapache

Ever since the recompile of PHP to use --with-mysql=/usr with the new buildapache from cPanel any call to fsockopen() in PHP is no longer working. It will cause a seg. fault in the child process that tries to serve the request. Is anyone else experiencing this issue? You can use the following code to test:

PHP Code:
<?php
$fp 
fsockopen ("www.google.com"80$errno$errstr30);
if (!
$fp) {
    echo 
"$errstr ($errno)<br>\n";
} else {
    
fputs ($fp"GET / HTTP/1.0\r\nHost: [url]www.google.com\r\n\r\n[/url]");
    while (!
feof($fp)) {
        echo 
fgets ($fp,128);
    }
    
fclose ($fp);
}
?>

 

 

 

 

Top