« Return to Thread: Problem with make php-gtk-2.0.1 cuz of gen_atk.lo

Re: Problem with make php-gtk-2.0.1 cuz of gen_atk.lo

by Elizabeth M Smith :: Rate this Message:

| View in Thread

Richard Lynch wrote:

> A recent change in the guts of PHP declares some extension bits
> "static" so they don't glut the global symbol space with functions
> that are never called.
>
> Alas, this means that any extensions, presumably including GTK, that
> already put "static" in there for the same purpose will break.
>
> Quick Hack Fix:
> cd into your PHP source directory, and then find the GTK extension,
> probably in ext/gtk* or similar.  Do:
>
> grep -r static .
>
> Anywhere in the bits that declare PHP functions or ZEND functions,
> find the 'static' keywords and rip them out.
>
> Disclaimer: I'm not an expert by any means...
>

You are correct - the 2.0.1 version of PHP-GTK is not compatible with
PHP 5.3 in other ways as well as the static issue though.  If you want
to use PHP-GTK with 5.3, compile an SVN trunk version - that works fine
with 5.3 ;)

Thanks,
Elizabeth

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 « Return to Thread: Problem with make php-gtk-2.0.1 cuz of gen_atk.lo