added environment precheck (php 5.3 requirement)