Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14020 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69073 invoked by uid 1010); 8 Dec 2004 07:48:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 69043 invoked from network); 8 Dec 2004 07:48:32 -0000 Received: from unknown (HELO theta.altoona-pa.com) (209.161.72.28) by pb1.pair.com with SMTP; 8 Dec 2004 07:48:32 -0000 Received: from JASONGARBER2 (static-207-68-114-163.alt.east.verizon.net [207.68.114.163]) by theta.altoona-pa.com (Postfix) with ESMTP id 0DBB8158B6 for ; Wed, 8 Dec 2004 02:37:29 -0500 (EST) Date: Wed, 8 Dec 2004 02:39:30 -0500 X-Mailer: The Bat! (v3.0) Professional Reply-To: Jason Garber Organization: IonZoft, Inc. X-Priority: 3 (Normal) Message-ID: <476507566.20041208023930@ionzoft.com> To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Isset question From: jason@ionzoft.com (Jason Garber) Hello internals, If anyone has a moment to answer this, it'd be appreciated... -- isset($x); => false is_null($x) => Notice: undefined variable $x -- $x = null; isset($x); => false is_null($x) => true The question is *why* does isset() report false on a variable that is set to NULL? Is there any way to tell if a variable isset and is_null without generating an error? It doesn't seem that this behavior is consistent with the meaning of isset(), or the errors that are generated when a variable is not set. Thanks. -- Best regards, Jason Garber mailto:jason@ionzoft.com IonZoft, Inc.