{"action":"created","issue":{"url":"https://api.github.com/repos/kenjiuno/php-wfio/issues/7","labels_url":"https://api.github.com/repos/kenjiuno/php-wfio/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/kenjiuno/php-wfio/issues/7/comments","events_url":"https://api.github.com/repos/kenjiuno/php-wfio/issues/7/events","html_url":"https://github.com/kenjiuno/php-wfio/issues/7","id":63008038,"number":7,"title":"Relative paths not working if current working directory contains nonascii characters","user":{"login":"jrohel","id":10756662,"avatar_url":"https://avatars.githubusercontent.com/u/10756662?v=3","gravatar_id":"","url":"https://api.github.com/users/jrohel","html_url":"https://github.com/jrohel","followers_url":"https://api.github.com/users/jrohel/followers","following_url":"https://api.github.com/users/jrohel/following{/other_user}","gists_url":"https://api.github.com/users/jrohel/gists{/gist_id}","starred_url":"https://api.github.com/users/jrohel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrohel/subscriptions","organizations_url":"https://api.github.com/users/jrohel/orgs","repos_url":"https://api.github.com/users/jrohel/repos","events_url":"https://api.github.com/users/jrohel/events{/privacy}","received_events_url":"https://api.github.com/users/jrohel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-19T14:50:35Z","updated_at":"2015-03-23T15:27:41Z","closed_at":null,"body":"Relative paths not working if current working directory contains nonascii characters.\r\n\r\nProbably problem is in file \"php_wfio.c\" in function \"wfio_realpathw()\".\r\nWe get \"workdir\" from \"VCWD_GETCWD\" function and then use \"MultiByteToWideChar\" with CP_UTF8. Probably use CP_ACP instead of CP_UTF8 is solution.\r\n\r\nIn \"PHP_FUNCTION(wfio_getcwd8)\" is also used \"VCWD_GETCWD\" (path saved to \"buffer\") but at this function is  \"MultiByteToWideChar\" used with CP_ACP. This is probably OK.\r\n\r\nI can't test this because I don't have Visual Studio C++ and SDK installed.\r\n"},"comment":{"url":"https://api.github.com/repos/kenjiuno/php-wfio/issues/comments/85049635","html_url":"https://github.com/kenjiuno/php-wfio/issues/7#issuecomment-85049635","issue_url":"https://api.github.com/repos/kenjiuno/php-wfio/issues/7","id":85049635,"user":{"login":"jrohel","id":10756662,"avatar_url":"https://avatars.githubusercontent.com/u/10756662?v=3","gravatar_id":"","url":"https://api.github.com/users/jrohel","html_url":"https://github.com/jrohel","followers_url":"https://api.github.com/users/jrohel/followers","following_url":"https://api.github.com/users/jrohel/following{/other_user}","gists_url":"https://api.github.com/users/jrohel/gists{/gist_id}","starred_url":"https://api.github.com/users/jrohel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrohel/subscriptions","organizations_url":"https://api.github.com/users/jrohel/orgs","repos_url":"https://api.github.com/users/jrohel/repos","events_url":"https://api.github.com/users/jrohel/events{/privacy}","received_events_url":"https://api.github.com/users/jrohel/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T15:27:41Z","updated_at":"2015-03-23T15:27:41Z","body":"Thanks.\nBut I have strange problems. (Result with new dll is the same.)\n\nI done test (script copy.php works, only in nonascii directory or only if\nis called with fullpath without backslash behind colon.) I do not know\nwhere problem is now.\n\nTest:\nC:\\php>type c:\\s\\copy.php\n<?php\n        $fp = fopen('src.txt', 'w');\n        fwrite($fp, 'Some text');\n        fclose($fp);\n        copy('wfio://src.txt', 'wfio://dst.txt');\n?>\n\nC:\\php>copy c:\\s\\copy.php c:\\š\\copy.php\n        1 file(s) copied.\n\nC:\\php>php-cgi.exe c:\\s\\copy.php\nX-Powered-By: PHP/5.6.7\nContent-type: text/html; charset=UTF-8\n\nC:\\php>php-cgi.exe c:\\š\\copy.php\nX-Powered-By: PHP/5.6.7\nContent-type: text/html; charset=UTF-8\n\n<br />\n<b>Warning</b>:  copy(): It is not safe to rely on the system's timezone\nsetting\ns. You are *required* to use the date.timezone setting or the\ndate_default_timez\none_set() function. In case you used any of those methods and you are still\ngett\ning this warning, you most likely misspelled the timezone identifier. We\nselecte\nd the timezone 'UTC' for now, but please set date.timezone to select your\ntimezo\nne. in <b>C:\\Ü\\copy.php</b> on line <b>5</b><br />\n<br />\n<b>Warning</b>:  copy(wfio://src.txt): failed to open stream: operation\nfailed i\nn <b>C:\\Ü\\copy.php</b> on line <b>5</b><br />\n\nC:\\php>php-cgi.exe c:š\\copy.php\nX-Powered-By: PHP/5.6.7\nContent-type: text/html; charset=UTF-8\n\nC:\\php>\nDne 22.3.2015 13:18 \"kenjiuno\" <notifications@github.com> napsal(a):\n\n> Hi.\n>\n> Thanks, the problem is fixed. Please try latest one!\n> https://github.com/kenjiuno/php-wfio/releases/tag/v0.3\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/kenjiuno/php-wfio/issues/7#issuecomment-84596179>.\n>\n"}}