From ac1171a81df814ad0042ef5989010bfe7d3e1652 Mon Sep 17 00:00:00 2001 From: Leigh Date: Wed, 25 Feb 2015 19:04:31 +0000 Subject: [PATCH] Add strict_types indicator to `debug_backtrace()` --- Zend/zend_builtin_functions.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 035a4c6c88604..13696f5b8d97b 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -2549,6 +2549,9 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int debug_backtrace_get_args(call, &args); add_assoc_zval_ex(&stack_frame, "args", sizeof("args")-1, &args); } + + add_assoc_long(&stack_frame, "strict_types", + (ZEND_CALL_INFO(call) & ZEND_CALL_STRICT_TYPEHINTS) > 0); } else { /* i know this is kinda ugly, but i'm trying to avoid extra cycles in the main execution loop */ zend_bool build_filename_arg = 1;