PHP 4.1 diffs
| From: | Rasmus Lerdorf | Date: | Tue, 11 Dec 2001 07:22:29 +0000 |
| Subject: | PHP 4.1 diffs | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-72998@lists.php.net to get a copy of this message | ||
Some minor changes to get ming to work with PHP 4.1. The first one is not
4.1 specific. That library check needs to be compiled against -lm in
order to work, at least on my Linux box. I don't think adding -lm will
hurt anywhere else either. The second one is a PHP API change described
in the README.EXTENSIONS in the PHP 4.1 distribution tarball which is now
available.
cc'ed to the php-dev list since I know we will be getting questions about
getting the standalone ming extension to work with 4.1. The ext/ming that
comes bundled with 4.1 is pretty close to the current standalone
ming-0.2a. Most of the changes in ext/ming.c in 4.1 are simply using the
various zval macros and some prototype doc fixes.
Not sure when the next version of ming is planned, but you might want to
grab ext/ming.c from PHP 4.1 and use that as a base for your
php_ext/ming-4.1.c. You can see the changes and the current code here:
http://cvs.php.net/cvs.php/php4/ext/ming/ming.c
Diff:
--- config.m4 Fri Aug 17 13:32:47 2001
+++ ../../ming/php_ext/config.m4 Tue Dec 11 02:16:44 2001
@@ -20,11 +20,14 @@
PHP_SUBST(MING_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(ming, $MING_DIR/lib, MING_SHARED_LIBADD)
+ old_LIBS=$LIBS
+ LIBS="$LIBS -L$MING_DIR/lib -lm -ldl"
AC_CHECK_LIB(ming, Ming_useSWFVersion, [
AC_DEFINE(HAVE_MING,1,[ ])
],[
AC_MSG_ERROR(Ming library 0.2a or greater required.)
])
+ LIBS=$old_LIBS
PHP_EXTENSION(ming, $ext_shared)
fi
--- ming-4.0.7.c Fri Aug 17 16:58:59 2001
+++ ../../ming/php_ext/ming-4.0.7.c Tue Dec 11 00:49:08 2001
@@ -3007,6 +3007,9 @@
zend_module_entry ming_module_entry =
{
+#if ZEND_MODULE_API_NO >= 20010901
+ STANDARD_MODULE_HEADER,
+#endif
"ming",
ming_functions,
PHP_MINIT(ming), /* module init function */
@@ -3014,6 +3017,9 @@
PHP_RINIT(ming), /* request init function */
NULL, /* request shutdown function */
PHP_MINFO(ming), /* module info function */
+#if ZEND_MODULE_API_NO >= 20010901
+ "0.2a", /* extension version number (string) */
+#endif
STANDARD_MODULE_PROPERTIES
};