From: Andrei Zmievski Date: Mon, 22 Jan 2001 19:42:29 +0000 (+0000) Subject: Don't need to check for out-of-memory condition. X-Git-Tag: php-4.0.5RC1~492 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5afcfc449878bed9e80c6cadf844af90a6a2fec3;p=php Don't need to check for out-of-memory condition. --- 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;