Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17058 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38311 invoked by uid 1010); 1 Jul 2005 13:43:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38296 invoked from network); 1 Jul 2005 13:43:40 -0000 Received: from unknown (HELO php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2005 13:43:40 -0000 X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:37389] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 3B/9A-29969-B8845C24 for ; Fri, 01 Jul 2005 09:43:39 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j61DhZKK014076 for ; Fri, 1 Jul 2005 15:43:35 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j61DhUCA014051; Fri, 1 Jul 2005 15:43:30 +0200 Date: Fri, 1 Jul 2005 15:43:30 +0200 (CEST) X-X-Sender: derick@localhost To: Jochem Maas cc: Pawel Bernat , internals@lists.php.net In-Reply-To: <42C54445.7070106@iamjochem.com> Message-ID: References: <42C32829.60500@iamjochem.com> <20050701151327.A2920@vlo> <42C54445.7070106@iamjochem.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: Re: [PHP-DEV] [Fwd: [PHP] constant() - php5] From: derick@php.net (Derick Rethans) On Fri, 1 Jul 2005, Jochem Maas wrote: > echo constant('CNST'); > > when: > > echo CNST; > > only triggers an E_NOTICE. > (assuming, in both cases that CNST is not defined). > > IMHO it should at most trigger an E_NOTICE. Did you compare the output of the two statements? echo constant('CNST'); shows nothing (except the warning) echo CNST; shows "CNST" (and a notice). This makes perfect sense to me to differentiate between them like this. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org