New function in php_maxdb

Cristiano Caruso <[email protected]>
Newsgroups gmane.comp.db.maxdb
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.