doctrine/doctrine1 — pull request #55 by marioawad (2012-07-10 10:37:31+00:00)
Title: A bug in PHP 5.3.3 (and maybe other 5.3.x versions) caused this change.

Reference: https://bugs.php.net/bug.php?id=54545

The change I made is to make sure that optional arguments are only supplied when necessary.

Tested and working in production.

Also, I searched the whole Doctrine 1.2.x codebase and made sure that this is the only place where the change is necessary.