Ticket #291 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 weeks ago

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

Reported by: pvasilevich Assigned to: 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

05/06/09 21:15:37 changed by bart

Bug #314 is the same this one I think.

05/06/09 21:16:34 changed by bart

Also the same as #317

02/03/10 13:57:48 changed by bart

  • status changed from new to closed.
  • resolution set to duplicate.

02/24/10 11:08:06 changed 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