PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #10196

Object Reference Assignment Error

Details

Submitted2007-02-26 20:03 UTC
Fromajsharp at gmail dot com
StatusBogus
PackageHTML_QuickForm
PHP Version5.2.1
OSWindows XP
Roadmaps(Not assigned)

Comments

[2007-02-26 20:03 UTC] ajsharp at gmail dot com

Description:
------------
Depending on the script, I receive the following error message:
An error occurred in script 'C:\wamp\php\PEAR\HTML\QuickForm.php' on line 566:
Assigning the return value of new by reference is deprecated

Line 566 is the following: '$elementObject =& new $className();'

I assume this has something to do with how PHP 4 and PHP 5 assign references to objects differently. The weird part is that in some scripts I get this error, and in others I don't. Further, it occurs several times at different points in 'Quickform.php', 'PEAR.php', and 'Registry.php'.

Scrolling further down the script, I get the same error but in a different file:
An error occurred in script 'C:\wamp\php\PEAR\HTML\QuickForm\RuleRegistry.php' on line 217:
is_a(): Deprecated. Please use the instanceof operator

Finally, at the end of all these errors, the form still displays.

In the script where I am getting these errors, I utilize some of my own classes. Still, I tried implementing the class in the script where I don't receive the error, and even using some PHP 5 distinct features, and everything worked fine. Any help would be much appreciated.