|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-12-11 17:36 UTC] krang at krang dot org dot uk
Description:
------------
Sorry, I don't know much about the gzdeflate() function, but it appears in one of the libraries I use (pclzip.lib.php) to create zip files.
When it gets executed, it always causes a "Segmentation fault" on Apache 1.3.34 (not sure about other versions)
I have re-compiled PHP 4.4.1, and done "make test" with no problems. This is my configure line:
./configure
--prefix=/opt/php
--with-apxs=/opt/apache/bin/apxs
--with-config-file-path=/etc/
--with-jpeg-dir=/usr/local/
--with-zlib
--with-gd
--with-mysql=/opt/mysql/
--with-openssl
--with-kerberos
Reproduce code:
---------------
<?php
gzdeflate('smeg');
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 09:00:01 2025 UTC |
Just following up... I've done an install of the final 4.4.2 version of PHP and all seems well, although earlier this week I have installed a fresh (custom) copy of zlib 1.2.3. Originally this did not work, but this time I had read up on the need for the installer to create shared libraries. So the zlib installation used... ./configure make make install ./configure --shared make make install Then it was then just a case of getting PHP to use this new installation, which by default uses /usr/local/... ./configure --prefix=/opt/php --with-apxs=/opt/apache/bin/apxs --with-config-file-path=/etc/ --with-jpeg-dir=/usr/local/ --with-zlib=/usr/local/ --with-gd --with-mysql=/opt/mysql/ --with-openssl --with-kerberos I presume that the installation I have in /usr/ is corrupt or damaged in some way. Anyway, sorry for wasting your time, and I hope this helps anyone else with the same problem.