Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63503 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31592 invoked from network); 17 Oct 2012 12:11:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2012 12:11:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:60337] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/5A-64689-970AE705 for ; Wed, 17 Oct 2012 08:11:37 -0400 Received: by mail-lb0-f170.google.com with SMTP id gm13so5148503lbb.29 for ; Wed, 17 Oct 2012 05:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=aopPlogj2braWwsVvPac0A/UTTWaFRXNokEKmt/s3I8=; b=aYt2f7x3hH2wNWrEYFyWoXn8fOvVfd4hS4YXtmBM/IuiXTWwAsg3T77W1E7rfDnMvh e/FTvjV8VsDkvU42TUJDVilkmWuu8/O1J/IT9SdZZmd5aL+4KdiS9MTVs1lV/RKxixAr XeazhguxLIANqdtxhz/kXjZXRxa6Vuw22+YSyJJqUFPOWwfeyldEF7vgA5ZwUGruLfgg vEKjTREcpIIlFjCC6+0M5P1T5lprt1SLPDDzkIr99+Tag6/Vhc9Z+5fB4HaqZWv6xvEj +uEdKQXG7WCDfu/0MafBkfZCEX3/b2CA1AcOFlIguin+SFps+Q8m7b7jPq9hYQvYIBEn 0xgQ== MIME-Version: 1.0 Received: by 10.152.133.140 with SMTP id pc12mr15560642lab.53.1350475894359; Wed, 17 Oct 2012 05:11:34 -0700 (PDT) Received: by 10.112.83.100 with HTTP; Wed, 17 Oct 2012 05:11:34 -0700 (PDT) In-Reply-To: <9570D903A3BECE4092E924C2985CE485612B7CE2@MBX202.domain.local> References: <9570D903A3BECE4092E924C2985CE485612B53E4@MBX202.domain.local> <507D24E0.9070203@sugarcrm.com> <9570D903A3BECE4092E924C2985CE485612B6DC9@MBX202.domain.local> <507D5199.3090203@sugarcrm.com> <9570D903A3BECE4092E924C2985CE485612B6F1D@MBX202.domain.local> <507D6675.3080206@sugarcrm.com> <9570D903A3BECE4092E924C2985CE485612B7805@MBX202.domain.local> <507E846A.2030805@sugarcrm.com> <9570D903A3BECE4092E924C2985CE485612B7CE2@MBX202.domain.local> Date: Wed, 17 Oct 2012 14:11:34 +0200 Message-ID: To: Clint Priest Cc: Stas Malyshev , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2 From: nikita.ppv@gmail.com (Nikita Popov) On Wed, Oct 17, 2012 at 1:51 PM, Clint Priest wrote: >> > This isn't the way isset() works, isset() will return true for a >> > variable with a value of 0 >> >> Exactly my point. Your code (with != NULL) will return false while real >> isset() will return true. > > Stas, please see this execution output, your arguments about isset()/unset() are just plain wrong: > > [...] > > 1) isset() on a NULL value will return false > 2) isset() may not be called on the result of a function call (which is what an accessor is) I'm not exactly sure, but I think that all Stas is trying to say is that it should be !== NULL instead of != NULL. Nikita