It seems that the problem is this xdebug setting:
xdebug.collect_return="1"
If I change that to:
xdebug.collect_return="0"
everything works fine again.
It may have to do with this bug already reported on the xdebug tracking system, but I don't have the time and knowledge to test it.