[PHP-DEV] PHP 4.0 Bug #7880: PHP_URL_FOPEN doesn't work From: Alan <email protected>
Date: 11/19/00

From: Alan <email protected>
Operating system: Solaris 8
PHP version: 4.0.3pl1
PHP Bug Type: *URL Functions
Bug description: PHP_URL_FOPEN doesn't work

<?
    $url = "http://www.php.net/index.html";
    $fp = file($url);
    $if(!$fp) {
        echo "Cannot open url: $url";
    } else {
        echo "URL Opened.\n";
    }
?>

Yields:

Warning: file("http://www.php.net/index.html") - Bad file number in /home/www/htdocs/filetest.php on line 3
Cannot open url: http://www.php.net/index.html

Configure:
'./configure'
'--prefix=/opt/PHPphp/v4.0.3pl1/sparc-sun-solaris2.8'
'--exec-prefix=/opt/PHPphp/v4.0.3pl1/sparc-sun-solaris2.8'
'--localstatedir=/var/run'
'--with-apxs=/usr/local/bin/apxs'
'--with-config-file-path=/opt/PHPphp/v4.0.3pl1/sparc-sun-solaris2.8/etc'
'--enable-magic-quotes'
'--disable-pear'
'--with-gdbm'
'--with-zlib'
'--enable-ftp'
'--with-kerberos'
'--with-imap'
'--with-java=/usr/java'
'--with-ldap=/usr/local'
'--with-mysql=/usr/local'
'--enable-trans-sid'
'--enable-yp'
'--enable-memory-limit'
'--enable-track-vars'
'--enable-url-fopen-wrapper'

-- 
Edit Bug report at: http://bugs.php.net/?id=7880&edit=1

-- 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>