translate/languages/de/view

Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /sites/all/modules/l10n_server/l10n_community/translate.inc on line 320
Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /sites/all/modules/l10n_server/l10n_community/translate.inc on line 521
Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /sites/all/modules/l10n_server/l10n_community/translate.inc on line 540

CommentFileSizeAuthor
l10n_server_D5_unexpected_and_bug.patch1.56 KBhass

Comments

gábor hojtsy’s picture

What is your PHP version?

hass’s picture

PHP 4.3.10

gábor hojtsy’s picture

Status: Needs review » Needs work

Well, the construct we use is a PHP 5 construct: http://hu.php.net/foreach It should be checked whether we actually make use of the fact that it is by reference (ie. do we modify the value). If we do, then that code would need to be updated as well. Settings needs work for this.

Ps. PHP 4 is end of lifed, so you should really update to a later version. There are hordes of bugs and security issues in that 4.3 line which are fixed in later versions.

hass’s picture

Status: Needs work » Needs review

I know... :-( My new server needs to be configured...

hass’s picture

Status: Needs review » Needs work
gábor hojtsy’s picture

Just noting that these &s are significant, needed so that drupal_render() actually marks the handled form elements rendered and at the end of the form theme only the remaining forms are included, instead of the whole form rendered again.

hass’s picture

What makes a hotfix for me more required... :-(

gábor hojtsy’s picture

Status: Needs work » Fixed

Ok, added PHP 5 requirement to .info file.

hass’s picture

:-(

meba’s picture

Hass: PHP 4 is really End of Life. You should really move to PHP5 (contact me if you need help with server configuration).

hass’s picture

I don't need "help"... I need "time" to do it. So I need to downgrade to an older backup and run a version with security issues for now.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.