php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32839 php 4.3.11 + zlib 1.2.2 + GD library
Submitted: 2005-04-26 14:32 UTC Modified: 2005-04-26 15:18 UTC
From: fev at ukrti dot com dot ua Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.11 OS: Red Hat 7.3 kernel 2.6.3
Private report: No CVE-ID: None
 [2005-04-26 14:32 UTC] fev at ukrti dot com dot ua
Description:
------------
My Previous configuration:
Apache 1.3.33
PHP 4.3.10
Zlib 1.2.1
GD 2.0.33 or bundled version
MySQL 4.0.24

I want to update in my system 
PHP 4.3.11
Zlib 1.2.2
And if possible GD 2.0.33 external library.

First i clear my system from old Zlib library (/usr/lib, /usr/local/lib, /usr/include, /usr/local/include )
and then compile zlib with static and shared libraries in /usr.
Now in my system: ldconfig -v said

libz.so.1 -> libz.so.1.2.2
and /usr/lib has 

-rwxr-xr-x    1 root     root        74672 Apr 25 23:35 libz.a
lrwxr-xr-x    1 root     root           13 Apr 25 23:35 libz.so -> libz.so.1.2.2
lrwxr-xr-x    1 root     root           13 Apr 25 23:35 libz.so.1 -> libz.so.1.2.2
-rwxr-xr-x    1 root     root        71919 Apr 25 23:35 libz.so.1.2.2

/usr/include has headers source files Zlib 1.2.2.

Then i compile my ordinary configuration like this:

'./configure'
'--prefix=/usr/local/php-4.3.11'
'--with-config-file-path=/usr/local/php-4.3.11'
'--with-mysql=/usr/local/mysql'
'--with-mysql-sock=/usr/local/mysql/mysql.sock'
'--with-zlib=/usr'
'--with-gd' '--with-zlib-dir=/usr'
'--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local/libpng-1.2.8'
'--with-freetype-dir=/usr/local/freetype2'
'--with-ttf' '--enable-gd-native-ttf'
'--with-apache=/src/apache/apache_1.3.33'


In console php said
#/usr/local/php-4.3.11/bin/php -i

GD Support => enabled
GD Version => bundled (2.0.28 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
GIF Read Support => enabled
GIF Create Support => enabled
JPG Support => enabled
PNG Support => enabled
WBMP Support => enabled
XBM Support => enabled

ZLib Support => enabled
Compiled Version => 1.2.2
Linked Version => 1.2.2

BUT phpinfo() in Apache said:

GD Support 	enabled
GD Version 	bundled (2.0.28 compatible)
FreeType Support 	enabled
FreeType Linkage 	with freetype
GIF Read Support 	enabled
GIF Create Support 	enabled
JPG Support 	enabled
PNG Support 	enabled
WBMP Support 	enabled
XBM Support 	enabled

ZLib Support 	enabled
Compiled Version 	1.2.2
Linked Version 	1.2.1

It's looks very strange.

I have done many compilings and discovered this:
If i exclude GD parameters from configure (don't matter bundled version or external) i get:

'./configure'
'--prefix=/usr/local/php-4.3.11'
'--with-config-file-path=/usr/local/php-4.3.11'
'--with-mysql=/usr/local/mysql'
'--with-mysql-sock=/usr/local/mysql/mysql.sock'
'--with-zlib=/usr'
'--with-apache=/src/apache/apache_1.3.33'


console php said
#/usr/local/php-4.3.11/bin/php -i

ZLib Support => enabled
Compiled Version => 1.2.2
Linked Version => 1.2.2

AND phpinfo() in Apache said:

ZLib Support 	enabled
Compiled Version 	1.2.2
Linked Version 	1.2.2

Can u comment this ???
I don't know how to classify this. Bug? Error Compile? Something else???
Maybi this is Error of budled GD library with Zlib 1.2.1 library?

And also why GD bundled library from 4.3.10 PHP DON'T SYNCHRONIZE in 4.3.11 PHP with actual GD library 2.0.33???


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-26 14:47 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

You use wrong configure parameters.
 [2005-04-26 14:48 UTC] tony2001@php.net
What exactly looks strange? What are you talking about?
 [2005-04-26 14:49 UTC] tony2001@php.net
.
 [2005-04-26 15:12 UTC] fev at ukrti dot com dot ua
I am talking about this:
In console php with GD said
#/usr/local/php-4.3.11/bin/php -i

ZLib Support => enabled
Compiled Version => 1.2.2
Linked Version => 1.2.2

BUT phpinfo() in Apache said:

ZLib Support 	enabled
Compiled Version 	1.2.2
Linked Version 	1.2.1

....

Of course i recompile my MySQL 4.0.24.

Which parameter from configure wrong??? about ZLIB or about GD???
I said I have tried a lot of compiling and i used
'--with-zlib=/usr'
'--with-zlib=/usr/include'
'--with-zlib=/usr/local/zlib-1.2.2'

and do the same with 
'--with-gd' 
'--with-gd=/usr/local/gd-2.0.33'

And result is the same like first post all time when i try to compile.
 [2005-04-26 15:18 UTC] fev at ukrti dot com dot ua
My system don't have old Zlib libz.a (static and shared) 1.2.1 library. Only 1.2.2
BUT PHP take it from nowhere??? I don't understand this.
And this problem disappearing when i turn off parameters GD from configure.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 01 13:00:03 2025 UTC