Home
last modified time | relevance | path

Searched refs:LOCK_EX (Results 1 – 14 of 14) sorted by relevance

/PHP-7.0/ext/standard/tests/file/
H A Duserstreams_004.phpt32 test("stream_lock not implemented", $fd2, LOCK_EX);
34 foreach(array("LOCK_SH","LOCK_EX","LOCK_UN") as $mode) {
51 ------ fclock(LOCK_EX): -------
53 ------ fclock(LOCK_EX|LOCK_NB): -------
H A Dflock_basic.phpt17 var_dump(flock($file_handle, LOCK_EX));
26 var_dump(flock($dir_handle, LOCK_EX));
H A Dflock.phpt20 var_dump(flock($fp, LOCK_EX));
28 var_dump(flock($fp, LOCK_EX, $would));
H A Dbug65272.phpt16 var_dump(flock($fp2, LOCK_EX|LOCK_NB, $wouldblock));
H A Dflock_variation.phpt19 LOCK_EX,
21 LOCK_EX|LOCK_NB,
22 LOCK_SH|LOCK_EX,
/PHP-7.0/ext/standard/
H A Dflock_compat.c58 else if (operation & LOCK_EX) in php_flock()
137 case LOCK_EX: /* exclusive */
H A Dflock_compat.h32 # define LOCK_EX 2 macro
H A Dfile.c333 static int flock_values[] = { LOCK_SH, LOCK_EX, LOCK_UN };
598 } else if (flags & LOCK_EX) { in PHP_FUNCTION()
615 if (flags & LOCK_EX && (!php_stream_supports_lock(stream) || php_stream_lock(stream, LOCK_EX))) { in PHP_FUNCTION()
/PHP-7.0/ext/dba/
H A Ddba.c762 lock_mode = (lock_flag & DBA_LOCK_WRITER) ? LOCK_EX : 0; in php_dba_open()
767 lock_mode = (lock_flag & DBA_LOCK_CREAT) ? LOCK_EX : 0; in php_dba_open()
788 lock_mode = (lock_flag & DBA_LOCK_TRUNC) ? LOCK_EX : 0; 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()
/PHP-7.0/ext/opcache/
H A Dzend_file_cache.c53 # define LOCK_EX 1 macro
58 if (op == LOCK_EX) { in zend_file_cache_flock()
80 # define LOCK_EX 1 macro
764 if (zend_file_cache_flock(fd, LOCK_EX) != 0) { in zend_file_cache_script_store()
/PHP-7.0/ext/spl/internal/
H A Dsplfileobject.inc115 * @param operation lock operation (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB)
/PHP-7.0/ext/session/
H A Dmod_files.c214 ret = flock(data->fd, LOCK_EX); in ps_files_open()
/PHP-7.0/main/streams/
H A Duserspace.c957 case LOCK_EX: in php_userstreamop_set_option()
/PHP-7.0/ext/sqlite3/libsqlite/
H A Dsqlite3.c31595 int lrc = robust_flock(pFile->h, LOCK_EX | LOCK_NB);
31673 if (robust_flock(pFile->h, LOCK_EX | LOCK_NB)) {

Completed in 401 milliseconds