php55: fix syntax error.

Closes #1269.
Closes #1270.
Closes #1271.
Closes #1273.
Closes #1274.
php56: fix syntax error.