Re: win32 compiling problems
| From: | xxoes | Date: | Wed, 14 Feb 2007 09:13:02 +0000 |
| Subject: | Re: win32 compiling problems | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3707@lists.php.net to get a copy of this message | ||
missing TSRMLS_FETCH(); i can not call phpg_from_utf8 without "TSRMLS_CC".
%%
override gtk_file_filter_add_custom
static void phpg_file_filter_add_custom_marshal_add_file(const gchar *filename, int flags, int flag, zval *php_filter_info)
{
gchar *cp = NULL;
gchar *fn = NULL;
gsize cp_len = 0;
zend_bool free_cp = FALSE;
*TSRMLS_FETCH(); *
if (filename && (flags & flag)
) {
fn = g_filename_to_utf8(filename, strlen(filename), NULL, NULL, NULL);
cp = phpg_from_utf8(fn, strlen(fn), &cp_len, &free_cp TSRMLS_CC);
if (cp) {
add_next_index_string(php_filter_info, (char *)cp, 1);
} else {
php_error(E_WARNING, "%s::%s(): could not convert return value from UTF-8", get_active_class_name(NULL TSRMLS_CC), get_active_function_name(TSRMLS_C));
}
if (free_cp)
g_free(cp);
} else {
add_next_index_null(php_filter_info);} } mfg xxoes xxoes schrieb:
1. static void phpg_file_filter_add_custom_marshal_add_file(const gchar *filename, int flags, int flag, zval *php_filter_info) missing TSRMLS_FETCH(); required for "cp = phpg_from_utf8(fn, strlen(fn), &cp_len, &free_cp TSRMLS_CC);" 2. static PHP_METHOD(GdkWindow, set_icon_list) GList *pixbufs; replace: GList *pixbufs = 0; required for "pixbufs = g_list_prepend(pixbufs, pixbuf);"