PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work
| From: | jason@php.net | Date: | Mon, 20 Nov 2000 07:38:06 +0000 |
| Subject: | PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38543@lists.php.net to get a copy of this message | ||
ID: 7880
Updated by: jason
Reported By: Alan@Halachmi.net
Status: Assigned
Bug Type: *URL Functions
Assigned To: jason@php.net
Comments:
Sorry, I was wrong, the ini directive did not make 4.0.3pl1
Ill take a look into this.
-Jason
Previous Comments:
---------------------------------------------------------------------------
[2000-11-20 02:02:46] Alan@Halachmi.net
I have added the following line to my php.ini file, as it was not included
in the php.ini-dist for 4.0.3pl1:
allow_url_fopen = On;
This did not change the behavior or the error. I ran a truss to ensure
that the apxs was loaded the correct php.ini file and the correct
libs. From the output of truss, I am certain that the correct DSO and
php.ini are being read.
---------------------------------------------------------------------------
[2000-11-20 01:44:50] jason@php.net
As of 4.0.3, url_fopen is ini enabled not compile time enabled. Verify that youe php.ini contains
"allow_url_fopen = On"
I have tested this across Solaris 2.6-2.8 and it works fine.
I'm marking this as bogus, reopen if you still
have problems.
-Jason
---------------------------------------------------------------------------
[2000-11-19 15:37:45] Alan@Halachmi.net
<?
$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'
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7880