Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17019 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80079 invoked by uid 1010); 29 Jun 2005 23:01:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80064 invoked from network); 29 Jun 2005 23:01:05 -0000 Received: from unknown (HELO iamjochem.com) (127.0.0.1) by localhost with SMTP; 29 Jun 2005 23:01:05 -0000 X-Host-Fingerprint: 194.109.193.120 unknown Linux 2.4/2.6 Received: from ([194.109.193.120:42493] helo=mx1.moulin.nl) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 46/A6-42553-13823C24 for ; Wed, 29 Jun 2005 19:01:05 -0400 Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id 2D1B310B9A3 for ; Thu, 30 Jun 2005 01:00:59 +0200 (CEST) Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (moulin [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16101-14 for ; Thu, 30 Jun 2005 01:00:58 +0200 (CEST) Received: from [10.0.0.8] (dslam154-81-59-81.dyndsl.versatel.nl [81.59.81.154]) by mx1.moulin.nl (Postfix) with ESMTP id 412F210B980 for ; Thu, 30 Jun 2005 01:00:58 +0200 (CEST) Message-ID: <42C32829.60500@iamjochem.com> Date: Thu, 30 Jun 2005 01:00:57 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: php internals X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at moulin.nl Subject: [Fwd: [PHP] constant() - php5] From: jochem@iamjochem.com (Jochem Maas) hi, I just wanted to say about 'include' ... er no actually I have this little thing with constant() which I asked about on php-generals and the response from a couple of regulars suggest it might be a bug, or more correctly, an inconsistency. Jason Barnett wrote also: > tested with PHP 5.0.5-dev > > > /* Causes E_WARNING */ > echo "constant('UNDEFINED_CONSTANT')\n"; > echo constant('UNDEFINED_CONSTANT'); > > /* Causes E_NOTICE */ > echo "UNDEFINED_CONSTANT\n"; > echo UNDEFINED_CONSTANT; > > ?> should(may) I submit a bugreport? -------- Original Message -------- anybody here know what the logic is behind constant() triggering a warning if the named constant is not found? contrived example: