|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-10 18:41 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 23:00:01 2025 UTC |
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.