diff options
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index aa0596c54b..412c3e529f 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -314,6 +314,8 @@ ZEND_API void convert_to_long_base(zval *op, int base) if (ht) { retval = (zend_hash_num_elements(ht)?1:0); } + } else { + zend_error(E_NOTICE, "Object of class %s could not be converted to integer", Z_OBJCE_P(op)->name); } zval_dtor(op); @@ -381,6 +383,8 @@ ZEND_API void convert_to_double(zval *op) if (ht) { retval = (zend_hash_num_elements(ht)?1.0:0.0); } + } else { + zend_error(E_NOTICE, "Object of class %s could not be converted to double", Z_OBJCE_P(op)->name); } zval_dtor(op); |