- Added CURLOPT_TCP_NODELAY constant to Curl extension. (Sara)
- Improved proc_open(). Now on Windows it can run external commands not through
CMD.EXE. (Dmitry)
+- Fixed bug #40121 (PDO_DBLIB driver wont free statements). (Ilia)
- Fixed bug #40098 (php_fopen_primary_script() not thread safe). (Ilia)
- Fixed bug #40091 (spl_autoload_register with 2 instances of the same
class). (Ilia)
return 1;
}
+static int dblib_mysql_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC)
+{
+ pdo_dblib_stmt *S = (pdo_mysql_stmt*)stmt->driver_data;
+
+ if (S->rows) {
+ free_rows(S TSRMLS_CC);
+ S->rows = NULL;
+ }
+
+ return 1;
+}
struct pdo_stmt_methods dblib_stmt_methods = {
pdo_dblib_stmt_dtor,
NULL, /* set attr */
NULL, /* get attr */
NULL, /* meta */
+ NULL, /* nextrow */
+ dblib_mysql_stmt_cursor_closer
};