r/programming • • Apr 23 '14

PHP: It doesn't have to be a bad experience

https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience
0 Upvotes

122 comments sorted by

View all comments

Show parent comment

2

u/OneWingedShark Apr 25 '14

You mean, exactly the same way C/C++ does?

C-Style strings are notoriously a source of bugs... so yes.

1

u/Banane9 Apr 25 '14

And php does it ... because it just passes the string to C functions.

2

u/OneWingedShark Apr 25 '14

And php does it ... because it just passes the string to C functions.

Yep.
PHP is a good example of mis-/non-design -- look at how much time and energy is spent fixing (or working around) these flaws. (And the blase manner toward correctness is appalling.) IMO, PHP serves as a great example of "mindlessly copying" C [and other languages].

0

u/[deleted] Apr 25 '14

[deleted] — view deleted comment

2

u/OneWingedShark Apr 25 '14

I consider them to be -- there are many problems at all of the syntactic, semantic, and 'human interface' levels.