Author |
Message |
Fandratec
Joined: 07 Aug 2013 Posts: 10
|
Posted: Wed May 13, 2020 10:48 am Post subject: [BUG] Encoded file return incorrect _DIR_ on non-ASCII path |
|
|
[BUG] Encoded file return incorrect __DIR__ path on non-ASCII path
OS: Windows 10 64 bit Build 1909, Traditional Chinese
Web server: IIS
PHP: 7.2.30
ionCube Encoder: 10.2
ionCube Loader: 10.3.9
Summary:
If filepath end with non-ASCII character, a encoded file will return incorrect __DIR__ path.
Bug reproduce steps:
Code: | <?php
echo __DIR__;
?> |
( Example path: 'R:\ioncube\' )
1. Create a folder, named '繁體中文'.
2. Copy above code into file 'no_encoded.php' in folder '繁體中文'.
3. Copy above code into file 'encoded.php' in folder '繁體中文'.
4. Encode 'encoded.php' by ionCube Encoder 10.2 .
Execute:
php.exe no_encoded.php
Console output:
R:\ioncube\繁體中文
Execute:
php.exe encoded.php
Console output:
R:\ioncube |
|
Back to top |
|
 |
alastair
Joined: 23 Feb 2010 Posts: 407
|
Posted: Wed May 13, 2020 2:52 pm Post subject: |
|
|
Hi,
Many thanks for the report although it is best to report such bugs in our Support Help Desk at https://support.ioncube.com
Anyway, we shall investigate this and will hopefully include a fix for this in a future version of the Loader. _________________ Alastair
ionCube |
|
Back to top |
|
 |
Fandratec
Joined: 07 Aug 2013 Posts: 10
|
Posted: Thu May 14, 2020 8:13 am Post subject: |
|
|
Helpdesk has no 'bug report' department and my support has expired.
I just report a bug let ioncube know. I don't need more support.
Thank you. |
|
Back to top |
|
 |
alastair
Joined: 23 Feb 2010 Posts: 407
|
Posted: Thu May 14, 2020 8:21 am Post subject: |
|
|
Hi,
Okay, thanks. We will be able to investigate using the information you have given anyway. _________________ Alastair
ionCube |
|
Back to top |
|
 |
|