PHP warning after 5.3.3 -> 5.3.3_1 bump
Greg Larkin
glarkin at FreeBSD.org
Thu Aug 26 12:41:51 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Morgan Wesström 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:
>
> PHP Warning: Module 'zlib' already loaded in Unknown on line 0
>
> Even a simple "php -v" displays this warning.
>
> - 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.
>
> This isn't critical I guess, but annoying. Any suggestions on how to
> solve this would be appreciated.
>
> 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=
=Zp+r
-----END PGP SIGNATURE-----
More information about the freebsd-ports
mailing list