From: tom at collegit dot se Operating system: Linux www2 2.6.24.7-grsec PHP version: 5.2.6 PHP Bug Type: Strings related Bug description: escapeshellcmd removes swedish characters
Description: ------------ Since my web server got updated to 5.2.6 escapeshellcmd() has started removing all Swedish characters from user input. Looks a lot like bug #44564. './configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--with- mysql=/usr/local/mysql' '--enable-debug=no' '--enable-track-vars' '-- with-imap=/usr/local/imap' '--with-mcrypt' '--with-mhash' '--with-dom' '--with-gd' '--with-jpeg-dir' '--enable-ftp' '--with-freetype- dir=/usr' '--with-zlib-dir=/usr' '--with-png-dir=/usr' '--enable- dbase' '--with-gettext' '--with-zlib' '--enable-inline-optimization' '--with-openssl' '--with-curl' '--with-curlwrappers' '--enable-exif' '--with-imap-ssl' '--enable-bcmath' '--enable-mbstring' '--enable- wddx' '--with-xsl' '--with-pdo-mysql=/usr/local/mysql' '--with- mysqli=/usr/local/mysql/bin/mysql_config' '--enable-soap' '--enable- sockets' '--with-mssql' '--with-ming' '--with-pspell' '--enable- calendar' '--enable-bcmath' '--with-t1lib' '--with- pgsql=/usr/local/pgsql' '--with-tidy' '--enable-zip' Reproduce code: --------------- $test = "åäö"; $test = (escapeshellcmd($test)); print $test; Expected result: ---------------- "åäö" Actual result: -------------- "" -- Edit bug report at http://bugs.php.net/?id=45132&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45132&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45132&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45132&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45132&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45132&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45132&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45132&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45132&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45132&r=support Expected behavior: http://bugs.php.net/fix.php?id=45132&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45132&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45132&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45132&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45132&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45132&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45132&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45132&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45132&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45132&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45132&r=mysqlcfg