|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13657 accents problem with system, fpassthru and so more
Submitted: 2001-10-12 20:13 UTC Modified: 2001-11-09 14:56 UTC
From: yogi2 at caramail dot com Assigned:
Status: Closed Package: Program Execution
PHP Version: 4.0.6 OS: WinXP build 2600
Private report: No CVE-ID: None
 [2001-10-12 20:13 UTC] yogi2 at caramail dot com
I actually use the latest php-gtk (0.1.1a), but the problem seems to be the same with the latest PHP (4.0.6), both for win32. 

When we system() or fpassthru() (or same exec..) something which containts accents, it squizzes the accents and then 
make invalid the command.

for example : 

system ("cmd nul /c move \"C:\test\belenos-errances_oniriques\support_du_n?ant.jpg\"  \"C:\test\belenos-errances_oniriques\Support du N?ant.jpeg\"") ;

will be execute as :

move "C:\test\belenos-errances_oniriques\support_du_n,ant.jpg"  "C:\test\belenos-errances_oniriques\Support du N,ant.jpeg" ;

and so the file can't be found..


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-13 10:41 UTC]
Have you tried escaping those letters?
Does this work from command line?

 [2001-11-09 14:56 UTC]
No feedback. Closing.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 10:01:28 2024 UTC