cvs: php4 /ext/pcre php_pcre.c

From: Date: Mon, 22 Jan 2001 19:42:29 +0000
Subject: cvs: php4 /ext/pcre php_pcre.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3733@lists.php.net to get a copy of this message
andrei Mon Jan 22 11:42:29 2001 EDT Modified files: /php4/ext/pcre php_pcre.c Log: Don't need to check for out-of-memory condition. Index: php4/ext/pcre/php_pcre.c diff -u php4/ext/pcre/php_pcre.c:1.79 php4/ext/pcre/php_pcre.c:1.80 --- php4/ext/pcre/php_pcre.c:1.79 Mon Jan 22 11:29:44 2001 +++ php4/ext/pcre/php_pcre.c Mon Jan 22 11:42:29 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.79 2001/01/22 19:29:44 andrei Exp $ */ +/* $Id: php_pcre.c,v 1.80 2001/01/22 19:42:29 andrei Exp $ */ /* TODO: @@ -735,12 +735,6 @@ 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;

« previous php.cvs (#3733) next »