summaryrefslogtreecommitdiff
path: root/ext/standard/reg.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>1999-06-09 15:02:57 +0000
committerAndrey Hristov <andrey@php.net>1999-06-09 15:02:57 +0000
commit2a64925a6767dcc000d8d63c2fd717c83b239e9d (patch)
tree5b1493f6a468db90e3ddb1041c675c6294c18ce5 /ext/standard/reg.c
parente5da9fc10a26a5bf3252d9ed2fce1f1379cc448f (diff)
downloadphp-git-2a64925a6767dcc000d8d63c2fd717c83b239e9d.tar.gz
Fixed a bug in preg_replace.
Diffstat (limited to 'ext/standard/reg.c')
-rw-r--r--ext/standard/reg.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/standard/reg.c b/ext/standard/reg.c
index 1373933780..72d3d53cff 100644
--- a/ext/standard/reg.c
+++ b/ext/standard/reg.c
@@ -318,8 +318,6 @@ char *_php3_regreplace(const char *pattern, const char *replace, const char *str
int err, copts = 0;
string_len = strlen(string);
- if (!string_len)
- return estrndup("", 0);
if (icase)
copts = REG_ICASE;