[PHP-DEV] Bug #6175 Updated: XML functions no longer work in objects
ID: 6175 Updated by: jon Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: XML related Old Operating System: FreeBSD 4.3-STABLE Operating System: FreeBSD 4.4-STABLE Old PHP Version: 4.0 Latest CVS (08/05/2001) PHP Version: 4.1.0 RC3 New Comment: The problems appears to be fixed in PHP 4.1.0 RC3. Previous Comments: [2001-11-25 07:46:50] [EMAIL PROTECTED] Sorry to bug you once more, but can you try latest RC? http://www.php.net/~zeev/php-4.1.0RC3.tar.gz Feedback. [2001-05-08 16:23:25] [EMAIL PROTECTED] I still get a segfault here, pretty much the same as the last time: #0 0x0 in ?? () #1 0x281e9d90 in zend_hash_find (ht=0x811b9e4, arKey=0x815e1ec defaulthandler, nKeyLength=15, pData=0xbfbfd2b0) at zend_hash.c:850 #2 0x281dde7d in call_user_function_ex (function_table=0x80b9280, object_pp=0x81431c0, function_name=0x811bf6c, retval_ptr_ptr=0xbfbfd310, param_count=2, params=0x811ba6c, no_separation=1, symbol_table=0x0) at zend_execute_API.c:397 #3 0x281ddbfd in call_user_function (function_table=0x80b9280, object_pp=0x81431c0, function_name=0x811bf6c, retval_ptr=0x815e24c, param_count=2, params=0xbfbfd3ac) at zend_execute_API.c:325 #4 0x2827389c in xml_call_handler (parser=0x814318c, handler=0x811bf6c, argc=2, argv=0xbfbfd3ac) at xml.c:386 #5 0x282744cd in _xml_characterDataHandler (userData=0x814318c, s=0xbfbfd41b \n\200\202+(\f@\022\b0@\022\bE\223\021\b, len=1) at xml.c:804 #6 0x28285a40 in doContent (parser=0x8102400, startTagLevel=0, enc=0x282b8280, s=0x8124046 \ntitleMessage Composition: Actions/title\n headingActions/heading\npara\nSend Message launches your email to the intended recipient(s). Be sure you want to send before clicking h..., end=0x8126e29 , nextPtr=0x0) at xmlparse.c:1383 #7 0x28284e89 in contentProcessor (parser=0x8102400, start=0x8124022 help\n\nentry id=\compose-buttons\\ntitleMessage Composition: Actions/title\nheadingActions/heading\npara\nSend Message launches your email to the intended recipient(s). Be sur..., end=0x8126e29 , endPtr=0x0) at xmlparse.c:957 #8 0x28286d9d in prologProcessor (parser=0x8102400, s=0x8124022 help\n\nentry id=\compose-buttons\\ntitleMessage Composition: Actions/title\nheadingActions/heading\npara\nSend Message launches your email to the intended recipient(s). Be sur..., end=0x8126e29 , nextPtr=0x0) at xmlparse.c:2036 #9 0x28286ab2 in prologInitProcessor (parser=0x8102400, s=0x812400c ?xml version='1.0'?\nhelp\n\nentry id=\compose-buttons\\n titleMessage Composition: Actions/title\nheadingActions/heading\n para\nSend Message launches your email to the intende..., end=0x8126e29 , nextPtr=0x0) at xmlparse.c:1967 #10 0x28284a04 in php_XML_Parse (parser=0x8102400, s=0x812400c ?xml version='1.0'?\nhelp\n\nentry id=\compose-buttons\\n titleMessage Composition: Actions/title\nheadingActions/heading\n para\nSend Message launches your email to the intende..., len=11805, isFinal=1) at xmlparse.c:779 #11 0x28275376 in php_if_xml_parse (ht=3, return_value=0x811bd2c, this_ptr=0x0, return_value_used=0) at xml.c:1394 #12 0x281d7945 in execute (op_array=0x811f80c) at ./zend_execute.c:1504 #13 0x281d7b98 in execute (op_array=0x80ffd0c) at ./zend_execute.c:1544 #14 0x281e5e86 in zend_execute_scripts (type=8, file_count=3) at zend.c:748 #15 0x281f7754 in php_execute_script (primary_file=0xbfbff930) at main.c:1207 #16 0x281f3f6a in apache_php_module_main (r=0x8113034, display_source_mode=0) at sapi_apache.c:89 #17 0x281f494a in send_php (r=0x8113034, display_source_mode=0, filename=0x0) at mod_php4.c:532 #18 0x281f498a in send_parsed_php (r=0x8113034) at mod_php4.c:543 #19 0x8053fa1 in ap_invoke_handler () ---Type return to continue, or q return to quit--- #20 0x80686a8 in process_request_internal () #21 0x8068712 in ap_process_request () #22 0x805f6df in child_main () #23 0x805f89d in make_child () #24 0x805fa16 in startup_children () #25 0x8060024 in standalone_main () #26 0x806083c in main () #27 0x804eaa1 in _start () [2001-05-07 14:31:48] [EMAIL PROTECTED] It looks like the segfault has been fixed in CVS, can you check this on your end? Instead of a segfault though, I'm getting errors for each attempted event handler call: Warning: Unable to call handler startElement() in bug.php on line 26 Warning: Unable to call handler endElement() in bug.php on line 26 and so on. If I move this block from the constructor to another method, it works. $this-parser = xml_parser_create(); xml_set_object($this-parser, $this);
[PHP-DEV] Bug #6175 Updated: XML functions no longer work in objects
ID: 6175 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: *XML functions Operating system: FreeBSD 4.3-STABLE PHP Version: 4.0 Latest CVS (08/05/2001) Description: XML functions no longer work in objects I still get a segfault here, pretty much the same as the last time: #0 0x0 in ?? () #1 0x281e9d90 in zend_hash_find (ht=0x811b9e4, arKey=0x815e1ec defaulthandler, nKeyLength=15, pData=0xbfbfd2b0) at zend_hash.c:850 #2 0x281dde7d in call_user_function_ex (function_table=0x80b9280, object_pp=0x81431c0, function_name=0x811bf6c, retval_ptr_ptr=0xbfbfd310, param_count=2, params=0x811ba6c, no_separation=1, symbol_table=0x0) at zend_execute_API.c:397 #3 0x281ddbfd in call_user_function (function_table=0x80b9280, object_pp=0x81431c0, function_name=0x811bf6c, retval_ptr=0x815e24c, param_count=2, params=0xbfbfd3ac) at zend_execute_API.c:325 #4 0x2827389c in xml_call_handler (parser=0x814318c, handler=0x811bf6c, argc=2, argv=0xbfbfd3ac) at xml.c:386 #5 0x282744cd in _xml_characterDataHandler (userData=0x814318c, s=0xbfbfd41b \n\200\202+(\f@\022\b0@\022\bE\223\021\b, len=1) at xml.c:804 #6 0x28285a40 in doContent (parser=0x8102400, startTagLevel=0, enc=0x282b8280, s=0x8124046 \ntitleMessage Composition: Actions/title\n headingActions/heading\npara\nSend Message launches your email to the intended recipient(s). Be sure you want to send before clicking h..., end=0x8126e29 , nextPtr=0x0) at xmlparse.c:1383 #7 0x28284e89 in contentProcessor (parser=0x8102400, start=0x8124022 help\n\nentry id=\compose-buttons\\ntitleMessage Composition: Actions/title\nheadingActions/heading\npara\nSend Message launches your email to the intended recipient(s). Be sur..., end=0x8126e29 , endPtr=0x0) at xmlparse.c:957 #8 0x28286d9d in prologProcessor (parser=0x8102400, s=0x8124022 help\n\nentry id=\compose-buttons\\ntitleMessage Composition: Actions/title\nheadingActions/heading\npara\nSend Message launches your email to the intended recipient(s). Be sur..., end=0x8126e29 , nextPtr=0x0) at xmlparse.c:2036 #9 0x28286ab2 in prologInitProcessor (parser=0x8102400, s=0x812400c ?xml version='1.0'?\nhelp\n\nentry id=\compose-buttons\\n titleMessage Composition: Actions/title\nheadingActions/heading\n para\nSend Message launches your email to the intende..., end=0x8126e29 , nextPtr=0x0) at xmlparse.c:1967 #10 0x28284a04 in php_XML_Parse (parser=0x8102400, s=0x812400c ?xml version='1.0'?\nhelp\n\nentry id=\compose-buttons\\n titleMessage Composition: Actions/title\nheadingActions/heading\n para\nSend Message launches your email to the intende..., len=11805, isFinal=1) at xmlparse.c:779 #11 0x28275376 in php_if_xml_parse (ht=3, return_value=0x811bd2c, this_ptr=0x0, return_value_used=0) at xml.c:1394 #12 0x281d7945 in execute (op_array=0x811f80c) at ./zend_execute.c:1504 #13 0x281d7b98 in execute (op_array=0x80ffd0c) at ./zend_execute.c:1544 #14 0x281e5e86 in zend_execute_scripts (type=8, file_count=3) at zend.c:748 #15 0x281f7754 in php_execute_script (primary_file=0xbfbff930) at main.c:1207 #16 0x281f3f6a in apache_php_module_main (r=0x8113034, display_source_mode=0) at sapi_apache.c:89 #17 0x281f494a in send_php (r=0x8113034, display_source_mode=0, filename=0x0) at mod_php4.c:532 #18 0x281f498a in send_parsed_php (r=0x8113034) at mod_php4.c:543 #19 0x8053fa1 in ap_invoke_handler () ---Type return to continue, or q return to quit--- #20 0x80686a8 in process_request_internal () #21 0x8068712 in ap_process_request () #22 0x805f6df in child_main () #23 0x805f89d in make_child () #24 0x805fa16 in startup_children () #25 0x8060024 in standalone_main () #26 0x806083c in main () #27 0x804eaa1 in _start () Previous Comments: --- [2001-05-07 14:31:48] [EMAIL PROTECTED] It looks like the segfault has been fixed in CVS, can you check this on your end? Instead of a segfault though, I'm getting errors for each attempted event handler call: Warning: Unable to call handler startElement() in bug.php on line 26 Warning: Unable to call handler endElement() in bug.php on line 26 and so on. If I move this block from the constructor to another method, it works. $this-parser = xml_parser_create(); xml_set_object($this-parser, $this); xml_parser_set_option($this-parser, XML_OPTION_CASE_FOLDING, true); xml_set_element_handler($this-parser, startElement, endElement); xml_set_character_data_handler($this-parser, defaultHandler); --- [2001-04-02 23:47:51] [EMAIL PROTECTED] Yes. If these lines are used in an object's constructor: $this-parser = xml_parser_create(); xml_set_object($this-parser, $this);
[PHP-DEV] Bug #6175 Updated: XML functions no longer work in objects
ID: 6175 Updated by: cardinal Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *XML functions Operating system: PHP Version: 4.0 Latest CVS (02/04/2001) Assigned To: Comments: It looks like the segfault has been fixed in CVS, can you check this on your end? Instead of a segfault though, I'm getting errors for each attempted event handler call: Warning: Unable to call handler startElement() in bug.php on line 26 Warning: Unable to call handler endElement() in bug.php on line 26 and so on. If I move this block from the constructor to another method, it works. $this-parser = xml_parser_create(); xml_set_object($this-parser, $this); xml_parser_set_option($this-parser, XML_OPTION_CASE_FOLDING, true); xml_set_element_handler($this-parser, startElement, endElement); xml_set_character_data_handler($this-parser, defaultHandler); Previous Comments: --- [2001-04-02 23:47:51] [EMAIL PROTECTED] Yes. If these lines are used in an object's constructor: $this-parser = xml_parser_create(); xml_set_object($this-parser, $this); xml_parser_set_option($this-parser, XML_OPTION_CASE_FOLDING, true); xml_set_element_handler($this-parser, 'startElement', 'endElement'); xml_set_character_data_handler($this-parser, 'defaultHandler'); ... Apache will segfault with the following backtrace: #0 0x3 in ?? () #1 0x281e2391 in call_user_function_ex (function_table=0x80b9280, object_pp=0x80ffcc0, function_name=0x8148dcc, retval_ptr_ptr=0xbfbfd14c, param_count=2, params=0x81487ac, no_separation=1, symbol_table=0x0) at zend_execute_API.c:397 #2 0x281e2111 in call_user_function (function_table=0x80b9280, object_pp=0x80ffcc0, function_name=0x8148dcc, retval_ptr=0x80d570c, param_count=2, params=0xbfbfd1e8) at zend_execute_API.c:325 #3 0x2828ad5c in xml_call_handler (parser=0x80ffc8c, handler=0x8148dcc, argc=2, argv=0xbfbfd1e8) at xml.c:386 #4 0x2828b98d in _xml_characterDataHandler (userData=0x80ffc8c, s=0xbfbfd257 n ^-(f -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]