[Php-tuxedo-development] Re: php-tuxedo 0.3.5 test ...
Status: Pre-Alpha
Brought to you by:
cdog1977
|
From: Brian F. <bf...@mn...> - 2001-12-21 22:56:14
|
Thank you very much. I knew I had to try 4.1.0 for API changes,
figured there would be some. But you've just saved me a lot of
time. I'll try and get these incorporated in a new
release soon, but with Christmas coming on, I can't
guarentee it will be before then.
Once again, thanks and I'm always interested in
strengths and weaknesses people find, and how well it
works once installed in a real project.
Brian
--Original Message Text---
From: Tixier Alain
Date: Fri, 21 Dec 2001 15:51:13 +0100
Hi !
Congratulations for your project; I'm trying to disploy it in our Tuxedo environment.
I encountered three problems during configuration with the new 4.1.0 PHP version due to modifications or deprecations in Zend API's.
1. The following code:
zend_module_entry tuxedo_module_entry =
"BEA Tuxedo Module", /* the name of these modules */
tuxedo_functions, /* points to zend_function_entry */
ZEND_MINIT (tuxedo), /* module startup function */
ZEND_MSHUTDOWN (tuxedo), /* module shutdown function */
ZEND_RINIT (tuxedo), /* request startup function */
ZEND_RSHUTDOWN (tuxedo), /* request shutdown function */
ZEND_MINFO (tuxedo), /* phpinfo callback function */
STANDARD_MODULE_PROPERTIES /* sets defaults for global startup/shutdown */
};
has to be changed to:
zend_module_entry tuxedo_module_entry =
{
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
"BEA Tuxedo Module", /* the name of these modules */
tuxedo_functions, /* points to zend_function_entry */
ZEND_MINIT (tuxedo), /* module startup function */
ZEND_MSHUTDOWN (tuxedo), /* module shutdown function */
ZEND_RINIT (tuxedo), /* request startup function */
ZEND_RSHUTDOWN (tuxedo), /* request shutdown function */
ZEND_MINFO (tuxedo), /* phpinfo callback function */
#if ZEND_MODULE_API_NO >= 20010901
NO_VERSION_YET, /* extension version number (string) */
#endif
STANDARD_MODULE_PROPERTIES /* sets defaults for global startup/shutdown */
};
2. "ParameterPassedByRef" has been deprecated !! So, I have done the following changes:
.......
ZEND_FE (tux_tpacall, NULL)
#if ZEND_MODULE_API_NO >= 20010901
ZEND_FE (tux_tpgetrply, first_arg_force_ref)
#else
ZEND_FE (tux_tpgetrply, NULL)
#endif
ZEND_FE (tux_tpclose, NULL)
.......
/* check for arg_tpacall_cd_ref being passed by reference */
#if ZEND_MODULE_API_NO < 20010901
if(!ParameterPassedByReference(ht, 1))
{
zend_error(E_ERROR, "Argument 1 needs to be passed as a reference");
RETURN_NULL();
}
#endif
convert_to_long_ex (arg_flags);
.......
3. I experienced some "referecenced symbol not found" while loading "libphp4.so" for the "libwsc.so.60" module. So, I have modified
config.m4 to conform the recommended BEA link of WS client.
.........
PHP_ADD_INCLUDE($TUXEDO_INCDIR)
PHP_ADD_LIBPATH($TUXEDO_LIBDIR)
PHP_ADD_LIBRARY_WITH_PATH(gp,$TUXDIR/lib)
PHP_ADD_LIBRARY_WITH_PATH(fml32,$TUXDIR/lib)
PHP_ADD_LIBRARY_WITH_PATH(fml,$TUXDIR/lib)
PHP_ADD_LIBRARY_WITH_PATH(nws,$TUXDIR/lib)
PHP_ADD_LIBRARY_WITH_PATH(nwi,$TUXDIR/lib)
PHP_ADD_LIBRARY_WITH_PATH(nws,$TUXDIR/lib)
PHP_ADD_LIBRARY_WITH_PATH(wsc,$TUXDIR/lib)
PHP_ADD_LIBRARY_WITH_PATH(buft,$TUXDIR/lib)
PHP_ADD_LIBRARY_WITH_PATH(wsc,$TUXDIR/lib)
TUXEDO_LIBS="-lwsc -lbuft -lwsc -lnws -lnwi -lnws -lfml -lfml32 -lgp"
........
Everything seems OK after these cosmetic changes.
And finally, due to our own requirements, I have also modified the TPINIT routine to accept 2 new parameters "datalen" and "data". The
content of "data" field is forwarded to the application defined authentication service.
Kind regards.
Happy Christmas! Happy new year!
Alain Tixier
Email: ti...@fr...
Tel: 01.45.68.61.15
Fax: 01.45.68.66.60
|