diff options
| author | Mark L. Woodward <mlwmohawk@php.net> | 2002-02-04 18:33:46 +0000 |
|---|---|---|
| committer | Mark L. Woodward <mlwmohawk@php.net> | 2002-02-04 18:33:46 +0000 |
| commit | 5f52b45708e303b5a09bef6ee0ddc50fb30c3bc0 (patch) | |
| tree | 084c29593819359eb76bf52ce8ddfc0a1de854cc /ext/msession/msession.c | |
| parent | aa96e0e756ccfe3fb1a324c346702c199fd015d3 (diff) | |
| download | php-git-5f52b45708e303b5a09bef6ee0ddc50fb30c3bc0.tar.gz | |
More 4.0.6 compatibility.
Diffstat (limited to 'ext/msession/msession.c')
| -rw-r--r-- | ext/msession/msession.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ext/msession/msession.c b/ext/msession/msession.c index 302cee2c19..acc71e4521 100644 --- a/ext/msession/msession.c +++ b/ext/msession/msession.c @@ -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 @@ PHP_MINFO_FUNCTION(msession) 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 @@ int PHPMsessionConnect(const char *szhost, int nport) 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)) { |
