Fix for issue #283

This is a fix for the bug create by the update of PHP 5.4.28 to 5.4.28
This fix is inspired from the one made for PHPUnit: https://github.com/sebastianbergmann/phpunit-mock-objects/commit/1c68f1338f1940deb8265428bb2a7cbc5bc074b5#diff-64dbbc1c21f9be2d92e2b715617ffe34