problem in callling function of my custom extension
Posted: Fri Nov 01, 2002 8:28 am
Hi,
I've added a function to my custom extension. But from the point I call the function, there is no output. It seems as if there is some exception or error that occurs internally.
In the output I have used 'get_extension_funcs' to list the functions in the extension. This list shows my function.
Following are excerpts from from my code :
In header file :
PHP_FUNCTION(Init);
In C file :
function_entry php_mcelite_functions[] = {
PHP_FE(Init, NULL)
PHP_FE(confirm_php_mcelite_compiled, NULL) /* For testing, remove later. */
{NULL, NULL, NULL} /* Must be the last line in php_mcelite_functions[] */
};
PHP_FUNCTION(Init)
{
RETURN_TRUE ;
}
I've even turned on the log, but the log does not have any info.
Can anyone give some help/hint ?
Thanks in advance.
iceberg.
I've added a function to my custom extension. But from the point I call the function, there is no output. It seems as if there is some exception or error that occurs internally.
In the output I have used 'get_extension_funcs' to list the functions in the extension. This list shows my function.
Following are excerpts from from my code :
In header file :
PHP_FUNCTION(Init);
In C file :
function_entry php_mcelite_functions[] = {
PHP_FE(Init, NULL)
PHP_FE(confirm_php_mcelite_compiled, NULL) /* For testing, remove later. */
{NULL, NULL, NULL} /* Must be the last line in php_mcelite_functions[] */
};
PHP_FUNCTION(Init)
{
RETURN_TRUE ;
}
I've even turned on the log, but the log does not have any info.
Can anyone give some help/hint ?
Thanks in advance.
iceberg.