In php 5.4.32 the following line produces this fatal error:
....views/sales/register.php: 493","() Only variables should be passed by reference"
In php 5.5.14 it does not produce an error.
Is there a setting in php.ini that would cause this to give a fatal error in one install and not the other?
I forgot to post that oops I thought I typed it in:
<td class="right"><?php echo to_currency($this->Giftcard->get_giftcard_value(end(explode(':', $payment['payment_type']))) - $payment['payment_amount']);?></td>
I am not asking WHY it is wrong, but how to reproduce.
EDIT: New question:
How do I make php 5.5 produce a fatal error when "Only variables should be passed by reference" happens.
I want to have as much errors as possible in development mode to support as many php platforms as possible.