cvs: pecl /imagick imagick.c
| From: | Mikko Koppanen | Date: | Sun, 20 Jan 2008 19:54:41 +0000 |
| Subject: | cvs: pecl /imagick imagick.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-9573@lists.php.net to get a copy of this message | ||
mkoppanen Sun Jan 20 19:54:41 2008 UTC
Modified files:
/pecl/imagick imagick.c
Log:
Fixed some globals mess. Should compile on pre 5.2 versions now.
http://cvs.php.net/viewvc.cgi/pecl/imagick/imagick.c?r1=1.256&r2=1.257&diff_format=u
Index: pecl/imagick/imagick.c
diff -u pecl/imagick/imagick.c:1.256 pecl/imagick/imagick.c:1.257
--- pecl/imagick/imagick.c:1.256 Sun Jan 20 19:13:56 2008
+++ pecl/imagick/imagick.c Sun Jan 20 19:54:41 2008
@@ -18579,7 +18579,7 @@
STD_PHP_INI_ENTRY( "imagick.locale_fix", "0", PHP_INI_ALL, OnUpdateBool,
locale_fix, zend_imagick_globals, imagick_globals )
PHP_INI_END()
-PHP_GINIT_FUNCTION(imagick)
+static void php_imagick_init_globals(zend_imagick_globals *imagick_globals)
{
imagick_globals->locale_fix = 0;
}
@@ -18588,6 +18588,9 @@
{
zend_class_entry ce;
+ /* Initialize globals */
+ ZEND_INIT_MODULE_GLOBALS(imagick, php_imagick_init_globals, NULL);
+
/*
Allocate some memory
*/
@@ -18760,18 +18763,8 @@
NULL, /* RSHUTDOWN */
#endif
PHP_MINFO(imagick), /* MINFO */
-#if ZEND_MODULE_API_NO >= 20010901
PHP_IMAGICK_EXTVER,
-#endif
-#if ZEND_MODULE_API_NO >= 20060613
- PHP_MODULE_GLOBALS(imagick),
- PHP_GINIT(imagick),
- NULL,
- NULL,
- STANDARD_MODULE_PROPERTIES_EX
-#else
STANDARD_MODULE_PROPERTIES
-#endif
};