[TYPO3-core] RFC: #9359: XML Problems with PHP5 and libxml

Steffen Kamper info at sk-typo3.de
Tue Mar 17 13:31:56 CET 2009


Hi olly,

Oliver Hader schrieb:
> Hi Steffen,
> 
> Steffen Kamper schrieb:
>> It remains to be seen how widespread this issue will become or how
>> quickly PHP will patch it, but one helpful option for new sites is to
>> enable the useCDATA option from t3lib_div::array2xml. This will cause
>> TYPO3 to insert CDATA anytime there are html entities within the
>> content. Once CDATA is present, the new content will work as expected.
>>
>> Solution:
>> Force use of CDATA.
>> The patch is originally from Jeff, i had the same problem where this
>> patch solved the problem, and in the BT entry you find other users where
>> the patch solved the problems.
> 
> This also means, that existing content in the database has to be
> re-written with the wrapping "<![CDATA[ ... ]]>", doesn't it?
> 
> olly

yes, that's correct. But if this problem exist on a server, the saved 
content is corrupted anyway. This puzzled me a very long time on a 
server and i wasn't able to find out what the problem was.

As soon the property is set, the content will be saved proper.

vg Steffen


More information about the TYPO3-team-core mailing list