Fixed PHP detect regex in test_examples, refs #214.