summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2002-06-29 15:30:27 +0000
committerAndi Gutmans <andi@php.net>2002-06-29 15:30:27 +0000
commitede84fa3840708a719ed0a39a2fbfc14dbb7fcc2 (patch)
tree83990be1c78d75236259dc3ab93012bf3801491f /Zend/zend_execute_API.c
parent20d02565df1370ff90bf4dec5c84a07894c4d9f3 (diff)
downloadphp-git-ede84fa3840708a719ed0a39a2fbfc14dbb7fcc2.tar.gz
- Improve some error messages.
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index d6120bf7ce..e7515c60c0 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -337,7 +337,7 @@ ZEND_API int zval_update_constant(zval **pp, void *arg TSRMLS_DC)
last = tsrm_strtok_r(p->value.str.val, ":", &temp);
if (zend_lookup_class(last, strlen(last), &ce TSRMLS_CC) == FAILURE) {
- zend_error(E_ERROR, "Invalid class! Improve this error message");
+ zend_error(E_ERROR, "Invalid class '%s'", last);
}
last = tsrm_strtok_r(NULL, ":", &temp);
@@ -348,12 +348,12 @@ ZEND_API int zval_update_constant(zval **pp, void *arg TSRMLS_DC)
break;
}
if (zend_hash_find(&(*ce)->class_table, last, strlen(last)+1, (void **)&ce) == FAILURE) {
- zend_error(E_ERROR, "Invalid class! Improve this error message");
+ zend_error(E_ERROR, "Invalid sub-class '%s'", last);
}
last = cur;
}
if (zend_hash_find(&(*ce)->constants_table, last, strlen(last)+1, (void **) &value) == FAILURE) {
- zend_error(E_ERROR, "Invalid class! Improve this error message");
+ zend_error(E_ERROR, "Invalid class constant '%s'", last);
}
const_value = **value;
zval_copy_ctor(&const_value);