Home
last modified time | relevance | path

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

/PHP-8.1/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.phpt21 var_dump(flock($fp, LOCK_EX));
29 var_dump(flock($fp, LOCK_EX, $would));
63 flock(): Argument #2 ($operation) must be one of LOCK_SH, LOCK_EX, or LOCK_UN
H A Dflock_error.phpt58 flock(): Argument #2 ($operation) must be one of LOCK_SH, LOCK_EX, or LOCK_UN
60 flock(): Argument #2 ($operation) must be one of LOCK_SH, LOCK_EX, or LOCK_UN
62 flock(): Argument #2 ($operation) must be one of LOCK_SH, LOCK_EX, or LOCK_UN
H A Dflock_basic.phpt17 var_dump(flock($file_handle, LOCK_EX));
28 var_dump(flock($dir_handle, LOCK_EX));
H A Dbug65272.phpt12 var_dump(flock($fp2, LOCK_EX|LOCK_NB, $wouldblock));
H A Dbug81223.phpt11 var_dump(flock($stream1, LOCK_EX));
H A Dflock_variation.phpt14 LOCK_EX,
16 LOCK_EX|LOCK_NB,
17 LOCK_SH|LOCK_EX,
/PHP-8.1/Zend/tests/
H A Dbug78396.phpt7 file_put_contents(__DIR__ . '/bug78396.txt', '1', FILE_APPEND | LOCK_EX);
8 file_put_contents(__DIR__ . '/bug78396.txt', '2', FILE_APPEND | LOCK_EX);
/PHP-8.1/ext/standard/
H A Dflock_compat.c39 else if (operation & LOCK_EX) in php_flock()
118 case LOCK_EX: /* exclusive */
H A Dflock_compat.h39 # define LOCK_EX 2 macro
H A Dfile.c339 int flock_values[] = { LOCK_SH, LOCK_EX, LOCK_UN }; in php_flock_common()
615 } else if (flags & LOCK_EX) { in PHP_FUNCTION()
632 if ((flags & LOCK_EX) && (!php_stream_supports_lock(stream) || php_stream_lock(stream, LOCK_EX))) { in PHP_FUNCTION()
/PHP-8.1/ext/dba/
H A Ddba.c669 lock_mode = (lock_flag & DBA_LOCK_WRITER) ? LOCK_EX : 0; in php_dba_open()
680 lock_mode = (lock_flag & DBA_LOCK_CREAT) ? LOCK_EX : 0; in php_dba_open()
717 lock_mode = (lock_flag & DBA_LOCK_TRUNC) ? LOCK_EX : 0; in php_dba_open()
773 if ( ( (lock_mode&LOCK_EX) && (other->lock.mode&(LOCK_EX|LOCK_SH)) ) in php_dba_open()
774 || ( (other->lock.mode&LOCK_EX) && (lock_mode&(LOCK_EX|LOCK_SH)) ) in php_dba_open()
/PHP-8.1/ext/session/
H A Dmod_files.c212 ret = flock(data->fd, LOCK_EX); in ps_files_open()
/PHP-8.1/ext/opcache/
H A Dzend_file_cache.c72 # define LOCK_EX 1 macro
77 if (op == LOCK_EX) { in zend_file_cache_flock()
99 # define LOCK_EX 1 macro
1009 if (zend_file_cache_flock(fd, LOCK_EX) != 0) {
/PHP-8.1/main/streams/
H A Duserspace.c929 case LOCK_EX: in php_userstreamop_set_option()
/PHP-8.1/main/
H A Dmain.c836 php_flock(fd, LOCK_EX); in php_log_err_with_severity()
/PHP-8.1/build/
H A Dgen_stub.php3231 if (!flock($lockFd, LOCK_EX)) {

Completed in 76 milliseconds