summaryrefslogtreecommitdiff
path: root/ext/qtdom
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-01-15 02:54:54 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-01-15 02:54:54 +0000
commita354531144b35d1ee2f0c748bd5eafefd729e27b (patch)
treee6b7a83f8c9b8bd67f002f96a4cd1134d29ae704 /ext/qtdom
parentc2d66fa8bfd9c7b05b3073ebcba65e85267fddb8 (diff)
downloadphp-git-a354531144b35d1ee2f0c748bd5eafefd729e27b.tar.gz
Getting rid of the old API parsing code.
Diffstat (limited to 'ext/qtdom')
-rw-r--r--ext/qtdom/qtdom.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/qtdom/qtdom.c b/ext/qtdom/qtdom.c
index 67dd51ea32..726b8bba23 100644
--- a/ext/qtdom/qtdom.c
+++ b/ext/qtdom/qtdom.c
@@ -209,7 +209,7 @@ static int qdom_find_children( zval **children, struct qdom_node *orig_node TSRM
creates a tree of an xml string */
PHP_FUNCTION(qdom_tree)
{
- zval *arg;
+ zval **arg;
char qt_ver1[200];
char *qt_ver = qt_ver1;
char *qdom_type_name;
@@ -217,11 +217,10 @@ PHP_FUNCTION(qdom_tree)
struct qdom_node *node;
zval *children;
- if (ZEND_NUM_ARGS() != 1 || getParameters(ht, 1, &arg) == FAILURE)
- {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
- convert_to_string(arg);
+ convert_to_string_ex(arg);
qdom_do_install_message_handler();
@@ -230,7 +229,7 @@ PHP_FUNCTION(qdom_tree)
object_init_ex(return_value, qdomdoc_class_entry_ptr);
add_property_stringl(return_value, "version", (char *) qt_ver, strlen(qt_ver), 1);
- doc = qdom_do_init( Z_STRVAL_P(arg) );
+ doc = qdom_do_init( Z_STRVAL_PP(arg) );
qdom_do_doc_type( doc, &qdom_type_name );