NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
What happens if you use ClassReflection on an encoded class
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
PHP5 makes it possible to use various sorts of ClassReflection to introspect the structure of any given class.

What will happen if you use that on an encoded file ?
View user's profileFind all posts by hgrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7881
Reply with quote
Yes it works. When enabled even PHPDOC things work Smile, it's when you have a phpdoc comment for a class, method or property and ask for it through the reflection.

Generally speaking, a problem may happen only when a kind of code-obfuscation is used and class is not explicitly excluded from it.

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

Joined: 30 Nov 2006
Posts: 186
Reply with quote
Ok so what do you do if you want to hide your implementation from your customers, but want to keep PHPDOC etc enabled during development?

Is that an option for a future version of nucoder with obfuscation?
View user's profileFind all posts by hgrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7881
Reply with quote
Quote:
if you want to hide your implementation

If you use nucoder, the implementation (algorithms) is hidden anyway.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
What happens if you use ClassReflection on an encoded class
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