]> granicus.if.org Git - php/commit
Fix a dumb bug that would effecively ignore persistent connections and create a
authorWez Furlong <wez@php.net>
Fri, 10 Jun 2005 05:47:55 +0000 (05:47 +0000)
committerWez Furlong <wez@php.net>
Fri, 10 Jun 2005 05:47:55 +0000 (05:47 +0000)
commit49e7b3da4cb5de5d88c24a4e7a8399cef21a1c71
treeb559209b8bae3df4e62c93bdd780ab54090a7435
parent3ff717812643d50fd5383a2dddfc87cb24e71bee
Fix a dumb bug that would effecively ignore persistent connections and create a
new one each time.

Add a hook for persistent connections: it is called when the object goes out of
scope, and offers the driver an opportunity to release per-request scoped data
at the right time.

This hook is used by pdo_sqlite to unregister UDFs, which are dangerous to keep
registered between requests.
ext/pdo/pdo_dbh.c
ext/pdo/php_pdo_driver.h