mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
Fixed bug #23093 (highlight_string() crashed with __FUNCTION__)
This commit is contained in:
parent
5ae7fa422d
commit
0abeba5895
@ -985,7 +985,11 @@ NAMESPACE_NAME ({LABEL}":")+{LABEL}
|
||||
}
|
||||
|
||||
<ST_IN_SCRIPTING>"__FUNCTION__" {
|
||||
char *func_name = CG(active_op_array)->function_name;
|
||||
char *func_name = NULL;
|
||||
|
||||
if (CG(active_op_array)) {
|
||||
func_name = CG(active_op_array)->function_name;
|
||||
}
|
||||
|
||||
if (!func_name) {
|
||||
func_name = "";
|
||||
|
Loading…
Reference in New Issue
Block a user