Home
last modified time | relevance | path

Searched refs:flock (Results 1 – 25 of 26) sorted by relevance

12

/php-src/ext/standard/tests/file/
H A Dflock.phpt2 flock() tests
6 $file = __DIR__."/flock.dat";
12 var_dump(flock($fp, LOCK_SH|LOCK_NB));
19 var_dump(flock($fp, LOCK_SH|LOCK_NB));
20 var_dump(flock($fp, LOCK_UN));
21 var_dump(flock($fp, LOCK_EX));
22 var_dump(flock($fp, LOCK_UN));
27 var_dump(flock($fp, LOCK_UN, $would));
34 var_dump(flock($fp, -1));
37 var_dump(flock($fp, 0));
[all …]
H A Dflock_basic.phpt2 Test flock() function: Basic functionality
10 echo "*** Testing flock() fun with file and dir ***\n";
15 var_dump(flock($file_handle, LOCK_SH|LOCK_NB));
16 var_dump(flock($file_handle, LOCK_UN));
17 var_dump(flock($file_handle, LOCK_EX));
18 var_dump(flock($file_handle, LOCK_UN));
26 var_dump(flock($dir_handle, LOCK_SH|LOCK_NB));
27 var_dump(flock($dir_handle, LOCK_UN));
28 var_dump(flock($dir_handle, LOCK_EX));
29 var_dump(flock($dir_handle, LOCK_UN));
[all …]
H A Dflock_error.phpt2 Test flock() function: Error conditions
33 var_dump(flock($fp, $operation));
45 var_dump(flock($fp, LOCK_SH|LOCK_NB));
58 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
64 flock(): Argument #2 ($operation) must be of type int, array given
66 flock(): Argument #2 ($operation) must be of type int, array given
68 flock(): Argument #2 ($operation) must be of type int, string given
70 flock(): Argument #2 ($operation) must be of type int, string given
72 flock(): Argument #2 ($operation) must be of type int, string given
[all …]
H A Dbug65272.phpt2 Bug #65272: flock() correctly sets wouldblock out param in windows
9 var_dump(flock($fp1, LOCK_SH));
12 var_dump(flock($fp2, LOCK_EX|LOCK_NB, $wouldblock));
H A Dbug81223.phpt2 Bug #81223 (flock() only locks first byte of file)
11 var_dump(flock($stream1, LOCK_EX));
H A Duserstreams_004.phpt22 flock($fd, $mode);
46 Warning: flock(): test_wrapper_base::stream_lock is not implemented! in %s
H A Dflock_variation.phpt2 Test flock() function: Variations
5 echo "*** Testing flock() fun with the various operation and
46 var_dump(flock($fp, $operation));
50 var_dump(flock($fp, $operation, $wouldblock));
62 *** Testing flock() fun with the various operation and
/php-src/ext/spl/tests/SplFileObject/
H A Dbug79710.phpt14 // underlying FD is no longer valid and will cause error upon calling flock
15 $this->sfo->flock(2);
37 #0 %s(%d): SplFileObject->flock(2)
/php-src/ext/standard/
H A Dflock_compat.c22 PHPAPI int flock(int fd, int operation) in flock() function
31 struct flock flck; in php_flock()
146 #warning no proper flock support for your site
H A Dflock_compat.h42 PHPAPI int flock(int fd, int operation);
H A Dfile.c224 PHP_FUNCTION(flock) in PHP_FUNCTION() argument
H A Dbasic_functions.stub.php2748 function flock($stream, int $operation, &$would_block = null): bool {}
H A Dbasic_functions_arginfo.h2636 ZEND_FUNCTION(flock);
3272 ZEND_FE(flock, arginfo_flock)
/php-src/ext/zlib/tests/
H A Dzlib_wrapper_flock_basic.phpt9 var_dump(flock($h, LOCK_SH));
/php-src/ext/session/
H A Dmod_files.c144 flock(data->fd, LOCK_UN); in ps_files_close()
209 ret = flock(data->fd, LOCK_EX); in ps_files_open()
/php-src/ext/spl/
H A Dspl_directory.stub.php268 public function flock(int $operation, &$wouldBlock = null): bool {} function in SplFileObject
H A Dspl_directory_arginfo.h343 ZEND_METHOD(SplFileObject, flock);
455 ZEND_ME(SplFileObject, flock, arginfo_class_SplFileObject_flock, ZEND_ACC_PUBLIC)
/php-src/ext/opcache/
H A Dzend_shared_alloc.c482 struct flock mem_write_lock; in zend_shared_alloc_lock()
521 struct flock mem_write_unlock; in zend_shared_alloc_unlock()
H A DZendAccelerator.c266 struct flock restart_in_progress; in accel_restart_enter()
286 struct flock restart_finished; in accel_restart_leave()
304 struct flock restart_check; in accel_restart_is_active()
336 struct flock mem_usage_lock; in accel_activate_add()
362 struct flock mem_usage_unlock; in accel_deactivate_sub()
384 struct flock mem_usage_unlock_all; in accel_unlock_all()
823 static inline void kill_all_lockers(struct flock *mem_usage_check) in kill_all_lockers()
901 struct flock mem_usage_check; in accel_is_inactive()
H A Dzend_file_cache.c97 # define zend_file_cache_flock flock
/php-src/main/
H A Dfastcgi.c93 struct flock lock; \
109 struct flock lock; \
/php-src/docs-old/
H A Dstreams.md41 flock.
/php-src/main/streams/
H A Dplain_wrapper.c737 if (!flock(fd, value)) { in php_stdiop_set_option()
/php-src/
H A Dconfigure.ac471 AC_CHECK_TYPES([struct flock],,,[#include <fcntl.h>])
586 flock \
/php-src/build/
H A Dgen_stub.php5837 if (!flock($lockFd, LOCK_EX)) {
5868 flock($lockFd, LOCK_UN);

Completed in 126 milliseconds

12