Resource utilities for PHP 5.1 or later