Re: [PHP-DEV] Array map with reset function

2020-08-25 Thread Nikita Popov
On Tue, Aug 25, 2020 at 7:47 PM Michael Voříšek - ČVUT FEL < voris...@fel.cvut.cz> wrote: > The following code stopped working in PHP 8: > > https://3v4l.org/UlIE3 > > is it a bug or a feature? > This is an intentional change, if that's what you're asking. array_map() is not spec'd to pass by ref

Re: [PHP-DEV] Array map with reset function

2020-08-25 Thread Levi Morrison via internals
On Tue, Aug 25, 2020 at 11:47 AM Michael Voříšek - ČVUT FEL wrote: > > The following code stopped working in PHP 8: > > https://3v4l.org/UlIE3 > > is it a bug or a feature? > > is posting issues like this to internals@lists.php.net email prefered > over opening bug directly? or is there any specia

[PHP-DEV] Array map with reset function

2020-08-25 Thread Michael Voříšek - ČVUT FEL
The following code stopped working in PHP 8: https://3v4l.org/UlIE3 is it a bug or a feature? is posting issues like this to internals@lists.php.net email prefered over opening bug directly? or is there any special email for it? With kind regards / Mit freundlichen Grüßen / S přátelským p

Re: [PHP-DEV] Segmentation Fault when trying to call zend_new_array.

2020-08-25 Thread Levi Morrison via internals
On Tue, Aug 25, 2020 at 5:31 AM Ivan Zanev wrote: > > Hello, > > I'm trying to learn a bit more about HashTable in PHP internally and how > memory is allocated when generating arrays with various sizes. I created a > simple C script that would call > > HashTable *ht = zend_new_array(15); > > Howev

[PHP-DEV] Segmentation Fault when trying to call zend_new_array.

2020-08-25 Thread Ivan Zanev
Hello, I'm trying to learn a bit more about HashTable in PHP internally and how memory is allocated when generating arrays with various sizes. I created a simple C script that would call HashTable *ht = zend_new_array(15); However, when I compile the script with gcc, I get segmentation fault; gd