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

2020-08-26 Thread Ivan Zanev
ot;. Make sure that both the PHP embed SAPI and your own test > code were compiled with debug info enabled. > > Alex > > > > On Wed, Aug 26, 2020 at 9:29 AM Ivan Zanev wrote: > >> Yes, it does. >> >> I recompiled php now with >> >> --configure

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

2020-08-26 Thread Ivan Zanev
mething related to a missing piece in the test-embed.c script I wrote? On Tue, Aug 25, 2020 at 2:39 PM Levi Morrison wrote: > 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

[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