summaryrefslogtreecommitdiff
path: root/ext/ereg/ereg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ereg/ereg.c')
-rw-r--r--ext/ereg/ereg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ereg/ereg.c b/ext/ereg/ereg.c
index c839e1ab12..1373933780 100644
--- a/ext/ereg/ereg.c
+++ b/ext/ereg/ereg.c
@@ -319,7 +319,7 @@ char *_php3_regreplace(const char *pattern, const char *replace, const char *str
string_len = strlen(string);
if (!string_len)
- return (char *)string;
+ return estrndup("", 0);
if (icase)
copts = REG_ICASE;