[Typo3-dev] t3lib_div::array2xml + php5 (WAS: Impexp + TemplaVoila's XML Datastructure field)

Kraft Bernhard kraftb at gmx.net
Wed Jun 15 12:23:13 CEST 2005


dan frost wrote:
> ...if anyone knows anything about the php5 + array2xml / xml2array bugs 
> then please tell me - I'll try to fix them today (have to!)

I found someone to already turn up my laptop ... here is the mail from
Ingmar and Kasper ...

But when I read it now I stumbled across the word "WAMP". Before I tought
it would be general PHP5 fault ... but pherhaps it is just in a windows
environment ...

I'm sorry but I can't test it under UNIX as we haven't got PHP5 on any of our
prod or dev servers ...


greets,
Bernhard

----- Forwarded message from Ingmar Schlecht <ingmar at typo3.org> -----

Delivery-date: Mon, 16 May 2005 20:25:46 +0200
Date: Mon, 16 May 2005 20:23:43 +0200
From: Ingmar Schlecht <ingmar at typo3.org>
To: Bernhard Kraft <kraftb at kraftb.at>
Subject: [Fwd: Re: Bug in PHP5's XML functions or t3lib_div::xml2array()]

Moin Bernhard,

hättest du zufällig Zeit und Lust, dich mit dem Problem zu beschäftigen?

Gruß
Ingmar

Subject: Re: Bug in PHP5's XML functions or t3lib_div::xml2array()
From: Kasper Skårhøj <kasper2005 at typo3.com>
Reply-To: kasper2005 at typo3.com
To: Ingmar Schlecht <ingmar at typo3.org>
Organization: Curby Soft Multimedia
Date: Mon, 16 May 2005 17:12:57 +0200

thanks,

I don't have time to check this myself at the moment. Is there someone
else who can take care of it?

- kasper


On Mon, 2005-05-16 at 16:28, Ingmar Schlecht wrote:

 >> Hi Kasper,
 >>
 >> in my apachefriends.org XAMPP based WAMP PHP5 environment, xml2array()
 >> doesn't work properly with entities.
 >>
 >> debug(t3lib_div::xml2array(t3lib_div::array2xml(array('this is
 >> <B>big</B>'))));
 >>
 >> Outputs: "this is Bbig/B" instead of "this is <B>big</B>" which it
 >> should have been.
 >>
 >> The problem is in xml2array(), because it just wipes out all entity
 >> references.
 >>
 >> The XML code produced by array2xml() is correct:
 >> <phparray> <numIndex index="0">this is &lt;B&gt;big&lt;/B&gt;</numIndex>
 >> </phparray>
 >>
 >> This results in various problems, for example a strange looking
 >> Help->About module as reported at http://bugs.typo3.org/view.php?id=1009
 >>
 >> I guess this is a bug of PHP's XML functions, but just wanted to report
 >> it to you, maybe you have a clue and can post it to the bugtracker as a
 >> bugnote to the bug mentioned above.
 >>
 >> cheers,
 >> Ingmar

-- - kasper
-- 
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50




More information about the TYPO3-dev mailing list