From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.1.0 PHP Bug Type: Feature/Change Request Bug description: escapeshellarg should return '' for empty argument list
If I build a command line like this: $cmd = "ls "; $cmd .= escapeshellarg($file); system($cmd); It works fine if $file contains data. But if $file is empty, $cmd is "ls " instead of "ls ''". The code would be easier to write if escapeshellarg always returned the two single quotes, even if its argument was blank. -- Edit bug report at: http://bugs.php.net/?id=14853&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]