ID:               48837
 Comment by:       jd at cpanel dot net
 Reported By:      ram...@php.net
 Status:           Feedback
 Bug Type:         cURL related
 Operating System: Ubuntu 9.04
 PHP Version:      5.3.0
 Assigned To:      fb-req-jani
 New Comment:

Probably the same issue as:

http://bugs.php.net/bug.php?id=48603

It looks like when safe_mode or open_basedir are enabled and php is
compiled with curlwrappers, curlwrappers registers the curl extension to
handle file streams and then php_curl_option_url() in interface.c tells
libcurl not to handle file requests.

The "URL using bad/illegal format or missing URL" error message comes
from libcurl itself.


Previous Comments:
------------------------------------------------------------------------

[2009-07-07 18:36:01] ram...@php.net

Oddly enough, I cannot reproduce this now in 5.3.0 or 5.2.10, though I
was having this problem the other day. When I build either version with
--with-curlwrappers and use the same code I used the other day, it
appears to work fine now. As far as I know, nothing else on the system
has changed in the meantime.

I guess you can feel free to bogus this issue, since I can't reproduce
it.

------------------------------------------------------------------------

[2009-07-07 17:17:45] j...@php.net

Does this happen with PHP 5.2.10?

------------------------------------------------------------------------

[2009-07-07 16:59:06] ram...@php.net

Description:
------------
I received the error "URL using bad/illegal format or missing URL" on
some require_once() calls when PHP was built with --with-curlwrappers.

Building PHP without --with-curlwrappers fixed the problem.

Reproduce code:
---------------
I was using a vanilla install of Zend Framework when I noticed the
problem.

Expected result:
----------------
The file did exist at the location being required, and the include_path
was correct, so I expected the file to be required.

Actual result:
--------------
Warning: require_once(): URL using bad/illegal format or missing URL in
/home/ramsey/dev/zftest/lib/Zend/Loader/PluginLoader.php on line 396
Warning:
require_once(/home/ramsey/dev/zftest/lib/Zend/Loader/PluginLoader/Exception.php):
failed to open stream: operation failed in
/home/ramsey/dev/zftest/lib/Zend/Loader/PluginLoader.php on line 396
Fatal error: require_once(): Failed opening required
'Zend/Loader/PluginLoader/Exception.php'
(include_path='/home/ramsey/dev/zftest/lib') in
/home/ramsey/dev/zftest/lib/Zend/Loader/PluginLoader.php on line 396


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48837&edit=1

Reply via email to