Re: [PECL-DEV] Proposing MySQLnd Userland Handler
[email protected] (Keisial)
| Newsgroups | php.pecl.dev |
|---|---|
| Message-ID | <[email protected]> |
David Soria Parra wrote: > On 06.08.2010 23:59, Hannes Magnusson wrote: > > On Fri, Aug 6, 2010 at 21:11, David Soria Parra <[email protected]> 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. > > > 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.. > > doesn't work as a transparent proxy. > > -D You could if using the dark magic of runkit.