cellog Sun Aug 31 06:51:49 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/phar phar.phar tar.c
Log:
remove superfluous variable declarations, merge WS from pecl/phar
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/phar.phar?r1=1.7.2.40&r2=1.7.2.41&diff_format=u
Index: php-src/ext/phar/phar.phar
diff -u php-src/ext/phar/phar.phar:1.7.2.40 php-src/ext/phar/phar.phar:1.7.2.41
--- php-src/ext/phar/phar.phar:1.7.2.40 Sun Aug 31 06:47:38 2008
+++ php-src/ext/phar/phar.phar Sun Aug 31 06:51:49 2008
@@ -1171,8 +1171,8 @@
new PharCommand($argc, $argv);
__HALT_COMPILER(); ?>
-6-+6+
¶Â²Øä±÷¡JÉþs±æêÔ*,8W?°!~ýë¸
Y
åBós.coîd!¨`w¡óLæÈ¹BÀí.å[aäÙs\í¹
gß×
óbnáN@@ -1229,4 +1229,4 @@
ùUNøÖ [EMAIL PROTECTED]"[EMAIL PROTECTED]
¬ËaYº[Ãâ¬mòvOë<ý]¸¹)×soS
jßZæ/]ûôÞv¿Ç½T%æ:ýÚ)cÚv]¶Ebô«ÐÓ*Çê=KÕO)ò)«Ë-Ô]µLí·¡7µ¾Í¨.î
zÿ.jß?8Tù®,:«Äa·éï¤Á»hg
±µÉH¨#[T5$ÜßÞ¶LÐâ¯z4ʼè)ÿLuÒñxï;ñ©Æø³;TMe,¯¿{}4b,[EMAIL PROTECTED]
íÑèµïtúÎþ®øÚ÷Eí»ú¡ÃÏàÇGxîÓá§¾óãæ]¢Õ~fI|øðP
j7l1ØÛPHüéÅiGH¬5´¯$ß/rªýëÐ~Ñúgìªz²¢ÎÛ¦puùäûù;â9³ä¯;[EMAIL
PROTECTED]
-Pàø3C°\ No newline at end of file
+Pàø3C°\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tar.c?r1=1.55.2.18&r2=1.55.2.19&diff_format=u
Index: php-src/ext/phar/tar.c
diff -u php-src/ext/phar/tar.c:1.55.2.18 php-src/ext/phar/tar.c:1.55.2.19
--- php-src/ext/phar/tar.c:1.55.2.18 Fri Aug 1 13:48:45 2008
+++ php-src/ext/phar/tar.c Sun Aug 31 06:51:49 2008
@@ -255,7 +255,6 @@
phar_tar_number(hdr->size, sizeof(hdr->size));
if (((!old && hdr->prefix[0] == 0) || old) && strlen(hdr->name)
== sizeof(".phar/signature.bin")-1 && !strncmp(hdr->name,
".phar/signature.bin", sizeof(".phar/signature.bin")-1)) {
- size_t read;
if (size > 511) {
if (error) {
spprintf(error, 4096, "phar error:
tar-based phar \"%s\" has signature that is larger than 511 bytes, cannot
process", fname);
@@ -370,7 +369,7 @@
return FAILURE;
}
- entry.tar_type = ((old & (hdr->typeflag ==
0))?'0':hdr->typeflag);
+ entry.tar_type = ((old & (hdr->typeflag == 0)) ? '0' :
hdr->typeflag);
entry.offset = entry.offset_abs = pos; /* header_offset unused
in tar */
entry.fp_type = PHAR_FP;
entry.flags = phar_tar_number(hdr->mode, sizeof(hdr->mode)) &
PHAR_ENT_PERM_MASK;
@@ -424,7 +423,6 @@
}
if (!actual_alias && entry.filename_len ==
sizeof(".phar/alias.txt")-1 && !strncmp(entry.filename, ".phar/alias.txt",
sizeof(".phar/alias.txt")-1)) {
- size_t read;
/* found explicit alias */
if (size > 511) {
if (error) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php