diff options
author | Rob Richards <rrichards@php.net> | 2004-01-22 21:16:05 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2004-01-22 21:16:05 +0000 |
commit | 7e619b7f5f0e1dbae7204e6c1ae72676d69d5166 (patch) | |
tree | 912ebbbd4fbfb881c8adfac6051bd0e6b7ef4a2d /ext/dom/processinginstruction.c | |
parent | c4c6d5213aad7c6829c5efa22b89310e66d1567b (diff) | |
download | php-git-7e619b7f5f0e1dbae7204e6c1ae72676d69d5166.tar.gz |
update constructors so they cant be called statically
Diffstat (limited to 'ext/dom/processinginstruction.c')
-rw-r--r-- | ext/dom/processinginstruction.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/dom/processinginstruction.c b/ext/dom/processinginstruction.c index 13e1f79e82..3a57457122 100644 --- a/ext/dom/processinginstruction.c +++ b/ext/dom/processinginstruction.c @@ -50,9 +50,7 @@ PHP_FUNCTION(dom_processinginstruction_processinginstruction) char *name, *value = NULL; int name_len, value_len; - id = getThis(); - - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &name, &name_len, &value, &value_len) == FAILURE) { + if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os|s", &id, dom_processinginstruction_class_entry, &name, &name_len, &value, &value_len) == FAILURE) { return; } |