ID: 14853 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.1.0 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. This seems like a rather unexpected behaviour to me and if the feature you request is added it'll likely break many scripts. Do your own input validation. Previous Comments: ------------------------------------------------------------------------ [2002-01-04 13:05:56] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=14853&edit=1
