Posted: Thu Jul 13, 2006 2:00 pm
Just to add to what Feyd has said...
Polymorphic code is usually refered to as code which changes dynamically...
Viruses have been know to do this...to change their signature so scanners had a difficult time detecting them...
Although what you have described is not so much polymorphic code as it is emulating a compiler compiler, taking one language to write another is generally referd as just that.
Using PHP eval() would be more analogous to polymorphic code...although I would personally technically, it's the ability to dynamically execute code.
You would have to pysically change your PHP source text before I would call it polymorphic...
Just my 2 cents
Polymorphic code is usually refered to as code which changes dynamically...
Viruses have been know to do this...to change their signature so scanners had a difficult time detecting them...
Although what you have described is not so much polymorphic code as it is emulating a compiler compiler, taking one language to write another is generally referd as just that.
Using PHP eval() would be more analogous to polymorphic code...although I would personally technically, it's the ability to dynamically execute code.
You would have to pysically change your PHP source text before I would call it polymorphic...
Just my 2 cents