Console_GetOpt and mkdir bug
| From: | Pierre-Alain Joye | Date: | Sat, 12 Oct 2002 12:18:49 +0000 |
| Subject: | Console_GetOpt and mkdir bug | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-10017@lists.php.net to get a copy of this message | ||
Hello,
I post a bug about mkdir, you can reproduce it with pear_system.phpt
test suites.
http://marc.theaimsgroup.com/?l=pear-dev&m=103433606716980&w=2
In Console_Getopt:getopt() :
if (isset($args[0]{0}) && $args[0]{0} != '-') {
array_shift($args);
}
That drops the 1st dir argument passed to System::mkDir();
Do you why it automaticly drop it if it does not start with '-' ?
Just to know if the problem comes from the call or from getOpt itself.
hth
pa