helly           Mon Sep 26 13:56:27 2005 EDT

  Modified files:              (Branch: PHP_5_1)
    /php-src/ext/spl    php_spl.c 
  Log:
  - MFH: Reset global pointer to NULL after mem free (required for apache 1.3)
  
http://cvs.php.net/diff.php/php-src/ext/spl/php_spl.c?r1=1.52.2.7&r2=1.52.2.8&ty=u
Index: php-src/ext/spl/php_spl.c
diff -u php-src/ext/spl/php_spl.c:1.52.2.7 php-src/ext/spl/php_spl.c:1.52.2.8
--- php-src/ext/spl/php_spl.c:1.52.2.7  Sun Sep 25 14:04:34 2005
+++ php-src/ext/spl/php_spl.c   Mon Sep 26 13:56:26 2005
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_spl.c,v 1.52.2.7 2005/09/25 18:04:34 helly Exp $ */
+/* $Id: php_spl.c,v 1.52.2.8 2005/09/26 17:56:26 helly Exp $ */
 
 #ifdef HAVE_CONFIG_H
        #include "config.h"
@@ -627,6 +627,7 @@
 PHP_RINIT_FUNCTION(spl) /* {{{ */
 {
        SPL_G(autoload_extensions) = estrndup(".inc,.php", 
sizeof(".inc,.php")-1);
+       SPL_G(autoload_functions) = NULL;
        return SUCCESS;
 } /* }}} */
 
@@ -639,6 +640,7 @@
        if (SPL_G(autoload_functions)) {
                zend_hash_destroy(SPL_G(autoload_functions));
                FREE_HASHTABLE(SPL_G(autoload_functions));
+               SPL_G(autoload_functions) = NULL;
        }
        return SUCCESS;
 } /* }}} */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to