Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106040 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 87205 invoked from network); 23 Jun 2019 00:18:09 -0000 Received: from unknown (HELO mail-wm1-f49.google.com) (209.85.128.49) by pb1.pair.com with SMTP; 23 Jun 2019 00:18:09 -0000 Received: by mail-wm1-f49.google.com with SMTP id 207so9312743wma.1 for ; Sat, 22 Jun 2019 14:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=YnM2KMvR7u6OyChgMl3QENixev9rEN5yKerhzMo7YnU=; b=Z1fGAulOcsgFPUGF6MBBROnhs/1MhjJFsJSOMRLheHbKcZN4sKuSyQb1ChwlRs49qZ +iJBtbG9I3TUckvY5uysc+tOhmkMK748cutzOGSIyTH8j5rjWiH0diHBA/V/oxZb1fkA 8BrhOJRYSpqUvm04aZ9NlbPaMpvdZ+bu/ul4Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=YnM2KMvR7u6OyChgMl3QENixev9rEN5yKerhzMo7YnU=; b=inDqS2QP2uebEsyf9KqrYk5H/W9dxjXOL2CSvsTeaaRJNkNSu4HpNrbiG8JMlM9uhB S1M7hwbMT5cDSkcssA5NTr5MfWs1sK0qbZdAlg7sd7EypLikEgk0FBdqwD/+N5GWMsvf 2lyIg8Kt819HqNWo5aJjTdZZ8nYi3BaHJvnYk/f/jaor7JpW26A5L296aqAWTuH8Hfz2 u1sQuwqHS07eNhWg0k/ogG9DfuM2LKX8Unt7N6PFvLREvCtm6jvx2tSwklZE8PLwbWYb 4O5gRzt87jpr/GE6yl0TRlNO7sjALUVllCpriEow7uBXSJ/zGtvChQlHjOMx6u5iq+ft wjOg== X-Gm-Message-State: APjAAAVKcNpWCcaCKLhnE/zFIkcma/qNW3mADH20KE5jI93ZWo1/Stq7 +jzo842O7svoWIpFdVZ6XX15MZ4lckaayEn1IVtJfw== X-Google-Smtp-Source: APXvYqxre056MC2Az18H3r082PeC1TzcFEJbuQR54oWDygXjeyD8VYZnIGMHmQyi90osZNruH5xYe4FdI02UblhWy28= X-Received: by 2002:a1c:6154:: with SMTP id v81mr8759644wmb.92.1561239218266; Sat, 22 Jun 2019 14:33:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 23 Jun 2019 00:33:27 +0300 Message-ID: To: Nikita Popov Cc: Kalle Sommer Nielsen , Internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Deprecations for 7.4 From: narf@devilix.net (Andrey Andreev) Hi, On Sat, Jun 22, 2019 at 3:59 PM Nikita Popov wrote: > > On Sat, Jun 22, 2019 at 2:24 PM Andrey Andreev wrote: >> >> Hi, >> >> With regards to the array_key_exists() deprecation, the RFC currently >> says nothing about things like ArrayAccess and object properties that >> contain arrays. I'm sure that these are exceptions that aren't meant >> to be deprecated, but can you please specify that explicitly? We all >> know how little bits like that can result in awful outcomes. > > > Thanks for bringing this up: It's a great example of why this needs to be= deprecated. array_key_exists() actually has no support for ArrayAccess obj= ects at all -- it only operates on (mangled) object properties. But just se= eing the name and the fact that it doesn't error when passed an ArrayAccess= object, it's quite easy to jump to the wrong conclusion. I've updated the = RFC to mention this now. > Well, then I guess actually implementing ArrayAccess support should be brought up now, but other than that the updated RFC content makes much more sense now. Thank you. > I don't understand what you mean by "object properties that contain array= s" though, or rather how that related to array_key_exists(). > I had a minor brain fart while originally thinking about this and it's actually nothing. Sorry about that. Cheers, Andrey.