diff options
author | Andrei Zmievski <andrei@php.net> | 2001-01-22 19:42:29 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2001-01-22 19:42:29 +0000 |
commit | 5afcfc449878bed9e80c6cadf844af90a6a2fec3 (patch) | |
tree | 3a846ba180f3531c04be49902af54e555751479a /ext/pcre/php_pcre.c | |
parent | 5068444dfe726b0299e44c5c739c3e5482c7b906 (diff) | |
download | php-git-5afcfc449878bed9e80c6cadf844af90a6a2fec3.tar.gz |
Don't need to check for out-of-memory condition.
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 74311e35c7..69acdda7f3 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -735,12 +735,6 @@ char *php_pcre_replace(char *regex, int regex_len, alloc_len = 2 * subject_len + 1; result = emalloc(alloc_len * sizeof(char)); - if (!result) { - zend_error(E_WARNING, "Unable to allocate memory in pcre_replace"); - efree(re); - efree(offsets); - return NULL; - } /* Initialize */ match = NULL; |