Re: AW: [PHP-DEV] Types on the right or on the left

2014-11-04 Thread Jelle Zijlstra
2014-11-04 9:51 GMT-08:00 Stas Malyshev : > Hi! > > > I thought it was inconsistent, but after discussions on > > StackOverflow, I don't think it actually is. > > If you specify the type once as "Foo something" and once as "something: > Foo" then I don't see how there's even a place for discussion

Re: [PHP-DEV] Language constructs and callability

2013-07-19 Thread Jelle Zijlstra
2013/7/19 Peter Cowburn > On 19 July 2013 17:36, Daniel Lowrey wrote: > > > I have a simple question about the callability of language constructs and > > whether or not that's something that might change in the future. > Consider: > > > > var_dump(is_callable('echo')); // bool(false) > > var_dum

Re: [PHP-DEV] Allow (...)->foo() expressions not only for `new`

2013-02-25 Thread Jelle Zijlstra
2013/2/25 Nikita Popov > Hi internals! > > PHP 5.4 added support for expressions of the kind (new Foo)->bar(), (new > Foo)->bar and (new Foo)['bar']. > > I'd like to extend this support to any expression instead of just new. > > Why should be do this? Because it's just an arbitrary restriction. R

Re: [PHP-DEV] No configure file on github

2012-04-11 Thread Jelle Zijlstra
2012/4/11 Yader Hernandez > Hello, > > Is there a reason why the github repo doesn't contain configure file? I > would have thought that I could do something like: > > git clone https://github.com/php/php-src.git > > cd php-src > > ./configure > > make && make install > > The only way to get conf

Re: [PHP-DEV] Allow non-variable arguments to empty()

2012-04-10 Thread Jelle Zijlstra
2012/4/10 Johannes Schlüter > On Tue, 2012-04-10 at 19:12 -0400, Jelle Zijlstra wrote: > > I think this is a useful simplification of the language, removing an > > unnecessary exception. Would it also make sense to make empty() into a > > library function instead of a lan

Re: [PHP-DEV] Allow non-variable arguments to empty()

2012-04-10 Thread Jelle Zijlstra
2012/4/10 Nikita Popov > Hey internals! > > Currently the empty() language construct only works on variables. You > can write if (empty($array)) but not empty if (empty(getSomeArray()). > > The original reason for this restriction probably is that - in a way - > it "doesn't make sense" to pass an

Re: [PHP-DEV] TSRMLS_* keywords in PHP source

2012-03-19 Thread Jelle Zijlstra
Those are macros that are defined only if PHP's Thread-Safe Resource Manager is enabled at compile time; it passes in additional information needed by the TSRM. 2012/3/19 Barbu Paul Gheorghe > Hello! > > What role does the keywords TSRMLS_CC, TSRMLS_DC, TSRMLS_D have when > passed along with a a