Re: [PATCH] disallow arguments by ref in magic methods

From: Date: Thu, 30 Aug 2007 19:27:50 +0000
Subject: Re: [PATCH] disallow arguments by ref in magic methods
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-31989@lists.php.net to get a copy of this message
Expected result of this code is: Fatal error: Method test::__set() cannot take arguments by reference in %s on line %d
I'd make it a warning. As far as I can see, declaring __set with references doesn't do anything bad, just reference thing doesn't work (correct me here if I'm wrong). So why should we produce fatal error? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#31989) next »