diff options
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index ece7d04dcd..0a2cc35148 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -999,6 +999,18 @@ ZEND_API int is_identical_function(zval *result, zval *op1, zval *op2) return FAILURE; } + +ZEND_API int is_not_identical_function(zval *result, zval *op1, zval *op2) +{ + result->type = IS_BOOL; + if ( is_identical_function( result, op1, op2 ) == FAILURE ) { + return FAILURE; + } + result->value.lval = !result->value.lval; + return SUCCESS; +} + + ZEND_API int is_equal_function(zval *result, zval *op1, zval *op2) { if (compare_function(result, op1, op2) == FAILURE) { |