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

ID: 17418
Updated by: daniel.oconnor@gmail.com
Reported By: eaf at oyatel dot com
Summary: Deprecated warnings in PHP 5.3
-Status: Open
+Status: Wont fix
Type: Bug
Package: HTTP_Download
Operating System: CentOS 5.3
Package Version: 1.1.3
PHP Version: 5.3.2
Roadmap Versions:
New Comment:

-Status: Open
+Status: Wont fix
Hi Even, this one is a wontfix for HTTP_Download. However -
https://github.com/pear/HTTP_Download2 has no limitations around BC, and
this
should already be fixed there. Feel free to fork and contribute.


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

[2010-05-20 14:13:03] grevenx

Added #patch bug:17418;patch:Download.php.patch;revision:1274364783;.

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

[2010-05-20 14:09:07] grevenx

Description:
------------
Using the HTTP_Download class with PHP 5.3 gives deprecated warning on
"return value of new by reference".

Test script:
---------------
<?php

require_once('HTTP/Download.php');
$file = new HTTP_Download();
$file->setData('Reproducing bug');
$file->setLastModified('2010-05-20');
$file->setContentType('text/plain');
$file->setContentDisposition(HTTP_DOWNLOAD_ATTACHMENT, 'testfile.txt');
$file->send();

Expected result:
----------------
No output in error_log

Actual result:
--------------
Error-log:

[Thu May 20 14:54:19 2010] [error] [client *] PHP Deprecated:
Assigning the return value of new by reference is deprecated in
/usr/share/pear/HTTP/Download.php on line 243
[Thu May 20 14:54:19 2010] [error] [client *] PHP Deprecated:
Assigning the return value of new by reference is deprecated in
/usr/share/pear/HTTP/Download.php on line 705

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 14, '12 at 1:42p
activeJan 14, '12 at 1:42p
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase