Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11001 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10786 invoked by uid 1010); 8 Jul 2004 23:15:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10742 invoked from network); 8 Jul 2004 23:15:23 -0000 Received: from unknown (HELO simmts5-srv.bellnexxia.net) (206.47.199.163) by pb1.pair.com with SMTP; 8 Jul 2004 23:15:23 -0000 Received: from php.net ([65.94.6.99]) by simmts5-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20040708231441.LJRU3387.simmts5-srv.bellnexxia.net@php.net>; Thu, 8 Jul 2004 19:14:41 -0400 Message-ID: <40EDD58E.4040609@php.net> Date: Thu, 08 Jul 2004 19:15:26 -0400 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040421 X-Accept-Language: fr-ca, en, fr, en-us MIME-Version: 1.0 To: Marc Richards CC: internals@lists.php.net References: <5.1.0.14.0.20040707203931.02fa6200@mail.ionzoft.com> <40ED64A0.7050305@cschneid.com> <20040708151952.92187.qmail@pb1.pair.com> <20040708215205.23281.qmail@pb1.pair.com> <40EDD2D5.60707@php.net> <20040708231043.92522.qmail@pb1.pair.com> In-Reply-To: <20040708231043.92522.qmail@pb1.pair.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] what happened to that new isset() like language From: ohill@php.net (Olivier Hill) Marc Richards wrote: > > What? Why? There is obviously a way around it, because that is what > people are using now. > > $a = $b ? $b : $c; If $b is not set, it will throw notices. The correct way is something similar to: $a = (!isset($b) && !isnull($b)) ? $b : $c Which defeats the whole reason of introducing the new ifsetor() operator. Sincerely, Olivier -- GB/E/IT d+ s+:+ a-- C++$ UL++++$ P++++ L+++$ E- W++$ N- ?o ?K w--(---) !O M+$ V- PS+ PE- Y PGP t++ 5-- X+@ R- tv++ b++(+++) DI++++ D+ G++ e+>++ h(*) r y+(?)