cvs: php4 /ext/xml xml.c

From: Date: Sun, 20 Aug 2000 15:59:55 +0000
Subject: cvs: php4 /ext/xml xml.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1263@lists.php.net to get a copy of this message
stas Sun Aug 20 08:59:55 2000 EDT Modified files: /php4/ext/xml xml.c Log: Fix XML by-reference passing Index: php4/ext/xml/xml.c diff -u php4/ext/xml/xml.c:1.58 php4/ext/xml/xml.c:1.59 --- php4/ext/xml/xml.c:1.58 Sat Jun 24 08:31:12 2000 +++ php4/ext/xml/xml.c Sun Aug 20 08:59:54 2000 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xml.c,v 1.58 2000/06/24 15:31:12 sas Exp $ */ +/* $Id: xml.c,v 1.59 2000/08/20 15:59:54 stas Exp $ */ #define IS_EXT_MODULE #include "php.h" @@ -94,9 +94,12 @@ /* }}} */ /* {{{ extension definition structures */ +static unsigned char second_arg_force_ref[] = { 2, BYREF_NONE, BYREF_FORCE }; +static unsigned char third_and_fourth_args_force_ref[] = { 4, BYREF_NONE, BYREF_NONE, BYREF_FORCE, BYREF_FORCE }; + function_entry xml_functions[] = { PHP_FE(xml_parser_create, NULL) - PHP_FE(xml_set_object, NULL) + PHP_FE(xml_set_object, second_arg_force_ref) PHP_FE(xml_set_element_handler, NULL) PHP_FE(xml_set_character_data_handler, NULL) PHP_FE(xml_set_processing_instruction_handler, NULL) @@ -105,7 +108,7 @@ PHP_FE(xml_set_notation_decl_handler, NULL) PHP_FE(xml_set_external_entity_ref_handler, NULL) PHP_FE(xml_parse, NULL) - PHP_FE(xml_parse_into_struct, NULL) + PHP_FE(xml_parse_into_struct, third_and_fourth_args_force_ref) PHP_FE(xml_get_error_code, NULL) PHP_FE(xml_error_string, NULL) PHP_FE(xml_get_current_line_number, NULL)

« previous php.cvs (#1263) next »