ID: 6175
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *XML functions
Description: XML functions no longer work in objects
I believe it's still a problem, but I'll have to recreate my test case. I'll try and
get to it soon.
Previous Comments:
---------------------------------------------------------------------------
[2001-03-31 11:17:17] [EMAIL PROTECTED]
do you still experience this error?
---------------------------------------------------------------------------
[2000-08-31 15:00:35] [EMAIL PROTECTED]
With today's CVS, including Andrei's latest change to xml.c (rev. 1.61), I can
generate a backtrace for the segfault that occurs when calling the xml_* routines from
the constructor:
Starting program: /usr/local/src/apache_1.3.12/src/httpd -X
Program received signal SIGSEGV, Segmentation fault.
0x80e3a0e in _efree (ptr=0x5a5a5a5a,
__zend_filename=0x81bb1a9 "zend_variables.c", __zend_lineno=98,
__zend_orig_filename=0x0, __zend_orig_lineno=0) at zend_alloc.c:196
196 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size);
(gdb) bt
#0 0x80e3a0e in _efree (ptr=0x5a5a5a5a,
__zend_filename=0x81bb1a9 "zend_variables.c", __zend_lineno=98,
__zend_orig_filename=0x0, __zend_orig_lineno=0) at zend_alloc.c:196
#1 0x80eea7e in zval_del_ref (p=0x8263b3c) at zend_variables.c:98
#2 0x80dc0cd in xml_parser_dtor (parser=0x8263b24) at xml.c:302
#3 0x80f3dc1 in list_entry_destructor (ptr=0x82d3be4) at zend_list.c:253
#4 0x80f2b1d in zend_hash_apply_deleter (ht=0x824b880, p=0x82b70a4)
at zend_hash.c:619
#5 0x80f2c3e in zend_hash_graceful_destroy (ht=0x824b880) at zend_hash.c:670
#6 0x80f3e97 in zend_destroy_rsrc_list () at zend_list.c:298
#7 0x80e9490 in shutdown_executor () at zend_execute_API.c:179
#8 0x80ef604 in zend_deactivate () at zend.c:520
#9 0x808070b in php_request_shutdown (dummy=0x0) at main.c:659
#10 0x807e887 in php_apache_request_shutdown (dummy=0x0) at mod_php4.c:291
#11 0x8124ee5 in run_cleanups (c=0x82b30f4) at alloc.c:1706
#12 0x812359b in ap_clear_pool (a=0x82b200c) at alloc.c:531
#13 0x812361b in ap_destroy_pool (a=0x82b200c) at alloc.c:561
#14 0x8123587 in ap_clear_pool (a=0x826600c) at alloc.c:528
#15 0x8133165 in child_main (child_num_arg=0) at http_main.c:3900
#16 0x81337a5 in make_child (s=0x8252034, slot=0, now=967748297)
at http_main.c:4281
#17 0x813391e in startup_children (number_to_start=3) at http_main.c:4363
#18 0x8133f28 in standalone_main (argc=2, argv=0xbfbffa48) at http_main.c:4651
#19 0x8134740 in main (argc=2, argv=0xbfbffa48) at http_main.c:4978
>From Apache's error log:
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
[Thu Aug 31 08:57:05 2000] [notice] child pid 57954 exit signal Segmentation fault (11)
---------------------------------------------------------------------------
[2000-08-23 10:30:05] [EMAIL PROTECTED]
If you're referring to Andrei's changes that accept the array($this, 'fooHandler')
syntax, no, it doesn't fix my problem, and I actually haven't gotten the new syntax to
work correctly, either. I'll try and look into it some more later today.
---------------------------------------------------------------------------
[2000-08-23 08:29:41] [EMAIL PROTECTED]
Wasn't this just fixed in cvs??
--Jani
---------------------------------------------------------------------------
[2000-08-21 10:25:09] [EMAIL PROTECTED]
All of my attempts to reduce the problem to a short script have failed, but I have
examples of working and non-working code you can look at.
I've made them available here: http://orca.gaiaservers.com/work/xml.tar.gz
xml.php works fine.
help.xml is the XML source file used in the following two files.
Help1.php calls the xml_* functions from the constructor and doesn't work.
Help2.php calls the xml_* functions from a separate init method and does work.
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the
comments, please view the bug report online.
Full Bug description available at: http://bugs.php.net/?id=6175
--
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]