Re: Seg Fault on zend_parse_parameters

From: Date: Mon, 21 Jul 2014 18:01:15 +0000
Subject: Re: Seg Fault on zend_parse_parameters
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-12063@lists.php.net to get a copy of this message
Hi! > I am having a really hard time figuring out why this is throwing a segment > fault. > > char *input_file = NULL; > char *output_file = NULL; > zend_bool formatoutput = 0; > if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &input_file, > &output_file, &formatoutput) == FAILURE) { "s" requires char * and int (two params). See README.PARAMETER_PARSING_API for more details about how zend_parse_parameters works. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/

« previous php.pecl.dev (#12063) next »