Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 739) sorted by relevance

12345678910>>...30

/PHP-7.3/Zend/
H A Dzend_stream.c56 if (handle && (FILE*)handle != stdin) { in zend_stream_stdio_closer()
111 return file_handle->handle.stream.fsizer(file_handle->handle.stream.handle); in zend_stream_fsize()
132 handle->handle.fp = zend_fopen(filename, &handle->opened_path); in zend_stream_open()
281 file_handle->handle.stream.handle = &file_handle->handle.stream; in zend_stream_fixup()
301 if (fh->handle.stream.closer && fh->handle.stream.handle) { in zend_file_handle_dtor()
302 fh->handle.stream.closer(fh->handle.stream.handle); in zend_file_handle_dtor()
304 fh->handle.stream.handle = NULL; in zend_file_handle_dtor()
334 return fh1->handle.stream.handle == fh2->handle.stream.handle; in zend_compare_file_handles()
336 return (fh1->handle.stream.handle == &fh1->handle.stream && in zend_compare_file_handles()
337 fh2->handle.stream.handle == &fh2->handle.stream && in zend_compare_file_handles()
[all …]
H A Dzend_extensions.c29 DL_HANDLE handle; in zend_load_extension() local
31 handle = DL_LOAD(path); in zend_load_extension()
32 if (!handle) { in zend_load_extension()
42 return zend_load_extension_handle(handle, path); in zend_load_extension()
73 DL_UNLOAD(handle); in zend_load_extension_handle()
89 DL_UNLOAD(handle); in zend_load_extension_handle()
105 DL_UNLOAD(handle); in zend_load_extension_handle()
116 DL_UNLOAD(handle); in zend_load_extension_handle()
124 DL_UNLOAD(handle); in zend_load_extension_handle()
146 extension.handle = handle; in zend_register_extension()
[all …]
H A Dzend_stream.h31 typedef size_t (*zend_stream_fsizer_t)(void* handle);
32 typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len);
33 typedef void (*zend_stream_closer_t)(void* handle);
55 void *handle; member
68 } handle; member
76 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle);
H A Dzend_objects_API.c133 int handle; in zend_objects_store_put() local
139 handle = EG(objects_store).free_list_head; in zend_objects_store_put()
140 …EG(objects_store).free_list_head = GET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[handle]); in zend_objects_store_put()
148 handle = EG(objects_store).top++; in zend_objects_store_put()
150 object->handle = handle; in zend_objects_store_put()
151 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put()
180 uint32_t handle = object->handle; in zend_objects_store_del() local
184 ZEND_ASSERT(IS_OBJ_VALID(EG(objects_store).object_buckets[object->handle])); in zend_objects_store_del()
185 EG(objects_store).object_buckets[handle] = SET_OBJ_INVALID(object); in zend_objects_store_del()
197 ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(handle); in zend_objects_store_del()
/PHP-7.3/ext/standard/
H A Ddl.c81 void *handle; in php_load_shlib() local
85 if (!handle) { in php_load_shlib()
101 return handle; in php_load_shlib()
109 void *handle; in php_load_extension() local
150 if (!handle) { in php_load_extension()
161 if (!handle) { in php_load_extension()
192 DL_UNLOAD(handle); in php_load_extension()
214 DL_UNLOAD(handle); in php_load_extension()
219 module_entry->handle = handle; in php_load_extension()
222 DL_UNLOAD(handle); in php_load_extension()
[all …]
/PHP-7.3/win32/
H A Dconsole.c25 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_is_console() local
27 if (handle != INVALID_HANDLE_VALUE) { in php_win32_console_fileno_is_console()
29 if (GetConsoleMode(handle, &mode)) { in php_win32_console_fileno_is_console()
39 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_has_vt100() local
41 if (handle != INVALID_HANDLE_VALUE) { in php_win32_console_fileno_has_vt100()
44 if (fileno != 0 && !GetNumberOfConsoleInputEvents(handle, &events)) { in php_win32_console_fileno_has_vt100()
48 if (GetConsoleMode(handle, &mode)) { in php_win32_console_fileno_has_vt100()
61 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_set_vt100() local
63 if (handle != INVALID_HANDLE_VALUE) { in php_win32_console_fileno_set_vt100()
70 if (GetConsoleMode(handle, &mode)) { in php_win32_console_fileno_set_vt100()
[all …]
H A Dreaddir.c31 HANDLE handle; in opendir() local
76 …if ((handle = FindFirstFileExW(filespecw, FindExInfoBasic, &(dp->fileinfo), FindExSearchNameMatch,… in opendir()
88 dp->handle = handle; in opendir()
107 if (FindNextFileW(dp->handle, &(dp->fileinfo)) == 0) { in readdir()
141 if (FindNextFileW(dp->handle, &(dp->fileinfo)) == 0) { in readdir_r()
176 if (dp->handle != INVALID_HANDLE_VALUE) { in closedir()
177 FindClose(dp->handle); in closedir()
191 HANDLE handle; in rewinddir() local
195 FindClose(dp->handle); in rewinddir()
229 …if ((handle = FindFirstFileExW(filespecw, FindExInfoBasic, &(dp->fileinfo), FindExSearchNameMatch,… in rewinddir()
[all …]
/PHP-7.3/ext/curl/tests/
H A Dcurl_setopt_basic002.phpt19 $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 Dserver.inc25 …$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
H A Dbug78775.phpt16 $handle = curl_init('https://self-signed.badssl.com/');
18 $handle,
25 var_dump(curl_exec($handle));
26 curl_close($handle);
H A Dbug76675.phpt41 $handle = $info['handle'];
42 if ($handle !== null) {
44 curl_multi_remove_handle($mh, $handle);
45 curl_close($handle);
/PHP-7.3/sapi/cli/tests/
H A Dphp_cli_server.inc40 $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.3/ext/standard/tests/file/
H A Dfgetc_variation2.phpt2 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 Dfgets_variation2.phpt2 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 Dbug52820.phpt10 $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);
/PHP-7.3/ext/pgsql/tests/
H A D05large_object.phpt16 $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.3/ext/opcache/tests/
H A Dphp_cli_server.inc18 …$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.3/ext/standard/tests/dir/
H A Ddir_variation4.phpt7 * 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 Ddir_variation4-win32-mb.phpt13 * 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 Dclosedir_variation2.phpt2 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 Dclosedir_variation2-win32-mb.phpt2 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: --
/PHP-7.3/ext/standard/tests/directory/
H A DDirectoryClass_error_001.phpt6 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 DDirectoryClass_error_001-mb.phpt10 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.3/ext/standard/tests/streams/
H A Dstream_get_meta_data_process_basic.phpt9 $handle = popen($cmd, $mode);
10 $data = fread($handle, 100);
12 var_dump(stream_get_meta_data($handle));
14 pclose($handle);
/PHP-7.3/ext/mysqli/tests/
H A Dmysqli_open_bug74432.phpt17 $handle = mysqli_connect("$host:$port", $user, $passwd);
19 var_dump($handle);
21 if ($handle) {
22 mysqli_close($handle);

Completed in 45 milliseconds

12345678910>>...30