View Issue Details

IDProjectCategoryView StatusLast Update
0000213XdebugUncategorizedpublic2006-10-18 19:46
Reporterderick Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionopen 
Summary0000213: Dead code analysis doesn't take catches for throws into account
Description

<?php

try
{
throw new Exception();
}
catch(Exception $e) {}
?>

produces the VLD codes:
number of ops: 13
line # op fetch ext operands

5 0 NOP
7 1 EXT_STMT
2 ZEND_FETCH_CLASS :0, 'Exception'
3 EXT_FCALL_BEGIN
4 NEW $1, :0
5 DO_FCALL_BY_NAME 0 0
6 EXT_FCALL_END
7 ZEND_THROW $1
9 8 ZEND_FETCH_CLASS :3, 'Exception'
9
ZEND_CATCH null, 'e'
11 10 EXT_STMT
11
RETURN 1
12* ZEND_HANDLE_EXCEPTION

TagsNo tags attached.
Operating System
PHP Version5.1.6

Activities

derick

2006-10-18 19:46

administrator   ~0000478

Fixed in CVS.

Issue History

Date Modified Username Field Change
2006-10-18 15:44 derick New Issue
2006-10-18 19:46 derick Status new => closed
2006-10-18 19:46 derick Note Added: 0000478
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized