Skip to content
Browse files

fix the fix

  • Loading branch information...
1 parent 99edaa3 commit 97e7ce733a6f765410e9f2c755f978a29e144005 @smalyshev smalyshev committed Mar 4, 2004
Showing with 6 additions and 2 deletions.
  1. +6 −2 Zend/zend_execute.h
View
8 Zend/zend_execute.h
@@ -93,9 +93,13 @@ static inline int i_zend_is_true(zval *op)
result = (zend_hash_num_elements(op->value.ht)?1:0);
break;
case IS_OBJECT:
- if(EG(ze1_compatibility_mode) && IS_ZEND_STD_OBJECT(op)) {
+ if(IS_ZEND_STD_OBJECT(*op)) {
TSRMLS_FETCH();
- result = (zend_hash_num_elements(Z_OBJPROP_PP(op))?1:0);
+ if(EG(ze1_compatibility_mode)) {
+ result = (zend_hash_num_elements(Z_OBJPROP_P(op))?1:0);
+ } else {
+ result = 1;
+ }
} else {
result = 1;
}

0 comments on commit 97e7ce7

Please sign in to comment.
Something went wrong with that request. Please try again.