cvs: php4 /ext/msession msession.c
| From: | Mark L. Woodward | Date: | Mon, 04 Feb 2002 18:33:45 +0000 |
| Subject: | cvs: php4 /ext/msession msession.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9266@lists.php.net to get a copy of this message | ||
mlwmohawk Mon Feb 4 13:33:45 2002 EDT
Modified files:
/php4/ext/msession msession.c
Log:
More 4.0.6 compatibility.
Index: php4/ext/msession/msession.c
diff -u php4/ext/msession/msession.c:1.21 php4/ext/msession/msession.c:1.22
--- php4/ext/msession/msession.c:1.21 Mon Feb 4 13:01:39 2002
+++ php4/ext/msession/msession.c Mon Feb 4 13:33:45 2002
@@ -46,8 +46,11 @@
/* Uncomment to get debugging messages */
/* #define ERR_DEBUG */
-/* comment out the next define to get new Zend parameter handling */
+/* This is for backward compatibility. */
+/* Please keep this module backward compatible to PHP 4.0.6 */
+#if ZEND_MODULE_API_NO < 20010901
#define OLD_ZEND_PARAM
+#endif
/*
* Please do not remove backward compatibility from this module.
@@ -176,7 +179,10 @@
int PHPMsessionConnect(const char *szhost, int nport)
{
+
+#ifndef OLD_ZEND_PARAM
TSRMLS_FETCH();
+#endif
if(!s_reqb)
s_reqb = AllocateRequestBuffer(2048);
@@ -187,7 +193,11 @@
if(s_conn)
{
CloseReqConn(s_conn);
+#ifdef OLD_ZEND_PARAM
php_log_err("Call to connect with non-null s_conn");
+#else
+ php_log_err("Call to connect with non-null s_conn" TSRMLS_CC);
+#endif
}
if(strcmp(s_szhost, szhost))
{