Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88246 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4195 invoked from network); 16 Sep 2015 15:20:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2015 15:20:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.214 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.214 mail4-2.serversure.net Linux 2.6 Received: from [217.147.176.214] ([217.147.176.214:39098] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/5D-30198-3A889F55 for ; Wed, 16 Sep 2015 11:20:05 -0400 Received: (qmail 1843 invoked by uid 89); 16 Sep 2015 15:20:00 -0000 Received: by simscan 1.3.1 ppid: 1836, pid: 1840, t: 0.1788s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.8?) (lester@rainbowdigitalmedia.org.uk@86.160.91.166) by mail4.serversure.net with ESMTPA; 16 Sep 2015 15:20:00 -0000 To: internals@lists.php.net References: <1F615BCD-1B9B-4C51-A210-869F1AA1F6E3@craigfrancis.co.uk> <55E5EBBF.6020803@gmail.com> <0BA3A129-D356-4781-B6DE-E2B5A7924AE2@craigfrancis.co.uk> <55E6EC36.6090301@gmail.com> <9AF329EC-99A5-412D-A52B-432627A5520F@gmail.com> <6F4D91EE-B56E-4B83-B1AF-598C3F6897FC@craigfrancis.co.uk> <55F07BA4.2000204@gmail.com> <55F6B911.9080400@gmail.com> <96BE7F01-D04B-483B-B1A3-B45CED6DFCDC@craigfrancis.co.uk> <55F6F08C.1020506@gmail.com> <0BEF6D82-CB5F-49F6-A3A4-3267924A0CDA@thesba.com> <55F78D90.7090601@php.net> <55F7CE3E.1040804@lsces.co.uk> <55F93E67.3000806@gmail.com> <55F945F7.8010402@lsces.co.uk> <55F94B25.8070603@gmail.com> <55F95439.5070306@php.net> <55F95F26.5080409@gmail.com> <55F963E7.2040800@php.net> <55F9668F.4010804@gmail.com> <55F96DF5.8030606@php.net> <55F96F02.2080601@gmail.com> Message-ID: <55F9889F.1060008@lsces.co.uk> Date: Wed, 16 Sep 2015 16:19:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55F96F02.2080601@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: lester@lsces.co.uk (Lester Caine) On 16/09/15 14:30, Rowan Collins wrote: > Yes, we can, and I repeatedly have. With the caveat that, like Perl, we > raise an error if you try to use it on a plain variable rather than an > array key or object property reference. My only remaining concern is > that with that error in place, is "exists" the right name, and if not, > what would be better? Found the little gem I was trying to remember ... extract() Import variables into the current symbol table from an array THAT was the process I've seen used in libraries resulting in 'NULL' variables where appropriate and yes I appreciate this is all very far fetched, since one could check things on the array side, but it is where I've seen mistakes with handling the generated variables. Is extract compatible with the current way of working? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk