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

ID: 18042
Updated by: hostmaster@shupp.org
Reported By: brion at pobox dot com
Summary: Unused HTTP_Request library is still included, throws
5.3 deprecation warnings
-Status: Open
+Status: Closed
Type: Bug
Package: Services_oEmbed
Operating System: any
Package Version: 0.1.0
PHP Version: 5.3.3
-Assigned To:
+Assigned To: shupp
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: shupp
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pear.php.net/get/




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

[2010-11-10 23:15:24] brion

Description:
------------
We use Services_oEmbed in StatusNet to pull data on referenced media.
I've found that under PHP 5.3.3, the HTTP_Request library which
Services_oEmbed references throws deprecation warnings when it gets
loaded.

The actual use of HTTP_Request was removed from Services_oEmbed in r69,
replaced by code using CURL, so it appears to be perfectly safe to
simply remove the require_once reference from Services/oEmbed.php.


Test script:
---------------
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);

require_once 'Services/oEmbed.php';
echo "ok.\n";


Expected result:
----------------
No errors due to obsolete libraries still being included. Should output
only "ok."

Actual result:
--------------
PHP Deprecated: Assigning the return value of new by reference is
deprecated in
/Library/WebServer/Documents/mublog/extlib/HTTP/Request.php on line 412

Deprecated: Assigning the return value of new by reference is deprecated
in /Library/WebServer/Documents/mublog/extlib/HTTP/Request.php on line
412
PHP Deprecated: Assigning the return value of new by reference is
deprecated in
/Library/WebServer/Documents/mublog/extlib/HTTP/Request.php on line 736

Deprecated: Assigning the return value of new by reference is deprecated
in /Library/WebServer/Documents/mublog/extlib/HTTP/Request.php on line
736
PHP Deprecated: Assigning the return value of new by reference is
deprecated in
/Library/WebServer/Documents/mublog/extlib/HTTP/Request.php on line 749

Deprecated: Assigning the return value of new by reference is deprecated
in /Library/WebServer/Documents/mublog/extlib/HTTP/Request.php on line
749
PHP Deprecated: Assigning the return value of new by reference is
deprecated in
/Library/WebServer/Documents/mublog/extlib/HTTP/Request.php on line 794

Deprecated: Assigning the return value of new by reference is deprecated
in /Library/WebServer/Documents/mublog/extlib/HTTP/Request.php on line
794
ok.

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 4, '11 at 2:05a
activeJan 4, '11 at 2:05a
posts1
users1
websitepear.php.net

1 user in discussion

Hostmaster: 1 post

People

Translate

site design / logo © 2022 Grokbase