Re: RE: I'd like to work on AMFEXT
| From: | Gustavo Lopes | Date: | Thu, 29 Jul 2010 05:42:46 +0000 |
| Subject: | Re: RE: I'd like to work on AMFEXT | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-7392@lists.php.net to get a copy of this message | ||
On Thu, 29 Jul 2010 05:05:19 +0100, J. Adams <zardozrocks@gmail.com> wrote:
I tried building the same modified amf.c into the PHP 5.3.3 on my windows machine and it failed. The result:It should be Z_ADDREF, Z_DELREF and Z_REFCOUNT. I think ZVAL_ADDREF, etc. are PHP 5.2-isms. (I'm not sure why the were renamed, perhaps someone else could shed light on this. In any case, zval_add_ref and zval_ptr_dtor are enough for the majority of cases. zval_ptr_dtor is not adequate for variables not allocated with emalloc, but simple stack-allocated variables generally don't need to have their reference count changed around). -- Gustavo LopesCreating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp amf.obj : error LNK2001: unresolved external symbol _ZVAL_ADDREF amf.obj : error LNK2001: unresolved external symbol _ZVAL_DELREF amf.obj : error LNK2001: unresolved external symbol _ZVAL_REFCOUNT Release_TS\php5ts.dll : fatal error LNK1120: 3 unresolved externals NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 9.0\VC\Bin \cl.exe"' : return code '0x2'