3 days

Kiopa_Matt

Banned
May 13, 2011
5,216
52
0
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...
 


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...

Let me help you out here:

Code:
strlen($redeem_script) / 2[COLOR="Yellow"][SIZE="5"];[/SIZE][/COLOR]

XBPiK7D.gif


































Ya'll are about to start posting in a...
 
To my defense though, that length isn't used in any result / output at all. It's just temporary to get a hash to sign via ECDSA with. It never gets included in the final output, which is why I never caught it.

And why the fuck does shitty ole' PHP let me divide a large string by 2? Most interpreters would give you an error for doing that, but not PHP boy. Just do whatever you want, and no errors will come.
 
To my defense though, that length isn't used in any result / output at all. It's just temporary to get a hash to sign via ECDSA with. It never gets included in the final output, which is why I never caught it.

And why the fuck does shitty ole' PHP let me divide a large string by 2? Most interpreters would give you an error for doing that, but not PHP boy. Just do whatever you want, and no errors will come.

It sounds simple, stop using PHP.
 
To my defense though, that length isn't used in any result / output at all. It's just temporary to get a hash to sign via ECDSA with. It never gets included in the final output, which is why I never caught it.

And why the fuck does shitty ole' PHP let me divide a large string by 2? Most interpreters would give you an error for doing that, but not PHP boy. Just do whatever you want, and no errors will come.

We've had multiple threads about this man.

Code:
Python 2.7.5 (default, Mar  9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 'whatever' / 2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for /: 'str' and 'int'

keep-calm-and-join-the-dark-side-42-4-853x1024.png
 
Error levels... you too lax.

Nah, there as high as you can go. PHP just lets you divide strings. Well, it returns a 0, but nonetheless, should be throwing an error or at least a notice / warning.

Just noticed a couple days ago, PHP even lets you do neat things like this now:

Code:
$vars = array(
    'hello', 
   503, 
   'world', 
);
No error due to that last comma. Just let's it go through. That means the PHP devs are making things MORE lenient with newer releases, not less like they should be doing.

Oh, and working with binary data is a pain in PHP too, because you have strict data types to adhere to, and god forbid PHP uses data types. It's possible and does the job just fine, but not very pleasant.
 
Just noticed a couple days ago, PHP even lets you do neat things like this now:

Code:
$vars = array(
    'hello', 
   503, 
   'world', 
);
No error due to that last comma. Just let's it go through. That means the PHP devs are making things MORE lenient with newer releases, not less like they should be doing.

You've been able to do that since forever, just saying
 
The reason for the last comma is that it reduces errors where you add an element and forgot to add a comma to what was the last line.
 
If I switch to Python, then in 3 - 5 years time, everyone begins saying Python sucks and you need to switch to Go, I'm becoming a bloody potato farmer.

I already switched from Perl to PHP, because Perl was on the way out and PHP was the new mainstream language for web dev. I don't even like PHP anymore, but stuck using it for now, because everything I have is in PHP. It works, works well, and has stood the test of time.
 
i was not good in coding, i check this thread hmmm if me 3 days not enough ,, maybe more days ...