New function in php_maxdb 2006-12-15 - By Cristiano Caruso
Back I have some problem with my server farm, where there are 4 web server (Debian Sarge + Apache 1.3 + PHP4 e PHP5) I have an application that connect to MaxDB, and sometimes (randomly) I get an error (mainly -3008 and -5010) after maxdb_connect. I tried to check configuration, but seems ok. So, I write a new function that I add to php extension. Function called *maxdb_clear_error*, which cleans the errno property.
*diff php_maxdb.h ../maxdb.src/php_maxdb.h *355d354 < PHP_FUNCTION(maxdb_clear_error);
* diff php_maxdb.c ../maxdb.src/php_maxdb.c *343d342 < PHP_FALIAS(clear_error,maxdb_clear_error,NULL) 514d512 < PHP_FE(maxdb_clear_error, NULL) 3427,3432d3424 < PHP_FUNCTION(maxdb_clear_error) < { < MAXDB_G(error_no) = 0; < } < <
I don't know why SQLDBC catch error, but now I solved modifing source of extension module. Maybe it's usefull a function that clean false error.
Thank you Cristiano Caruso Comp.Sys Italy
|
|