php.net |  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
Votes:4
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
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: hsk at imb-jena dot de
New email:
PHP Version: OS:

 

 [2014-12-01 13:56 UTC] hsk at imb-jena dot de
Description:
------------
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


Patches

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

Pull Requests

History

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] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-02-11 17:47 UTC] cmb@php.net
This is fixed[1] as of PHP 7.0.0.

[1] <https://github.com/php/php-src/commit/7fa10095603ae03f0028041620ffe80375a1c84c>
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 00:01:36 2025 UTC