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

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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 40 + 37 = ?

 
 [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.