summaryrefslogtreecommitdiff
path: root/ext/fbsql/php_fbsql.c
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2001-10-08 16:42:19 +0000
committerFrank M. Kromann <fmk@php.net>2001-10-08 16:42:19 +0000
commit3629062ab64298b3253a43e5c2244e07b9270b40 (patch)
tree787f0305de7344cbe7bc5a62999fad59acffffec /ext/fbsql/php_fbsql.c
parent6a0dce93afab0c370416a5e83b0c6b85b42b95e0 (diff)
downloadphp-git-3629062ab64298b3253a43e5c2244e07b9270b40.tar.gz
Fixing prototypes and removing unused code
Diffstat (limited to 'ext/fbsql/php_fbsql.c')
-rw-r--r--ext/fbsql/php_fbsql.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c
index 0cfa24c317..f1313fc097 100644
--- a/ext/fbsql/php_fbsql.c
+++ b/ext/fbsql/php_fbsql.c
@@ -40,7 +40,6 @@
#include "php.h"
#include "php_globals.h"
-#include "php_globals.h"
#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
@@ -400,6 +399,14 @@ PHP_MINIT_FUNCTION(fbsql)
REGISTER_LONG_CONSTANT("FBSQL_ISO_SERIALIZABLE ", FBSQL_ISO_SERIALIZABLE, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("FBSQL_ISO_VERSIONED", FBSQL_ISO_VERSIONED, CONST_CS | CONST_PERSISTENT);
+ /* Register Status constants */
+ REGISTER_LONG_CONSTANT("FBSQL_UNKNOWN", FBUnknownStatus, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("FBSQL_STOPPED", FBStopped, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("FBSQL_STARTING", FBStarting, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("FBSQL_RUNNING", FBRunning, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("FBSQL_STOPPING", FBStopping, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("FBSQL_NOEXEC", FBNoExec, CONST_CS | CONST_PERSISTENT);
+
return SUCCESS;
}
@@ -819,7 +826,7 @@ PHP_FUNCTION(fbsql_autocommit)
}
/* }}} */
-/* {{{ proto int fbsql_commit([resource link_identifier])
+/* {{{ proto bool fbsql_commit([resource link_identifier])
*/
PHP_FUNCTION(fbsql_commit)
{
@@ -1318,7 +1325,7 @@ PHP_FUNCTION(fbsql_drop_db)
}
/* }}} */
-/* {{{ proto int fbsql_start_db(string database_name [, resource link_identifier])
+/* {{{ proto bool fbsql_start_db(string database_name [, resource link_identifier])
*/
PHP_FUNCTION(fbsql_start_db)
{
@@ -1393,7 +1400,7 @@ PHP_FUNCTION(fbsql_start_db)
}
/* }}} */
-/* {{{ proto int fbsql_stop_db(string database_name [, resource link_identifier])
+/* {{{ proto bool fbsql_stop_db(string database_name [, resource link_identifier])
*/
PHP_FUNCTION(fbsql_stop_db)
{
@@ -1452,7 +1459,7 @@ PHP_FUNCTION(fbsql_stop_db)
/* }}} */
/* {{{ proto int fbsql_db_status(string database_name [, resource link_identifier])
- Get the status (Stoped, Starting, Started, Stopping) for a given database*/
+ Get the status (Stoped, Starting, Running, Stopping) for a given database*/
PHP_FUNCTION(fbsql_db_status)
{
PHPFBLink* phpLink = NULL;
@@ -1975,8 +1982,6 @@ int phpSizeOfInt (int i)
}
/* }}} */
-/* {{{ phpfbColumnAsString
- */
void phpfbColumnAsString (PHPFBResult* result, int column, void* data , int* length, char** value)
{
FBCMetaData* md = result->metaData;
@@ -2158,7 +2163,6 @@ void phpfbColumnAsString (PHPFBResult* result, int column, void* data , int* len
break;
}
}
-/* }}} */
/* {{{ phpfbSqlResult
*/