Fix missing auto-detect for PHP (how did I forget that?)