Hi again,
First of all thanks for your reply. It sound logical, but doesn't work
unfortunately. I now get:
seabert:/var/pear# phpunit Test_Standard_qconf
PHPUnit 3.0.0alpha11 by Sebastian Bergmann.
FFFFSegmentation fault
I've got no idea where the the FFFF stands for.
/**
* Parse .ini content into a zend array
*/
PHP_FUNCTION(qconf_ini_parse)
{
zval *in=NULL;
zval *ret=NULL;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|z", &in,
&ret) == FAILURE) {
RETURN_FALSE;
}
if (ret != NULL) {
printf('1');
}
RETURN_NULL();
}
If you could have a closer look I will be very grateful.
Arnold
Antony Dovgal schreef:
On 01/15/2007 11:50 PM, Arnold Daniels wrote:
Hi,
I could use some help on an extension I've written. It worked fine
before, but from out the blue I started to get segmentation faults.
I've located it down to this piece of code, but I don't do any writes
to the code memory, so I don't get what's wrong. It seems like the
error lies in the 'ret != NULL'.
The module compiled against php 5.1.6 and runs under linux version
2.6.15.4 (Debian).
- zval *ret;
+ zval *ret = NULL;