MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000213XdebugUsage problems (Wrong Results)public2006-10-18 16:442006-10-18 20:46
Reporterderick 
Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
StatusclosedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
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
Attached Files

- Relationships

-  Notes
(0000478)
derick (administrator)
2006-10-18 20:46

Fixed in CVS.

- Issue History
Date Modified Username Field Change
2006-10-18 16:44 derick New Issue
2006-10-18 20:46 derick Status new => closed
2006-10-18 20:46 derick Note Added: 0000478
2016-07-31 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker