diff options
| -rw-r--r-- | execute.c | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -1087,6 +1087,11 @@ static int ih_function_exists(IH_HANDLER_PARAMS) | |||
| 1087 | return 1; | 1087 | return 1; |
| 1088 | } | 1088 | } |
| 1089 | 1089 | ||
| 1090 | if (name_len <= 0) { | ||
| 1091 | RETVAL_BOOL(0); | ||
| 1092 | return 1; | ||
| 1093 | } | ||
| 1094 | |||
| 1090 | lcname = zend_str_tolower_dup(name, name_len); | 1095 | lcname = zend_str_tolower_dup(name, name_len); |
| 1091 | 1096 | ||
| 1092 | /* Ignore leading "\" */ | 1097 | /* Ignore leading "\" */ |
