note 40996 added to function.escapeshellarg

From: Date: Thu, 25 Mar 2004 22:05:53 +0000
Subject: note 40996 added to function.escapeshellarg
Groups: php.notes 
Request: Send a blank email to php-notes+get-67180@lists.php.net to get a copy of this message
If escapeshellarg() returned something on a null input it would probably break more programs than it helps. Even if it's two "'s or two ''s, this function wouldn't work the way it's supposed to (that is, returning nothing). However, most people do not put "" into their commands but I can see where it might be useful at the same time. Perhaps an option in the command that would return the type of null we want. I might want the null character to be returned, someone else might want '', and someone else might want nothing at all. ---- Manual Page -- http://www.php.net/manual/en/function.escapeshellarg.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40996 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40996&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40996&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67180) next »