Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21185 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62874 invoked by uid 1010); 12 Dec 2005 07:51:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62859 invoked from network); 12 Dec 2005 07:51:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2005 07:51:51 -0000 X-Host-Fingerprint: 84.204.52.251 promo.hnet.spb.ru OpenBSD 3.0-3.4 Received: from ([84.204.52.251:33711] helo=promo.hnet.spb.ru) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 59/CA-49905-4FB2D934 for ; Mon, 12 Dec 2005 02:51:16 -0500 Received: from thinkpad (unknown [10.1.0.118]) by promo.hnet.spb.ru (Postfix) with ESMTP id 4FBBC1BACCE; Mon, 12 Dec 2005 10:46:55 +0300 (MSK) To: "'Superbiji'" , Date: Mon, 12 Dec 2005 10:50:04 +0300 Message-ID: <000001c5fef0$a9e4fdd0$e902a8c0@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Subject: RE: [PHP-DEV] __set and reference From: dmitry@zend.com ("Dmitry Stogov") References: Assign by reference is not possible with __set() method. Thanks. Dmitry. > -----Original Message----- > From: Superbiji [mailto:superbiji@gmail.com] > Sent: Monday, December 12, 2005 6:49 AM > To: internals@lists.php.net > Subject: [PHP-DEV] __set and reference > > > Hi All, > > in prior 5.1, it is allowed to do: > class MyClass { > public function __set($key, &$value) {} > } > $c = new MyClass(); > $c->d=10; > > in 5.1 up: > that code result this: > Fatal error: Couldn't execute method MyClass::__set in > Unknown on line 0 > > I have submit this bug. > My question is, is it possible to assign as reference using > setter method ? > > > -- > kamus online - http://kamus.landak.com/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >