Felipe Pena schreef: > Hi! > > 2010/6/4 Stas Malyshev <smalys...@sugarcrm.com> > >> Hi! >> >> >> function call chaining (f()() if f() returns function), and array >>> dereferencing (f()[0]) - (Stas) >>> >> I did patch for f()() - it's referenced at >> http://wiki.php.net/rfc/fcallfcall - but not for f()[] - didn't have time >> for that yet. >> >> It should not be too hard to do, one just has to be careful with refcounts >> so that the returned result could be freed properly and without hurting the >> referred element. >> > > I wrote a patch, but I cannot test all cases, so I'm not sure if is okay at > all. > > What about this approach: http://felipe.ath.cx/diff/array_dereference.diff ? > If the patch is really that easy I'm gonna kill someone. (Or marry you, depending on my mood :))
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php