« How to build a CLI interpreter of PHP in Linux | Home | Binaries for rarcrack 0.2 on Microsoft Windows »
Set of patches to allow PHP-GTK2 to compile with PHP6 (incomplete)
By admin | January 24, 2009
If you try to compile PHP-GTK 2.0.1 with PHP 6 (available at the Compdigitec Packaging Department), you will need a series of patches to allow it to compile with PHP 6 because the PHP-GTK generator does not like PHP 6. Here are a set of (incomplete, missing main/phpg_support.c) patches for the PHP-GTK2 generator:
- ext/gtk/gen_atk.c – patch, patched
- ext/gtk/gen_pango.c – patch, patched
- ext/gtk/gen_gdk.c – patch, patched
- ext/gtk/gen_gtk.c – patch, patched
- ext/scintilla/gen_scintilla.c – patch, patched
- main/php_gtk.c – patch, patched
This set of patches is incomplete because the build process will fail on
gcc -I/usr/dev/php-gtk-2.0.1/main -I. -I/usr/dev/php-gtk-2.0.1 -DPHP_ATOM_INC -I/usr/dev/php-gtk-2.0.1/include -I/usr/dev/php-gtk-2.0.1/main -I/usr/dev/php-gtk-2.0.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/php -DHAVE_CONFIG_H -g -O0 -Wall -c /usr/dev/php-gtk-2.0.1/main/phpg_support.c -fPIC -DPIC -o main/.libs/phpg_support.o
which it fails with the following output:
/usr/dev/php-gtk-2.0.1/main/phpg_support.c: In function ‘phpg_init_object’:
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:275: error: incompatible type for argument 2 of ‘zend_hash_find’
/usr/dev/php-gtk-2.0.1/main/phpg_support.c: In function ‘phpg_register_class’:
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:300: error: incompatible types in assignment
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:328: error: incompatible type for argument 2 of ‘zend_hash_find’
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:331: error: incompatible type for argument 2 of ‘_zend_hash_add_or_update’
/usr/dev/php-gtk-2.0.1/main/phpg_support.c: In function ‘phpg_register_interface’:
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:353: error: incompatible types in assignment
/usr/dev/php-gtk-2.0.1/main/phpg_support.c: In function ‘unset_abstract_flag’:
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:486: error: incompatible type for argument 2 of ‘zend_hash_quick_exists’
/usr/dev/php-gtk-2.0.1/main/phpg_support.c: In function ‘phpg_handler_marshal’:
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:565: warning: passing argument 3 of ‘zend_is_callable’ from incompatible pointer type
If you found this article useful or helpful, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful or interesting articles!
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: PHP | 19 Comments »

October 25th, 2026 at 03:11
100 tsitat velikikh lyudey
100 tsitat velikikh lyudey
October 25th, 2026 at 04:41
Psychoanalyst
Psychoanalyst
October 25th, 2026 at 07:15
Freid
Freid
October 28th, 2026 at 11:58
book
book
October 28th, 2026 at 15:21
yalta
yalta
October 30th, 2026 at 02:51
psychologist
psychologist
October 30th, 2026 at 14:14
management
management
October 30th, 2026 at 15:28
structure-of-legal-norms
structure-of-legal-norms
October 30th, 2026 at 16:01
Carl Gustav Jung
Carl Gustav Jung
October 31st, 2026 at 12:53
archive
archive
November 2nd, 2026 at 14:10
Q141974782
Q141974782
November 4th, 2026 at 17:18
psiholog-psiholog-onlajn
psiholog-psiholog-onlajn
November 5th, 2026 at 03:42
Single-Session
Single-Session
November 5th, 2026 at 07:12
… [Trackback]
[…] Here you will find 18279 more Info on that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]
November 6th, 2026 at 14:10
Online psychologist
Online psychologist
November 6th, 2026 at 18:28
… [Trackback]
[…] Find More here on that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]
November 8th, 2026 at 05:57
… [Trackback]
[…] Here you will find 68351 more Information on that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]
November 10th, 2026 at 07:43
Cognitive warfare
Cognitive warfare
November 11th, 2026 at 03:38
Cognitive
Cognitive