diff options
author | Marcus Boerger <helly@php.net> | 2002-11-11 20:53:41 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-11-11 20:53:41 +0000 |
commit | 759e4b10e81630f1e71031b2cb835c781e98ab9e (patch) | |
tree | 5e6d0630a60588b0636ba014be1a61b47ba5d9f9 | |
parent | 1554bb6db6897325f99245d04bb5d6848b862f44 (diff) | |
download | php-git-759e4b10e81630f1e71031b2cb835c781e98ab9e.tar.gz |
Use php_flock instead of flock
-rw-r--r-- | ext/dba/dba.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c index f05a67b96d..dc64ef173f 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -213,7 +213,7 @@ static void dba_close(dba_info *info TSRMLS_DC) if (info->path) efree(info->path); if (info->fp && info->fp!=info->lock.fp) php_stream_close(info->fp); if (info->lock.fd) { - flock(info->lock.fd, LOCK_UN); + php_flock(info->lock.fd, LOCK_UN); close(info->lock.fd); info->lock.fd = 0; } @@ -473,7 +473,7 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) FREENOW; RETURN_FALSE; } - if (flock(info->lock.fd, lock_mode)) { + if (php_flock(info->lock.fd, lock_mode)) { error = "Unable to establish lock"; /* force failure exit */ } } |