Add tests for fixing a bug at PHP5.5
Fix bug #2
Merge pull request #3 from kohkimakimoto/fix-deprecated-features

Fix deprecated features