com php/gtk-src: Fixes bug #55225 - segfault on cleanup after dl load: main/php_gtk.c

[email protected] (Elizabeth Marie Smith) Wed, 18 Jul 2012 20:08:08 +0000
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    b549cc2e467752bf0ac14f3d97636c25a1df4d46=0AAuthor:    Elizabeth =
M Smith <[email protected]>         Wed, 18 Jul 2012 15:03:24 -0400=
=0AParents:   60214f534ea941fe23286d66c1c8a1beeeef100d=0ABranches:  master=
=0A=0ALink:       http://git.php.net/?p=3Dphp/gtk-src.git;a=3Dcommitdiff;h=
=3Db549cc2e467752bf0ac14f3d97636c25a1df4d46=0A=0ALog:=0AFixes bug #55225 - =
segfault on cleanup after dl load=0A=0Amakes the module information for php=
-gtk=0Aavailable in RINIT when the classes are registered=0Aas a nice side =
effect that extension reflection works=0A=0ABugs:=0Ahttps://bugs.php.net/55=
225=0A=0AChanged paths:=0A  M  main/php_gtk.c=0A=0A=0ADiff:=0Adiff --git a/=
main/php_gtk.c b/main/php_gtk.c=0Aindex e674df9..0d79fa9 100644=0A--- a/mai=
n/php_gtk.c=0A+++ b/main/php_gtk.c=0A@@ -180,6 +180,9 @@ PHP_MSHUTDOWN_FUNC=
TION(gtk)=0A =0A PHP_RINIT_FUNCTION(gtk)=0A {=0A+=09zend_module_entry *temp=
_module =3D EG(current_module);=0A+=09EG(current_module) =3D phpext_php_gtk=
_ptr;=0A+=0A =09zend_alter_ini_entry("max_execution_time", sizeof("max_exec=
ution_time")-1, "0", sizeof("0")-1,PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);=
=0A =0A =09php_gtk_handlers =3D *zend_get_std_object_handlers();=0A@@ -211,=
6 +214,7 @@ PHP_RINIT_FUNCTION(gtk)=0A =09}=0A =0A =09php_gtk_startup_share=
d_extensions(module_number);=0A+=09EG(current_module) =3D temp_module;=0A =
=0A =09return SUCCESS;=0A }=0A