Re: Proposing MySQLnd Userland Handler

From: Date: Fri, 06 Aug 2010 21:59:50 +0000
Subject: Re: Proposing MySQLnd Userland Handler
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-7417@lists.php.net to get a copy of this message
On Fri, Aug 6, 2010 at 21:11, David Soria Parra <dsp@php.net> wrote: > Hi DevML, > > I would like to propose the pecl extension "MySQLnd Userland Handler" (mysqlnd_uh). > The plugin let you hook a mysqli connection if you use mysqlnd and install a userland proxy > class > for every call. This allows you to write SQL monitoring tools in PHP Userland. It works with > PHP 5.3.0 > and a first version will be marked as 0.1.0 alpha. Its an interesting idea, but is there any reason for doing this as an extension? You would have to update it every time mysqli adds new parameter, and when then installing the ext on an older PHP version would cause annoying inconsistencies between the proxy class and the core ext. Unless I'm missing something, this could be easily implemented in userland.. As this ext seems to only support mysqli, the same thing could be accomplished by simply extending the MySQLI* classes, and overwriting the methods you would want to proxy.. -Hannes

« previous php.pecl.dev (#7417) next »