|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-03 18:02 UTC] pajoye@php.net
[2009-07-03 18:02 UTC] pajoye@php.net
[2009-07-04 05:46 UTC] cellog@php.net
[2009-07-04 08:24 UTC] RalfBecker at outdoor-training dot de
[2009-07-23 16:30 UTC] svn@php.net
[2009-07-23 16:30 UTC] cellog@php.net
[2009-07-31 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 12:00:02 2025 UTC |
Description: ------------ If I try to read content.xml of an odt file (just a few lines, tried several files, created with different odt version on different plattforms), it always fails with error message the zip file is corrupted. Open Office itself, unzip or kde's ark can read it without problem. So I think the problem is related the zip implementation in phar. I get the same result with php5.2.9 under openSUSE11.0. Reading the directory with: php -r "print_r(scandir('phar://test.odt/'));" shows the files and gives no error or warning. Reproduce code: --------------- php -r "echo file_get_contents('phar://test.odt/content.xml');" Expected result: ---------------- xml of odt content Actual result: -------------- PHP Warning: file_get_contents(phar://test.odt/content.xml): failed to open stream: phar error: internal corruption of zip-based phar "/root/test.odt" (local header of file "content.xml" does not match central directory) in Command line code on line 1