Home
last modified time | relevance | path

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

12345678910>>...26

/PHP-7.4/Zend/
H A Dzend_stream.c35 if (handle && (FILE*)handle != stdin) { in zend_stream_stdio_closer()
60 return file_handle->handle.stream.fsizer(file_handle->handle.stream.handle); in zend_stream_fsize()
66 handle->handle.fp = fp; in zend_stream_init_fp()
85 return handle->handle.fp ? SUCCESS : FAILURE; in zend_stream_open()
113 return file_handle->handle.stream.reader(file_handle->handle.stream.handle, buf, len); in zend_stream_read()
138 file_handle->handle.stream.handle = file_handle->handle.fp; in zend_stream_fixup()
209 if (fh->handle.stream.closer && fh->handle.stream.handle) { in zend_file_handle_dtor()
210 fh->handle.stream.closer(fh->handle.stream.handle); in zend_file_handle_dtor()
212 fh->handle.stream.handle = NULL; in zend_file_handle_dtor()
244 return fh1->handle.fp == fh2->handle.fp; in zend_compare_file_handles()
[all …]
H A Dzend_objects_API.c128 int handle; in zend_objects_store_put_cold() local
134 handle = EG(objects_store).top++; in zend_objects_store_put_cold()
135 object->handle = handle; in zend_objects_store_put_cold()
136 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put_cold()
141 int handle; in zend_objects_store_put() local
147 handle = EG(objects_store).free_list_head; in zend_objects_store_put()
153 handle = EG(objects_store).top++; in zend_objects_store_put()
155 object->handle = handle; in zend_objects_store_put()
156 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put()
184 uint32_t handle = object->handle; in zend_objects_store_del() local
[all …]
H A Dzend_extensions.c30 DL_HANDLE handle; in zend_load_extension() local
32 handle = DL_LOAD(path); in zend_load_extension()
33 if (!handle) { in zend_load_extension()
43 return zend_load_extension_handle(handle, path); in zend_load_extension()
74 DL_UNLOAD(handle); in zend_load_extension_handle()
90 DL_UNLOAD(handle); in zend_load_extension_handle()
106 DL_UNLOAD(handle); in zend_load_extension_handle()
117 DL_UNLOAD(handle); in zend_load_extension_handle()
125 DL_UNLOAD(handle); in zend_load_extension_handle()
147 extension.handle = handle; in zend_register_extension()
[all …]
H A Dzend_stream.h31 typedef size_t (*zend_stream_fsizer_t)(void* handle);
32 typedef ssize_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len);
33 typedef void (*zend_stream_closer_t)(void* handle);
44 void *handle; member
55 } handle; member
67 ZEND_API void zend_stream_init_fp(zend_file_handle *handle, FILE *fp, const char *filename);
68 ZEND_API void zend_stream_init_filename(zend_file_handle *handle, const char *filename);
69 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle);
/PHP-7.4/ext/standard/
H A Ddl.c77 void *handle; in php_load_shlib() local
81 if (!handle) { in php_load_shlib()
97 return handle; in php_load_shlib()
105 void *handle; in php_load_extension() local
146 if (!handle) { in php_load_extension()
157 if (!handle) { in php_load_extension()
198 DL_UNLOAD(handle); in php_load_extension()
220 DL_UNLOAD(handle); in php_load_extension()
225 module_entry->handle = handle; in php_load_extension()
228 DL_UNLOAD(handle); in php_load_extension()
[all …]
/PHP-7.4/win32/
H A Dconsole.c27 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_is_console() local
29 if (handle != INVALID_HANDLE_VALUE) { in php_win32_console_fileno_is_console()
31 if (GetConsoleMode(handle, &mode)) { in php_win32_console_fileno_is_console()
41 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_has_vt100() local
43 if (handle != INVALID_HANDLE_VALUE) { in php_win32_console_fileno_has_vt100()
46 if (fileno != 0 && !GetNumberOfConsoleInputEvents(handle, &events)) { in php_win32_console_fileno_has_vt100()
50 if (GetConsoleMode(handle, &mode)) { in php_win32_console_fileno_has_vt100()
63 HANDLE handle = (HANDLE) _get_osfhandle(fileno); in php_win32_console_fileno_set_vt100() local
65 if (handle != INVALID_HANDLE_VALUE) { in php_win32_console_fileno_set_vt100()
72 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()
136 if (dp->handle != INVALID_HANDLE_VALUE) { in closedir()
137 FindClose(dp->handle); in closedir()
151 HANDLE handle; in rewinddir() local
155 FindClose(dp->handle); in rewinddir()
189 …if ((handle = FindFirstFileExW(filespecw, FindExInfoBasic, &(dp->fileinfo), FindExSearchNameMatch,… in rewinddir()
194 dp->handle = handle; in rewinddir()
/PHP-7.4/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.inc21 …$handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root, null, array("suppress_errors" => tru…
28 $status = proc_get_status($handle);
48 proc_terminate($handle);
53 function($handle) use($router) {
54 proc_terminate($handle);
57 $status = proc_get_status($handle);
64 $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.4/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('file:///i_dont_exist/');
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('file:///i_dont_exist/');
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.4/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.4/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-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: --
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: --
/PHP-7.4/ext/opcache/tests/
H A Dphp_cli_server.inc20 …$handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root, null, array("suppress_errors" => tru…
27 $status = proc_get_status($handle);
47 proc_terminate($handle);
52 function($handle) {
53 proc_terminate($handle);
56 $status = proc_get_status($handle);
63 $handle
/PHP-7.4/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.4/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.4/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);
/PHP-7.4/sapi/cli/tests/
H A Dphp_cli_server.inc29 …$handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root, null, array("suppress_errors" => tru…
33 $status = proc_get_status($handle);
85 proc_terminate($handle);
90 function($handle) use($router) {
91 proc_terminate($handle);
94 $handle
97 return $handle;

Completed in 41 milliseconds

12345678910>>...26