diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-07-07 20:54:31 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-07-07 20:54:31 +0400 |
commit | 2ed8a170456c085491670a9beb62d4a6cac0903b (patch) | |
tree | 57b866c39321bd7e7b1a7e8efc8b70c0ff81167d /ext/pdo/pdo_stmt.c | |
parent | bce6a36c8a13d718cc308e4e48724c799863459a (diff) | |
download | php-git-2ed8a170456c085491670a9beb62d4a6cac0903b.tar.gz |
Refactored run_time_cache usage in object handlers
Diffstat (limited to 'ext/pdo/pdo_stmt.c')
-rw-r--r-- | ext/pdo/pdo_stmt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index bb24d307cb..c4ae2f6fe1 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -2183,7 +2183,7 @@ const zend_function_entry pdo_dbstmt_functions[] = { }; /* {{{ overloaded handlers for PDOStatement class */ -static void dbstmt_prop_write(zval *object, zval *member, zval *value, zend_uint cache_slot TSRMLS_DC) +static void dbstmt_prop_write(zval *object, zval *member, zval *value, void **cache_slot TSRMLS_DC) { pdo_stmt_t *stmt = Z_PDO_STMT_P(object); @@ -2196,7 +2196,7 @@ static void dbstmt_prop_write(zval *object, zval *member, zval *value, zend_uint } } -static void dbstmt_prop_delete(zval *object, zval *member, zend_uint cache_slot TSRMLS_DC) +static void dbstmt_prop_delete(zval *object, zval *member, void **cache_slot TSRMLS_DC) { pdo_stmt_t *stmt = Z_PDO_STMT_P(object); @@ -2480,7 +2480,7 @@ const zend_function_entry pdo_row_functions[] = { {NULL, NULL, NULL} }; -static zval *row_prop_read(zval *object, zval *member, int type, zend_uint cache_slot, zval *rv TSRMLS_DC) +static zval *row_prop_read(zval *object, zval *member, int type, void **cache_slot, zval *rv TSRMLS_DC) { pdo_row_t *row = (pdo_row_t *)Z_OBJ_P(object); pdo_stmt_t *stmt = row->stmt; @@ -2523,10 +2523,10 @@ static zval *row_prop_read(zval *object, zval *member, int type, zend_uint cache static zval *row_dim_read(zval *object, zval *member, int type, zval *rv TSRMLS_DC) { - return row_prop_read(object, member, type, -1, rv TSRMLS_CC); + return row_prop_read(object, member, type, NULL, rv TSRMLS_CC); } -static void row_prop_write(zval *object, zval *member, zval *value, zend_uint cache_slot TSRMLS_DC) +static void row_prop_write(zval *object, zval *member, zval *value, void **cache_slot TSRMLS_DC) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "This PDORow is not from a writable result set"); } @@ -2536,7 +2536,7 @@ static void row_dim_write(zval *object, zval *member, zval *value TSRMLS_DC) php_error_docref(NULL TSRMLS_CC, E_WARNING, "This PDORow is not from a writable result set"); } -static int row_prop_exists(zval *object, zval *member, int check_empty, zend_uint cache_slot TSRMLS_DC) +static int row_prop_exists(zval *object, zval *member, int check_empty, void **cache_slot TSRMLS_DC) { pdo_row_t *row = (pdo_row_t *)Z_OBJ_P(object); pdo_stmt_t *stmt = row->stmt; @@ -2563,10 +2563,10 @@ static int row_prop_exists(zval *object, zval *member, int check_empty, zend_uin static int row_dim_exists(zval *object, zval *member, int check_empty TSRMLS_DC) { - return row_prop_exists(object, member, check_empty, -1 TSRMLS_CC); + return row_prop_exists(object, member, check_empty, NULL TSRMLS_CC); } -static void row_prop_delete(zval *object, zval *offset, zend_uint cache_slot TSRMLS_DC) +static void row_prop_delete(zval *object, zval *offset, void **cache_slot TSRMLS_DC) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot delete properties from a PDORow"); } |