summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-05-25 10:01:06 +0000
committerAntony Dovgal <tony2001@php.net>2006-05-25 10:01:06 +0000
commit9dd24c6d8734126f86cc0bad7d99bf36b6c8ef71 (patch)
treecdf9b2e74d7cfa1d78cafab23e8f39c7f1de9827 /Zend/zend_operators.c
parentec79dd793d3c6f6500f4a67beb9b62eea44ad449 (diff)
downloadphp-git-9dd24c6d8734126f86cc0bad7d99bf36b6c8ef71.tar.gz
fix error messages when converting objects to other types
add new function MFB will follow soon
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r--Zend/zend_operators.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index cb207b1809..65a224840a 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -271,7 +271,8 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC)
zval dst; \
if (Z_OBJ_HT_P(op)->cast_object(op, &dst, ctype TSRMLS_CC) == FAILURE) { \
zend_error(E_RECOVERABLE_ERROR, \
- "Object of class %s could not be converted to " # ctype, Z_OBJCE_P(op)->name); \
+ "Object of class %s could not be converted to %s", Z_OBJCE_P(op)->name, \
+ zend_get_type_by_const(ctype)); \
} else { \
zval_dtor(op); \
Z_TYPE_P(op) = ctype; \