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);
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);
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);