diff options
author | Andrey Hristov <andrey@php.net> | 1999-06-09 15:02:57 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 1999-06-09 15:02:57 +0000 |
commit | 2a64925a6767dcc000d8d63c2fd717c83b239e9d (patch) | |
tree | 5b1493f6a468db90e3ddb1041c675c6294c18ce5 /ext/standard/reg.c | |
parent | e5da9fc10a26a5bf3252d9ed2fce1f1379cc448f (diff) | |
download | php-git-2a64925a6767dcc000d8d63c2fd717c83b239e9d.tar.gz |
Fixed a bug in preg_replace.
Diffstat (limited to 'ext/standard/reg.c')
-rw-r--r-- | ext/standard/reg.c | 2 |
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; |