php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39513 URL file-access is disabled when allow_url_fopen = On
Submitted: 2006-11-14 18:39 UTC Modified: 2006-11-14 18:49 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: scott at html dot info Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.2.0 OS: RHEL 4.4 64-bit
Private report: No CVE-ID: None
 [2006-11-14 18:39 UTC] scott at html dot info
Description:
------------
allow_url_fopen is On in php.ini, phpinfo(); shows it as On, but scripts are broke since the 5.1 -> 5.2 upgrade.

Reproduce code:
---------------
<?php
include "http://www.google.com";
?>

Actual result:
--------------
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/.../public_html/test1.php on line 2

Warning: include(http://www.google.com) [function.include]: failed to open stream: no suitable wrapper could be found in /home/.../public_html/test1.php on line 2

Warning: include() [function.include]: Failed opening 'http://www.google.com' for inclusion (include_path='.:/usr/local/lib/php') in /home/.../public_html/test1.php on line 2

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-14 18:47 UTC] tony2001@php.net
Set allow_url_include to On.
See more details in README.UPDATE_5_2.
 [2006-11-14 18:49 UTC] scott at html dot info
Oh thanks, that I missed. I looked at the docs but didn't see anything.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC