Ticket #314 (new defect)

Opened 3 months ago

exceptions not catched

Reported by: tsing Assigned to: somebody
Priority: major Milestone:
Component: eAccelerator Version:
Keywords: Cc:

Description

thrown exeception not works, if it is defined in an while loop.

code:

<?php
$i = 0;
try {
    while (true) {
        $i++;
        if ($i > 10) {
            throw new Exception('if you see this, that\'s perfect.');
        }
    }
} catch (Exception $e) {
    echo $e->getMessage() . "\n";
}

the code above will not stop when $i > 10.

the bug exists in 0.9.5.2 and 0.9.5.3, other version not tested.