mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
- Need to drop ce until engine gets fixed
This commit is contained in:
parent
ddd62f2b07
commit
6ce9bcc31e
@ -870,7 +870,7 @@ static int do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value,
|
||||
if (!ce->unserialize) {
|
||||
zend_throw_exception_ex(pdo_exception_ce, 0 TSRMLS_CC, "Class %s cannot be unserialized", ce->name);
|
||||
return 0;
|
||||
} else if (ce->unserialize(&return_value, ce, Z_TYPE_P(val) == IS_STRING ? Z_STRVAL_P(val) : "", Z_TYPE_P(val) == IS_STRING ? Z_STRLEN_P(val) : 0, NULL TSRMLS_CC) == FAILURE) {
|
||||
} else if (ce->unserialize(&return_value, Z_TYPE_P(val) == IS_STRING ? Z_STRVAL_P(val) : "", Z_TYPE_P(val) == IS_STRING ? Z_STRLEN_P(val) : 0, NULL TSRMLS_CC) == FAILURE) {
|
||||
zend_throw_exception_ex(pdo_exception_ce, 0 TSRMLS_CC, "Class %s cannot be unserialized", ce->name);
|
||||
zval_dtor(return_value);
|
||||
ZVAL_NULL(return_value);
|
||||
|
Loading…
Reference in New Issue
Block a user