Re: [PHP-DEV] Migrating PHP classes to built in namespace

2015-06-11 Thread Tony Marston
"Yasuo Ohgaki" wrote in message news:CAGa2bXZvuqV4Kwru+wUL-bfTb9_tnv=l16reu-+w+uajx4h...@mail.gmail.com... Hi Jakub, On Thu, Jun 11, 2015 at 7:43 AM, Jakub Kubícek wrote: This is weird and ugly what you're fabricating here. The PHP classes should be all in global namespace. I am really agai

Re: [PHP-DEV] Migrating PHP classes to built in namespace

2015-06-11 Thread Yasuo Ohgaki
Hi Tony, On Thu, Jun 11, 2015 at 4:37 PM, Tony Marston wrote: > "Yasuo Ohgaki" wrote in message > news:CAGa2bXZvuqV4Kwru+wUL-bfTb9_tnv=l16reu-+w+uajx4h...@mail.gmail.com... > >> >> Hi Jakub, >> >> On Thu, Jun 11, 2015 at 7:43 AM, Jakub Kubícek >> >> wrote: >> >> This is weird and ugly what yo

Re: [PHP-DEV] Array dereferencing of scalars

2015-06-11 Thread Rowan Collins
Yasuo Ohgaki wrote on 11/06/2015 00:50: If PHP should return NULL always against NULL variables, we may be better to reconsider these behavior. [yohgaki@dev Download]$ php This is not complaining that $v is NULL, it is warning you the same as if you wrote $v = 'some_name_you_never_assigned_to

Re: [PHP-DEV] Request for php-src karma

2015-06-11 Thread Christoph Becker
Anatol Belski wrote: > Christoph, please don't forget to note the changes in the NEWS and/or > UPGRADING where appropriate. Also don't forget to check the lower > branches where your fixes could be profitable. Thanks for the hints. As I understand it, I should inform the release managers about c

[PHP-DEV] Some strange bug

2015-06-11 Thread Andrew Kluev
I have code: - echo 'php_sapi_name: '.php_sapi_name().PHP_EOL; echo 'max_input_time: '.ini_get('max_input_time').PHP_EOL; echo 'max_execution_time: '.ini_get('max_execution_time').PHP_EOL; set_time_limit(2); echo 'max_input_time: '.ini_get('max_input_time').PH

Re: [PHP-DEV] Some strange bug

2015-06-11 Thread Johannes Schlüter
On Thu, 2015-06-11 at 14:25 +0300, Andrew Kluev wrote: > sleep(3); [...] > This is a bug or something I do not know about php? Max execution time is working a bit dependent on the operating system. On Windows it is using the elapsed time ("wall clock time") on Linux systems the CPU time. Thus on w

Re: [PHP-DEV] Some strange bug

2015-06-11 Thread Andrew Kluev
It is very informative, but not resolve the problem, php completely ignored my max_execution_teme setup with any SAPI, in all cases 2015-06-11 14:57 GMT+03:00 Andrew Kluev : > And php7 not working too. > > php7 -v > PHP 7.0.0-dev (cli) (built: Mar 30 2015 12:26:36) (DEBUG) > Copyright (c) 199

RE: [PHP-DEV] Request for php-src karma

2015-06-11 Thread Anatol Belski
Hi Christoph, > -Original Message- > From: Christoph Becker [mailto:cmbecke...@gmx.de] > Sent: Thursday, June 11, 2015 1:03 PM > To: Anatol Belski; internals@lists.php.net > Subject: Re: [PHP-DEV] Request for php-src karma > > Anatol Belski wrote: > > > Christoph, please don't forget to

Re: [PHP-DEV] Some strange bug

2015-06-11 Thread Christoph Becker
Andrew Kluev wrote: > It is very informative, but not resolve the problem, php completely ignored > my max_execution_teme setup with any SAPI, in all cases As Johannes wrote: > [...] whereas on Linux no time is spent during sleep(). -- Christoph M. Becker -- PHP Internals - PHP Runtime Devel

Re: [PHP-DEV] Request for php-src karma

2015-06-11 Thread Christoph Becker
Hi Anatol, Anatol Belski wrote: > Hi Christoph, > >> -Original Message- >> From: Christoph Becker [mailto:cmbecke...@gmx.de] >> Sent: Thursday, June 11, 2015 1:03 PM >> To: Anatol Belski; internals@lists.php.net >> Subject: Re: [PHP-DEV] Request for php-src karma >> >> Anatol Belski wrot

Re: [PHP-DEV] Some strange bug

2015-06-11 Thread Andrew Kluev
Wow! Now I understand. Thank you for the explanation 2015-06-11 15:10 GMT+03:00 Johannes Schlüter : > As said: It looks at CPU time. sleep doesn't require CPU time. Try with > something like while(true){} which keeps PHP on CPU > > > $ cat test.php > echo 'php_sapi_name: '.php_sapi_name().PHP_EO

Re: [PHP-DEV] Array dereferencing of scalars

