Issues

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

Issue Type: Bug Created: 2009-04-10T12:26:14.000+0000 Last Updated: 2009-04-24T11:37:14.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Glen Ainscow (darkangel) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: Attachments:

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:

<pre class="literal">
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

Posted by Ralph Schindler (ralph) on 2009-04-10T12:48:59.000+0000

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

Posted by Glen Ainscow (darkangel) on 2009-04-10T13:18:14.000+0000

Thanks Ralph.

Posted by Ralph Schindler (ralph) on 2009-04-24T11:37:13.000+0000

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

Thanks!

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts