"Mathieu Suen" <mathieu.s...@easyflirt.com> wrote in message news:4af91f92.4000...@easyflirt.com... > > Why isn't a mater of pushing the function call statement into a valuable > statement? > > I guess something like this: > > statement : > | value > | function_call; > > > value : > | valriable > | array_access > | method_send > | ...; ... > You also could push the new statement into the value so you can do: > > (new A())->foo(); > > or > > foo(new A()); > > -mthk
How many conflicts does it bring? For example patch offered in this issue http://bugs.php.net/bug.php?id=50003 brought 5 new conflicts. Please note that in some cases conflicts will delay calls to zend_compile.c functions and therefore may bring real problems. IMHO it's not as simple as populating grammar elements. The results must be carefully tested to avoid BC breakage. just 2c -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php