|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68533 configure-option --with-mysql-sock is ignored with --with-mysqli
Submitted: 2014-12-01 13:56 UTC Modified: 2021-02-11 17:47 UTC
Avg. Score:3.0 ± 0.0
Reproduced:2 of 3 (66.7%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: hsk at imb-jena dot de Assigned: cmb (profile)
Status: Closed Package: *Compile Issues
PHP Version: 5.6.3 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: hsk at imb-jena dot de
New email:
PHP Version: OS:


 [2014-12-01 13:56 UTC] hsk at imb-jena dot de
configure-option --with-mysql-sock is documented as "MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer", but gets ignored (i.e., no "#define PHP_MYSQL_UNIX_SOCK_ADDR ..." in config.status or php_config.h) if only --with-mysqli is specified (i.e. without --with-mysql)

configure seems to process option --with-mysql-sock only if also --with-mysql is specified

while it would be easy to change the documentation :-), configure-script should be changed / enhanced to honour --with-mysql-sock in every case


patch-configure-mysql-sock (last revision 2015-12-09 17:14 UTC by nvizovitin at odin dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-02 08:03 UTC] eesau at oeoe dot fi
This bug is in the PHP 5.4.41 version too.
 [2015-12-09 17:19 UTC] nvizovitin at odin dot com
Attached patch-configure-mysql-sock that fixes the problem, IMO. The patch was created against php-5.6.14.

Please note that this issue actually affects any MySQL-related extension that uses --with-mysql-sock option, including both MySQLi and PDO_MYSQL.
 [2021-02-11 17:47 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-02-11 17:47 UTC]
This is fixed[1] as of PHP 7.0.0.

[1] <>
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Mar 06 11:01:23 2021 UTC