summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-08-06 12:26:55 +0000
committerfoobar <sniper@php.net>2001-08-06 12:26:55 +0000
commit89a8b0144cfa16193a1dd1ef2a067baa3969f671 (patch)
tree228aaeb79449454eead92ebad4f65ff7f54129fa /ext
parent84042cd9f187e1c74ae1fe941ccd96e3ea77b245 (diff)
downloadphp-git-89a8b0144cfa16193a1dd1ef2a067baa3969f671.tar.gz
Fix TSRM problem.
Diffstat (limited to 'ext')
-rw-r--r--ext/dbase/dbase.c2
-rw-r--r--ext/dbase/dbf_head.c4
-rw-r--r--ext/dbase/dbf_head.h4
3 files changed, 6 insertions, 4 deletions
diff --git a/ext/dbase/dbase.c b/ext/dbase/dbase.c
index e809a1bdbf..8d3c49f886 100644
--- a/ext/dbase/dbase.c
+++ b/ext/dbase/dbase.c
@@ -137,7 +137,7 @@ PHP_FUNCTION(dbase_open)
RETURN_FALSE;
}
- dbh = dbf_open(dbf_name->value.str.val, options->value.lval);
+ dbh = dbf_open(dbf_name->value.str.val, options->value.lval TSRMLS_CC);
if (dbh == NULL) {
php_error(E_WARNING, "unable to open database %s", dbf_name->value.str.val);
RETURN_FALSE;
diff --git a/ext/dbase/dbf_head.c b/ext/dbase/dbf_head.c
index 650960f5e2..c00bd4ba33 100644
--- a/ext/dbase/dbf_head.c
+++ b/ext/dbase/dbf_head.c
@@ -7,8 +7,8 @@
#include <stdio.h>
#include <fcntl.h>
-#include "dbf.h"
#include "php.h"
+#include "dbf.h"
void free_dbf_head(dbhead_t *dbh);
int get_dbf_field(dbhead_t *dbh, dbfield_t *dbf);
@@ -220,7 +220,7 @@ char *get_dbf_f_fmt(dbfield_t *dbf)
return (char *)strdup(format);
}
-dbhead_t *dbf_open(char *dp, int o_flags)
+dbhead_t *dbf_open(char *dp, int o_flags TSRMLS_DC)
{
int fd;
char *cp;
diff --git a/ext/dbase/dbf_head.h b/ext/dbase/dbf_head.h
index 1643151dd1..9a17a3a91f 100644
--- a/ext/dbase/dbf_head.h
+++ b/ext/dbase/dbf_head.h
@@ -1,3 +1,5 @@
+#include "php.h"
+
extern dbhead_t *get_dbf_head(int fd);
void free_dbf_head(dbhead_t *dbh);
extern int put_dbf_head(dbhead_t *dbh);
@@ -5,5 +7,5 @@ extern int get_dbf_field(dbhead_t *dbh, dbfield_t *dbf);
extern int put_dbf_field(dbhead_t *dbh, dbfield_t *dbf);
void put_dbf_info(dbhead_t *dbh);
extern char *get_dbf_f_fmt(dbfield_t *dbf);
-extern dbhead_t *dbf_open(char *dp, int o_flags);
+extern dbhead_t *dbf_open(char *dp, int o_flags TSRMLS_DC);
void dbf_head_info(dbhead_t *dbh);