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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to