Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50813 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38564 invoked from network); 2 Dec 2010 13:59:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2010 13:59:15 -0000 Authentication-Results: pb1.pair.com header.from=president@basnetworks.net; sender-id=unknown; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=president@basnetworks.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basnetworks.net from 208.97.132.66 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: president@basnetworks.net X-Host-Fingerprint: 208.97.132.66 caiajhbdcagg.dreamhost.com Linux 2.6 Received: from [208.97.132.66] ([208.97.132.66:55584] helo=homiemail-a17.g.dreamhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/50-36645-136A7FC4 for ; Thu, 02 Dec 2010 08:59:14 -0500 Received: from homiemail-a17.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTP id 18F207A8073; Thu, 2 Dec 2010 05:59:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=basnetworks.net; h=message-id :in-reply-to:references:date:subject:from:to:cc:mime-version :content-type:content-transfer-encoding; q=dns; s= basnetworks.net; b=nhvGrGz0taMvtZLxoCRnGSnx7EMqwiLTs4B0/DD13DZCq 5xwimjweqh7N9ws6QlToMglYuT/K3ZBdl2F5R2MaoeAJ+NxNelK5bb6/kNNkC2Xk xYxM/M6Qa/IgwGba0+ht9AuXWbNpr4DJNM3hhDal06Av+YAp86Cd6nh/OH9pYg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=basnetworks.net; h= message-id:in-reply-to:references:date:subject:from:to:cc :mime-version:content-type:content-transfer-encoding; s= basnetworks.net; bh=bXDCFKWfAB87KWXBKIKAyG9y8Cs=; b=GlRhdeH0n4Vc ptnm2Y4F5p/3Wy7r9kcRANtJXA065+biIF6HX0u/3dK03phujls2xDanKLOJ9qOQ zoOQ/Jr+7p0bDZ7mMfsYkKiOzPaKcQH9lBlV6IxTGRVs4xIvY0HMqzLGvZHvotD8 oomh4ssxuipRPrhaj2QyHUdKZLh7/9U= Received: from webmail.basnetworks.net (ahfbbjcaiaae.dreamhost.com [75.119.208.4]) (Authenticated sender: president@basnetworks.net) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPA id C0CAA7A8070; Thu, 2 Dec 2010 05:59:10 -0800 (PST) Received: from 70.28.48.126 (proxying for 70.28.48.126) (SquirrelMail authenticated user president@basnetworks.net) by webmail.basnetworks.net with HTTP; Thu, 2 Dec 2010 08:59:13 -0500 Message-ID: In-Reply-To: References: <003601cb8fd0$f6494e80$e2dbeb80$@com> <4CF3B855.5010406@sugarcrm.com> <003401cb8fee$1be39840$53aac8c0$@com> <2450924ae03481f5b1382a7f00e5743d.squirrel@webmail.basnetworks.net> <4CF50245.5020807@sugarcrm.com> <4CF5118B.2030300@sugarcrm.com> <1faa4c3db62771335db714507ac2adfa.squirrel@webmail.basnetworks.net> <4CF613EB.40200@sugarcrm.com> Date: Thu, 2 Dec 2010 08:59:13 -0500 To: RQuadling@googlemail.com Cc: "Eloy Bote Falcon" , "Stas Malyshev" , "internals@lists.php.net" User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP From: president@basnetworks.net >> Why change the=C2=A0expected behavior of isset? If a property has not = been >> set >> then isset must return false, and that includes $foo->name =3D NULL. >> >> >> Regards. >> > > Say the property is write-only. How can isset() operate on that? If > the property is read-only, how can you unset() it? If the property is write-only, I would imagine isset would return false, because there is no value to read. I think when you call isset(), you ar= e asking, "is there something for me to read?", so this would make sense. If the property is read-only, then unset would have no effect. Unsetting is a "write" action (like deleting a file), so if its read-only, it canno= t be unset. It could possibly throw a non-fatal error too I suppose. - Dennis