summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2004-03-15 14:15:47 +0000
committerAndi Gutmans <andi@php.net>2004-03-15 14:15:47 +0000
commit14d711b9bb98de75e6adf51908e0901afe443825 (patch)
treef2896a2d4e5241a7d87d0f6330c191ba5b01af25
parent9a04d51b4aff1b91dd928fbf80cb9a9bdc898116 (diff)
downloadphp-git-14d711b9bb98de75e6adf51908e0901afe443825.tar.gz
- Nuke E_NOTICE. This caused a notice when doing if ($obj == NULL)
-rw-r--r--Zend/zend_operators.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index b46c101c42..aa0596c54b 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -314,8 +314,6 @@ 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);
@@ -383,8 +381,6 @@ 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);
@@ -473,8 +469,6 @@ ZEND_API void convert_to_boolean(zval *op)
if (ht) {
retval = (zend_hash_num_elements(ht)?1:0);
}
- } else {
- zend_error(E_NOTICE, "Object of class %s could not be converted to boolean", Z_OBJCE_P(op)->name);
}
zval_dtor(op);