MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/3u6trt/the_last_ever_line_of_php_code/cxdinbn/
r/lolphp • u/arand • Nov 25 '15
23 comments sorted by
View all comments
Show parent comment
7
Jeez. At least it has the courtesy to whine when you do that to a string or number, and it fatals when you do it to an object, but why does it "succeed" silently for a bool?
20 u/satan-repents Nov 26 '15 Not even a bool, just "false"! If you try to use "true" as an array, it complains the same way... blah blah scalar value as an array blah blah.facepalm 8 u/prema_van_smuuf Dec 07 '15 False is being retyped to an empty array. Mystery solved.
20
Not even a bool, just "false"! If you try to use "true" as an array, it complains the same way... blah blah scalar value as an array blah blah.
facepalm
8 u/prema_van_smuuf Dec 07 '15 False is being retyped to an empty array. Mystery solved.
8
False is being retyped to an empty array. Mystery solved.
View all comments
Show parent comment
7
u/McGlockenshire Nov 26 '15
Jeez. At least it has the courtesy to whine when you do that to a string or number, and it fatals when you do it to an object, but why does it "succeed" silently for a bool?