|
|
Subscribe / Log in / New account

PHP web site compromised

PHP web site compromised

Posted Oct 29, 2013 17:48 UTC (Tue) by hummassa (subscriber, #307)
In reply to: PHP web site compromised by oldtomas
Parent article: PHP web site compromised

Well, once you enter the realm of undefined behaviours, the behaviour will be... undefined! What else could be expected?


to post comments

PHP web site compromised

Posted Oct 29, 2013 17:56 UTC (Tue) by khim (subscriber, #9252) [Link] (1 responses)

Of course, but who do we have hundreds of them? This makes life easier for compiler writers but miserable for users. Most of them should have been unspecified or implementation-defined instead.

PHP web site compromised

Posted Oct 30, 2013 1:21 UTC (Wed) by hummassa (subscriber, #307) [Link]

"why hundreds of them"?

Simple: C (and the C subset of C++ also) is still a glorified semi-portable assembly language. if you overdefine the language, you harden some behaviours that will be inefficient when you port to other architecture.

Good? Not really.

But workable. And that's why none of the "C successors" ever really caught on as kernel implementation languages, for instance. Once you need to write something in "readable assembly", C is the answer...

PHP web site compromised

Posted Oct 29, 2013 21:28 UTC (Tue) by oldtomas (guest, #72579) [Link]

> the behaviour will be... undefined!

Right you are :-)

Magic enters when it becomes difficult to build up a mental model of the border to the undefined. Or, as khim puts it "...hundreds of them".

Not criticizing compiler writers. We users stake our expectations on the optimizer quite high. We get the magic we pay for ;-)


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