Suppress PHP notices and add support for basic cli conversion.