Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38702 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75369 invoked from network); 2 Jul 2008 15:17:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2008 15:17:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=danielc@analysisandsolutions.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danielc@analysisandsolutions.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain analysisandsolutions.com from 166.84.1.72 cause and error) X-PHP-List-Original-Sender: danielc@analysisandsolutions.com X-Host-Fingerprint: 166.84.1.72 mail1.panix.com Received: from [166.84.1.72] ([166.84.1.72:55726] helo=mail1.panix.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/D5-37564-01C9B684 for ; Wed, 02 Jul 2008 11:17:37 -0400 Received: from panix3.panix.com (panix3.panix.com [166.84.1.3]) by mail1.panix.com (Postfix) with ESMTP id D773929407 for ; Wed, 2 Jul 2008 11:17:33 -0400 (EDT) Received: (from analysis@localhost) by panix3.panix.com (8.11.6p3/8.8.8/PanixN1.1) id m62FHXV26421 for internals@lists.php.net; Wed, 2 Jul 2008 11:17:33 -0400 (EDT) Date: Wed, 2 Jul 2008 11:17:33 -0400 To: PHP Internals List Message-ID: <20080702151733.GA20829@panix.com> References: <486AB5F5.50400@smashlabs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <486AB5F5.50400@smashlabs.com> User-Agent: Mutt/1.5.10i Subject: Re: [PHP-DEV] Magic method visibility in PHP 5.3+ From: danielc@analysisandsolutions.com (Daniel Convissor) On Tue, Jul 01, 2008 at 05:55:49PM -0500, Ralph Schindler wrote: > In PHP 5.3 snaps, it appears that magic methods __isset, __unset, __get, > __set must have a public visibility or the engine will trigger a > warning. Why is this? It works as expected in 5.x branches. Because that's what the manual says it should do. And there are technical reasons outlined by others here already. Here is the internals discussion about getting things straight: http://news.php.net/php.internals/36813 Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409