|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56811 doesn't compile with zlib 1.2.2
Submitted: 2006-01-31 12:41 UTC Modified: 2006-01-31 14:00 UTC
From: indeyets at gmail dot com Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.1.1 OS: FreeBSD 5.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
45 + 34 = ?
Subscribe to this entry?

 [2006-01-31 12:41 UTC] indeyets at gmail dot com
ZLIB 1.2.2 and earlier doesn't have Z_FIXED constant. it appeared in some newer version.
This should be added to requirements or, maybe, some other compression-strategy should be chosen for earlier versions.

Actual result:
 gcc -I. -I/tmp/tmpyNiIaV/pecl_http-0.21.0 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/pecl_http-0.21.0/include -I/var/tmp/pear-build-root/pecl_http-0.21.0/main -I/tmp/tmpyNiIaV/pecl_http-0.21.0 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpyNiIaV/pecl_http-0.21.0/http_encoding_api.c  -fPIC -DPIC -o .libs/http_encoding_api.o
/tmp/tmpyNiIaV/pecl_http-0.21.0/http_encoding_api.c: In function `_http_encoding_deflate':
/tmp/tmpyNiIaV/pecl_http-0.21.0/http_encoding_api.c:298: error: `Z_FIXED' undeclared (first use in this function)
/tmp/tmpyNiIaV/pecl_http-0.21.0/http_encoding_api.c:298: error: (Each undeclared identifier is reported only once
/tmp/tmpyNiIaV/pecl_http-0.21.0/http_encoding_api.c:298: error: for each function it appears in.)
/tmp/tmpyNiIaV/pecl_http-0.21.0/http_encoding_api.c: In function `_http_encoding_deflate_stream_init':
/tmp/tmpyNiIaV/pecl_http-0.21.0/http_encoding_api.c:400: error: `Z_FIXED' undeclared (first use in this function)
*** Error code 1

Stop in /var/tmp/pear-build-root/pecl_http-0.21.0.
ERROR: `make' failed


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-31 14:00 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

Thanks, I hope I'll be able to release v.22 in the next days.

You should be able to build with -DZ_FIXED=0
It's not used as default strategy.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 22:01:26 2024 UTC