pajoye          Sun Jun  3 21:34:21 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/zip    php_zip.c 
  Log:
  - fix logic (goto is a gift, I should use it :)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.35&r2=1.1.2.36&diff_format=u
Index: php-src/ext/zip/php_zip.c
diff -u php-src/ext/zip/php_zip.c:1.1.2.35 php-src/ext/zip/php_zip.c:1.1.2.36
--- php-src/ext/zip/php_zip.c:1.1.2.35  Sun Jun  3 21:21:57 2007
+++ php-src/ext/zip/php_zip.c   Sun Jun  3 21:34:21 2007
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: php_zip.c,v 1.1.2.35 2007/06/03 21:21:57 pajoye Exp $ */
+/* $Id: php_zip.c,v 1.1.2.36 2007/06/03 21:34:21 pajoye Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1025,8 +1025,9 @@
 
                if (zip_add_dir(intern, (const char *)s) == -1) {
                        RETVAL_FALSE;
+               } else {
+                       RETVAL_TRUE;
                }
-               RETVAL_TRUE;
        }
 
        if (s != dirname) {
@@ -2050,7 +2051,7 @@
        php_info_print_table_start();
 
        php_info_print_table_row(2, "Zip", "enabled");
-       php_info_print_table_row(2, "Extension Version","$Id: php_zip.c,v 
1.1.2.35 2007/06/03 21:21:57 pajoye Exp $");
+       php_info_print_table_row(2, "Extension Version","$Id: php_zip.c,v 
1.1.2.36 2007/06/03 21:34:21 pajoye Exp $");
        php_info_print_table_row(2, "Zip version", "2.0.0");
        php_info_print_table_row(2, "Libzip version", "0.7.1");
 

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

Reply via email to