cvs: ZendEngine2 / zend_execute.c zend_execute_API.c
| From: | Andi Gutmans | Date: | Sat, 29 Jun 2002 15:30:27 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute.c zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-227@lists.php.net to get a copy of this message | ||
andi Sat Jun 29 11:30:27 2002 EDT
Modified files:
/ZendEngine2 zend_execute.c zend_execute_API.c
Log:
- Improve some error messages.
Index: ZendEngine2/zend_execute.c
diff -u ZendEngine2/zend_execute.c:1.349 ZendEngine2/zend_execute.c:1.350
--- ZendEngine2/zend_execute.c:1.349 Wed Jun 26 07:07:35 2002
+++ ZendEngine2/zend_execute.c Sat Jun 29 11:30:25 2002
@@ -2560,7 +2560,7 @@
EX(Ts)[EX(opline)->result.u.var].tmp_var = **value;
zval_copy_ctor(&EX(Ts)[EX(opline)->result.u.var].tmp_var);
} else {
- zend_error(E_ERROR, "Undefined constant. Improve this error message");
+ zend_error(E_ERROR, "Undefined class constant '%s'",
EX(opline)->op2.u.constant.value.str.val);
}
}
NEXT_OPCODE();
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.165 ZendEngine2/zend_execute_API.c:1.166
--- ZendEngine2/zend_execute_API.c:1.165 Wed Jun 26 11:13:14 2002
+++ ZendEngine2/zend_execute_API.c Sat Jun 29 11:30:27 2002
@@ -337,7 +337,7 @@
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 @@
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);