remove code duplication
add setting for php56 (wheezy)
Merge pull request #2 from classmarkets/php56-support

Php56 support