PHP 4.0 Bug #7880: PHP_URL_FOPEN doesn't work

From: Date: Sun, 19 Nov 2000 20:37:45 +0000
Subject: PHP 4.0 Bug #7880: PHP_URL_FOPEN doesn't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-38516@lists.php.net to get a copy of this message
From: Alan@Halachmi.net 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

« previous php.dev (#38516) next »