Lines Matching refs:op
63 ZEND_API int zend_is_true(zval *op);
80 static inline int i_zend_is_true(zval *op) in i_zend_is_true() argument
84 switch (Z_TYPE_P(op)) { in i_zend_is_true()
91 result = (Z_LVAL_P(op)?1:0); in i_zend_is_true()
94 result = (Z_DVAL_P(op) ? 1 : 0); in i_zend_is_true()
97 if (Z_STRLEN_P(op) == 0 in i_zend_is_true()
98 || (Z_STRLEN_P(op)==1 && Z_STRVAL_P(op)[0]=='0')) { in i_zend_is_true()
105 result = (zend_hash_num_elements(Z_ARRVAL_P(op))?1:0); in i_zend_is_true()
108 if(IS_ZEND_STD_OBJECT(*op)) { in i_zend_is_true()
111 if (Z_OBJ_HT_P(op)->cast_object) { in i_zend_is_true()
113 if (Z_OBJ_HT_P(op)->cast_object(op, &tmp, IS_BOOL TSRMLS_CC) == SUCCESS) { in i_zend_is_true()
117 } else if (Z_OBJ_HT_P(op)->get) { in i_zend_is_true()
118 zval *tmp = Z_OBJ_HT_P(op)->get(op TSRMLS_CC); in i_zend_is_true()