ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> Suggestions and Feedback

[BUG] Encoded file return incorrect _DIR_ on non-ASCII path

Author Message
Fandratec



Joined: 07 Aug 2013
Posts: 10

PostPosted: Wed May 13, 2020 10:48 am    Post subject: [BUG] Encoded file return incorrect _DIR_ on non-ASCII path Reply with quote

[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
View user's profile Send private message
alastair



Joined: 23 Feb 2010
Posts: 340

PostPosted: Wed May 13, 2020 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Fandratec



Joined: 07 Aug 2013
Posts: 10

PostPosted: Thu May 14, 2020 8:13 am    Post subject: Reply with quote

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
View user's profile Send private message
alastair



Joined: 23 Feb 2010
Posts: 340

PostPosted: Thu May 14, 2020 8:21 am    Post subject: Reply with quote

Hi,

Okay, thanks. We will be able to investigate using the information you have given anyway.
_________________
Alastair

ionCube
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> Suggestions and Feedback All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum