Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16756

Re: not "autovivification", but ...?

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: not "autovivification", but ...?
Date Fri, 03 Jun 2016 22:20:23 +0200
Organization PointedEars Software (PES)
Lines 34
Message-ID <4526211.5joGbGu2Zc@PointedEars.de> (permalink)
References <autovivification-20160531121607@ram.dialup.fu-berlin.de> <nik0k5$8mu$1@news.albasani.net> <1dc7bd11-343d-4cbb-b75d-1db8516666a0@googlegroups.com> <nin783$9qu$1@news.albasani.net> <d7cf47ca-3871-46e0-8434-b17ec1fe1440@googlegroups.com> <ninr5k$gee$1@news.albasani.net> <6429329.X1ROTxqqWj@PointedEars.de> <niovaj$a17$1@solani.org>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Trace solani.org 1464985231 32098 eJwVyskRwDAIA8CWDIjD5cQeqf8Skux7M8rqNioLqRS9GdXaFPeyp9tH5gTGEV8+HJz/T0qOFxJ4EF8= (3 Jun 2016 20:20:31 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Fri, 3 Jun 2016 20:20:31 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwYEBwCAIA7CXxFKq5yCM/09YQoRFyYPhHI7VkW0G+Lp07V7kB1/5pCSVvqsWNR94sFs2tF7B453E+wExVhSi
Cancel-Lock sha1:cUzXYyfFLt0U6gWa5M53iIesxH4=
X-NNTP-Posting-Host eJwFwQkBwDAIA0BLMBIeOStQ/xJ6R3P1DjgdvLzlsX9XQRddPTmmISIe0i1xKnEIGmbzK84DEyQQhQ==
Xref csiph.com comp.lang.php:16756

Show key headers only | View raw


Christoph M. Becker wrote:

> On 02.06.2016 at 02:16, Thomas 'PointedEars' Lahn wrote:
>> Stefan Weiss wrote:
>>> if we try to read a nonexistent index ($foo["x"]).
>>                                   ^^^^^
>> The proper term is _key_, and if you write
>> 
>>   @$foo["x"]
>> 
>> the notice will go away without any extra configuration.
> 
> As well as all other notices, warnings, etc.  Not a problem in this
> case, but consider:
> 
>   function keyName() {
>       trigger_error('deprecated', E_USER_DEPRECATED);
>       return 'x';
>   }
>   @$foo[keyName()];

Straw man (Stefan in cljs, *and* you, being more courteous than him, here 
where it belongs). 

I did not say it were the best solution.  I did not say it were a general 
solution.  I said it is *a* solution *without extra configuration*.

See also: <http://php.net/error_reporting>

-- 
PointedEars
Zend Certified PHP Engineer 
<http://www.zend.com/en/yellow-pages/ZEND024953> | Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: not "autovivification", but ...? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-06-02 02:16 +0200
  Re: not "autovivification", but ...? "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-06-02 11:47 +0200
    Re: not "autovivification", but ...? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-06-03 22:20 +0200
      Re: not "autovivification", but ...? "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-06-04 16:24 +0200

csiph-web