487. (1) As soon as the bond or bail bond has been executed, the person for whose appearance it has been executed shall be released; and, when he is in jail, the court admitting him to bail shall issue an order of release to the officer in charge of the jail, and such officer on receipt of the orders shall release him.
(2) Nothing in this section, section 478 or section
480, shall be deemed to require the release of any person liable to be
detained for some matter other than that in respect of which the bond or
bail bond was executed.