Raketenqualitätskontrolle: PHP wird 25! Was war und was wird!

Beitrag lesen

Dir sollte natürlich vor allem für die Arbeit gedankt werden. Aber es braucht wohl eine Qualitätskontrolle. Ich nehm, für alle, nur mal ein Beispiel:

Die Beispiele zu Cookies und Sessions

if (!isset($_COOKIE[COOKIE_NAME])) {
    $aufruf = 1;
} else {
    $aufruf = $_COOKIE[COOKIE_NAME] + 1;
}

Hm. Da kann man im Anschluss den Umgang mit grep & co lernen, weil sowas das Error-Log füttert.

PHP Warning:  Use of undefined constant COOKIE_NAME - assumed 'COOKIE_NAME' (this will throw an Error in a future version of PHP) in /tmp/test.php on line 2

Und das ist nur die Syntax…