Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.16

Bug #5725 PHP5 warnings need improvement
Submitted: 2005-10-20 07:03 UTC
From: alan_k Assigned: cellog
Status: Closed Package: PEAR
PHP Version: 4.4.1 OS: linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-20 07:03 UTC] alan_k
Description: ------------ checking a PHP4 package I get Warnings about PHP5 items: cause is clone() - which is often used for FC/BC compat. suggested fix: remove clone, from the list of items that flag up a problem. from PackageFile/v1.php if (in_array(strtolower($data), array('public', 'private', 'protected', 'abstract', 'interface', 'implements', 'clone', 'throw') )) { $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_PHP5); change to if (in_array(strtolower($data), array('public', 'private', 'protected', 'abstract', 'interface', 'implements', 'throw') )) { $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_PHP5,array('file' => $file, 'token' => $data))); and change warning to PEAR_PACKAGEFILE_ERROR_PHP5 => 'Error in %file%, PHP5 token '%token%' encountered, analysis should be in PHP5',

Comments

 [2005-10-26 19:16 UTC] cellog
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.