| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
- | Authors: Dimitris Souflis <dsouflis@acm.org>, <dsouflis@ovrimos.com> |
- | integrated to php by Nikos Mavroyanopoulos <nmav@altera.gr> |
+ | Authors: Dimitris Souflis, Nikos Mavroyanopoulos |
+ | for Ovrimos S.A. |
+ | |
+ | Contact support@ovrimos.com for questions regarding this module |
+----------------------------------------------------------------------+
*/
#include <zend_API.h>
#include "ext/standard/php_standard.h"
#include "ext/standard/info.h"
-#include <sqlcli.h>
+#include <sqlcli.h> /* ovrimos header
+ */
#if !defined(WIN32)
# define stricmp strcasecmp
#endif
php_printf(""Ovrimos" module<br>\n");
}
-/* Main User Functions */
+/* Main User Functions
+ */
+
+/* ovrimos_connect() currently does not support secure (SSL/TLS) connections.
+ * As an alternative you can use the unixODBC driver available at
+ * http://www.ovrimos.com which supports SSL.
+ *
+ * Contact support@ovrimos.com for more information.
+ */
+
/* {{{ proto int ovrimos_connect(string host, string db, string user, string password)
Connect to an Ovrimos database */
PHP_FUNCTION(ovrimos_connect)
|| arg1->type != IS_LONG) {
WRONG_PARAM_COUNT;
}
+
+ convert_to_long( arg1);
conn = (SQLH) (arg1->value.lval - 1);
+ /* use of sqlcli 1.1.7 and later versions,
+ * is recommended due to a bug which prevented proper
+ * commit.
+ */
if (!sqlTransactCommit(conn)) {
RETURN_FALSE;
}