php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch Exception_getTrace_object_property for Scripting Engine problem Bug #45351

Patch version 2010-06-13 08:43 UTC

Return to Bug #45351 | Download this patch
Patch Revisions:

Developer: jille@quis.cx

Index: Zend/zend_exceptions.c
===================================================================
--- Zend/zend_exceptions.c	(revision 14)
+++ Zend/zend_exceptions.c	(working copy)
@@ -142,7 +142,7 @@
 	ALLOC_ZVAL(trace);
 	Z_UNSET_ISREF_P(trace);
 	Z_SET_REFCOUNT_P(trace, 0);
-	zend_fetch_debug_backtrace(trace, skip_top_traces, 0 TSRMLS_CC);
+	zend_fetch_debug_backtrace(trace, skip_top_traces, 1 TSRMLS_CC);
 
 	zend_update_property_string(default_exception_ce, &obj, "file", sizeof("file")-1, zend_get_executed_filename(TSRMLS_C) TSRMLS_CC);
 	zend_update_property_long(default_exception_ce, &obj, "line", sizeof("line")-1, zend_get_executed_lineno(TSRMLS_C) TSRMLS_CC);
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 19:02:15 2014 UTC