Sync zend_is_true with convert_to_boolean (fixes GMP test)

This commit is contained in:
Nikita Popov 2014-05-06 19:03:02 +02:00
parent 4c5b5d7201
commit 409e9134ac

View File

@ -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);