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/documentfragment.c | |
| parent | c4c6d5213aad7c6829c5efa22b89310e66d1567b (diff) | |
| download | php-git-7e619b7f5f0e1dbae7204e6c1ae72676d69d5166.tar.gz | |
update constructors so they cant be called statically
Diffstat (limited to 'ext/dom/documentfragment.c')
| -rw-r--r-- | ext/dom/documentfragment.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/dom/documentfragment.c b/ext/dom/documentfragment.c index a76922720a..a51c7af5a3 100644 --- a/ext/dom/documentfragment.c +++ b/ext/dom/documentfragment.c @@ -48,7 +48,9 @@ PHP_FUNCTION(dom_documentfragment_documentfragment) xmlNodePtr nodep = NULL, oldnode = NULL; dom_object *intern; - id = getThis(); + if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &id, dom_documentfragment_class_entry) == FAILURE) { + return; + } nodep = xmlNewDocFragment(NULL); |
