3 ms·
PHP's "standard library" is mostly just a collection of other open source C libraries and exposed the C API with very little transformation. For example, peopl
by wvenable 12y ago
PHP's "standard library" is mostly just a collection of other open source C libraries and exposed the C API with very little transformation. For example, people point to the mysql_real_escape_string() function as an example of bad PHP design but that function comes straight from the MySQL C API[1].
Early PHP was really just a scripting language interface to C and the Web. And from that it evolved very quickly picking up all kinds of technologies along the way.
[1] http://dev.mysql.com/doc/refman/5.1/en/mysql-real-escape-string.html http://dev.mysql.com/doc/refman/5.1/en/mysql-real-escape-str...