cvs: pecl /phar phar.c

From: Date: Fri, 01 Feb 2008 11:25:10 +0000
Subject: cvs: pecl /phar phar.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-9652@lists.php.net to get a copy of this message
tony2001 Fri Feb 1 11:25:10 2008 UTC Modified files: /pecl/phar phar.c Log: this string should be freed later since path == free_path http://cvs.php.net/viewvc.cgi/pecl/phar/phar.c?r1=1.283&r2=1.284&diff_format=u Index: pecl/phar/phar.c diff -u pecl/phar/phar.c:1.283 pecl/phar/phar.c:1.284 --- pecl/phar/phar.c:1.283 Mon Jan 28 14:39:16 2008 +++ pecl/phar/phar.c Fri Feb 1 11:25:10 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: phar.c,v 1.283 2008/01/28 14:39:16 sfox Exp $ */ +/* $Id: phar.c,v 1.284 2008/02/01 11:25:10 tony2001 Exp $ */ #define PHAR_MAIN 1 #include "phar_internal.h" @@ -1476,14 +1476,14 @@ ptr = tsrm_strtok_r(NULL, "/", &tok); } - efree(free_path); - if (path[path_length-1] == '/' && new_phar_len > 1) { new_phar = (char*)erealloc(new_phar, new_phar_len + 2); new_phar[new_phar_len++] = '/'; new_phar[new_phar_len] = 0; } + efree(free_path); + if (new_phar_len == 0) { new_phar = (char *) erealloc(new_phar, new_phar_len+1+1); new_phar[new_phar_len] = '/'; @@ -2687,7 +2687,7 @@ php_info_print_table_header(2, "Phar: PHP Archive support", "enabled"); php_info_print_table_row(2, "Phar EXT version", PHAR_EXT_VERSION_STR); php_info_print_table_row(2, "Phar API version", PHAR_API_VERSION_STR); - php_info_print_table_row(2, "CVS revision", "$Revision: 1.283 $"); + php_info_print_table_row(2, "CVS revision", "$Revision: 1.284 $"); php_info_print_table_row(2, "Phar-based phar archives", "enabled"); php_info_print_table_row(2, "Tar-based phar archives", "enabled"); php_info_print_table_row(2, "ZIP-based phar archives", "enabled");

« previous php.pecl.cvs (#9652) next »