Re: [PHP-DEV] Bug in objects+XML

2001-04-24 Thread Thies C. Arntzen
On Tue, Apr 24, 2001 at 03:57:05PM -0400, Jon Parise wrote: > On Tue, Apr 24, 2001 at 08:31:26PM +0200, Thies C. Arntzen wrote: > > [workaround snipped] > > > the problem here a cyclic references _and_ $this _not_ being > > the instantiated object (unless u use this ugly ampersand > >

Re: [PHP-DEV] Bug in objects+XML

2001-04-24 Thread Jon Parise
On Tue, Apr 24, 2001 at 08:31:26PM +0200, Thies C. Arntzen wrote: [workaround snipped] > the problem here a cyclic references _and_ $this _not_ being > the instantiated object (unless u use this ugly ampersand > hack as illustrated) Granted, it is a problem that can be worked aroun

Re: [PHP-DEV] Bug in objects+XML

2001-04-24 Thread Thies C. Arntzen
On Tue, Apr 24, 2001 at 08:49:18PM +0400, Vadka wrote: > > More, calling xml_parse_into_struct after normal xml_parse cause the > segfault too (repeating of xml_parse will cause no error). a minimal testcase would be nice - i'll look into that then! tc -- PHP Development Mailing List

Re: [PHP-DEV] Bug in objects+XML

2001-04-24 Thread Thies C. Arntzen
On Tue, Apr 24, 2001 at 08:00:47PM +0400, Vadka wrote: > > Hi! to get this working you have to say: class hallo { //... function &hallo($bla) { // ^ this is important! $this->parser = xml_parser_create(); xml_set_object($this->par

Re: [PHP-DEV] Bug in objects+XML

2001-04-24 Thread Vadka
More, calling xml_parse_into_struct after normal xml_parse cause the segfault too (repeating of xml_parse will cause no error). -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP-DEV] Bug in objects+XML

2001-04-24 Thread Vadka
On Tue, 24 Apr 2001, Jon Parise wrote: > [trimmed] > Would you say this is the same problem that I reported a while > back? > http://www.php.net/bugs.php?id=6175 Yes, it is, as I can see. The problem remains. For now, I have no so much time to hack it, but it seems that the pointer is assu

Re: [PHP-DEV] Bug in objects+XML

2001-04-24 Thread Jon Parise
On Tue, Apr 24, 2001 at 08:00:47PM +0400, Vadka wrote: > $Bad=0; // try to set it to 1 for segfault > > $taggz[0]="table_here"; > $taggz[1]="mydir"; > $functinz['table_here']="my_func"; > $functinz['mydir']="my_func"; > > error_reporting(E_ALL); > > Function my_func($atr){ > echo("Variable:--

[PHP-DEV] Bug in objects+XML

2001-04-24 Thread Vadka
Hi! Maybe, I'm not so correct, or something else, but. Try to run the script (php 4.0.6-dev). Compiled with: ./configure --with-sablot --with-dom --with-gettext --with-jpeg-dir=/usr --with-pops --with-xml=/usr/local --with-gdbm=/usr/local --enable-gd-native-ttf --with-gd --with-freetype-dir