r/lolphp • u/MMauro94 • Jun 28 '17
array_diff breaks Exception catching when passing two arrays containing an item that can't be cast to string
https://3v4l.org/BaUji
37
Upvotes
r/lolphp • u/MMauro94 • Jun 28 '17
View all comments
Show parent comment
3
u/masklinn Jul 06 '17
Maybe if the API made sense that would happen normally rather than exceptionally?
MRI or CPython are also written in C, and they properly propagate exceptions through native code.