/PHP-8.0/ext/standard/tests/file/ |
H A D | flock.phpt | 2 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 D | flock_basic.phpt | 2 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 D | flock_error.phpt | 2 Test flock() function: Error conditions 34 var_dump(flock($fp, $operation)); 46 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 59 flock(): Argument #2 ($operation) must be one of LOCK_SH, LOCK_EX, or LOCK_UN 61 flock(): Argument #2 ($operation) must be one of LOCK_SH, LOCK_EX, or LOCK_UN 67 flock(): Argument #2 ($operation) must be of type int, array given 69 flock(): Argument #2 ($operation) must be of type int, array given 71 flock(): Argument #2 ($operation) must be of type int, string given 73 flock(): Argument #2 ($operation) must be of type int, string given 75 flock(): Argument #2 ($operation) must be of type int, string given [all …]
|
H A D | bug65272.phpt | 2 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 D | bug81223.phpt | 2 Bug #81223 (flock() only locks first byte of file) 11 var_dump(flock($stream1, LOCK_EX));
|
H A D | userstreams_004.phpt | 21 flock($fd, $mode); 45 Warning: flock(): test_wrapper_base::stream_lock is not implemented! in %s
|
H A D | flock_variation.phpt | 2 Test flock() function: Variations 5 echo "*** Testing flock() fun with the various operation and 47 var_dump(flock($fp, $operation)); 51 var_dump(flock($fp, $operation, $wouldblock)); 63 *** Testing flock() fun with the various operation and
|
/PHP-8.0/ext/spl/tests/ |
H A D | bug79710.phpt | 14 // 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-8.0/ext/standard/ |
H A D | flock_compat.c | 22 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 D | flock_compat.h | 42 PHPAPI int flock(int fd, int operation);
|
H A D | basic_functions.stub.php | 757 function flock($stream, int $operation, &$would_block = null): bool {} function
|
H A D | basic_functions_arginfo.h | 2539 ZEND_FUNCTION(flock); 3176 ZEND_FE(flock, arginfo_flock)
|
H A D | file.c | 356 PHP_FUNCTION(flock) in PHP_FUNCTION() argument
|
/PHP-8.0/ext/zlib/tests/ |
H A D | zlib_wrapper_flock_basic.phpt | 13 var_dump(flock($h, LOCK_SH));
|
/PHP-8.0/ext/spl/ |
H A D | spl_directory.stub.php | 224 public function flock(int $operation, &$wouldBlock = null) {} function in SplFileObject
|
H A D | spl_directory_arginfo.h | 325 ZEND_METHOD(SplFileObject, flock); 444 ZEND_ME(SplFileObject, flock, arginfo_class_SplFileObject_flock, ZEND_ACC_PUBLIC)
|
/PHP-8.0/ext/session/ |
H A D | mod_files.c | 147 flock(data->fd, LOCK_UN); in ps_files_close() 212 ret = flock(data->fd, LOCK_EX); in ps_files_open()
|
/PHP-8.0/ext/opcache/ |
H A D | zend_shared_alloc.c | 462 struct flock mem_write_lock; in zend_shared_alloc_lock() 499 struct flock mem_write_unlock; in zend_shared_alloc_unlock()
|
H A D | ZendAccelerator.c | 242 struct flock restart_in_progress; in accel_restart_enter() 262 struct flock restart_finished; in accel_restart_leave() 280 struct flock restart_check; in accel_restart_is_active() 312 struct flock mem_usage_lock; in accel_activate_add() 338 struct flock mem_usage_unlock; in accel_deactivate_sub() 356 struct flock mem_usage_unlock_all; in accel_unlock_all() 764 static inline void kill_all_lockers(struct flock *mem_usage_check) in kill_all_lockers() 835 struct flock mem_usage_check; in accel_is_inactive()
|
H A D | zend_file_cache.c | 96 # define zend_file_cache_flock flock
|
/PHP-8.0/build/ |
H A D | gen_stub.php | 1757 if (!flock($lockFd, LOCK_EX)) { 1788 flock($lockFd, LOCK_UN);
|
H A D | php.m4 | 1292 AC_CACHE_CHECK(for struct flock,ac_cv_struct_flock, 1296 ]], [[struct flock x;]])],[ 1303 AC_DEFINE(HAVE_STRUCT_FLOCK, 1,[whether you have struct flock])
|
/PHP-8.0/main/ |
H A D | fastcgi.c | 95 struct flock lock; \ 111 struct flock lock; \
|
/PHP-8.0/docs/ |
H A D | streams.md | 41 flock.
|
/PHP-8.0/main/streams/ |
H A D | plain_wrapper.c | 707 if (!flock(fd, value)) { in php_stdiop_set_option()
|