Fix for new version of PHP

function yield() broke some stuff in the new PHP