FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18758&edit=1

ID: 18758
Updated by: daniel.oconnor@gmail.com
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.

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

Search Discussions

  • Borz_off at Aug 25, 2011 at 5:15 am
    Edit report at http://pear.php.net/bugs/bug.php?id=18758&edit=1

    ID: 18758
    Updated by: borz_off@cs.msu.su
    Reported By: dev at philippgampe dot info
    Summary: file public-suffix-list.php is missing
    -Status: Open
    +Status: Bogus
    Type: Bug
    Package: HTTP_Request2
    Operating System: Fedora (x86_64)
    Package Version: 2.0.0RC1
    PHP Version: 5.3.6
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Bogus
    You should install the package with pear installer. Most probably you
    did something else.


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

    [2011-08-25 07:12:56] doconnor

    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

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

    [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.

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 25, '11 at 5:12a
activeAug 25, '11 at 5:15a
posts2
users2
websitepear.php.net

2 users in discussion

Borz_off: 1 post Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase