/PHP-7.1/Zend/ |
H A D | zend_stream.c | 59 if (handle && (FILE*)handle != stdin) { in zend_stream_stdio_closer() 114 return file_handle->handle.stream.fsizer(file_handle->handle.stream.handle); in zend_stream_fsize() 135 handle->handle.fp = zend_fopen(filename, &handle->opened_path); in zend_stream_open() 293 file_handle->handle.stream.handle = &file_handle->handle.stream; 313 if (fh->handle.stream.closer && fh->handle.stream.handle) { 314 fh->handle.stream.closer(fh->handle.stream.handle); 316 fh->handle.stream.handle = NULL; 346 return fh1->handle.stream.handle == fh2->handle.stream.handle; 348 return (fh1->handle.stream.handle == &fh1->handle.stream && 349 fh2->handle.stream.handle == &fh2->handle.stream && [all …]
|
H A D | zend_objects_API.c | 112 int handle; in zend_objects_store_put() local 115 handle = EG(objects_store).free_list_head; in zend_objects_store_put() 124 handle = EG(objects_store).top++; in zend_objects_store_put() 126 object->handle = handle; in zend_objects_store_put() 127 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put() 130 #define ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(handle) \ argument 132 EG(objects_store).free_list_head = handle; 136 uint32_t handle = object->handle; in zend_objects_store_free() local 141 ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(handle); in zend_objects_store_free() 171 uint32_t handle = object->handle; in zend_objects_store_del() local [all …]
|
H A D | zend_extensions.c | 31 DL_HANDLE handle; in zend_load_extension() local 35 handle = DL_LOAD(path); in zend_load_extension() 36 if (!handle) { in zend_load_extension() 61 DL_UNLOAD(handle); in zend_load_extension() 78 DL_UNLOAD(handle); in zend_load_extension() 94 DL_UNLOAD(handle); in zend_load_extension() 105 DL_UNLOAD(handle); in zend_load_extension() 113 DL_UNLOAD(handle); in zend_load_extension() 121 DL_UNLOAD(handle); in zend_load_extension() 143 extension.handle = handle; in zend_register_extension() [all …]
|
H A D | zend_stream.h | 33 typedef size_t (*zend_stream_fsizer_t)(void* handle); 34 typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len); 35 typedef void (*zend_stream_closer_t)(void* handle); 57 void *handle; member 70 } handle; member 78 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle);
|
/PHP-7.1/ext/standard/ |
H A D | dl.c | 92 void *handle; in php_load_extension() local 132 handle = DL_LOAD(libpath); in php_load_extension() 133 if (!handle) { in php_load_extension() 163 DL_UNLOAD(handle); in php_load_extension() 167 DL_UNLOAD(handle); in php_load_extension() 179 DL_UNLOAD(handle); in php_load_extension() 189 DL_UNLOAD(handle); in php_load_extension() 194 module_entry->handle = handle; in php_load_extension() 197 DL_UNLOAD(handle); in php_load_extension() 202 DL_UNLOAD(handle); in php_load_extension() [all …]
|
/PHP-7.1/sapi/cli/tests/ |
H A D | php_cli_server.inc | 40 $handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root); 48 $status = proc_get_status($handle); 68 proc_terminate($handle); 73 function($handle) use($router) { 74 proc_terminate($handle); 77 $handle 80 return $handle; 83 function php_cli_server_stop($handle) { 85 if ($handle) { 86 proc_terminate($handle); [all …]
|
/PHP-7.1/ext/curl/tests/ |
H A D | curl_setopt_basic002.phpt | 19 $handle = fopen($temp_file, 'w'); 25 curl_setopt($ch, CURLOPT_STDERR, $handle); 28 fclose($handle); 29 unset($handle); 34 $handle = fopen($temp_file, 'w'); 36 curl_setopt($ch, CURLOPT_STDERR, $handle); 40 fclose($handle); 41 unset($handle);
|
H A D | server.inc | 25 …$handle = proc_open(addslashes($cmd), $descriptorspec, $pipes, $doc_root, NULL, array("bypass_shel… 37 $handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root); 45 $status = proc_get_status($handle); 65 proc_terminate($handle); 70 function($handle) use($router) { 71 proc_terminate($handle); 74 $status = proc_get_status($handle); 81 $handle
|
/PHP-7.1/ext/standard/tests/file/ |
H A D | fgetc_variation2.phpt | 2 Test fgetc() function : usage variations - closed handle 6 Prototype: string fgetc ( resource $handle ); 11 - closed file handle 12 - unset file handle 20 echo "-- Testing fgetc() with closed handle --\n"; 29 echo "-- Testing fgetc() with unset handle --\n"; 32 // unset the file handle 35 //fgetc using unset handle 42 -- Testing fgetc() with closed handle -- 46 -- Testing fgetc() with unset handle --
|
H A D | fgets_variation2.phpt | 2 Test fgets() function : usage variations - closed handle 6 Prototype: string fgets ( resource $handle [, int $length] ); 11 - closed file handle 12 - unset file handle 20 echo "-- Testing fgets() with closed handle --\n"; 30 echo "-- Testing fgets() with unset handle --\n"; 33 // unset the file handle 36 //fgets using unset handle 44 -- Testing fgets() with closed handle -- 51 -- Testing fgets() with unset handle --
|
H A D | bug52820.phpt | 10 $handle=curl_init('http://127.0.0.1:37349/'); 11 curl_setopt($handle, CURLOPT_VERBOSE, true); 12 curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); 13 if (!curl_setopt($handle, CURLOPT_STDERR, fopen("php://memory", "w+"))) 18 $handle=curl_init('http://127.0.0.1:37349/'); 19 curl_setopt($handle, CURLOPT_VERBOSE, true); 20 curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); 21 curl_setopt($handle, CURLOPT_STDERR, $o = fopen($url, "w+")); 22 curl_exec($handle);
|
H A D | unlink_variation2-win32.phpt | 15 /* Try to unlink file when file handle is still in use */ 19 echo "*** Testing unlink() on a file when file handle is open ***\n"; 26 var_dump( unlink($filename) ); // expected: false as file handle is still open 27 // now close file handle 37 *** Testing unlink() on a file when file handle is open ***
|
/PHP-7.1/ext/pgsql/tests/ |
H A D | 05large_object.phpt | 16 $handle = pg_lo_open ($db, $oid, "w"); 17 if (!$handle) echo ("pg_lo_open() error\n"); 19 pg_lo_close ($handle); 24 $handle = pg_lo_open ($db, $oid, "w"); 25 pg_lo_read($handle, 100); 26 pg_lo_tell($handle); 27 pg_lo_seek($handle, 2); 28 pg_lo_close($handle); 33 $handle = pg_lo_open ($db, $oid, "w"); 34 pg_lo_read_all($handle); [all …]
|
/PHP-7.1/ext/opcache/tests/ |
H A D | php_cli_server.inc | 18 …$handle = proc_open(addslashes($cmd), $descriptorspec, $pipes, $doc_root, NULL, array("bypass_shel… 27 $handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root); 35 $status = proc_get_status($handle); 55 proc_terminate($handle); 60 function($handle) { 61 proc_terminate($handle); 64 $status = proc_get_status($handle); 71 $handle
|
/PHP-7.1/win32/ |
H A D | readdir.c | 29 HANDLE handle; /* _findfirst/_findnext handle */ member 41 HANDLE handle; in opendir() local 86 if ((handle = FindFirstFileW(filespecw, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) { in opendir() 98 dp->handle = handle; in opendir() 116 if (FindNextFileW(dp->handle, &(dp->fileinfo)) == 0) { in readdir() 149 if (FindNextFileW(dp->handle, &(dp->fileinfo)) == 0) { in readdir_r() 184 if (dp->handle != INVALID_HANDLE_VALUE) { in closedir() 185 FindClose(dp->handle); in closedir() 199 HANDLE handle; in rewinddir() local 203 FindClose(dp->handle); in rewinddir() [all …]
|
/PHP-7.1/ext/standard/tests/dir/ |
H A D | dir_variation4.phpt | 7 * Description: Directory class with properties, handle and class and methods read, rewind and close 37 echo "-- reading directory contents with previous handle --\n"; 38 var_dump( $d->read() ); // with previous handle 40 echo "-- reading directory contents with current handle --\n"; 41 var_dump( $e->read() ); // with current handle 59 ["handle"]=> 65 ["handle"]=> 68 -- reading directory contents with previous handle -- 70 -- reading directory contents with current handle --
|
H A D | dir_variation4-win32-mb.phpt | 13 * Description: Directory class with properties, handle and class and methods read, rewind and close 43 echo "-- reading directory contents with previous handle --\n"; 44 var_dump( $d->read() ); // with previous handle 46 echo "-- reading directory contents with current handle --\n"; 47 var_dump( $e->read() ); // with current handle 65 ["handle"]=> 71 ["handle"]=> 74 -- reading directory contents with previous handle -- 76 -- reading directory contents with current handle --
|
H A D | closedir_variation2.phpt | 2 Test closedir() function : usage variations - close directory handle twice 12 * close the directory handle twice using closedir() to test behaviour 23 echo "\n-- Close directory handle first time: --\n"; 28 echo "\n-- Close directory handle second time: --\n"; 42 -- Close directory handle first time: -- 46 -- Close directory handle second time: --
|
H A D | closedir_variation2-win32-mb.phpt | 2 Test closedir() function : usage variations - close directory handle twice 18 * close the directory handle twice using closedir() to test behaviour 29 echo "\n-- Close directory handle first time: --\n"; 34 echo "\n-- Close directory handle second time: --\n"; 48 -- Close directory handle first time: -- 52 -- Close directory handle second time: --
|
H A D | dir_basic.phpt | 7 * Description: Directory class with properties, handle and class and methods read, rewind and close 33 echo "\nTest using handle directly:\n"; 34 var_dump( readdir($d->handle) ); 35 var_dump( readdir($d->handle) ); 61 ["handle"]=> 70 Test using handle directly: 79 ["handle"]=>
|
/PHP-7.1/ext/standard/tests/directory/ |
H A D | DirectoryClass_error_001.phpt | 6 echo "\n--> Try all methods with bad handle:\n"; 8 $d->handle = "Havoc!"; 13 echo "\n--> Try all methods with no handle:\n"; 15 unset($d->handle); 28 --> Try all methods with bad handle: 39 --> Try all methods with no handle: 41 Warning: Directory::read(): Unable to find my handle property in %s on line %d 44 Warning: Directory::rewind(): Unable to find my handle property in %s on line %d 47 Warning: Directory::close(): Unable to find my handle property in %s on line %d
|
H A D | DirectoryClass_error_001-mb.phpt | 10 echo "\n--> Try all methods with bad handle:\n"; 12 $d->handle = "Havoc!"; 17 echo "\n--> Try all methods with no handle:\n"; 19 unset($d->handle); 38 --> Try all methods with bad handle: 49 --> Try all methods with no handle: 51 Warning: Directory::read(): Unable to find my handle property in %s on line %d 54 Warning: Directory::rewind(): Unable to find my handle property in %s on line %d 57 Warning: Directory::close(): Unable to find my handle property in %s on line %d
|
/PHP-7.1/ext/standard/tests/streams/ |
H A D | stream_get_meta_data_process_basic.phpt | 9 $handle = popen($cmd, $mode); 10 $data = fread($handle, 100); 12 var_dump(stream_get_meta_data($handle)); 14 pclose($handle);
|
/PHP-7.1/ext/zlib/tests/ |
H A D | gzgetss.phpt | 13 $handle = gzopen(__DIR__ . '/gzgetss.gz', 'r'); 15 while (!gzeof($handle)){ 16 $buffer = gzgetss($handle, 4096, "<code>"); 19 gzclose($handle);
|
/PHP-7.1/ext/mysqli/tests/ |
H A D | mysqli_open_bug74432.phpt | 17 $handle = mysqli_connect("$host:$port", $user, $passwd); 19 var_dump($handle); 21 if ($handle) { 22 mysqli_close($handle);
|