|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-25 11:17 UTC] bolk at hitv dot ru
[2006-02-25 21:14 UTC] pierre dot php at gmail dot com
[2006-02-26 03:25 UTC] bolk at hitv dot ru
[2006-02-26 08:16 UTC] pierre dot php at gmail dot com
[2006-02-27 03:10 UTC] bolk at hitv dot ru
[2006-02-27 11:24 UTC] pierre dot php at gmail dot com
[2006-02-28 19:38 UTC] pierre dot php at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 11:00:01 2025 UTC |
Description: ------------ rdev=makedev(136, 2), st_atime=2006/01/25-19:12:46, st_mtime=2006/01/25-19:12:46, st_ctime=2006/01/25-18:27:50}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb2259000 write(1, "Name: index.html\n", 31Name: index.html ) = 31 write(1, "Actual Filesize: 4109\n", 25Actual Filesize: 4109 ) = 25 write(1, "Compressed Size: 1523\n", 25Compressed Size: 1523 ) = 25 write(1, "Compression Method: deflated\n", 29Compression Method: deflated ) = 29 lseek(4, 0, SEEK_SET) = 0 read(4, "PK\3\4\24\0\2\0\10\0\373\22694sS\214\303\363\5\0\0\r\20"..., 30) = 30 lseek(4, 10, SEEK_CUR) = 40 lseek(4, 0, SEEK_CUR) = 40 write(1, "File Contents:\n", 15File Contents: ) = 15 read(4, "\215W\335N\33W\20\276n\244\274\303\251\257M,E\271\250Z"..., 1523) = 1523 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Reproduce code: --------------- <? $file = 'index.zip'; $zip = zip_open($file); if ($zip) { while ($zip_entry = zip_read($zip)) { echo "Name: " . zip_entry_name($zip_entry) . "\n"; echo "Actual Filesize: " . zip_entry_filesize($zip_entry) . "\n"; echo "Compressed Size: " . zip_entry_compressedsize($zip_entry) . "\n"; echo "Compression Method: " . zip_entry_compressionmethod($zip_entry) . "\n"; if (zip_entry_open($zip, $zip_entry, "r")) { echo "File Contents:\n"; $buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)); echo "$buf\n"; zip_entry_close($zip_entry); } echo "\n"; } zip_close($zip); } ?>