xp-framework / compiler

Compiles future PHP to today's PHP.
19 stars 0 forks source link

Fatal error: Label 'c1107822099' already defined #160

Closed thekid closed 1 year ago

thekid commented 1 year ago

...when emitting a try/catch nested inside a catch block for PHP 7.0:

use lang\IllegalArgumentException;

class Test {
  public function run() {
    try {
      throw new IllegalArgumentException("test");
    } catch (IllegalArgumentException $expected) {
      try {
        throw $expected;
      } catch (IllegalArgumentException $expected) {
        return $expected->getMessage();
      }
    }
  }
}
thekid commented 1 year ago

Fix released in https://github.com/xp-framework/compiler/releases/tag/v8.8.5