#48837 [Fbk->Bgs]: Building --with-curlwrappers can cause bad/illegal format or missing URL errors
ID: 48837
Updated by: jani@php.net
Reported By: ramsey@php.net
-Status: Feedback
+Status: Bogus
Bug Type: cURL related
Operating System: Ubuntu 9.04
PHP Version: 5.3.0
Assigned To: fb-req-jani
New Comment:
As requested.
Previous Comments:
------------------------------------------------------------------------
[2009-07-08 18:15:00] jd at cpanel dot net
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.
------------------------------------------------------------------------
[2009-07-07 18:36:01] ramsey@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] jani@php.net
Does this happen with PHP 5.2.10?
------------------------------------------------------------------------
[2009-07-07 16:59:06] ramsey@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
Thread (5 messages)