/PHP-5.5/ext/standard/tests/file/ |
H A D | flock.phpt | 2 flock() tests 6 $file = dirname(__FILE__)."/flock.dat"; 8 var_dump(flock()); 9 var_dump(flock("", "", $var)); 14 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 18 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 19 var_dump(flock($fp, LOCK_UN)); 20 var_dump(flock($fp, LOCK_EX)); 21 var_dump(flock($fp, LOCK_UN)); 33 var_dump(flock($fp, -1)); [all …]
|
H A D | flock_error.phpt | 2 Test flock() function: Error conditions 13 $file = dirname(__FILE__)."/flock.tmp"; 32 var_dump(flock($fp, $operation)); 40 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 42 var_dump(flock("", "", $var)); 45 var_dump(flock()); 46 var_dump(flock($fp)); 49 var_dump(flock($fp, "", $var, "")); 55 $file = dirname(__FILE__)."/flock.tmp"; 62 Warning: flock(): Illegal operation argument in %s on line %d [all …]
|
H A D | flock_basic.phpt | 2 Test flock() function: Basic functionality 11 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)); 24 var_dump(flock($dir_handle, LOCK_SH|LOCK_NB)); 25 var_dump(flock($dir_handle, LOCK_UN)); 26 var_dump(flock($dir_handle, LOCK_EX)); 27 var_dump(flock($dir_handle, LOCK_UN)); [all …]
|
H A D | bug65272.phpt | 2 Bug #65272: flock() correctly sets wouldblock out param in windows 10 $file = dirname(__FILE__)."/flock.dat"; 13 var_dump(flock($fp1, LOCK_SH)); 16 var_dump(flock($fp2, LOCK_EX|LOCK_NB, $wouldblock));
|
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 6 Prototype: bool flock(resource $handle, int $operation [, int &$wouldblock]); 11 echo "*** Testing flock() fun with the various operation and 13 $file = dirname(__FILE__)."/flock.tmp"; 52 var_dump(flock($fp, $operation)); 56 var_dump(flock($fp, $operation, $wouldblock)); 68 *** Testing flock() fun with the various operation and
|
/PHP-5.5/ext/standard/ |
H A D | flock_compat.c | 41 PHPAPI int flock(int fd, int operation) in flock() function 50 struct flock flck; in php_flock() 165 #warning no proper flock support for your site
|
H A D | flock_compat.h | 35 PHPAPI int flock(int fd, int operation);
|
H A D | file.h | 60 PHP_FUNCTION(flock);
|
H A D | file.c | 332 PHP_FUNCTION(flock) in PHP_FUNCTION() argument
|
/PHP-5.5/ext/opcache/ |
H A D | ZendAccelerator.h | 103 struct flock name = {start, len, -1, type, whence} 106 struct flock name = {type, whence, start, len} 109 struct flock name = {type, whence, start, len, 0} 113 struct flock name = {type, whence, 0, 0, 0, start, len } 116 struct flock name = {type, whence, start, len} 120 struct flock name = {start, len, -1, type, whence} 123 struct flock name = {type, whence, start, len}
|
H A D | config.m4 | 330 AC_MSG_CHECKING("whether flock struct is linux ordered") 333 struct flock lock = { 1, 2, 3, 4, 5 }; 342 AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type]) 346 AC_MSG_CHECKING("whether flock struct is BSD ordered") 349 struct flock lock = { 1, 2, 3, 4, 5 }; 358 AC_DEFINE([HAVE_FLOCK_BSD], [], [Struct flock is BSD-type]) 363 AC_MSG_ERROR([Don't know how to define struct flock on this system[,] set --enable-opcache=no])
|
H A D | ZendAccelerator.c | 568 static inline void kill_all_lockers(struct flock *mem_usage_check) in kill_all_lockers()
|
/PHP-5.5/win32/ |
H A D | flock.h | 11 PHPAPI int flock(int fd, int op);
|
H A D | flock.c | 55 PHPAPI int flock(int fd, int op) in flock() function
|
/PHP-5.5/ext/zlib/tests/ |
H A D | zlib_wrapper_flock_basic.phpt | 13 var_dump(flock($h, LOCK_SH));
|
/PHP-5.5/ext/session/ |
H A D | mod_files.c | 114 flock(data->fd, LOCK_UN); in ps_files_close() 169 ret = flock(data->fd, LOCK_EX); in ps_files_open()
|
/PHP-5.5/ext/spl/internal/ |
H A D | splfileobject.inc | 118 function flock($operation, &$wouldblock) 120 return flock($this->fp, $operation, $wouldblock);
|
/PHP-5.5/sapi/fpm/fpm/ |
H A D | fastcgi.c | 98 struct flock lock; \ 114 struct flock lock; \
|
/PHP-5.5/sapi/cgi/ |
H A D | fastcgi.c | 99 struct flock lock; \ 115 struct flock lock; \
|
/PHP-5.5/ |
H A D | README.STREAMS | 43 names: fread, fwrite, fprintf, feof, fgetc, fgets, fclose, fflush, fseek, ftell, flock.
|
H A D | acinclude.m4 | 1426 AC_CACHE_CHECK(for struct flock,ac_cv_struct_flock, 1431 [struct flock x;], 1439 AC_DEFINE(HAVE_STRUCT_FLOCK, 1,[whether you have struct flock])
|
H A D | configure.in | 612 flock \
|
/PHP-5.5/main/streams/ |
H A D | plain_wrapper.c | 649 if (!flock(fd, value)) { in php_stdiop_set_option()
|
/PHP-5.5/ext/spl/ |
H A D | spl_directory.c | 2729 FileFunction(flock) 3010 SPL_ME(SplFileObject, flock, arginfo_file_object_flock, ZEND_ACC_PUBLIC)
|