some fixes for support php 5.3 and not rewrite options
Merge pull request #1 from matiaspub/patch-1

some fixes for support php 5.3 and not rewrite options