diff options
Diffstat (limited to 'ext/standard/reg.c')
-rw-r--r-- | ext/standard/reg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/reg.c b/ext/standard/reg.c index 6382cfd739..c9f84ed973 100644 --- a/ext/standard/reg.c +++ b/ext/standard/reg.c @@ -261,6 +261,8 @@ static void _php3_ereg(INTERNAL_FUNCTION_PARAMETERS, int icase) end = subs[i].rm_eo; if (start != -1 && end > 0 && start < string_len && end < string_len && start < end) { add_index_stringl(array, i, string+start, end-start, 1); + } else { + add_index_bool(array, i, 0); } } efree(buf); |