Fix needed for php 5.3.x backward compability
Merge pull request #21 from LAndreas/bugfix/backward-compability

Fix needed for php 5.3.x backward compability