NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
nucoder "Warning: indirect function call"


Joined: 12 Jun 2014
Posts: 6
Location: France
Reply with quote
While encoding a project based on slim framework, I got "Warning: indirect function call".
I found no documentation about this message, and what to do in this case.
Endeed, the code calls a function via a variable.
Is it prohibited to encode safely?


Thanks for your support.
View user's profileFind all posts by inducidoSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
It means that you have to take care and check that code carefully after encoding.
For example if you assign the variable with a name of your own (user-land) function and the function is obfuscated, php won't find it and you'll get function not found fatal error.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 12 Jun 2014
Posts: 6
Location: France
Reply with quote
Thanks for the answer.

Just to be certain-->
It is a controller. say I have
class mycontroller {

function get()
{
}

call()
{
$this->$action();
}
}
This seems to work fine when $action == "get"
And I use default option for "Obfscated names" (auto)

should I use call_user_func()? I suspect the risk is identical.

In the end, even if apparently it works, I should set nucoder to avoid obfucation on controllers?

(in fact, I just checked, I use nucoder in command line & I pass < --obfuscation 1 > - I don't remember what it means)
View user's profileFind all posts by inducidoSend private message
nucoder "Warning: indirect function call"
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
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic