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.