ZF-6262: PHP Warning: mkdir(): Invalid argument in ...

Description

This works:

% zf create project D:\Downloads\TestProjectZend

But if you do:

% zf create project Please provide a value for $path zf> D:\Downloads\TestProjectZend

... you get:

PHP Warning:  mkdir(): Invalid argument in D:\Programming\PHP\Libraries\Zend Framework\ZendFramework-1.8.0PR\library\Zen
d\Tool\Project\Provider\Project.php on line 15
PHP Stack trace:
PHP   1. {main}() D:\Programming\PHP\Libraries\Zend Framework\ZendFramework-1.8.0PR\bin\zf.php:0
PHP   2. Zend_Tool_Framework_Client_Console::main() D:\Programming\PHP\Libraries\Zend Framework\ZendFramework-1.8.0PR\bi
n\zf.php:38
PHP   3. Zend_Tool_Framework_Client_Abstract->dispatch() D:\Programming\PHP\Libraries\Zend Framework\ZendFramework-1.8.0
PR\library\Zend\Tool\Framework\Client\Console.php:86
PHP   4. Zend_Tool_Framework_Client_Abstract->_handleDispatch() D:\Programming\PHP\Libraries\Zend Framework\ZendFramewor
k-1.8.0PR\library\Zend\Tool\Framework\Client\Abstract.php:192
PHP   5. call_user_func_array() D:\Programming\PHP\Libraries\Zend Framework\ZendFramework-1.8.0PR\library\Zend\Tool\Fram
ework\Client\Abstract.php:273
PHP   6. Zend_Tool_Project_Provider_Project->create() D:\Programming\PHP\Libraries\Zend Framework\ZendFramework-1.8.0PR\
library\Zend\Tool\Framework\Client\Abstract.php:0
PHP   7. mkdir() D:\Programming\PHP\Libraries\Zend Framework\ZendFramework-1.8.0PR\library\Zend\Tool\Project\Provider\Pr
oject.php:15

Warning: mkdir(): Invalid argument in D:\Programming\PHP\Libraries\Zend Framework\ZendFramework-1.8.0PR\library\Zend\Too
l\Project\Provider\Project.php on line 15

Call Stack:
    0.0002      60176   1. {main}() D:\Programming\PHP\Libraries\Zend Framework\ZendFramework-1.8.0PR\bin\zf.php:0
    0.0091     662592   2. Zend_Tool_Framework_Client_Console::main() D:\Programming\PHP\Libraries\Zend Framework\ZendFr
amework-1.8.0PR\bin\zf.php:38
    0.0091     662952   3. Zend_Tool_Framework_Client_Abstract->dispatch() D:\Programming\PHP\Libraries\Zend Framework\Z
endFramework-1.8.0PR\library\Zend\Tool\Framework\Client\Console.php:86
    0.9096    5499040   4. Zend_Tool_Framework_Client_Abstract->_handleDispatch() D:\Programming\PHP\Libraries\Zend Fram
ework\ZendFramework-1.8.0PR\library\Zend\Tool\Framework\Client\Abstract.php:192
    9.2782    5520552   5. call_user_func_array() D:\Programming\PHP\Libraries\Zend Framework\ZendFramework-1.8.0PR\libr
ary\Zend\Tool\Framework\Client\Abstract.php:273
    9.2782    5520552   6. Zend_Tool_Project_Provider_Project->create() D:\Programming\PHP\Libraries\Zend Framework\Zend
Framework-1.8.0PR\library\Zend\Tool\Framework\Client\Abstract.php:0
    9.2783    5521640   7. mkdir() D:\Programming\PHP\Libraries\Zend Framework\ZendFramework-1.8.0PR\library\Zend\Tool\P
roject\Provider\Project.php:15


An error has occured:
Could not create requested project direcotry D:\Downloads\TestProjectZend

Note the typo as well (direcotry).

Comments

I am working on a fix for this, its a windows specific problem. I should have a fix in trunk by early next week.

Thanks Ralph.

I am pretty sure this (windows) based bug was fixed in the updates at r14921

Thanks!