summaryrefslogtreecommitdiff
path: root/ext/dbase/dbf_rec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dbase/dbf_rec.c')
-rw-r--r--ext/dbase/dbf_rec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/dbase/dbf_rec.c b/ext/dbase/dbf_rec.c
index 082e7050f3..928a2bfc0f 100644
--- a/ext/dbase/dbf_rec.c
+++ b/ext/dbase/dbf_rec.c
@@ -136,6 +136,7 @@ void pack_dbf(dbhead_t *dbh)
/* Try to truncate the file to the right size. */
if (ftruncate(dbh->db_fd, out_off) != 0) {
+ TSRMLS_FETCH();
php_error_docref(NULL TSRMLS_CC, E_WARNING, "dbase_pack() couldn't truncate the file to the right size. Some deleted records may still be left in there.");
}