Re: [PHP-DEV] Evaluation of constructor arguments if there's no constructor

2014-08-14 Thread Julien Pauli
On Thu, Aug 14, 2014 at 2:42 PM, Rowan Collins wrote: > Julien Pauli wrote (on 14/08/2014): >> >> It may be possible to interpret the argument, but I think it will need >> >> new OPCodes, like ZEND_NEW_WITH_CTOR and ZEND_NEW_WITHOUT_CTOR , and a >> compiler patch to support those. >> This may be t

Re: [PHP-DEV] Evaluation of constructor arguments if there's no constructor

2014-08-14 Thread Rowan Collins
Julien Pauli wrote (on 14/08/2014): It may be possible to interpret the argument, but I think it will need new OPCodes, like ZEND_NEW_WITH_CTOR and ZEND_NEW_WITHOUT_CTOR , and a compiler patch to support those. This may be thought for PHP7, and I think will benefit from the ast-compiler RFC if it

Re: [PHP-DEV] Evaluation of constructor arguments if there's no constructor

2014-08-14 Thread Julien Pauli
On Thu, Aug 14, 2014 at 12:19 PM, Rowan Collins wrote: > Julien Pauli wrote (on 14/08/2014): > >> On Thu, Aug 14, 2014 at 8:26 AM, Tjerk Meesters >> wrote: >>> >>> Hi internals, >>> >>> I was sifting through the bucket o’ bugs and found these two related >>> issues: >>> https://bugs.php.net/bug.p

Re: [PHP-DEV] Evaluation of constructor arguments if there's no constructor

2014-08-14 Thread Rowan Collins
Julien Pauli wrote (on 14/08/2014): On Thu, Aug 14, 2014 at 8:26 AM, Tjerk Meesters wrote: Hi internals, I was sifting through the bucket o’ bugs and found these two related issues: https://bugs.php.net/bug.php?id=67829 https://bugs.php.net/bug.php?id=54162 (closed) They concern the behaviour

Re: [PHP-DEV] Evaluation of constructor arguments if there's no constructor

2014-08-14 Thread Julien Pauli
On Thu, Aug 14, 2014 at 8:26 AM, Tjerk Meesters wrote: > Hi internals, > > I was sifting through the bucket o’ bugs and found these two related issues: > https://bugs.php.net/bug.php?id=67829 > https://bugs.php.net/bug.php?id=54162 (closed) > > They concern the behaviour of the engine when a class

[PHP-DEV] Evaluation of constructor arguments if there's no constructor

2014-08-13 Thread Tjerk Meesters
Hi internals, I was sifting through the bucket o’ bugs and found these two related issues: https://bugs.php.net/bug.php?id=67829 https://bugs.php.net/bug.php?id=54162 (closed) They concern the behaviour of the engine when a class defines no constructor or if the class to be instantiated doesn’t