Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49906 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9466 invoked from network); 13 Oct 2010 10:47:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Oct 2010 10:47:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:56173] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/10-07881-C2E85BC4 for ; Wed, 13 Oct 2010 06:47:08 -0400 Received: by yxn22 with SMTP id 22so1317215yxn.29 for ; Wed, 13 Oct 2010 03:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=n1jC6HHTFEmxHDoVhwRv2E6j9hDKl54WbKLhOKja0fo=; b=XxXkR4ISkT4uYJLU6fqu06HcTU+x1c9532n8ZPyGDAG7YTmiJVgn3SifbP2TyS9GHw Knq2tLRTLRhQCK8VF7dk4DnsdeFt0NeOGUz53D89BYq2bZoVqcrDo3gCFIf/i8xQO5do DB+vGo8y5T8DQT4g4JDRqezy5Pce5y069dp+E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=FU4TifjyFXiKGQsT1hTaKVlZUsrRpsXp0/bRLD4PiJWnDzvn7GgfoXQrTfn9rw9VGA 6F6SiCCbrcUwzIh7mhRYbB/MEzWu8+wjiLhGoHuE4J1WAcwDwSpbyFj1QKen8pPrDmP9 r5YKUys/EOp3knoqb0HS2WRGl4wtQNUsyNH+0= MIME-Version: 1.0 Received: by 10.42.194.71 with SMTP id dx7mr3443034icb.397.1286966826397; Wed, 13 Oct 2010 03:47:06 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.231.157.198 with HTTP; Wed, 13 Oct 2010 03:47:06 -0700 (PDT) In-Reply-To: <4CB56556.1020900@sugarcrm.com> References: <4CB492BE.2090305@sugarcrm.com> <8C81F534A6C3449E9D81D0B157C2052E@pc> <4CB56556.1020900@sugarcrm.com> Date: Wed, 13 Oct 2010 12:47:06 +0200 X-Google-Sender-Auth: dfLH9aFruaRFBAeTDoaRQTpzldA Message-ID: To: Stas Malyshev Cc: Stan Vass , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=20cf301d43a486708104927d5038 Subject: Re: [PHP-DEV] Process failed? BC and use cases for property_exists() broken in PHP 5.3 From: info@tyrael.hu (Ferenc Kovacs) --20cf301d43a486708104927d5038 Content-Type: text/plain; charset=UTF-8 2010/10/13 Stas Malyshev > Hi! > > > As for isset(), it doesn't cover the use case for property_exists(), as >> isset() returns false when a property exists, and is one of these values: >> >> null, false, int 0, float 0, string '', empty array() >> >> property_exists() more closely relates to "array_key_exists() for objects" >> in that regard. >> > > This is not true. isset() only returns false if the property doesn't exist > or is set to null. > > yeah, but property_exists would return true for null value if the property itself exists, so they don't 100% interchangeable Tyrael --20cf301d43a486708104927d5038--