fix createuser options and add PHP 5.6 support