[PHP] [case closed][Fwd: Re: [PHP-DEV] [Fwd: [PHP] constant() - php5]]

2005-07-01 Thread Jochem Maas
thanks for that explanation, case closed. :-) Original Message Return-Path: <[EMAIL PROTECTED]> X-Original-To: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] [Fwd: [PHP] constant() - php5] X-Virus-Scanned: amavisd-new at moulin.nl Due to PHPs dynamic typing, unquoted strin

Re: [PHP] constant() - php5

2005-06-29 Thread Jason Barnett
Richard Davey wrote: ... Isn't the warning coming from the fact that $cnst isn't defined, rather than coming from the constant() function itself? Best regards, Richard Davey Nope... tested with PHP 5.0.5-dev -- NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.t

Re: [PHP] constant() - php5

2005-06-29 Thread Richard Davey
Hello Jochem, Wednesday, June 29, 2005, 2:13:21 PM, you wrote: JM> anybody here know what the logic is behind constant() triggering a JM> warning if the named constant is not found? JM> $cnst = "DEBUG"; JM> // what I want to do but can't JM> if ($dbg = constant($cnst)) { JM> // do stuf

[PHP] constant() - php5

2005-06-29 Thread Jochem Maas
anybody here know what the logic is behind constant() triggering a warning if the named constant is not found? contrived example: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php