From 399db3c846993416245eb5da9a676b85bbc1cee5 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sun, 27 Jul 2003 12:25:50 +0000 Subject: [PATCH] fix crash #24550 --- Zend/zend_language_scanner.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l index ab49eeac207..a12abdd4e97 100644 --- a/Zend/zend_language_scanner.l +++ b/Zend/zend_language_scanner.l @@ -985,7 +985,7 @@ NEWLINE ("\r"|"\n"|"\r\n") "__METHOD__" { char *class_name = CG(active_class_entry) ? CG(active_class_entry)->name : NULL; - char *func_name = CG(active_op_array)->function_name; + char *func_name = CG(active_op_array)? CG(active_op_array)->function_name : NULL; size_t len = 0; if (class_name) {