fix flags on php < 5.4.0