From 5afcfc449878bed9e80c6cadf844af90a6a2fec3 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Mon, 22 Jan 2001 19:42:29 +0000 Subject: Don't need to check for out-of-memory condition. --- ext/pcre/php_pcre.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ext/pcre/php_pcre.c') 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; -- cgit v1.2.1