php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46219 pdo_mysql configure parameter ignored
Submitted: 2008-10-02 14:03 UTC Modified: 2009-05-03 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: norbi dot nagy at gmail dot com Assigned:
Status: No Feedback Package: PDO related
PHP Version: 5.2.6 OS: Linux 2.6.18-6-amd64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: norbi dot nagy at gmail dot com
New email:
PHP Version: OS:

 

 [2008-10-02 14:03 UTC] norbi dot nagy at gmail dot com
Description:
------------
The configure script ignores the path in --with-pdo-mysql option.

Reproduce code:
---------------
My configure line:
./configure --with-apache=../apache_1.3.41 --with-libdir=lib64 --with-mysql-dir=/usr/local/mysql51 --with-pdo-mysql=/usr/local/mysql51 --with-curl --with-curlwrappers --with-zlib --enable-ftp --enable-mbstring=all --with-iconv --with-freetype --with-gd --with-png --with-jpeg --with-openssl --with-libexpat --with-xsl --enable-xslt --with-xslt-sablot --with-sablot-js --with-mcrypt

Expected result:
----------------
The configure script uses the /usr/local/mysql51 path for pdo-mysql extension.

Actual result:
--------------
The configure script uses the /usr/local/mysql (this is a symlink to a mysql 5.0 installation) path instead of the configured one. When I delete this symlink, the configure script uses the correct configured path.
I tried the --with-mysql option instead of --with-mysql-dir, but the result was the same.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-02 15:28 UTC] johannes@php.net
Does /usr/local/mysql51/bin/mysql_config exist? What's the output of configure (The relevant part is starting with "checking for MySQL support for PDO...")?
 [2008-10-02 15:58 UTC] norbi dot nagy at gmail dot com
The /usr/local/mysql51/bin/mysql_config is exists.

The output:
checking for MySQL support for PDO... yes
checking for mysql_config... /usr/local/mysql51//bin/mysql_config
checking for mysql_query in -lmysqlclient... yes
checking for mysql_commit... yes
checking for mysql_stmt_prepare... yes
checking for mysql_next_result... yes
checking for mysql_sqlstate... yes
checking for PDO includes... checking for PDO includes... /work/source3/php-5.2.6/ext

I have a mysql 5.0.51a in /usr/local/mysql. When I run php -i from command line, I get this version for PDO_MYSQL. When I delete the /usr/local/mysql symlink, the PHP uses the correct PDO version from /usr/local/mysql51.
The configure output is the same in both cases.
 [2009-04-25 15:13 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-05-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 18 16:00:02 2025 UTC