RE: [PHP-DEV] PHP 4.1.x Win32 Extension Compile Error with oject_init()
| From: | Joe Lauer | Date: | Thu, 17 Jan 2002 18:37:49 +0000 |
| Subject: | RE: [PHP-DEV] PHP 4.1.x Win32 Extension Compile Error with oject_init() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77354@lists.php.net to get a copy of this message | ||
Markus,
This fixed my problem.
Thanks
-----Original Message-----
From: Markus Fischer [mailto:mfischer@guru.josefine.at]
Sent: Wednesday, January 16, 2002 7:15 PM
To: Joseph Lauer
Cc: php-dev@lists.php.net
Subject: Re: [PHP-DEV] PHP 4.1.x Win32 Extension Compile Error with
oject_init()
On Wed, Jan 16, 2002 at 02:44:09PM -0500, Joseph Lauer wrote :
> swsms.c(264) : error C2065: 'tsrm_ls' : undeclared identifier
> swsms.c(264) : warning C4022: '_object_init' : pointer mismatch for actual
> parameter 2
object_init() is just a macro and needs the thread context.
Just fetch it manually with TSRMLS_FETCH() after the variable
declaration but before your first code line.
You find this easily by looking up object_init() at
lxr.php.net:
159 #define object_init(arg) _object_init((arg) ZEND_FILE_LINE_CC
TSRMLS_CC)
--
Please always Cc to me when replying to me on the lists.