mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
Merge branch 'PHP-7.4'
This commit is contained in:
@@ -1092,17 +1092,6 @@ static int do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value, enum pdo_
|
||||
&val);
|
||||
zval_ptr_dtor(&val);
|
||||
} else {
|
||||
#ifdef MBO_0
|
||||
php_unserialize_data_t var_hash;
|
||||
|
||||
PHP_VAR_UNSERIALIZE_INIT(var_hash);
|
||||
if (php_var_unserialize(return_value, (const unsigned char**)&Z_STRVAL(val), Z_STRVAL(val)+Z_STRLEN(val), NULL) == FAILURE) {
|
||||
pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "cannot unserialize data");
|
||||
PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
|
||||
return 0;
|
||||
}
|
||||
PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
|
||||
#endif
|
||||
if (!ce->unserialize) {
|
||||
zval_ptr_dtor(&val);
|
||||
pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "cannot unserialize class");
|
||||
|
||||
Reference in New Issue
Block a user