Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55143 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66390 invoked from network); 3 Sep 2011 10:17:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2011 10:17:22 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.218.42 mail-yi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:64705] helo=mail-yi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/C2-45280-0BEF16E4 for ; Sat, 03 Sep 2011 06:17:20 -0400 Received: by yie16 with SMTP id 16so2933330yie.29 for ; Sat, 03 Sep 2011 03:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=+2miGp1TLMdp2LzblortRUKYcZ6RLhcd71es1m+Y5SE=; b=xcRjo58S1Fh7oBdAjvbH8bZDMRVa1oEfmARLh2ACbXcOiLTsauWQ7nUulwsuq96Pyi pO3nqHYU90E1o4rgprLL0DUCnt5tv2fv//D7MctPwJdoTv97QD1GL0d86VFBVOgnY2UJ KaboTKwFgMreVggVvu2okYfF0hlQSOU05uxV8= MIME-Version: 1.0 Received: by 10.150.150.17 with SMTP id x17mr1785236ybd.383.1315045036595; Sat, 03 Sep 2011 03:17:16 -0700 (PDT) Received: by 10.147.168.14 with HTTP; Sat, 3 Sep 2011 03:17:16 -0700 (PDT) In-Reply-To: <4E61EE07.8030402@lsces.co.uk> References: <4E61EE07.8030402@lsces.co.uk> Date: Sat, 3 Sep 2011 12:17:16 +0200 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages? From: tyra3l@gmail.com (Ferenc Kovacs) On Sat, Sep 3, 2011 at 11:06 AM, Lester Caine wrote: > 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 assu= me > php was doing the same thing on Linux as windows. It would be useful if t= hey > DID do the same thing? But now the question is why do the Linux > distributions do what they do? > > I have to add -without-mysqlnd in the windows builds, and expected the sa= me > in the linux ones, but I'm not finding any switch in './configure --help'= to > enable/disable it at all, so how is it included in the core package that > Linux distributions are supplying? Since the bulk of users will be using = a > php distribution, rather than building their own, should there not be som= e > correlation between what is being tested and what is being used by most > users? In the past the first we know about problems such as the fun with > re-writing everybody's 'date' class is when the hosts apply the latest > updates? So saying it's not a PHP problem is not really an option? On one > hand one wants to update to get the latest security fixes, but there is t= he > niggling doubt that something will get broken in the process ... so one > switches this off just in case :( > > I hope this also explains some of the background to other posts I've made= . A > Firebird and Apache install run fairly transparently on either Linux or > Windows ( and I understand Mac ) with little need to document differences= , > but PHP can be fun to get a parallel system work on both. > mysql is(should be) disabled by default in the makefiles, so you have to pass --with-mysql* arguments to explicitly enable mysql in your build. if you don't need it, you can just omit the --with-mysql or set it to 'no' I don't know much about OpenSuse, but for debian you have to explicitly install the php5-mysql package, without that, you have no mysql related module in the module list generated by php -m. the windows build however seems interesting, I've just downloaded the php-5.3.8-nts-Win32-VC9-x86.zip package, and it shows the mysqlnd in the module list, albeit I don't see that explicitly added in the configure line: Configure Command =3D> cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=3DD:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=3DD:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=3DD:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=3Dshared" "--enable-object-out-dir=3D../obj/" "--enable-com-dotnet" "--with-mcrypt=3Dstatic" "--disable-static-analyze" maybe Pierre can elaborate why is that. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu