Re: PEAR2 Standards Update
| From: | Alexey Borzov | Date: | Tue, 22 Sep 2009 16:09:09 +0000 |
| Subject: | Re: PEAR2 Standards Update | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-52883@lists.php.net to get a copy of this message | ||
Hi Brett,
Brett Bieber wrote:
Just an update on PEAR's progress adopting the "PHP Standards and Best Practices for PHP 5.3+ Frameworks and Libraries." :-) At the last PEAR Group meeting the exception policy and the class naming policy were approved by the PEAR Group and are now incorporated into the PEAR2 standards. http://wiki.php.net/pear/rfc/pear2_standards We're still evaluating the namespace usage and I'll send an update once we've finalized that portion of the PEAR2 standards. My thanks to the standards group, and the PEAR Group for their work on establishing these standards and incorporating them into the project.There is at least a couple of obvious problems in PEAR2 standards: * Class names in PHP are case insensitive, while file names on some OSes are case sensitive. Current standard relies on autoload, but does not allow unambigous translation of case insensitive class names to case sensitive file names. Consider: $form = new pear2_hTmL_qUICKfOrm(); Good luck converting it to the desired PEAR2/HTML/QuickForm.php in autoloader. * Hungarian notation for abstract classes and interfaces immediately has an exception in the form of base Exception interface. Maybe there are some problems with the Hungarian notation that prevent using it in the standards themselves?..