diff options
| author | Andrei Zmievski <andrei@php.net> | 2002-07-30 04:07:15 +0000 |
|---|---|---|
| committer | Andrei Zmievski <andrei@php.net> | 2002-07-30 04:07:15 +0000 |
| commit | 82c72f2799927e5051780025924c82f4801e478d (patch) | |
| tree | 81d031524f748dab93466bc5af0502ae42f6e868 /Zend/zend_operators.h | |
| parent | 84ae5adf29f9cd11ae5f06579dc51ff57c444fa2 (diff) | |
| download | php-git-82c72f2799927e5051780025924c82f4801e478d.tar.gz | |
@- Adding 'is' operator that can be used to check the type of a variable,
@ or its class. (Andrei)
Diffstat (limited to 'Zend/zend_operators.h')
| -rw-r--r-- | Zend/zend_operators.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index aa27d26ef6..37f2f6bb21 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -58,6 +58,8 @@ ZEND_API int is_not_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) ZEND_API int is_smaller_function(zval *result, zval *op1, zval *op2 TSRMLS_DC); ZEND_API int is_smaller_or_equal_function(zval *result, zval *op1, zval *op2 TSRMLS_DC); +ZEND_API int is_type_function(zval *result, zval *op1, zend_class_entry *ce, int type TSRMLS_DC); + static inline zend_bool is_numeric_string(char *str, int length, long *lval, double *dval, zend_bool allow_errors) { long local_lval; |
