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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 10:01:33 2025 UTC