summaryrefslogtreecommitdiff
path: root/ext/standard/incomplete_class.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-12-05 20:59:49 +0000
committerMarcus Boerger <helly@php.net>2002-12-05 20:59:49 +0000
commit49a99a98f4ce898c891cfa6fa313570de58a40db (patch)
tree3bfeac68dd836842177840e3c7b67e8e1235e0dc /ext/standard/incomplete_class.c
parent3cf581b1b3dbd992669ae3c8f80f71db576a2a9d (diff)
downloadphp-git-49a99a98f4ce898c891cfa6fa313570de58a40db.tar.gz
-php_error -> php_error_docref
-removed some cases where emalloc result was tested
Diffstat (limited to 'ext/standard/incomplete_class.c')
-rw-r--r--ext/standard/incomplete_class.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/incomplete_class.c b/ext/standard/incomplete_class.c
index ef0e2116c2..315350013a 100644
--- a/ext/standard/incomplete_class.c
+++ b/ext/standard/incomplete_class.c
@@ -37,17 +37,18 @@ static void incomplete_class_message(zend_property_reference *ref, int error_typ
{
char buf[1024];
char *class_name;
+ TSRMLS_FETCH();
class_name = php_lookup_class_name(ref->object, NULL, 0);
if (!class_name)
class_name = estrdup("unknown");
- snprintf(buf, 1023, INCOMPLETE_CLASS_MSG, class_name);
+ snprintf(buf, sizeof(buf)-1, INCOMPLETE_CLASS_MSG, class_name);
efree(class_name);
- php_error(error_type, "%s", buf);
+ php_error_docref(NULL TSRMLS_CC, error_type, "%s", buf);
}
/* }}} */