mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Fix compare_function() for IS_UNSET
This commit is contained in:
parent
a51deb5371
commit
da8ad4f20f
1 changed files with 2 additions and 1 deletions
|
@ -912,7 +912,8 @@ ZEND_API int compare_function(zval *result, zval *op1, zval *op2)
|
|||
return SUCCESS;
|
||||
}
|
||||
|
||||
if (op1->type == IS_BOOL || op2->type == IS_BOOL) {
|
||||
if (op1->type == IS_BOOL || op2->type == IS_BOOL
|
||||
|| op1->type == IS_UNSET || op2->type == IS_UNSET) {
|
||||
zendi_convert_to_boolean(op1, op1_copy, result);
|
||||
zendi_convert_to_boolean(op2, op2_copy, result);
|
||||
result->type = IS_LONG;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue