contao/core — Issue #3862: Contao 2.11.RC2: Crash Zend Server 5.6 unter Windows
Author: juergenw
Created: 2012-01-27 14:25:14+00:00
State: open

The PHP 5.3.9 in Zend Server 5.6 for windows crashes in PHP5.DLL when Template.php is loaded by PHP. The message is exactly like described here for Typo 3: http://tobias-seckinger.de/2012/01/typo3-4-6-4-update-und-zend-server/

I think it is very probably a PHP 5.3.9 problem (maybe only the first Zend Server 5.6 version), and not Contao. I write this only to document the problem somewhere.

In fact when deleting the following 2 lines from system/libraries/Template.php, which have been added shortly, the problem goes away:
$strChunk = str_replace(array("/* */\n", "<!--\n", "\n//-->"), array('/* <![CDATA[ */', '', ''), $strChunk);
$strChunk = preg_replace(array('@(?<!:)//(?!W3C|DTD|EN).*@', '/[ \n\t]*(;|=|\{|\}|\[|\]|&&|,|<|>|\',|",|\':|":|: |\|\|)[ \n\t]*/'), array('', '$1'), $strChunk);