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 -> ionCube PHP Encoder

Problem with getDocComment on encoded class methods

Author Message
proffnet



Joined: 21 Mar 2017
Posts: 1

PostPosted: Tue Mar 21, 2017 1:57 pm    Post subject: Problem with getDocComment on encoded class methods Reply with quote

Our problem is that we can't get $oMethod->getDocComment(); from encoded file.
We get Null value. File that we test is as follow:
Code:

<?php

/**
 * @acl Y|Test class comment|Test .
 */
class Controller_aaa extends Controller
{
/**
 * @acl N|Default|Test _default method comment.
 */
    public function _default() {
        echo "test";
    }

    /**
     * @acl N| test _test method comment.
     */
    public function _test() {
        echo "test";
    }

}


We can get only class/doc comment but not method comments

We use encoder as follows:


Code:
ioncube_encoder.sh -55 source_path -o output_path --allow-reflection-all --without-loader-check --replace-target --verbose'


What we do wrong?
Back to top
View user's profile Send private message
alastair



Joined: 23 Feb 2010
Posts: 188

PostPosted: Tue Mar 21, 2017 5:01 pm    Post subject: Reply with quote

Hi,

I see that you have created a ticket about this in our Support Help Desk at http://support.ioncube.com

You have correctly used the "--allow-reflection-all" option, which allows reflection to be applied with version 9 encoding.

However, are you attempting to apply getDocComment from an unencoded file and before the function being examined has first been called?

If so then that would explain the problem. Such reflection API calls require the function to be decoded. However, that cannot, for reasons of security, be triggered from an unencoded file. The --allow-reflection options will work if the reflection API is used from an encoded file.
_________________
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 -> ionCube PHP Encoder 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