Abort class-pclzip.php : Missing zlib extensions

Bug #439407 reported by Scott Evans
112
This bug affects 20 people
Affects Status Importance Assigned to Milestone
zlib
Confirmed
Undecided
Unassigned
php5 (Ubuntu)
Confirmed
Undecided
Ubuntu Bugs
Nominated for Karmic by Heiko Roth

Bug Description

upon updating my ubuntu-server to karmic alpha6 I am having trouble with zlib1g package claiming to not be installed when it is!

example 1:
I use WordPress (2.9-rare) and I use a plug-in called Google XML Sitemaps, this uses the zlib1g package for compression but when run it fails to complete stating that "Fatal error: Call to undefined function gzopen() in /var/www/blog/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 1711"

example 2:
I also use the auto update feature as I'm using the daily builds, I get the following error from zlib1g "Abort class-pclzip.php : Missing zlib extensions"

So as you can see from example 1 "gzopen" is undefined but it's part of the zlib1g package right? and in example 2 it is failing to unzip a file this to is a function of zlib1g as well right?

All functionality of both these plug-ins was working fine with Jaunty! now broken under Karmic :(

ProblemType: Bug
Architecture: i386
Date: Thu Oct 1 00:34:27 2009
DistroRelease: Ubuntu 9.10
Package: zlib1g 1:1.2.3.3.dfsg-13ubuntu3
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: zlib
Uname: Linux 2.6.31-11-generic i686

Revision history for this message
Scott Evans (vk7hse) wrote :
Revision history for this message
Huy Doan (rgv151) wrote :

I second to this, i'm using karmic desktop edition.

Revision history for this message
Sam_inv (s-hollanders) wrote :

nr 3 alswo with karmic desktop

Revision history for this message
Dan Fornika (dfornika) wrote :

I'm also getting the error message "Abort class-pclzip.php : Missing zlib extensions" when I try to install new themes in Wordpress 2.8.4. I'm on Ubuntu Karmic Beta 1.

I don't know if it's a problem with zlib1g or php5-zlib. I seem to be missing zlib.so but don't know where to get it.

dfornika@talipo:~$ ls -l /usr/lib/php5/20060613+lfs/
total 396
-rw-r--r-- 1 root root 105312 2009-09-18 08:51 gd.so
-rw-r--r-- 1 root root 35324 2008-09-13 11:41 mcrypt.so
-rw-r--r-- 1 root root 101748 2009-09-18 08:51 mysqli.so
-rw-r--r-- 1 root root 44716 2009-09-18 08:51 mysql.so
-rw-r--r-- 1 root root 26496 2009-09-18 08:51 pdo_mysql.so
-rw-r--r-- 1 root root 85656 2009-09-18 08:51 pdo.so

Scott Evans (vk7hse)
Changed in zlib:
status: New → Confirmed
Changed in zlib (Ubuntu):
status: New → Confirmed
assignee: nobody → Ubuntu Bugs (ubuntu-bugs)
Revision history for this message
Ross Golder (ross-golder) wrote :

Seeing as this seems to be a build/packaging problem (/usr/lib/php5/zlib.so not getting into PHP5 package), shouldn't this be re-filed under PHP?

Revision history for this message
Scott Evans (vk7hse) wrote : Re: [Bug 439407] Re: Abort class-pclzip.php : Missing zlib extensions

I would have thought that is was part of the zlib packaging hence why I
submitted it here in the first place! I would have imagined that PHP5
would have merely made this a dependency of it?

On Wed, 2009-10-14 at 10:59 +0000, Ross Golder wrote:

> Seeing as this seems to be a build/packaging problem
> (/usr/lib/php5/zlib.so not getting into PHP5 package), shouldn't this be
> re-filed under PHP?
>

--
Scott Evans <email address hidden>

--
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately
by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified
that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Revision history for this message
Martin Bogomolni (martinbogo) wrote :

I created a new bug against php5 and referenced this one on it : https://bugs.launchpad.net/ubuntu/+source/zlib/+bug/439407

Revision history for this message
Martin Bogomolni (martinbogo) wrote :

Excuse me, wrong URL -- here is the correct one : https://bugs.launchpad.net/ubuntu/+source/php5/+bug/451405

Revision history for this message
Till Klampaeckel (till-php) wrote :

Guys,

I'm not sure why the file in Wordpress is, which makes it harder to debug, can you either point out the file using their online SVN repo (http://core.svn.wordpress.org/trunk/) or run the following script yourself:

<?php
var_dump(function_exists("gzopen"));
?>

Then, please link a phpinfo or provide php -m (cli).

Further more, are all you guys on i386 or on amd64 as well? The common issue with all zlib related PHP issues seems to be i386.

Just on a side-note, since the Ubuntu package is build with --enable-zlib it won't show a zlib.so in PHP's extension directory. You should only see .so files, for the extensions you build from other ubuntu packages (or manually from source).

Till

Revision history for this message
Dan Fornika (dfornika) wrote :

Till,

I'm running the 32-bit (i386) edition of Ubuntu 9.10 Beta (Desktop)

I ran the short var_dump() script you suggested, and it returned "bool(false)"

But php -m returns:

[PHP Modules]
bcmath
bz2
calendar
ctype
date
dba
dom
exif
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mime_magic
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_mysql
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

Revision history for this message
Martin Bogomolni (martinbogo) wrote :

default@beagleboard:~$ php5

<?php
var_dump(function_exists("gzopen"));
?>
bool(false)

Revision history for this message
Martin Bogomolni (martinbogo) wrote :

the previous was run on an armel system (arm cortex-a8) running karmic 9.10 beta fully updated

Linux beagleboard.i.smooth-stone.com 2.6.29-omap1 #6 PREEMPT Thu Sep 17 10:11:54 CDT 2009 armv7l GNU/Linux

So, the problem doesn't seem to be only limited to i386...

Revision history for this message
Martin Bogomolni (martinbogo) wrote :

default@beagleboard:~$ uname -a
Linux beagleboard.i.smooth-stone.com 2.6.29-omap1 #6 PREEMPT Thu Sep 17 10:11:54 CDT 2009 armv7l GNU/Linux
default@beagleboard:~$ php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
date
dba
dom
exif
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mime_magic
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_mysql
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]

