Re: Problems with Config - which leads to problems with XML_Parse
| From: | Stefan Neufeind | Date: | Tue, 19 Aug 2003 12:41:57 +0000 |
| Subject: | Re: Problems with Config - which leads to problems with XML_Parse | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20045@lists.php.net to get a copy of this message | ||
On 19 Aug 2003 at 14:25, Bertrand Mansion wrote:
> <wentz@gmx.de> wrote :
>
> > Hi there
> >
> > Just used Config to create a config-Array from a XML-File, worked
> > fine, but one variable was always wrong converted. I thought this
> > was because of wrong usage and tried some things ending in editing
> > the XML-File until the problem was gone - so i though ;-) For
> > example ...
> > <item>inc_functions.php</item>
> > ...
> > was converted to
> > ...["item"] = "ctions.php"
> >
> > the chars he cut off changed when i deleted cheras in items before
> > this one, so i thought this could be some kind of parsing problem,
> > and it really is! In XML_Parse the parse()-method reads data with
> > fread() and a block-size of 2048 and parses these chunks. It seems
> > like PHP's xml-parser doesn't like this, when i changed it to a full
> > read&parse it worked fine. PHP's manual for xml_parse() says that it
> > is ok to parse it in chunks, so I don't know what could be the
> > problem here, could it be misconfiguration here?
> >
> > I'm using PHP 4.3.2...
>
> Hi Stephan,
>
> I think you should file a bug on XML_Parse. You can do it there:
> http://bugs.php.net
>
> Thanks for your feedback.
Stephan,
as far as I understand the situation: Could you please verify if it's
a problem in XML_Parser or in the PHP-function xml_parse? If it's in
PHP we should urgently file a bug there since they are in the
(hopefully last) RC4 for a new php-release.
If the bug is in XML_Parse and you could send me a xml-file and small
(!) script where the problem occurs I'll have a look at it.
Stefan