I'v came back now
| From: | Wenlong Wu | Date: | Mon, 05 Jul 2004 06:07:18 +0000 |
| Subject: | I'v came back now | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-935@lists.php.net to get a copy of this message | ||
Hi,
I'v came back now :)
I'v rewrote all the code of freeimage extension, and plan to release the
first version.
Currently, I'v meet a problem, I'v wrote a function for freeimage error
handler,
but why cann't be captured? see the following code for detail.
/* {{{ _php_freeimage_error_handler
*/
void _php_freeimage_error_handler(FREE_IMAGE_FORMAT fif, const char
*message)
{
php_printf("\n*** ");
php_printf("%s Format:\n", FreeImage_GetFormatFromFIF(fif));
php_printf(message);
php_printf(" ***\n");
}
/* }}} */
....
/* {{{ PHP_MINIT_FUNCTION
*/
PHP_MINIT_FUNCTION(freeimage)
{
...
/* FreeImage error handler */
FreeImage_SetOutputMessage(_php_freeimage_error_handler);
...
return SUCCESS;
}
/* }}} */