[Monetdb-developers] PHP compilation...
Dear developers, I am compiling M4 with php in windows. I am using the php 5.2.0 The function zend_register_default_exception is defined in : ..\..\..\..\..\..\src\mapi\clients\php\Cimpl\php_monetdb.c as zend_register_default_exception(); but in zend_exceptions.h is defined as: zend_register_default_exception(TSRMLS_D); Can I change it or should it be modified by the responsible of this code ? Regards, Romulo
On 21-12-2006 11:49:11 +0100, Romulo Goncalves wrote:
Dear developers,
I am compiling M4 with php in windows. I am using the php 5.2.0
The function zend_register_default_exception is defined in :
..\..\..\..\..\..\src\mapi\clients\php\Cimpl\php_monetdb.c
as zend_register_default_exception();
but in zend_exceptions.h is defined as:
zend_register_default_exception(TSRMLS_D);
Can I change it or should it be modified by the responsible of this code ?
I remember Sjoerd adding something like this once before. If it compiles on Windows with this change, you may want to commit it so we/you can try on linux what it does.
Fabian Groffen wrote:
On 21-12-2006 11:49:11 +0100, Romulo Goncalves wrote:
Dear developers,
I am compiling M4 with php in windows. I am using the php 5.2.0
The function zend_register_default_exception is defined in :
..\..\..\..\..\..\src\mapi\clients\php\Cimpl\php_monetdb.c
as zend_register_default_exception();
but in zend_exceptions.h is defined as:
zend_register_default_exception(TSRMLS_D);
Can I change it or should it be modified by the responsible of this code ?
I remember Sjoerd adding something like this once before. If it compiles on Windows with this change, you may want to commit it so we/you can try on linux what it does. I done the following change and the compilation start to go on:
zend_exception_get_default(TSRMLS_C) (based in example) instead of zend_exception_get_default() I will check in this change and we can see if it works in Linux also. Regards, Romulo
Fabian Groffen wrote:
On 21-12-2006 11:49:11 +0100, Romulo Goncalves wrote:
Dear developers,
I am compiling M4 with php in windows. I am using the php 5.2.0
The function zend_register_default_exception is defined in :
..\..\..\..\..\..\src\mapi\clients\php\Cimpl\php_monetdb.c
as zend_register_default_exception();
but in zend_exceptions.h is defined as:
zend_register_default_exception(TSRMLS_D);
Can I change it or should it be modified by the responsible of this code ?
I remember Sjoerd adding something like this once before. If it compiles on Windows with this change, you may want to commit it so we/you can try on linux what it does. To compile in linux is a normal compilation or I need to set a flag (HAVE_PHP=1) like in windows?
Regards, Romulo
On 21-12-2006 12:34:21 +0100, Romulo Goncalves wrote:
I remember Sjoerd adding something like this once before. If it compiles on Windows with this change, you may want to commit it so we/you can try on linux what it does. To compile in linux is a normal compilation or I need to set a flag (HAVE_PHP=1) like in windows?
You probably need to have php installed on your machine, which I'd be surprised about if it were by default.
Romulo Goncalves wrote:
Dear developers,
I am compiling M4 with php in windows. I am using the php 5.2.0
The compilation gave the following error: : 'zend_throw_exception' : too many actual parameters ..\..\..\..\..\..\src\mapi\clients\php\Cimpl\php_monetdb.c(1736) : error C2198: 'zend_exception_get_default' : too few arguments for call through pointer-to-fun ction ..\..\..\..\..\..\src\mapi\clients\php\Cimpl\php_monetdb.c(1746) : error C2198: 'zend_exception_get_default' : too few arguments for call through pointer-to-fun ction NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio .NET 2003\VC7\BIN\nmake. exe"' : return code '0x2' Stop. C:\cygwin\home\goncalve\MonetDB\MonetDB_SQL\MonetDB\NT>vim ..\src\mapi\clients\p hp\Cimpl\php_monetdb.c C:\cygwin\home\goncalve\MonetDB\MonetDB_SQL\MonetDB\NT>
Regards, Romulo
participants (2)
-
Fabian Groffen
-
Romulo Goncalves