Re: [PHP-DEV] Can't use embeded sapi

2009-08-09 Thread Farley Knight
On Mon, Jul 13, 2009 at 7:17 PM, Paul Biggar wrote: > Hi Thomas, > > On Mon, Jul 13, 2009 at 9:15 PM, Thomas Koch wrote: >> gcc  -c -I/usr/local/include/php/ -I/usr/local/include/php/main - >> I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -Wall -g -o >> worker.o worker.c >> gcc  -L/usr

Re: [PHP-DEV] Segfault while looping through hash table

2009-05-15 Thread Farley Knight
On Fri, May 15, 2009 at 12:13 AM, Moriyoshi Koizumi wrote: > On Fri, May 15, 2009 at 12:31 PM, Farley Knight > wrote: > >>  zend_hash_internal_pointer_reset(Z_ARRVAL(zhash)); >> >>  printf("This hash table has %d entries\n", >> zend_hash_num_element

Re: [PHP-DEV] Segfault while looping through hash table

2009-05-15 Thread Farley Knight
On Fri, May 15, 2009 at 4:03 AM, Antony Dovgal wrote: > On 15.05.2009 07:31, Farley Knight wrote: >>   while (zend_hash_get_current_data(Z_ARRVAL(zhash), (void**)&value) >> == SUCCESS) { >>     current++; >>     printf("Currently on entry %d\n", cu

[PHP-DEV] Segfault while looping through hash table

2009-05-14 Thread Farley Knight
Hi all, I'm having some issues with some custom embedding of the PHP sapi. I'm trying to call PHP from Ruby and I'd like to be able to pass data back and forth freely, but I'm running into segfaults. It works well enough for small values, but for some large values, it crashes on me. Currently my m