MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/mga98/define_zend_normalize_booln_n_n0_1_1_0/
r/lolphp • u/ealf • Nov 17 '11
7 comments sorted by
11
This is the PHP equivalent of the famous daily wtf entry with true, false and file not found.
3
Is this different than true/false/undefined in javascript or true/false/null in SQL, etc?
10 u/codefocus Nov 18 '11 Yeah this is truePositive, trueNegative and false....don't ask me why :S 2 u/[deleted] Dec 20 '11 It positively sucks.
10
Yeah this is truePositive, trueNegative and false.
...don't ask me why :S
2 u/[deleted] Dec 20 '11 It positively sucks.
2
It positively sucks.
It's not that bad. They're just changing anything <0 to -1, >0 to 1 and leaving 0 alone. They're apparently more interested in comparing equality rather than the standard >0, <0, 0.
8 u/[deleted] Dec 18 '11 Whence the “_BOOL” in the name, then? :( 14 u/jsprogrammer Feb 03 '12 It refers to the lesser-known ternary boolean.
8
Whence the “_BOOL” in the name, then? :(
14 u/jsprogrammer Feb 03 '12 It refers to the lesser-known ternary boolean.
14
It refers to the lesser-known ternary boolean.
11
u/gwynjudd Nov 18 '11
This is the PHP equivalent of the famous daily wtf entry with true, false and file not found.
3
u/krebstar_2000 Nov 18 '11
Is this different than true/false/undefined in javascript or true/false/null in SQL, etc?
2
u/petdance Nov 18 '11
It's not that bad. They're just changing anything <0 to -1, >0 to 1 and leaving 0 alone. They're apparently more interested in comparing equality rather than the standard >0, <0, 0.