It shall not be necessary to pay or tender any fees whatever to any witness subpoenaed on the part of the people of this state in support of any prosecution, but such witness shall be bound to attend as if the fees allowed by law to witnesses in civil actions had been duly paid to him.