Date: 11/20/00
- Next message: jason <email protected>: "[PHP-DEV] PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work"
- Previous message: Jason Greene: "Re: [PHP-DEV] PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work"
- Next in thread: jason <email protected>: "[PHP-DEV] PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 7880
User Update by: Alan <email protected>
Status: Assigned
Bug Type: *URL Functions
Description: PHP_URL_FOPEN doesn't work
I compiled the CGI version of 4.0.3pl1 and the scripts noted in this bug DOES run in the CGI version.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-20 02:38:06] jason <email protected>
Sorry, I was wrong, the ini directive did not make 4.0.3pl1
Ill take a look into this.
-Jason
---------------------------------------------------------------------------
[2000-11-20 02:02:46] Alan <email protected>
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 <email protected>
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 <email protected>
<?
$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
-- 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>
- Next message: jason <email protected>: "[PHP-DEV] PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work"
- Previous message: Jason Greene: "Re: [PHP-DEV] PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work"
- Next in thread: jason <email protected>: "[PHP-DEV] PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

