PHP 4.0 Bug #3234: Cannot specify default_socket though I can specify mysql.default_port

From: Date: Mon, 17 Jan 2000 15:12:34 +0000
Subject: PHP 4.0 Bug #3234: Cannot specify default_socket though I can specify mysql.default_port
Groups: php.dev 
Request: Send a blank email to php-dev+get-14715@lists.php.net to get a copy of this message
From: cshenton@uucom.com Operating system: Solaris-5.6 Sparc PHP version: 4.0 Latest CVS (17/01/2000) PHP Bug Type: MySQL related Bug description: Cannot specify default_socket though I can specify mysql.default_port 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.

« previous php.dev (#14715) next »