I missed the discussion about this. Is there a bug in VCWD_REALPATH()? Can you explain?
Thanks. > -----Original Message----- > From: Pierre-Alain Joye [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 26, 2006 5:24 AM > To: php-cvs@lists.php.net > Subject: [PHP-CVS] cvs: php-src(PHP_5_2) /ext/zip php_zip.c > > pajoye Sat Aug 26 12:23:43 2006 UTC > > Modified files: (Branch: PHP_5_2) > /php-src/ext/zip php_zip.c > Log: > - don't rely/use VCWD_REALPATH, use expand_filepath instead > NB: that'd to be true for all this VCWD mess > > > http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1 > .2.7&r2=1.1.2.8&diff_format=u > Index: php-src/ext/zip/php_zip.c > diff -u php-src/ext/zip/php_zip.c:1.1.2.7 > php-src/ext/zip/php_zip.c:1.1.2.8 > --- php-src/ext/zip/php_zip.c:1.1.2.7 Fri Aug 25 16:03:00 2006 > +++ php-src/ext/zip/php_zip.c Sat Aug 26 12:23:43 2006 > @@ -16,7 +16,7 @@ > > +------------------------------------------------------------- > ---------+ > */ > > -/* $Id: php_zip.c,v 1.1.2.7 2006/08/25 16:03:00 pajoye Exp $ */ > +/* $Id: php_zip.c,v 1.1.2.8 2006/08/26 12:23:43 pajoye Exp $ */ > > #ifdef HAVE_CONFIG_H > #include "config.h" > @@ -905,7 +905,7 @@ > RETURN_FALSE; > } > > - if (!VCWD_REALPATH(filename, resolved_path)) { > + if (!expand_filepath(filename, resolved_path TSRMLS_CC)) { > RETURN_FALSE; > } > > @@ -1982,7 +1982,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.7 2006/08/25 16:03:00 pajoye Exp $"); > + php_info_print_table_row(2, "Extension Version","$Id: > php_zip.c,v > +1.1.2.8 2006/08/26 12:23:43 pajoye Exp $"); > php_info_print_table_row(2, "Zip version", "1.7.1"); > 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 > -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php