mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
- WS
This commit is contained in:
parent
7c8de803d0
commit
2d24ebbe16
@ -1430,18 +1430,18 @@ static PHP_METHOD(PDOStatement, bindValue)
|
|||||||
param.param_type = PDO_PARAM_STR;
|
param.param_type = PDO_PARAM_STR;
|
||||||
|
|
||||||
if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC,
|
if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC,
|
||||||
"lz/|l", ¶m.paramno, ¶m.parameter, ¶m.param_type)) {
|
"lz/|l", ¶m.paramno, ¶m.parameter, ¶m.param_type)) {
|
||||||
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz/|l", ¶m.name,
|
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz/|l", ¶m.name,
|
||||||
¶m.namelen, ¶m.parameter, ¶m.param_type)) {
|
¶m.namelen, ¶m.parameter, ¶m.param_type)) {
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (param.paramno > 0) {
|
if (param.paramno > 0) {
|
||||||
--param.paramno; /* make it zero-based internally */
|
--param.paramno; /* make it zero-based internally */
|
||||||
} else if (!param.name) {
|
} else if (!param.name) {
|
||||||
pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "Columns/Parameters are 1-based" TSRMLS_CC);
|
pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "Columns/Parameters are 1-based" TSRMLS_CC);
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ZVAL_ADDREF(param.parameter);
|
ZVAL_ADDREF(param.parameter);
|
||||||
@ -1894,7 +1894,7 @@ static PHP_METHOD(PDOStatement, debugDumpParams)
|
|||||||
Prevents use of a PDOStatement instance that has been unserialized */
|
Prevents use of a PDOStatement instance that has been unserialized */
|
||||||
static PHP_METHOD(PDOStatement, __wakeup)
|
static PHP_METHOD(PDOStatement, __wakeup)
|
||||||
{
|
{
|
||||||
zend_throw_exception_ex(php_pdo_get_exception(TSRMLS_C), 0 TSRMLS_CC, "You cannot serialize or unserialize PDOStatement instances");
|
zend_throw_exception_ex(php_pdo_get_exception(TSRMLS_C), 0 TSRMLS_CC, "You cannot serialize or unserialize PDOStatement instances");
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
@ -1926,8 +1926,8 @@ zend_function_entry pdo_dbstmt_functions[] = {
|
|||||||
PHP_ME(PDOStatement, nextRowset, NULL, ZEND_ACC_PUBLIC)
|
PHP_ME(PDOStatement, nextRowset, NULL, ZEND_ACC_PUBLIC)
|
||||||
PHP_ME(PDOStatement, closeCursor, NULL, ZEND_ACC_PUBLIC)
|
PHP_ME(PDOStatement, closeCursor, NULL, ZEND_ACC_PUBLIC)
|
||||||
PHP_ME(PDOStatement, debugDumpParams, NULL, ZEND_ACC_PUBLIC)
|
PHP_ME(PDOStatement, debugDumpParams, NULL, ZEND_ACC_PUBLIC)
|
||||||
PHP_ME(PDOStatement, __wakeup, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
|
PHP_ME(PDOStatement, __wakeup, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
|
||||||
PHP_ME(PDOStatement, __sleep, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
|
PHP_ME(PDOStatement, __sleep, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
|
||||||
{NULL, NULL, NULL}
|
{NULL, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user