Lines Matching refs:fp
434 if (info->fp && info->fp != info->lock.fp) { in dba_close()
436 php_stream_pclose(info->fp); in dba_close()
438 php_stream_close(info->fp); in dba_close()
441 if (info->lock.fp) { in dba_close()
443 php_stream_pclose(info->lock.fp); in dba_close()
445 php_stream_close(info->lock.fp); in dba_close()
896 …info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|IGNORE_PATH|pe… in php_dba_open()
898 if (!info->lock.fp) { in php_dba_open()
908 if (!info->lock.fp) { in php_dba_open()
909 …info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|… in php_dba_open()
910 if (info->lock.fp) { in php_dba_open()
924 if (!info->lock.fp) { in php_dba_open()
930 if (!php_stream_supports_lock(info->lock.fp)) { in php_dba_open()
933 if (php_stream_lock(info->lock.fp, lock_mode)) { in php_dba_open()
940 if (info->lock.fp && lock_dbf) { in php_dba_open()
941 info->fp = info->lock.fp; /* use the same stream for locking and database access */ in php_dba_open()
943 …info->fp = php_stream_open_wrapper(info->path, file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|IGNORE_PA… in php_dba_open()
945 if (!info->fp) { in php_dba_open()
955 if (SUCCESS != php_stream_cast(info->fp, PHP_STREAM_AS_FD, (void*)&info->fd, 1)) { in php_dba_open()
968 close_both = (info->fp != info->lock.fp); in php_dba_open()
969 php_stream_close(info->lock.fp); in php_dba_open()
971 php_stream_close(info->fp); in php_dba_open()
973 info->fp = NULL; in php_dba_open()
974 info->lock.fp = NULL; in php_dba_open()