Some php engine implementation doesn't have return_value_ptr properly set. Explicitly use &return_value.