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

ID: 17085
Updated by: borz_off@cs.msu.su
Reported By: seanmadden at mail dot rit dot edu
Summary: Assigning the return value of new by reference is
deprecated
-Status: Open
+Status: Wont fix
Type: Bug
Package: HTML_QuickForm
Operating System: Fedora 11 x86_64 k:2.6.30.10-105
Package Version: 3.2.11
PHP Version: 5.3.1
Roadmap Versions:
New Comment:

-Status: Open
+Status: Wont fix
Sorry, we won't fix that at this stage of the package's life cycle. We
don't have a test suite for QuickForm so can't easily check that it
doesn't break.

If you want to run with E_DEPRECATED and E_STRICT on, consider
switching to HTML_QuickForm2.


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

[2010-02-10 19:07:57] spmadden

Added #patch bug:17085;patch:qf.patch;revision:1265828877;.

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

[2010-02-10 19:05:56] spmadden

Description:
------------
With the latest version of PHP (5.3.1) using QuickForm with the
E_STRICT flags throws deprecated warnings with the use of assigning the
value of new by reference.

See the attached patch file for a fix.

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

require_once 'HTML/QuickForm.php';

$form = new HTML_QuickForm();

?>


Expected result:
----------------
Blank Page.

Actual result:
--------------
Deprecated: Assigning the return value of new by reference is
deprecated in /usr/share/pear/HTML/QuickForm.php-old on line 597

Deprecated: Assigning the return value of new by reference is
deprecated in /usr/share/pear/HTML/QuickForm.php-old on line 1707

Deprecated: Assigning the return value of new by reference is
deprecated in /usr/share/pear/HTML/QuickForm.php-old on line 1864

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedFeb 13, '10 at 3:49p
activeFeb 13, '10 at 3:49p
posts1
users1
websitepear.php.net

1 user in discussion

Borz_off: 1 post

People

Translate

site design / logo © 2022 Grokbase