Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55151 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82421 invoked from network); 3 Sep 2011 12:01:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2011 12:01:09 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 213.123.26.187 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.26.187 c2beaomr09.btconnect.com Received: from [213.123.26.187] ([213.123.26.187:11488] helo=mail.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/65-45280-9E6126E4 for ; Sat, 03 Sep 2011 08:01:08 -0400 Received: from host81-138-11-136.in-addr.btopenworld.com (EHLO _10.0.0.4_) ([81.138.11.136]) by c2beaomr09.btconnect.com with ESMTP id EFY15994; Sat, 03 Sep 2011 13:00:38 +0100 (BST) Message-ID: <4E6216E6.4030005@lsces.co.uk> Date: Sat, 03 Sep 2011 13:00:38 +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> <52367.5626b8de.1315044617.nsm@avilys.eik.lt> In-Reply-To: <52367.5626b8de.1315044617.nsm@avilys.eik.lt> 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.0A0B0303.4E6216E6.0086, actions=tag X-Junkmail-Premium-Raw: score=7/50, refid=2.7.2:2011.9.3.104214: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, __HIGHBITS, __CP_URI_IN_BODY, BODY_SIZE_3000_3999, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, RDNS_SUSP, BODY_SIZE_7000_LESS X-Junkmail-Status: score=10/50, host=c2beaomr09.btconnect.com X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B020C.4E6216E7.0060: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) Tomas Kuliavas wrote: > 2011.09.03 12:06 Lester Caine rašė: >> New thread ... >> >>>> My SUSE installs all have mysqlnd included in the core, As do other >>>> Linux distributions. I think for much the same reason that the windows >>>> builds do as well? The PHP development team have decided that >>>> -without-mysqlnd is required to remove it rather than -with-mysqlnd is >>>> with other optional packages. THAT decision determines what the >>>> distributions all do and flags mysqlnd as a core package? >>> But I just told you that wasn't the case. Try it yourself. Download the >>> PHP tarball on your SUSE box and do ./configure&& make >>> Show me where mysqlnd is linked in. It isn't. >> >> 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. >> >> I will put my hands up that I am only _building_ my own distributions on >> windows, but since the core packages I am seeing on SUSE and Mandriva are >> the >> same as a default windows build, as provided by phpinfo(), I did assume >> php was >> doing the same thing on Linux as windows. It would be useful if they DID >> do the >> same thing? But now the question is why do the Linux distributions do what >> they do? > > SuSE builds PHP with --with-mysql=shared,mysqlnd. IMHO php-mysql is > suggested when you install php package. It is not required. > > Debian, Mandriva and Fedora build PHP with '--with-mysql=shared,/usr > --with-mysqli=shared,/usr/bin/mysql_config'. You haven't checked > Mandriva's PHP build and assumed that it is the same as on SuSE. > > You can always check ./configure options in their source packages. Mysqlnd > is new PHP feature and Linuxes used 'shared,/usr' for ages. This is a changing area, and I moved back to SUSE from Mandriva for other reasons, so it was older versions of PHP that I had on Mandriva installs. All have had mysqlnd listed, without my selecting mysql. Current state of play, the SUSE install includes mysqlnd with the core package, and mysql and mysqli are available as extra packages. Again - nowdays the 'required' dependency on MySQL does seem to have been dropped, but other PHP extensions sometimes flag that they need it - even when they don't, which is when a manual build of the extension is required. I'm currently trying to build a mod_php5.so replacement that does not include mysqlnd, really just as an exercise since I can live with the bloat as long as MySQL is not getting installed. The php has built fine, but --with-apxs2=/usr/sbin/apxs2 does not seem to be building the same things as SUSE expects ... It's little niggles like this which waste so much time :( -- 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