Categorized | News, PHP

PHP constant() bug -> false alarm ..

Posted on 04 June 2007 by Demian Turner

Anyone else think this is a bug worth filing? I’m using PHP 5.2.0 on OS X.

If there weren’t 161 options for bug type in the PHP bug submission page I probably would have filed it by now. Btw there don’t seem do be any similar filed bugs in the last 90 days.

Bookmark and Share

4 Comments For This Post

  1. Johannes Schlüter Says:

    You’re trying to access the constant ” MY_BAR” (mind the first space) that’s different from “MY_BAR” (without space) so the result is right.

    As a general note: Please use the bug tracker if you find a bug, not a blog posting – if there are too many categories and you can’t decide just select one which doesn’t feel toooo wrong.

  2. Demian Turner Says:

    Damn – you’re right! That’s embarrassing. Thanks Johannes.

  3. FlorentG Says:

    This could be turned into a feature request : When displaying error messages, enclose special values like constant names or strings in quotes :)

  4. Jacob Says:

    Should I feel good that I caught that before I came here and that I caught the problem while looking at the script?

    Or should I just move along?

Leave a Reply

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook