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;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to