Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57380 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28573 invoked from network); 16 Jan 2012 18:05:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2012 18:05:04 -0000 Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fedoraproject.org from 217.70.183.195 cause and error) X-PHP-List-Original-Sender: remi@fedoraproject.org X-Host-Fingerprint: 217.70.183.195 relay3-d.mail.gandi.net Linux 2.6 Received: from [217.70.183.195] ([217.70.183.195:59657] helo=relay3-d.mail.gandi.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/37-07950-0D6641F4 for ; Mon, 16 Jan 2012 13:05:04 -0500 X-Originating-IP: 217.70.178.133 Received: from mfilter3-d.gandi.net (mfilter3-d.gandi.net [217.70.178.133]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 3D64DA8078 for ; Mon, 16 Jan 2012 19:05:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter3-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter3-d.gandi.net (mfilter3-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id Bg5mk1Y4ThaU for ; Mon, 16 Jan 2012 19:05:00 +0100 (CET) X-Originating-IP: 82.241.130.121 Received: from verne.famillecollet.com (pom51-2-82-241-130-121.fbx.proxad.net [82.241.130.121]) (Authenticated sender: remicollet@famillecollet.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPA id D90A0A808C for ; Mon, 16 Jan 2012 19:04:59 +0100 (CET) Message-ID: <4F1466B6.90507@fedoraproject.org> Date: Mon, 16 Jan 2012 19:04:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: PHP Internals References: <4F1069CF.50402@fedoraproject.org> <1326582775.6462.4.camel@guybrush> <4F13F9CF.3050902@fedoraproject.org> <4F1460D5.6070603@phpdoc.de> In-Reply-To: <4F1460D5.6070603@phpdoc.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Harcoded mysql.sock path in mysqlnd extension From: remi@fedoraproject.org (Remi Collet) Le 16/01/2012 18:39, Ulf Wendel a =C3=A9crit : > Am 16.01.2012 11:19, schrieb Remi Collet: >> P.S. well, don't know if having such a hardcoded path is a good idea..= . >=20 > mysqlnd is a libmysql drop-in replacement. Guess what libmysql does... = - > do "strings libmysqlclient.so | grep mysql.sock" on a standard source > build. $ strings /usr/lib64/mysql/libmysqlclient.so.18 | grep mysql.sock /var/lib/mysql/mysql.sock Which is taken from configure option --with-unix-socket-path=3D/var/lib/mysql/mysql.sock Default (cmake config) is /tmp/mysql.sock, but even upstream package don't use it and set it to %{mysqldatadir}/mysql.sock I'm ok with the hardcoded default value of /tmp/mysql.sock. I just don't understand why mysqlnd doesn't honour config option (even if this value will probably be never used) Regards, Remi.