Re: PEAR::System::which() inquiry

From: Date: Fri, 02 Jul 2004 20:56:58 +0000
Subject: Re: PEAR::System::which() inquiry
References: 1 2  Groups: php.pear.core 
Request: Send a blank email to pear-core+get-416@lists.php.net to get a copy of this message
Tomas V.V.Cox wrote:
Please post the patch at the bug system, I'll surely take a look at it. Thanks, Tomas V.V.Cox
Several things for the patch: For Windows, now this works: - System::which('cmd') - System::which('cmd.exe') - System::which('c:\\windows\\system32\\cmd') - System::which('c:\\windows\\system32\\cmd.exe') I've expanded regression tests for that... Added an optional parameter to method call to enable safe_mode check on path (BC is preserved.) Also, I've added regression tests for System::cat(), plus added support for file and/or folder with space in their name... Also updated some PHPDoc and optimization of some code... BTW: spaces in filenames are poorely supported in various PEAR packages... The patch can be found at: http://www.11abacus.com/cvs/pear/System.patch, and bug #1750 (http://pear.php.net/bugs/bug.php?id=1750) was updated. Have fun! -Philippe

« previous php.pear.core (#416) next »