ID: 42515
Updated by: [EMAIL PROTECTED]
Reported By: geoffers at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: Mac OS 10.4.10
PHP Version: 5.2.4
New Comment:
Mysql bug is not PHP bug. :)
Previous Comments:
------------------------------------------------------------------------
[2007-09-02 18:33:06] buildsmart at daleenterprise dot com
I can comment on this bug and this bug is bogus, the error is caused by
faulty binaries provided by mysql.org/mysql.com and not by PHP.
c12.apple.com:~ root# otool -L /usr/local/mysql/lib/libmysqlclient.
15.dylib
/usr/local/mysql/lib/libmysqlclient.15.dylib:
/usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
(compatibility version 16.0.0, current version 16.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current
version 88.1.5)
------------------------------------------------------------------------
[2007-09-02 15:32:27] jerry at scene-naturally dot dyndns dot org
Try installing the source version either the 5.1 development version or
the 5.0.nn version. doing so adds in the correct libs, etc.
The 5.1 source is at the bottom of
http://dev.mysql.com/downloads/mysql/5.1.html
(note: usually binary packages are not suited for using to build other
softwares.)
------------------------------------------------------------------------
[2007-09-01 19:54:36] geoffers at gmail dot com
Description:
------------
As #42464 is marked as bogus, and I cannot therefore comment on that:
The official MySQL binaries install at /usr/local/mysql. PHP tries to
read from /usr/local/mysql/lib/mysql, which does not exist.
The prior bug was marked as bogus due to ./buildconf being used: on a
non-"hackish" copy of PHP it fails too. Running just:
% cd php-5.2.4
% ./configure --with-mysql=/usr/local/mysql
./configure doesn't fail like jani claimed. Instead, it says that a
system library hasn't been found, and to email php-install. If you try
to run make regardless, it succeeds, but you cannot do anything with
the
binary as it cannot load the libraries.
Take a clean OS X install, install the mysql,org binary, then try to
compile PHP as above. It'll fail. This isn't a bogus report. This is a
real bug, which really makes PHP totally unusable.
Reproduce code:
---------------
% cd php-5.2.4
% ./configure --with-mysql=/usr/local/mysql
% make
Expected result:
----------------
Working PHP binary to be produced
Actual result:
--------------
A non-working PHP binary, trying to load dynamic libraries (which exist
in /usr/local/mysql/lib) from /usr/local/mysql/lib/mysql).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42515&edit=1