ID: 40830 User updated by: xavier dot blanchet at free dot fr Reported By: xavier dot blanchet at free dot fr Status: Bogus Bug Type: CGI related Operating System: Windows XP SP2 PHP Version: 5.2.1 New Comment:
Mmm... yes, indeed :) is that the "normal" behaviour ? Dumping and playing with the argument however, I noticed a triple " at the end will do. Example ------- 45°53'36""" Do you know more about that ? Previous Comments: ------------------------------------------------------------------------ [2007-03-15 21:53:42] [EMAIL PROTECTED] Windows shell will not pass the trailing " to php. Try dumping $argv[1] to see it yourself :) ------------------------------------------------------------------------ [2007-03-15 20:33:38] xavier dot blanchet at free dot fr Description: ------------ escapeshellarg() doesn't escape correctly double quotes (enclosing with simple quotes on Windows does not work anyway...) Reproduce code: --------------- conversion.php -------------- <?php // The goal is to pass geographic coordinates echo escapeshellarg($argv[1]); ?> shell ----- $ php conversion.php 45°53'36" Expected result: ---------------- "45°53'36\"" Actual result: -------------- "45°53'36" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40830&edit=1
