Edit report at http://pear.php.net/bugs/bug.php?id=18758&edit=1
ID: 18758
Updated by: [email protected]
Reported By: dev at philippgampe dot info
Summary: file public-suffix-list.php is missing
Status: Open
Type: Bug
Package: HTTP_Request2
Operating System: Fedora (x86_64)
Package Version: 2.0.0RC1
PHP Version: 5.3.6
Roadmap Versions:
New Comment:
Odd:
http://svn.php.net/viewvc/pear/packages/HTTP_Request2/trunk/package.xml?
view=markup#l128 makes me think that data/* is more right than not.
Philipp; can you do a
$ pear config-show | grep data_dir
Previous Comments:
------------------------------------------------------------------------
[2011-08-25 00:39:58] pgampe
Description:
------------
If I use $request->setCookieJar(TRUE) and call an URL, this
throws a warning:
PHP Warning:
include_once(/usr/share/pear/data/HTTP_Request2/public-
suffix-list.php) [function.include-once]: failed to open stream:
No such file or directory in myphpfile.
First of all, /usr/share/pear/data/ is the wrong dir. "data/"
should be left out. Second, this file does not exist at all.
Solution would be rather simple, just change the second
default constructor value to FALSE.
Test script:
---------------
$request = new HTTP_Request2("someGoodUrl", "GET");
$request->setCookieJar(TRUE);
$response = $request->send();
print_r($response-getBody());
Expected result:
----------------
No warnings. Content of URL.
Actual result:
--------------
PHP Warning:
include_once(/usr/share/pear/data/HTTP_Request2/public-suffix-
list.php) [function.include-once]: failed to open stream: No such
file or directory in myphpfile.
And of course the content is displayed.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18758&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.