Newbie help: Segmentation fault

From: Date: Mon, 15 Jan 2007 20:50:07 +0000
Subject: Newbie help: Segmentation fault
Groups: php.internals 
Request: Send a blank email to internals+get-27463@lists.php.net to get a copy of this message
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). Thank for any reply, Arnold PHP_FUNCTION(qconf_ini_parse) { zval *in; zval *ret; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|z", &in, &ret) == FAILURE) {
       RETURN_FALSE;
} if (ret != NULL) {
       printf('1');
} RETURN_NULL(); }

« previous php.internals (#27463) next »