Fixed PHP-722: Random segfault

Make sure our args fit onto the stack before pushing them.

This is really tricky to test in our testsuite. The testcase in the PHP-722 report does however confirm the fix.