tony2001 Sun Mar 19 22:57:47 2006 UTC
Modified files:
/php-src/ext/pdo pdo_dbh.c
Log:
this check should be present in HEAD as well, no only in 5_1
http://cvs.php.net/viewcvs.cgi/php-src/ext/pdo/pdo_dbh.c?r1=1.123&r2=1.124&diff_format=u
Index: php-src/ext/pdo/pdo_dbh.c
diff -u php-src/ext/pdo/pdo_dbh.c:1.123 php-src/ext/pdo/pdo_dbh.c:1.124
--- php-src/ext/pdo/pdo_dbh.c:1.123 Sun Mar 19 20:57:53 2006
+++ php-src/ext/pdo/pdo_dbh.c Sun Mar 19 22:57:47 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pdo_dbh.c,v 1.123 2006/03/19 20:57:53 helly Exp $ */
+/* $Id: pdo_dbh.c,v 1.124 2006/03/19 22:57:47 tony2001 Exp $ */
/* The PDO Database Handle Class */
@@ -1403,7 +1403,7 @@
if (!dbh->is_persistent) {
dbh_free(dbh TSRMLS_CC);
- } else if (dbh->methods->persistent_shutdown) {
+ } else if (dbh->methods && dbh->methods->persistent_shutdown) {
dbh->methods->persistent_shutdown(dbh TSRMLS_CC);
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php