Revision history for this message
Scott Evans (vk7hse) wrote :

scott@vk7hse:~$ uname -a
Linux vk7hse.hobby-site.org 2.6.31-14-generic #46-Ubuntu SMP Tue Oct 13
16:47:59 UTC 2009 i686 GNU/Linux

scott@vk7hse:~$ php test.php
bool(false)

scott@vk7hse:~$ php -m
[PHP Modules]
ADOdb
bcmath
bz2
calendar
ctype
curl
date
dba
dom
exif
filter
ftp
gd
gettext
gmp
hash
iconv
json
ldap
libxml
mbstring
mcrypt
mime_magic
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_mysql
posix
readline
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
standard
suhosin
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib

[Zend Modules]
Suhosin

--
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately
by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified
that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Revision history for this message
jpfle (jpfle) wrote :

I have this bug too. I updated from Ubuntu 9.04 to Ubuntu 9.10 Beta. All was OK on 9.04, but now with 9.10 I can't unzip a file on my local server. Here are some infos:

The code <?php var_dump(function_exists("gzopen")); ?> displays:
bool(false)

$ uname -a
Linux ordi 2.6.31-14-generic #46-Ubuntu SMP Tue Oct 13 16:47:59 UTC 2009 i686 GNU/Linux

$ php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
date
dba
dom
exif
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mime_magic
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_mysql
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]

Revision history for this message
Andreas Otto (andreas-otto) wrote :

Ubuntu 9.10
Linux ideapad01 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
PHP package 5.2.10.dfsg.1-2ubuntu6

php -r "var_dump(function_exists("gzopen"));"
bool(false)

php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
date
dba
dom
exif
filter
ftp
gd
gettext
hash
iconv
json
ldap
libxml
mbstring
mcrypt
mhash
mime_magic
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_mysql
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
uuid
wddx
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib

[Zend Modules]

Chuck Short (zulcss)
affects: zlib (Ubuntu) → php5 (Ubuntu)
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.