[phc-general] Problem with obfuscation

M M mm.phc at nisu.org
Wed Feb 24 12:26:13 GMT 2010


Hi,
First, thanks to the developers, phc is very interesting.
I have found a problem in obfuscation.
It seems that the obfuscation procedure sometimes uses reflectors.
When reflectors are not defined for some function, the obfuscated code 
does not work.
For example, the socket family functions have problems with reflector:
  $x="socket_set_nonblock";
  $f=new ReflectionFunction($x);
  print_r($f->getParameters());
prints an empty array.

So when obfuscator uses the first parameter its is NULL, and the call to 
isPassedByReference() fails at runtime.
Sample code http://gsi.nisu.org/parGet.phps



More information about the phc-general mailing list