PHPDeobfuscator icon indicating copy to clipboard operation
PHPDeobfuscator copied to clipboard

Variables resolve incorrectly with try catch statements

Open JingYenLoh opened this issue 7 months ago • 0 comments
trafficstars

Minimal repro input:

try {
  $foo = 1;
} catch (Exception $e) {
  $foo = 2;
}
echo $foo;

produces

try {
  $foo = 1;
} catch (Exception $e) {
  $foo = 2;
}
echo 2;

I believe Resolver->nodeCanBranch needs to include try catch statements as well.

JingYenLoh avatar Apr 16 '25 02:04 JingYenLoh