Need to upgrade integrated zip module

Bug #485760 reported by mbrancalion
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php
Unknown
Unknown
php5 (Ubuntu)
Fix Released
Undecided
Unassigned
Karmic
Won't Fix
Undecided
Chuck Short

Bug Description

Binary package hint: php5

Zip module ( version 1.8.11), found in the current php package in karmic (php5-common, 5.2.10.dfsg.1-2ubuntu6.1), should be upgraded to the latest version (1.10.2, as found in http://pecl.php.net/package-changelog.php?package=zip&release=1.10.2).

The actual zip module include generates a corrupted zip file, from within php script. Openoffice, for example, cannot open a .odt file created by a php script using this zip extension.
If i decompress the created file, and compress again with "zip" in bash, the odt document gets created in a correct way.
I'm attaching an example of incorrectly created file.

As far as i know, this problem didn't exist in previous versions of the ubuntu php package.

(A quick solution would be to recompile php without the integrated zip module...... but i'm trying to avoid it).

Any solution, apart ricompilation (by ubuntu's staff) of the entire package with the update zip ? .......
Thanks.

Marco Brancalion.

Tags: php zip
Revision history for this message
mbrancalion (marcobrancalion) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

This is fixed in php 5.2.11 which is in lucid however this might be a good candidate for an SRU.

Regards
chuck

Changed in php5 (Ubuntu):
status: New → Fix Released
Chuck Short (zulcss)
Changed in php5 (Ubuntu Karmic):
assignee: nobody → Chuck Short (zulcss)
Revision history for this message
Chuck Short (zulcss) wrote :

I havent been able to reproduce this.

Regards
chuck

Changed in php5 (Ubuntu Karmic):
status: New → Invalid
status: Invalid → Won't Fix
Revision history for this message
mbrancalion (marcobrancalion) wrote :

Update: i recompiled the actual php5 package (v. 5.2.10.dfsg.1-2ubuntu6.3), by using the "debian way" (apt-get source, etc).
I only changed the file "debian/rules" by stripping away the option "--enable-zip" in the COMMON_CONFIG variable.
And i changed the version number by adding a "-custom1", using debchange.

Once recompiled and installed, now (as i presumed) the zip module, which i had installed with pecl (v. 1.10.2) gets loaded, instead of being included in the php itself, and my problem is solved.

I hope that the next released php5 package will hook to that upgraded version of zip (1.10.2) ...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.