Re: [PHP-DEV] mysqlnd as a shared extension ?

2009-08-18 Thread Johannes Schlüter
Hi,

On Mon, 2009-08-17 at 19:12 +0200, Remi Collet wrote:
 My goal will be to provides both solutions (libmysql and mysqlnd) to be
 able to quickly switch from one to the other (for tests / benchmark)

Like others said I'd go with different static builds - it's not like PHP
would take ages to compile.

Other than that: it should be possible to build PHP first with
--with-mysql=shared,mysqlnd and then cd ext/mysql; phpize; ./configre;
make clean; make and end up with a .so using mysqlnd and one using
libmysql and then load one or the other. The mysqlnd core would still be
static but shouldn't hurt while measuring.

Didn't test this, though. Best is using different builds.

johannes



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



Re: [PHP-DEV] mysqlnd as a shared extension ?

2009-08-17 Thread Jani Taskinen

On 08/17/2009 08:12 PM, Remi Collet wrote:

Hi,

Building 5.3.1 snapshot with options
   --with-mysql=shared,mysqlnd
   --with-mysqli=shared,mysqlnd
   --with-pdo-mysql=shared,mysqlnd

create 3 .so files, ok.
But mysqlnd extension still build as static within php core.


It's not an extension.


Is it a way to build mysqlnd as a shared extension ?


No, it's not an extension.


Don't find any option and .m4 file set this extension as static
(changing this result in a .so which cannot be load)

My goal will be to provides both solutions (libmysql and mysqlnd) to be
able to quickly switch from one to the other (for tests / benchmark)


Not possible.


Any idea / solution ?


No idea or solutions.


P.S. main question is probably, should we use mysqlnd under linux ?


If you want to use experimental stuff then yes. Otherwise not.

--Jani


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



Re: [PHP-DEV] mysqlnd as a shared extension ?

2009-08-17 Thread Ulf Wendel

Remi Collet schrieb:


My goal will be to provides both solutions (libmysql and mysqlnd) to be
able to quickly switch from one to the other (for tests / benchmark)

Any idea / solution ?


Andrey might have. CC'ing him.


P.S. main question is probably, should we use mysqlnd under linux ?


Depends who you ask. If you ask me, go for it. If you don't, it remains 
untested forever. untested? Well not really. We never had that many 
tests before.


Ulf

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



Re: [PHP-DEV] mysqlnd as a shared extension ?

2009-08-17 Thread Tjerk Anne Meesters
Well, if you're doing speed comparisons why not just compile both
mysqlnd and mysql(i) as static? ;-)

On 8/18/09, Remi Collet fed...@famillecollet.com wrote:
 Hi,

 Building 5.3.1 snapshot with options
   --with-mysql=shared,mysqlnd
   --with-mysqli=shared,mysqlnd
   --with-pdo-mysql=shared,mysqlnd

 create 3 .so files, ok.
 But mysqlnd extension still build as static within php core.

 Is it a way to build mysqlnd as a shared extension ?

 Don't find any option and .m4 file set this extension as static
 (changing this result in a .so which cannot be load)

 My goal will be to provides both solutions (libmysql and mysqlnd) to be
 able to quickly switch from one to the other (for tests / benchmark)

 Any idea / solution ?

 Regards.

 P.S. main question is probably, should we use mysqlnd under linux ?

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




-- 
--
Tjerk

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