-- Ovidiu EFTIMIE <[EMAIL PROTECTED]> wrote
(on Sunday, 06 April 2008, 01:38 AM +0300):
> I just discovered that numbers are not allowed in the modules
> directory names
>
> Zend_Controller_Front.php
> public function addModuleDirectory($path)
> {
>
> ..............................................................................
> // Don't use SCCS directories as modules
> if (preg_match('/^[^a-z]/i', $module) || ('CVS' == $module)) {
> continue;
> }
> .......................................................................................
>
> return $this;
> }
>
> Is this a bug ?
> How about adding numbers ?
You misread the regex -- we allow numbers, but not as the first
character;
* ^ - start of regex
* [^a-z] - 1 character not matching a - z
* /i - case insensitive
IIRC, this was due to a PHP limitation with our implementation, but I'd
have to do some research.
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/