Lines Matching refs:lock
428 if (info->fp && info->fp != info->lock.fp) { in dba_close()
435 if (info->lock.fp) { in dba_close()
437 php_stream_pclose(info->lock.fp); in dba_close()
439 php_stream_close(info->lock.fp); in dba_close()
442 if (info->lock.name) { in dba_close()
443 pefree(info->lock.name, info->flags&DBA_PERSISTENT); in dba_close()
836 info->lock.mode = lock_mode; in php_dba_open()
844 if ( ( (lock_mode&LOCK_EX) && (other->lock.mode&(LOCK_EX|LOCK_SH)) ) in php_dba_open()
845 || ( (other->lock.mode&LOCK_EX) && (lock_mode&(LOCK_EX|LOCK_SH)) ) in php_dba_open()
861 …info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|IGNORE_PATH|pe… in php_dba_open()
863 if (!info->lock.fp) { in php_dba_open()
868 info->lock.name = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent); in php_dba_open()
873 if (!info->lock.fp) { in php_dba_open()
874 …info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|… in php_dba_open()
875 if (info->lock.fp) { in php_dba_open()
882 info->lock.name = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent); in php_dba_open()
889 if (!info->lock.fp) { in php_dba_open()
895 if (!php_stream_supports_lock(info->lock.fp)) { in php_dba_open()
898 if (php_stream_lock(info->lock.fp, lock_mode)) { in php_dba_open()
905 if (info->lock.fp && lock_dbf) { in php_dba_open()
906 info->fp = info->lock.fp; /* use the same stream for locking and database access */ in php_dba_open()