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

ID: 18214
Updated by: kbcmdba@gmail.com
Reported By: kbcmdba at gmail dot com
Summary: Strict errors when using HTML_Quickform
-Status: Wont fix
+Status: Open
Type: Bug
Package: HTML_QuickForm
Operating System: Linux 2.6.18 (Centos 5.5)
Package Version: 3.2.12
PHP Version: 5.1.6
Roadmap Versions:
New Comment:

-Status: Wont fix
+Status: Open
If you want me to send you a patch that fixes this using the method I
described above, I'd be happy to send it but please consider talking
about how to get past this with me before simply closing it as WontFix.


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

[2011-01-24 17:46:01] cweiske

This change is not trivial because it breaks compatibility with PHP4.

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

[2011-01-24 17:44:02] s1kevin

This makes no sense to me. HTML_QuickForm is already marked as
deprecated yet HTML_QuickForm2 isn't even considered stable enough yet
to be Beta quality. There also doesn't appear to be any conversion guide
for those who are upgrading from HTML_QuickForm. The documentation for
HTML_QuickForm2 clearly states that developers should not depend on the
API to remain consistent until it reaches Beta level. The
HTML_QuickForm2 code has been in Alpha now for three years and
HTML_QuickForm has been deprecated for more than a year. I don't think
it's fair to developers using the HTML_QuickForm library to flat-out
refuse to fix issues like this. I don't think the fix is hard either
(HTML_QuickForm.php line 597):

$elementObject =& new $className();

could become...

$temp = new $className() ;
$elementObject =& $temp ;

Maybe I'm just naive when I think it could be this simple but what I
want to avoid is patching my version preventing me from being able to
receive other bug fixes until HTML_QuickForm2 is GA.

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

[2011-01-24 09:39:22] avb

-Status: Open
+Status: Wont fix
Use HTML_QuickForm2, it was designed to work under E_STRICT.

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

[2011-01-24 07:46:45] s1kevin

Description:
------------
Strict standards: Assigning the return value of new by reference is
deprecated in /usr/share/pear/HTML/QuickForm.php on line 597

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

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

Strict standards: Declaration of HTML_QuickForm_hidden::accept() should
be compatible with that of HTML_QuickForm_element::accept() in
/usr/share/pear/HTML/QuickForm/hidden.php on line 40

Strict standards: Non-static method PEAR::isError() should not be called
statically, assuming $this from incompatible context in
/usr/share/pear/HTML/QuickForm.php on line 634

Strict standards: is_a(): Deprecated. Please use the instanceof operator
in /usr/share/pear/PEAR.php on line 275

Strict standards: Non-static method PEAR::isError() should not be called
statically, assuming $this from incompatible context in
/usr/share/pear/HTML/QuickForm.php on line 634

...

Turning off strict standards would prevent being able to write code that
will work on all the systems I'm trying to support.


Test script:
---------------
http://phpjobseeker.sourceforge.net/


Expected result:
----------------
Until upgrading to CentOS 5.5, I didn't see this problem before.

Actual result:
--------------
( ! ) Strict standards: Assigning the return value of new by reference
is deprecated in /usr/share/pear/HTML/QuickForm.php on line 597
Call Stack
# Time Memory Function Location
1 0.0002 42232 {main}( ) ../addJob.php:0
2 0.0012 71184 AddJobView->main( ) ../addJob.php:26
3 0.0016 84640 __autoload( ) ../autoload.php:0
4 0.0027 148816 require_once(
'/opt/www/www.bentonfam.org/sf_pjs_ci/Libs/Views/JobFormView.php' )
../autoload.php:63

( ! ) Strict standards: Assigning the return value of new by reference
is deprecated in /usr/share/pear/HTML/QuickForm.php on line 1707
Call Stack
# Time Memory Function Location
1 0.0002 42232 {main}( ) ../addJob.php:0
2 0.0012 71184 AddJobView->main( ) ../addJob.php:26
3 0.0016 84640 __autoload( ) ../autoload.php:0
4 0.0027 148816 require_once(
'/opt/www/www.bentonfam.org/sf_pjs_ci/Libs/Views/JobFormView.php' )
../autoload.php:63

( ! ) Strict standards: Assigning the return value of new by reference
is deprecated in /usr/share/pear/HTML/QuickForm.php on line 1864
Call Stack
# Time Memory Function Location
1 0.0002 42232 {main}( ) ../addJob.php:0
2 0.0012 71184 AddJobView->main( ) ../addJob.php:26
3 0.0016 84640 __autoload( ) ../autoload.php:0
4 0.0027 148816 require_once(
'/opt/www/www.bentonfam.org/sf_pjs_ci/Libs/Views/JobFormView.php' )
../autoload.php:63

...

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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 24, '11 at 8:37a
activeJan 24, '11 at 6:26p
posts5
users4
websitepear.php.net

People

Translate

site design / logo © 2021 Grokbase