> Here's some instructions on generating a backtrace:
> http://bugs.php.net/bugs-generating-backtrace.php
OK, well this is the only output I get from gdb that isn't (no debugging
symbols found):
Program received signal SIGSEGV, Segmentation fault.
0x4045853b in zend_hash_index_update_or_next_insert (ht=0x40538dc8, h=0,
pData=0xbffff3e0,
nDataSize=12, pDest=0x0, flag=1) at
/usr/local/src/php-4.3.10/Zend/zend_hash.c:390
390 p = ht->arBuckets[nIndex];
Does this help?
> Also, check to make sure that TMPL_G(template_dir) is (A)
> defined, and (B) points to a NULL terminated string in a
> memory segmet accessable to the process. Of course, the
> backtrace will reveal that anyway.
A) Has to be defined as it is the macro for accessing global variables:
#define TMPL_G(v) (tmpl_globals.v)
B) I read in the header file that the TSRMLS_FETCH(); call was all I needed
to make for access to the global vars in a helper function. Is this
correct?
Thanks for your help,
Mikey