iliaa           Tue May 11 11:59:07 2004 EDT

  Modified files:              
    /php-src/ext/tidy   tidy.c 
  Log:
  Reset opt_name to NULL to ensure it's not re-used if numeric keys can be
  found inside the options array.
  
  
http://cvs.php.net/diff.php/php-src/ext/tidy/tidy.c?r1=1.50&r2=1.51&ty=u
Index: php-src/ext/tidy/tidy.c
diff -u php-src/ext/tidy/tidy.c:1.50 php-src/ext/tidy/tidy.c:1.51
--- php-src/ext/tidy/tidy.c:1.50        Sun May  9 10:00:14 2004
+++ php-src/ext/tidy/tidy.c     Tue May 11 11:59:07 2004
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: tidy.c,v 1.50 2004/05/09 14:00:14 john Exp $ */
+/* $Id: tidy.c,v 1.51 2004/05/11 15:59:07 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -841,6 +841,7 @@
         
                if(opt_name) {
                        _php_tidy_set_tidy_opt(doc, opt_name, *opt_val TSRMLS_CC);
+                       opt_name = NULL;
                }
                                        
        }
@@ -930,7 +931,7 @@
        php_info_print_table_start();
        php_info_print_table_header(2, "Tidy support", "enabled");
        php_info_print_table_row(2, "libTidy Release", (char *)tidyReleaseDate());
-       php_info_print_table_row(2, "Extension Version", PHP_TIDY_MODULE_VERSION " 
($Id: tidy.c,v 1.50 2004/05/09 14:00:14 john Exp $)");
+       php_info_print_table_row(2, "Extension Version", PHP_TIDY_MODULE_VERSION " 
($Id: tidy.c,v 1.51 2004/05/11 15:59:07 iliaa Exp $)");
        php_info_print_table_end();
 
        DISPLAY_INI_ENTRIES();

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

Reply via email to