2015-06-11 Thread Chris Wright
On 11 June 2015 at 09:59, Rowan Collins wrote: > Yasuo Ohgaki wrote on 11/06/2015 00:50: > >> If PHP should return NULL always against NULL variables, we may be better >> to >> reconsider these behavior. >> >> [yohgaki@dev Download]$ php >> > $v = NULL; >> $$v; >> >> >> PHP Notice: Undefined var

[PHP-DEV] Packed array is not fast?

2015-06-11 Thread Yasuo Ohgaki
Hi all, I've tried to see how packed array is faster with following code http://3v4l.org/TQd6c I confirmed when start index is non-zero, hash is used by zend_hash_index_find(). I got following result. (with much larger number of elements/loops) Fedora 22 + current master without --enable-debug

[PHP-DEV] PHP 5.6.10 is available

2015-06-11 Thread Ferenc Kovacs
Hello! The PHP development team announces the immediate availability of PHP 5.6.10. Several bugs have been fixed as well as several security issues into some bundled librairies (CVE-2015-3414, CVE-2015-3415, CVE-2015-3416, CVE-2015-2325 and CVE-2015-2326). All PHP 5.6 users are encouraged to upgra

Re: [PHP-DEV] Array dereferencing of scalars

2015-06-11 Thread Rowan Collins
On 11/06/2015 21:22, Chris Wright wrote: I'm inclined to agree that we should have consistency here, and that the current behaviour in a function context is the correct one. A couple of (IMO) good arguments for this: - The function behaviour gives a more explanatory and useful error message -

Re: [PHP-DEV] Array dereferencing of scalars

2015-06-11 Thread Chris Wright
On 12 June 2015 at 00:35, Rowan Collins wrote: > On 11/06/2015 21:22, Chris Wright wrote: > >> I'm inclined to agree that we should have consistency here, and that the >> current behaviour in a function context is the correct one. A couple of >> (IMO) good arguments for this: >> >> - The function

[PHP-DEV] PHP 7.0.0alpha1 Released for Testing!

2015-06-11 Thread ab
Hi, The first alpha for 7.0.0 was just released and can be downloaded from: https://downloads.php.net/~ab/ The Windows binaries are available at http://windows.php.net/qa/ This is the start of a new PHP era! Thanks everyone who made and helped to make this happen. From now on we are looking st

[PHP-DEV] PR #1325 - array_column() for array of objects

2015-06-11 Thread Tjerk Meesters
Hi, I've created a PR here: https://github.com/php/php-src/pull/1325 This enhancement allows for properties on objects to work in the same way as arrays for the inner elements of the main array. It also supports the __get() method, provided that also __isset() is implemented and returns true for

Re: [PHP-DEV] PR #1325 - array_column() for array of objects

2015-06-11 Thread Xinchen Hui
Hey: On Fri, Jun 12, 2015 at 9:31 AM, Tjerk Meesters wrote: > Hi, > > I've created a PR here: https://github.com/php/php-src/pull/1325 > > This enhancement allows for properties on objects to work in the same way > as arrays for the inner elements of the main array. > IMO, it is called (array)_co

Re: [PHP-DEV] PR #1325 - array_column() for array of objects

2015-06-11 Thread Tjerk Meesters
> On 12 Jun 2015, at 10:00 am, Xinchen Hui wrote: > > Hey: > > On Fri, Jun 12, 2015 at 9:31 AM, Tjerk Meesters > wrote: >> Hi, >> >> I've created a PR here: https://github.com/php/php-src/pull/1325 >> >> This enhancement allows for properties on objects to work in the same way >> as arrays f

[PHP-DEV] PHP 5.4.42 Released

2015-06-11 Thread Stanislav Malyshev
Hello! The PHP development team announces the immediate availability of PHP 5.4.42. Six security-related issues in PHP were fixed in this release, as well as several security issues in bundled sqlite library (CVE-2015-3414, CVE-2015-3415, CVE-2015-3416). All PHP 5.4 users are encouraged to upgrad

Re: [PHP-DEV] PHP 7.0.0alpha1 Released for Testing!

2015-06-11 Thread marius adrian popa
Firebird related extensions are missing from PHP 7 windows binaries On Fri, Jun 12, 2015 at 3:53 AM, wrote: > Hi, > > The first alpha for 7.0.0 was just released and can be downloaded from: > > https://downloads.php.net/~ab/ > > The Windows binaries are available at > > http://windows.php.net/qa

Re: [PHP-DEV] PHP 7.0.0alpha1 Released for Testing!

2015-06-11 Thread Ferenc Kovacs
2015.06.12. 8:09 ezt írta ("marius adrian popa" ): > > Firebird related extensions are missing from PHP 7 windows binaries > Ccing Stephen who is in charge of the windows builds.

Re: [PHP-DEV] PHP 7.0.0alpha1 Released for Testing!

2015-06-11 Thread Martin Keckeis
Hello, 2015-06-12 2:53 GMT+02:00 : > Hi, > > The first alpha for 7.0.0 was just released and can be downloaded from: > > https://downloads.php.net/~ab/ > > The Windows binaries are available at > > http://windows.php.net/qa/ > > This is the start of a new PHP era! Thanks everyone who made and he