Re:PHP 7 deployment at Dailymotion
by marklgr on Friday October 14, 2016 @07:38AM
(#12707417)
It's more about automatic type conversion than the API, though; numerics magically get converted to strings and vice-versa. This is convenient in some cases, especially for beginners who don't have to think about types, but it eventually bites you if you never realize what happens in your back.
[ Parent
| on HN ]
The problem is that ctype_digit does not magically get converted to a string, it instead just returns gibberish.
If ctype_digit(100) magically got converted to ctype_digit('100'), that would not be a problem.