Create adapter for PHP 5.3