[PHP] check flags to differ blob from text