today i was getting this error on my php script:

Fatal error: Can't use function return value in write context in /www/index.php on line 39

in case you are alos getting this error, i will try to help you.

on my case, my script was showing me this error because i was running a for loop and i forgot to add the semicolon

this is how i had it:
for( $i2 = 0; $i2 < count($exceptions) ++$i2 ){


and this his how it should be:
for( $i2 = 0; $i2 < count($exceptions); ++$i2 ){


NOTICE the difference, i have a semicolon after "count($exceptions)"

hope this helps you