Modify memcached flags for PHP use