php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3234 Cannot specify default_socket though I can specify mysql.default_port
Submitted: 2000-01-17 10:12 UTC Modified: 2000-06-10 18:41 UTC
From: cshenton at uucom dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0 Latest CVS (17/01/2000) OS: Solaris-5.6 Sparc
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cshenton at uucom dot com
New email:
PHP Version: OS:

 

 [2000-01-17 10:12 UTC] cshenton at uucom dot com
I need to be able to specify a non-default socket for localhost mysql connections. I'd like to be able to specify in php.ini 

mysql.default_socket = /tmp/myspecial.sock

just like I can specify non-default port numbers with:

mysql.default_port = 63306	

This would help me, but it would also improve consistency. There's no code to handle this in php_mysql.c, though of course there is for the other default variables:

cd /opt/myphpproject/cvs/php4/ext/mysql/
grep -n mysql.default_ * /dev/null
php_mysql.c:284:	STD_PHP_INI_ENTRY("mysql.default_host",		NULL,	PHP_INI_ALL,			OnUpdateString,		default_host,		php_mysql_globals,		mysql_globals)
php_mysql.c:285:	STD_PHP_INI_ENTRY("mysql.default_user",		NULL,	PHP_INI_ALL,			OnUpdateString,		default_user,		php_mysql_globals,		mysql_globals)
php_mysql.c:286:	STD_PHP_INI_ENTRY("mysql.default_password",	NULL,	PHP_INI_ALL,			OnUpdateString,		default_password,	php_mysql_globals,		mysql_globals)
php_mysql.c:287:	PHP_INI_ENTRY("mysql.default_port",		NULL,	PHP_INI_ALL,			OnMySQLPort)

Thanks.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-10 18:41 UTC] zeev at cvs dot php dot net
Added in CVS (scheduled for 4.0.1)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 17:01:34 2024 UTC