diff options
author | Torben Wilson <torben@php.net> | 2000-03-29 22:05:19 +0000 |
---|---|---|
committer | Torben Wilson <torben@php.net> | 2000-03-29 22:05:19 +0000 |
commit | 521c8af6a4af285a0159b92640e37736d9e569de (patch) | |
tree | 596e0267f2ba576bd14fac24efcfb93341639d1e /Zend/zend_operators.c | |
parent | f50de70308ddfa3d8477634318fa059e11f52a30 (diff) | |
download | php-git-521c8af6a4af285a0159b92640e37736d9e569de.tar.gz |
Added !== (is not identical) operator.
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) { |