diff options
Diffstat (limited to 'ext/dba/dba_flatfile.c')
-rw-r--r-- | ext/dba/dba_flatfile.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ext/dba/dba_flatfile.c b/ext/dba/dba_flatfile.c index 1ccaeb0c0c..feba2c8da8 100644 --- a/ext/dba/dba_flatfile.c +++ b/ext/dba/dba_flatfile.c @@ -41,25 +41,6 @@ DBA_OPEN_FUNC(flatfile) { - int fd; -#ifdef F_SETFL - int flags; -#endif - - if (info->mode != DBA_READER) { - if (SUCCESS != php_stream_cast(info->fp, PHP_STREAM_AS_FD, (void*)&fd, 1)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not cast stream"); - return FAILURE; - } -#ifdef F_SETFL - /* Needed becasue some systems do not allow to write to the original - * file contents with O_APPEND being set. - */ - flags = fcntl(fd, F_SETFL); - fcntl(fd, F_SETFL, flags & ~O_APPEND); -#endif - } - info->dbf = pemalloc(sizeof(flatfile), info->flags&DBA_PERSISTENT); memset(info->dbf, 0, sizeof(flatfile)); |