[TYPO3] EXT: Comments (error)

Dmitry Dulepov [typo3] dmitry at typo3.org
Wed Jul 23 21:30:03 CEST 2008


Hi!

Hartmut Steglich wrote:
> there is another issue with version 1.4.2 and 1.4.3 on TYPO3 4.1.7 and 
> PHP 4.3.10
> 
> Parse error: parse error, unexpected T_ARRAY, expecting '&' or 
> T_VARIABLE or T_CONST in 
> /htdocs/typo3conf/ext/comments/pi1/class.tx_comments_pi1.php on line 1260
> 
> Anyone having the same?
> 
> Thanks to Dmitry for his quick responses

Hm. I am using PHP5 and when I coded I automatically added PHP5 features there :( My aim with comments was always to stay compatible with PHP4 but... It just slipped in :(

You can make comments working with PHP4 by changing line 1260 from

	function substituteMarkersAndSubparts($template, array $markers, array $subparts) {

to

	function substituteMarkersAndSubparts($template, $markers, $subparts) {

-- 
Dmitry Dulepov
TYPO3 Core team
More about TYPO3: http://typo3bloke.net/
Subscribe: http://typo3bloke.net/rss.xml
Latest article: http://typo3bloke.net/post-details/extension_updates_loginusertrack_and_comments/


More information about the TYPO3-english mailing list