Re: [PHP4BETA] CVS XML parser broken, put back the old one...

From: Date: Sat, 25 Sep 1999 16:42:36 +0000
Subject: Re: [PHP4BETA] CVS XML parser broken, put back the old one...
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4914@lists.php.net to get a copy of this message
thanx, fixed in CVS On Sat, 25 Sep 1999, Stefano Bagnara wrote: > in xml.c there are callback to the user functions.. they should pass to the user the "XML > parser" RESOURCE instead of the long containing the parser index... here is the code: > > if (parser->startElementHandler) { > args[0] = php3i_long_pval(parser->index); > args[1] = php3i_string_pval(name); > > in this way i got no handler to the resource but a number... and i cannot manage the xmlparser > with this long. > > so i tried to add this line: > args[0]->type = IS_RESOURCE; > > in this way the script should get the pointer as a resource, but php crashes... > i'm not familiar with zend and php sources.. so probably it's better that someone > else try to fix this.. > > i posted the code that shown the problem yesterday. and i done a bug report. > > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.version4 (#4914) next »