Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110982 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5582 invoked from network); 13 Jul 2020 20:40:02 -0000 Received: from unknown (HELO localhost.localdomain) (76.75.200.58) by pb1.pair.com with SMTP; 13 Jul 2020 20:40:02 -0000 To: internals@lists.php.net References: Date: Mon, 13 Jul 2020 20:32:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Posted-By: 87.81.129.66 Subject: Re: [PHP-DEV] Drop warning about non-public magic methods From: marandall@php.net (Mark Randall) Message-ID: On 13/07/2020 19:32, Gabriel Caruso wrote: > This warning does not make much sense as the magic method is executed > regardless of its visibility. Should it be dropped? This seems to be the bigger issue... if something is specified as private, nothing outside its scope has any rights to access it, and that it does feels unexpected. __call should be checked for access IMHO.