Re: Bug #64910: Line number of $e = new Exception vs. line number of throw $e

From: Date: Fri, 24 May 2013 08:44:02 +0000
Subject: Re: Bug #64910: Line number of $e = new Exception vs. line number of throw $e
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-67485@lists.php.net to get a copy of this message
Hi! > As a PHP programmer, I would always expect the file/line to refer to > the throw statement that has thrown it last. If I wanted to keep track It is rather surprising that you would expect that as a PHP programmer, since it never worked this way in PHP, and no PHP code works this way either. Also, throwing new exception with previous is not the same as throwing the same exception twice. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#67485) next »