Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 2010 08:41:42 -0400
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= <freebsd-ports@pp.dyndns.biz>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: PHP warning after 5.3.3 -> 5.3.3_1 bump
Message-ID:  <4C766106.7050008@FreeBSD.org>
In-Reply-To: <4C76599F.3090000@pp.dyndns.biz>
References:  <4C76599F.3090000@pp.dyndns.biz>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Morgan Wesstr=F6m wrote:
> Upgraded lang/php from port revision 5.3.3 to 5.3.3_1 yesterday to
> include the new native MySQL drivers. Now I get the following warning
> every time a php script is executed:
>=20
> PHP Warning:  Module 'zlib' already loaded in Unknown on line 0
>=20
> Even a simple "php -v" displays this warning.
>=20
> - I have rebuilt php and all ports depending on it.
> - I have verified that extensions.ini doesn't contain duplicates.
> - I have searched for any other references to zlib.
>=20
> This isn't critical I guess, but annoying. Any suggestions on how to
> solve this would be appreciated.
>=20
> Regards
> Morgan

Hi Morgan,

The only time that I've seen that error, it has been caused by duplicate
extension loading.  If you've already removed duplicates from your
extensions.ini file, set up a page with the phpinfo() function so you
can see what other .ini file directories might be in the search path.

You might even get some good information from this command:

truss -f -a -s 256 -o /tmp/php-cli.log php -v

Once the process exits, check the /tmp/php-cli.log file and search for
"zlib" in it.  You might see the zlib extension loaded more than once
and be able to determine what .ini file is causing the duplication.

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFMdmEG0sRouByUApARApBXAKC1/BCNRLEAR7tw1bktX1lZydoJ4QCeMpQ0
iB009tb0kVYIZ4nh1Qw2X2Y=3D
=3DZp+r
-----END PGP SIGNATURE-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C766106.7050008>