Re: overrid for GdkPixbuf::save()
| From: | Christian Weiske | Date: | Tue, 14 Mar 2006 09:30:19 +0000 |
| Subject: | Re: overrid for GdkPixbuf::save() | ||
| References: | 1 2 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2608@lists.php.net to get a copy of this message | ||
> This is definitely not the correct way to return data in PHP.
>> array_init(return_value);
>> add_next_index_long(return_value, year);
>> add_next_index_long(return_value, month);
>> add_next_index_long(return_value, day);
The correct way would be to build a return value with "(iii)" as parameter.
> php_gtk_build_value(&return_value, "(iii)", year, month, day);
--
Regards/MfG,
Christian Weiske
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc