Compdigitec Labs

« | Home | »

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:

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 | 13 Comments »

13 Responses to “Set of patches to allow PHP-GTK2 to compile with PHP6 (incomplete)”

  1. ร้านขายเหล็กหาดใหญ่ Says:
    January 13th, 2025 at 21:02

    … [Trackback]

    […] Find More Info here to that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  2. pstat Says:
    January 14th, 2025 at 17:31

    pstat

    pstat

  3. ddfr.ru Says:
    January 15th, 2025 at 04:05

    ddfr.ru

    ddfr.ru

  4. imkor.ru Says:
    January 15th, 2025 at 13:53

    imkor.ru

    imkor.ru

  5. ปั่นสล็อต อย่างไรให้โบนัสแตกบ่อย แจกจริง Says:
    January 18th, 2025 at 03:55

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  6. สล็อตเว็บตรง อัพเดทใหม่ล่าสุด โบนัสแตกยับ Says:
    January 18th, 2025 at 16:50

    … [Trackback]

    […] Find More on on that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  7. edu-url-http.ru Says:
    January 23rd, 2025 at 12:55

    edu-url-http.ru

    edu-url-http.ru

  8. Free-Proxy-socks5-socks4.ru Says:
    January 24th, 2025 at 11:02

    Free-Proxy-socks5-socks4.ru

    Free-Proxy-socks5-socks4.ru

  9. iu0000ytre Says:
    January 24th, 2025 at 20:27

    iu0000ytre

    iu0000ytre

  10. lazywin888 Says:
    January 25th, 2025 at 15:58

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  11. sitnikov Says:
    January 25th, 2025 at 16:35

    sitnikov

    sitnikov

  12. ของเล่นสนาม Says:
    January 30th, 2025 at 21:50

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  13. dilts.g-u.su Says:
    February 3rd, 2025 at 17:24

    dilts.g-u.su

    dilts.g-u.su

Comments