Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55145 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69851 invoked from network); 3 Sep 2011 10:36:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2011 10:36:17 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:39355] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/63-45280-023026E4 for ; Sat, 03 Sep 2011 06:36:16 -0400 Received: by gxk27 with SMTP id 27so2889397gxk.29 for ; Sat, 03 Sep 2011 03:36:13 -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; bh=3atN8UfCcI6QZ+/yv5ot5RSws0rjaj1asg4X/lsofyg=; b=SgB1om9zvQ5GzZqJwx6jVgIBx1T3UwksLmivkvmfeMbQKwB6kx/+oMDD0xLbj+xJM9 5dFtDngAezegtB0gQ776mLizKXkvr6r47MsA3aSwAfwshtRDvV/AYHo2A/78VErKl64C y7fR8UaNjgrhCViHq2Jv7g7Tp7LvN8bhmBgxA= MIME-Version: 1.0 Received: by 10.150.166.3 with SMTP id o3mr1647550ybe.200.1315046172801; Sat, 03 Sep 2011 03:36:12 -0700 (PDT) Received: by 10.147.182.15 with HTTP; Sat, 3 Sep 2011 03:36:12 -0700 (PDT) Received: by 10.147.182.15 with HTTP; Sat, 3 Sep 2011 03:36:12 -0700 (PDT) In-Reply-To: References: <4E61EE07.8030402@lsces.co.uk> Date: Sat, 3 Sep 2011 12:36:12 +0200 Message-ID: To: Ferenc Kovacs Cc: Lester Caine , PHP internals Content-Type: multipart/alternative; boundary=000e0cd5ba12fe3b6b04ac070bba Subject: Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages? From: pierre.php@gmail.com (Pierre Joye) --000e0cd5ba12fe3b6b04ac070bba Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It is part of the default exts just like on unix with the difference window= s has no libmysql support anymore since 5.3 On Sep 3, 2011 12:17 PM, "Ferenc Kovacs" wrote: > 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 manage= d >> 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 ar= e >> 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? >> >> I have to add -without-mysqlnd in the windows builds, and expected the same >> 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 some >> 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 on= e >> hand one wants to update to get the latest security fixes, but there is the >> 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. > > -- > Ferenc Kov=E1cs > @Tyr43l - http://tyrael.hu > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --000e0cd5ba12fe3b6b04ac070bba--