LWN.net Logo

PHP 5.4.0 released

PHP 5.4.0 released

Posted Mar 3, 2012 1:00 UTC (Sat) by elanthis (guest, #6227)
In reply to: PHP 5.4.0 released by rfunk
Parent article: PHP 5.4.0 released

> Rule of Repair violation. The only place I really see this is in the fact that it's a loosely-typed (and dynamically-typed) language with implicit conversion. While these attributes certainly annoy programmers used to a different type of language, there's nothing inherently wrong with them.

1) Identifiers magically turn into strings, mostly I believe because function handlers have just been strings until relatively recently.

echo FOO; // prints FOO

2) Magic quotes. Yes, they're finally gone, but the fact that some dork put them in there in the first place proves that said dork had no business designing, implementing, distributing, and promoting a language.


(Log in to post comments)

PHP 5.4.0 released

Posted Mar 3, 2012 14:56 UTC (Sat) by rfunk (subscriber, #4054) [Link]

Ah yes, #1 is probably PHP's worst remaining sin. Luckily I don't encounter it a lot, but it did bite me not too long ago.

I loosely put magic quotes in the "help you by adding security holes" category. I'm glad they're finally gone, but I agree that their existence says nothing good about the language designer, or at least the language's aspirations beyond "Personal Home Pages".

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds