#23927 [NEW]: System::_parseArgv() fails if there are spaces

From: Date: Sat, 31 May 2003 19:17:15 +0000
Subject: #23927 [NEW]: System::_parseArgv() fails if there are spaces
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16858@lists.php.net to get a copy of this message
From: greg at chiaraquartet dot net Operating system: Windows XP PHP version: 4.3.2 PHP Bug Type: PEAR related Bug description: System::_parseArgv() fails if there are spaces the Pear packager attempts to mktemp a directory as a subdirectory of the current directory. If the current directory has any spaces in its name (I have C:\Web Pages), then it will fail. This is because System::mktemp is called with "-t C:\Web Pages -d" _parseArgv's use of a regexp parses the result into "-t C:\Web" and "Pages -d" A better command-line parsing algorithm is in phpDocumentor's Io class, it allows spaces and simply recognizes the command-line params. Greg -- Edit bug report at http://bugs.php.net/?id=23927&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23927&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23927&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23927&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23927&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23927&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23927&r=support Expected behavior: http://bugs.php.net/fix.php?id=23927&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23927&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23927&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23927&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23927&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23927&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23927&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23927&r=gnused

« previous php.pear.dev (#16858) next »