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

From: Date: Thu, 30 Aug 2007 19:32:37 +0000
Subject: Re: [PATCH] disallow arguments by ref in magic methods
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-31990@lists.php.net to get a copy of this message
On 30.08.2007 23:27, Stanislav Malyshev wrote: >> 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? The method call doesn't work in this case, it fails with fatal error, just try the example I posted. Everything else is just fine, yeah.. -- Wbr, Antony Dovgal

« previous php.internals (#31990) next »