mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
removed duplicate code
This commit is contained in:
parent
bc5eb4b3b4
commit
2f604f67e8
1 changed files with 0 additions and 7 deletions
|
@ -81,13 +81,6 @@ static void mysqli_objects_dtor(void *object, zend_object_handle handle TSRMLS_D
|
||||||
if (intern->zo.ce == mysqli_link_class_entry) {
|
if (intern->zo.ce == mysqli_link_class_entry) {
|
||||||
MYSQL *mysql = (MYSQL *)intern->ptr;
|
MYSQL *mysql = (MYSQL *)intern->ptr;
|
||||||
if (mysql) {
|
if (mysql) {
|
||||||
/*
|
|
||||||
* Don't free mysql if there exist
|
|
||||||
* non closed statements
|
|
||||||
*/
|
|
||||||
if (mysql->stmts) {
|
|
||||||
mysql->free_me = 0;
|
|
||||||
}
|
|
||||||
mysql_close(mysql);
|
mysql_close(mysql);
|
||||||
}
|
}
|
||||||
} else if (intern->zo.ce == mysqli_stmt_class_entry) { /* stmt object */
|
} else if (intern->zo.ce == mysqli_stmt_class_entry) { /* stmt object */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue