Ticket #291 (closed defect: duplicate)

Opened 3 years ago

Last modified 6 months ago

Incorrect handling of exception, if there is empty if block presents

Reported by: pvasilevich Owned by: somebody
Priority: major Milestone: 0.9.6
Component: eAccelerator Version: 0.9.5
Keywords: exception if Cc:

Description

Please take a look at following sample code:

function ff() {
   throw new Exception("doesn't");
}

try {
   if ( false === ff() )
   { 
   }
} catch (Exception $e) {
   echo "1";
   exit;
}

Expected output: "1". But exception goes through catch block, and there is no "1" in output.

If any code will be added in empty if block, then code will work fine:

   if ( false === ff() ) 
   {
      $foo = 555;
   }

Change History

comment:1 Changed 16 months ago by bart

Bug #314 is the same this one I think.

comment:2 Changed 16 months ago by bart

Also the same as #317

comment:3 Changed 7 months ago by bart

  • Status changed from new to closed
  • Resolution set to duplicate

comment:4 Changed 6 months ago by sim

 decoration Changed 1 year ago by admin

 bathtub Changed 1 year ago by admin

 solar system Changed 1 year ago by admin

 stair parts Changed 1 year ago by admin

 solar supply Changed 1 year ago by admin

Note: See TracTickets for help on using tickets.