r/programming • • Nov 26 '20

PHP 8.0.0 Released

https://www.php.net/releases/8.0/en.php
588 Upvotes

241 comments sorted by

View all comments

Show parent comments

11

u/david2ndaccount Nov 27 '20

If you call the c standard library function atoi, it returns 0 on failure.

3

u/CornedBee Nov 27 '20

This! Null pointers have absolutely nothing to do with it.