mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
Sync zend_is_true with convert_to_boolean (fixes GMP test)
This commit is contained in:
parent
4c5b5d7201
commit
409e9134ac
@ -114,6 +114,8 @@ again:
|
||||
result = Z_TYPE(tmp) == IS_TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
zend_error(E_RECOVERABLE_ERROR, "Object of class %s could not be converted to boolean", Z_OBJ_P(op)->ce->name->val);
|
||||
} else if (Z_OBJ_HT_P(op)->get) {
|
||||
zval rv;
|
||||
zval *tmp = Z_OBJ_HT_P(op)->get(op, &rv TSRMLS_CC);
|
||||
|
Loading…
Reference in New Issue
Block a user