pajoye Thu Aug 24 17:54:36 2006 UTC Modified files: /php-src/ext/zip php_zip.c Log: - store the resolved path http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.7&r2=1.8&diff_format=u Index: php-src/ext/zip/php_zip.c diff -u php-src/ext/zip/php_zip.c:1.7 php-src/ext/zip/php_zip.c:1.8 --- php-src/ext/zip/php_zip.c:1.7 Thu Aug 24 17:31:20 2006 +++ php-src/ext/zip/php_zip.c Thu Aug 24 17:54:36 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_zip.c,v 1.7 2006/08/24 17:31:20 pajoye Exp $ */ +/* $Id: php_zip.c,v 1.8 2006/08/24 17:54:36 pajoye Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -898,7 +898,7 @@ if (!intern || err) { RETURN_LONG((long)err); } - ze_obj->filename = estrndup(filename, filename_len); + ze_obj->filename = estrndup(resolved_path, strlen(resolved_path)); ze_obj->filename_len = filename_len; ze_obj->za = intern; RETURN_TRUE; @@ -1956,7 +1956,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.7 2006/08/24 17:31:20 pajoye Exp $"); + php_info_print_table_row(2, "Extension Version","$Id: php_zip.c,v 1.8 2006/08/24 17:54:36 pajoye Exp $"); php_info_print_table_row(2, "Zip version", "1.4.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