This is a improved version from http://pecl.php.net/package/taint