Removed common code, it is now in php_common