version 1.1.1.2, 2012/05/29 12:34:40
|
version 1.1.1.3, 2013/07/22 01:31:55
|
Line 2
|
Line 2
|
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | |
| PHP Version 5 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2013 The PHP Group | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| This source file is subject to version 3.01 of the PHP license, | |
| This source file is subject to version 3.01 of the PHP license, | |
| that is bundled with this package in the file LICENSE, and is | |
| that is bundled with this package in the file LICENSE, and is | |
Line 338 static PHP_METHOD(PDO, dbh_constructor)
|
Line 338 static PHP_METHOD(PDO, dbh_constructor)
|
if (pdbh->std.properties) { |
if (pdbh->std.properties) { |
zend_hash_destroy(dbh->std.properties); |
zend_hash_destroy(dbh->std.properties); |
efree(dbh->std.properties); |
efree(dbh->std.properties); |
|
if (dbh->std.properties_table) { |
|
efree(dbh->std.properties_table); |
|
} |
} else { |
} else { |
pdbh->std.ce = dbh->std.ce; |
pdbh->std.ce = dbh->std.ce; |
pdbh->def_stmt_ce = dbh->def_stmt_ce; |
pdbh->def_stmt_ce = dbh->def_stmt_ce; |
Line 700 static PHP_METHOD(PDO, inTransaction)
|
Line 703 static PHP_METHOD(PDO, inTransaction)
|
RETURN_BOOL(dbh->in_txn); |
RETURN_BOOL(dbh->in_txn); |
} |
} |
|
|
RETURN_LONG(dbh->methods->in_transaction(dbh TSRMLS_CC)); | RETURN_BOOL(dbh->methods->in_transaction(dbh TSRMLS_CC)); |
} |
} |
/* }}} */ |
/* }}} */ |
|
|
Line 1575 static void pdo_dbh_free_storage(pdo_dbh_t *dbh TSRMLS
|
Line 1578 static void pdo_dbh_free_storage(pdo_dbh_t *dbh TSRMLS
|
} |
} |
zend_object_std_dtor(&dbh->std TSRMLS_CC); |
zend_object_std_dtor(&dbh->std TSRMLS_CC); |
dbh->std.properties = NULL; |
dbh->std.properties = NULL; |
|
dbh->std.properties_table = NULL; |
dbh_free(dbh TSRMLS_CC); |
dbh_free(dbh TSRMLS_CC); |
} |
} |
|
|