pk-fr / yakpro-po

YAK Pro - Php Obfuscator
http://www.php-obfuscator.com
Other
1.29k stars 363 forks source link

Catch block class names are not scrambled #12

Closed mologie closed 8 years ago

mologie commented 8 years ago

Test case:

<?php
class FooException extends Exception { }
try {
    echo "foo ";
    throw new FooException;
}
catch (FooException $foo) {
    echo "bar\n";
}

Example output:

<?php

class N0VHa extends Exception
{
}
try {
    echo "\146\157\157\x20";
    throw new N0vHa();
} catch (FooException $b0p6v) {
    echo "\142\x61\162\12";
}

FooException should have been replaced by N0VHa for the above example to work.

pk-fr commented 8 years ago

fixed in 1.8.4.
I love those small examples..