|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-10-29 01:17 UTC] jbonci at akamai dot com
Description: ------------ The zlib directory detection routine starting at line 26362 in configure (descending from ext/zlib/config0.m4) will accept either: $ZLIB_DIR/include/zlib/zlib.h or $ZLIB_DIR/include/zlib.h On line 26393 of configure, it is trying to egrep zlib.h, but it only wants to accept the zlib.h location as: $ZLIB_DIR/include/zlib.h, leaving the former directory setup not working. The included 1-line patch uses the ZLIB_INCDIR to properly, instead of ZLIB_DIR get at zlib.h so the version checking succeeds. Actual result: -------------- It compiles with the above setup. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Getting an upload error saying it can't create patch storage. One line patch in unified format is listed here: diff --git a/ext/zlib/config0.m4 b/ext/zlib/config0.m4 index ebf67cc..a6381a0 100644 --- a/ext/zlib/config0.m4 +++ b/ext/zlib/config0.m4 @@ -42,7 +42,7 @@ if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then esac AC_MSG_CHECKING([for zlib version >= 1.2.0.4]) - ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_DIR/include/zlib.h | $SED -e 's/[[^0-9\.]]//g'` + ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_INCDIR/zlib.h | $SED -e 's/[[^0-9\.]]//g'` AC_MSG_RESULT([$ZLIB_VERSION]) if test `echo $ZLIB_VERSION | $SED -e 's/[[^0-9]]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then AC_MSG_ERROR([libz version greater or equal to 1.2.0.4 required])