[PHP-DEV] Request #44392: getFilePointer() for Childs of SplFileObject

2012-12-08 Thread Levi Morrison
A copy of the feature request description (https://bugs.php.net/bug.php?id=44392): It would be nice if it would be possible to get the underlying resource handle of an SplFileObject to be able to add stream filters on the file. Sadly the URI parser in PHP seems to be broken and URIs with filters l

Re: [PHP-DEV] Call closure stored as object property directly without use of temporary variable

2012-12-08 Thread Marco Pivetta
I'm currently working around this problem by assuming that a Closure implements `__invoke`: `$this->someProp->__invoke();` Not really nice, but this works in both 5.3 and 5.4. If the suggestion above could cover also `callable` and not just `Closure` then it would be quite interesting to have th

Re: [PHP-DEV] Call closure stored as object property directly without use of temporary variable

2012-12-08 Thread Adam Jon Richardson
On Sat, Dec 8, 2012 at 5:36 PM, Steve Clay wrote: > On 12/8/12 4:48 PM, Adam Jon Richardson wrote: > >> call closures that are stored as object properties directly without having >> to make use of a temporary variable. >> > ... > > $o = new stdClass(); >> $o->func = function(){ >> return 'Y

Re: [PHP-DEV] Call closure stored as object property directly without use of temporary variable

2012-12-08 Thread Adam Jon Richardson
On Sat, Dec 8, 2012 at 5:05 PM, Stas Malyshev wrote: > Hi! > > > Has anyone else wanted this functionality? Has anyone else thought of > ideas > > of addressing this (or come to the conclusion it really isn't safely > > addressable without causing disproportionate amounts of grief?) > > Yes, there

Re: [PHP-DEV] Call closure stored as object property directly without use of temporary variable

2012-12-08 Thread Steve Clay
Adam, On 12/8/12 4:48 PM, Adam Jon Richardson wrote: call closures that are stored as object properties directly without having to make use of a temporary variable. ... $o = new stdClass(); $o->func = function(){ return 'Yes!'; }; $o->func(); The following expression avoids PHP's dilemm

Re: [PHP-DEV] Call closure stored as object property directly without use of temporary variable

2012-12-08 Thread Stas Malyshev
Hi! > Has anyone else wanted this functionality? Has anyone else thought of ideas > of addressing this (or come to the conclusion it really isn't safely > addressable without causing disproportionate amounts of grief?) Yes, there were people that wanted this functionality, but since having the sa

Re: [PHP-DEV] Git Access

2012-12-08 Thread David Soria Parra
On 2012-12-05, Sara Golemon wrote: > remote: Welcome pollita. > remote: Changesets accepted. Thank you for your contribution. > remote: > remote: Attempting to push to mirror g...@github.com:php/php-src.git > remote: Write failed: Broken pipe > remote: fatal: The remote end hung up unexpectedly >