summaryrefslogtreecommitdiff
path: root/ext/dom/comment.c
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2004-01-22 21:16:05 +0000
committerRob Richards <rrichards@php.net>2004-01-22 21:16:05 +0000
commit7e619b7f5f0e1dbae7204e6c1ae72676d69d5166 (patch)
tree912ebbbd4fbfb881c8adfac6051bd0e6b7ef4a2d /ext/dom/comment.c
parentc4c6d5213aad7c6829c5efa22b89310e66d1567b (diff)
downloadphp-git-7e619b7f5f0e1dbae7204e6c1ae72676d69d5166.tar.gz
update constructors so they cant be called statically
Diffstat (limited to 'ext/dom/comment.c')
-rw-r--r--ext/dom/comment.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/dom/comment.c b/ext/dom/comment.c
index 15fceb4bdd..5963ff9e73 100644
--- a/ext/dom/comment.c
+++ b/ext/dom/comment.c
@@ -50,9 +50,7 @@ PHP_FUNCTION(dom_comment_comment)
char *value = NULL;
int value_len;
- id = getThis();
-
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &value, &value_len) == FAILURE) {
+ if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|s", &id, dom_comment_class_entry, &value, &value_len) == FAILURE) {
return;
}