This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Install & configuration » Incorrect display of tag opening and...

Incorrect display of tag opening and closing characters in XML block datatype with PHP 5.6

Incorrect display of tag opening and closing characters in XML block datatype with PHP 5.6

Monday 20 April 2015 7:08:14 pm - 8 replies

I tested with complete new installations of ezPublish 2014.11 using PHP 5.5 and PHP 5.6 respectively.
When creating a new article and using characters like &, < and >, these characters will be displayed correctly with PHP 5.5 but appear as &amp; &lt; and &gt; with PHP 5.6.
Does somebody know this problem?
Thank you for any help.

Modified on Tuesday 05 May 2015 7:49:57 pm by Birgit Haas

Tuesday 21 April 2015 5:31:47 pm

Hi Brigit,

I managed to reproduce this, it happens when creating content in the legacy admin interface, where ampersand is additionally encoded when the content is published.

I'm thinking this might be coming from libxml version, do you know what version of it is used in your case on PHP 5.5/5.6?

I'll try to test it more later.



Wednesday 22 April 2015 3:21:50 pm

Hi Petar,

on one system it's libxml2 2.9.1 with php 5.6.6 causing the problems.

On another system I tested with libxml2 2.7.8 with php 5.6.7 and had the encoding problems. When using php 5.5.23 the encoding is correct, but libxml is still the same version 2.7.8.

Cheers, Birgit

Monday 04 May 2015 6:15:48 pm

Hello Birgit,

I'm not certain why but the title of this forum post has broken the rss feed for this forum category.

I checked the feed to see what the problem was here:

It seems the title characters '& < and >' (at least) seem to have caused the problem.

While I'm not certain exactly why this is a problem (offhand without further testing and research, it might be a legacy bug).

Would you consider renaming your original forum post title?

You don't have to rename it, but it would be nice since this problem is affecting other users of the rss feeds of share forums (namely ) who can not access the feed content since this post's title is making the feed invalid and not parseable.

Either way I wish you the very best in finding the solution to the problem your asking about. Sorry I can't be of much help on this thread.


Tuesday 05 May 2015 1:21:28 pm

Hello Birgit,

It seems that that the problem I reported above is also breaking the global all forums rss feed as well.

This was reported this today here,

Please consider renaming your forum post as previously requested. You can do this by editing your original forum thread post and changing the title and publishing your changes.


Tuesday 05 May 2015 8:28:49 pm

Hello Birgit,

Thank you very much for silently renaming your forum post title.

This seems to have solved the problem everyone was having with the rss feeds.


Tuesday 16 June 2015 9:52:48 am

The initial problem seems to be out of scope somehow because of the rss-issue.

Anyway, we managed to reproduce the exact problem as initially described. Is there any way to have the entitiies handled correctly with php 5.6? Any hint where to start debugging?

Tuesday 16 June 2015 4:45:59 pm



I've tracked down the issue to be with structHandler for element #text in the ezxmlinputhandler in eZ Publish Legacy.

Before it is called the ampersands are correct.

 XML before callOutputHandler structHandler for element #text <kernel-datatype-ezxmltext>:
<?xml version="1.0" encoding="utf-8"?>
<section xmlns:image="" xmlns:xhtml="" xmlns:custom="">

But after it the ampersands are double encoded.

 XML after callOutputHandler structHandler for element #text <kernel-datatype-ezxmltext>:
<?xml version="1.0" encoding="utf-8"?>
<section xmlns:image="" xmlns:xhtml="" xmlns:custom="">
<line xmlns:tmp="" tmp:new-element="true">&amp;amp;&amp;lt;&amp;gt;</line>

This is happening with latest eZ Publish 5.4 Enterprise's Legacy stack on PHP 5.6

Modified on Tuesday 16 June 2015 4:49:31 pm by Peter Halasz

Wednesday 17 June 2015 1:41:00 pm

I've created a ticket about this as well.

You can find it at


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from