3 days



3 fucking days to go from:

Code:
strlen($redeem_script / 2)

to:

Code:
strlen($redeem_script) / 2

3 fucking days! You gotta be kidding me...

use netbeans or another IDE, it will show you mistakes like this. or ask me next time :p