Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55157 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3126 invoked from network); 3 Sep 2011 15:20:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2011 15:20:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 213.123.26.184 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.26.184 c2beaomr06.btconnect.com Received: from [213.123.26.184] ([213.123.26.184:14491] helo=mail.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/51-24201-E95426E4 for ; Sat, 03 Sep 2011 11:19:59 -0400 Received: from host81-138-11-136.in-addr.btopenworld.com (EHLO _10.0.0.4_) ([81.138.11.136]) by c2beaomr06.btconnect.com with ESMTP id EKR10934; Sat, 03 Sep 2011 16:19:55 +0100 (BST) Message-ID: <4E62459B.1090807@lsces.co.uk> Date: Sat, 03 Sep 2011 16:19:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110815 Firefox/6.0 SeaMonkey/2.3 MIME-Version: 1.0 To: PHP internals References: <4E61EE07.8030402@lsces.co.uk> <1315053753.2311.15.camel@guybrush> In-Reply-To: <1315053753.2311.15.camel@guybrush> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=tid=0001.0A0B0302.4E62459B.007D, actions=TAG X-Junkmail-Premium-Raw: score=7/50, refid=2.7.2:2011.9.3.143015:17:7.586, ip=81.138.11.136, rules=__MOZILLA_MSGID, __HAS_MSGID, __SANE_MSGID, __USER_AGENT, __MIME_VERSION, __TO_MALFORMED_2, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __CT, __CT_TEXT_PLAIN, __CTE, __ANY_URI, __URI_NO_MAILTO, __CP_URI_IN_BODY, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_1800_1899, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, RDNS_SUSP, BODY_SIZE_2000_LESS, BODY_SIZE_7000_LESS X-Junkmail-Status: score=10/50, host=c2beaomr06.btconnect.com X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B0207.4E62459C.000B:SCFSTAT14830815,ss=1,fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=multiengine X-Junkmail-IWF: false Subject: Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages? From: lester@lsces.co.uk (Lester Caine) Johannes Schlüter wrote: > On Sat, 2011-09-03 at 10:06 +0100, Lester Caine wrote: >> > OK done that ... >> > >> > http://lsces.co.uk/PHP/testphpinfo.php is the current PHP install managed via >> > SUSE. Additional .ini files shows what I've added from the package manager (and >> > my own extension builds), yet mysqlnd is listed as well. > You have a point of which i wasn't aware. > > mysqlnd is not yet default from php.net side but SuSE has chosen to do > so. Now there is one consequence: If mysqlnd is used it will be built > statically in PHP, even on Unix, even if the other MySQL modules are > built shared. This can be fixed by adding a specific configuration > option to enforce mysqlnd being build as its own shared .so, too. > > Doing this will add a small dependency issue as one has to ensure to > load mysqlnd first, then the other MySQL extensions. I think all > distributions are using a single mysql.ini file to activate all MySQL > extensions they would be able to list mysqlnd first in there and be > done. This is actually the area that I find very nice in the way all the distributions handle extensions ... Piling everything into php.ini makes for a large amount of redundant settings. Adding a separate .ini for each package makes a lot more sense, and all of the extension specific settings can be kept in the one place. You can then load a database driver along with all it's own configuration simply by enabling an .ini file? And optional configurations are handled away from the core php.ini. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php