/PHP-8.0/Zend/ |
H A D | zend_stream.c | 35 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() 245 return fh1->handle.fp == fh2->handle.fp; in zend_compare_file_handles() [all …]
|
H A D | zend_extensions.c | 31 DL_HANDLE handle; in zend_load_extension() local 33 handle = DL_LOAD(path); in zend_load_extension() 34 if (!handle) { in zend_load_extension() 82 DL_UNLOAD(handle); in zend_load_extension_handle() 98 DL_UNLOAD(handle); in zend_load_extension_handle() 114 DL_UNLOAD(handle); in zend_load_extension_handle() 125 DL_UNLOAD(handle); in zend_load_extension_handle() 133 DL_UNLOAD(handle); in zend_load_extension_handle() 156 extension.handle = handle; in zend_register_extension() 272 return handle; in zend_get_op_array_extension_handle() [all …]
|
H A D | zend_objects_API.c | 128 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 D | zend_stream.h | 31 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 zend_result zend_stream_open(const char *filename, zend_file_handle *handle);
|
/PHP-8.0/ext/curl/ |
H A D | curl.stub.php | 17 function curl_close(CurlHandle $handle): void {} argument 19 function curl_copy_handle(CurlHandle $handle): CurlHandle|false {} argument 21 function curl_errno(CurlHandle $handle): int {} argument 23 function curl_error(CurlHandle $handle): string {} argument 26 function curl_escape(CurlHandle $handle, string $string): string|false {} argument 28 function curl_unescape(CurlHandle $handle, string $string): string|false {} argument 34 function curl_exec(CurlHandle $handle): string|bool {} argument 38 function curl_getinfo(CurlHandle $handle, ?int $option = null): mixed {} argument 51 function curl_multi_getcontent(CurlHandle $handle): ?string {} argument 65 function curl_pause(CurlHandle $handle, int $flags): int {} argument [all …]
|
H A D | curl_arginfo.h | 5 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 9 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 13 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 17 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 22 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 40 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 50 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 60 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 77 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 101 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) [all …]
|
/PHP-8.0/ext/standard/ |
H A D | dl.c | 73 void *handle; in php_load_shlib() local 77 if (!handle) { in php_load_shlib() 93 return handle; in php_load_shlib() 100 void *handle; in php_load_extension() local 141 if (!handle) { in php_load_extension() 152 if (!handle) { in php_load_extension() 191 DL_UNLOAD(handle); in php_load_extension() 213 DL_UNLOAD(handle); in php_load_extension() 218 module_entry->handle = handle; in php_load_extension() 221 DL_UNLOAD(handle); in php_load_extension() [all …]
|
/PHP-8.0/win32/ |
H A D | console.c | 25 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 D | readdir.c | 32 HANDLE handle; in opendir() local 77 …if ((handle = FindFirstFileExW(filespecw, FindExInfoBasic, &(dp->fileinfo), FindExSearchNameMatch,… in opendir() 89 dp->handle = handle; in opendir() 108 if (FindNextFileW(dp->handle, &(dp->fileinfo)) == 0) { in readdir() 137 if (dp->handle != INVALID_HANDLE_VALUE) { in closedir() 138 FindClose(dp->handle); in closedir() 152 HANDLE handle; in rewinddir() local 156 FindClose(dp->handle); in rewinddir() 190 …if ((handle = FindFirstFileExW(filespecw, FindExInfoBasic, &(dp->fileinfo), FindExSearchNameMatch,… in rewinddir() 195 dp->handle = handle; in rewinddir()
|
/PHP-8.0/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 | 17 …$handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root, null, array("suppress_errors" => tru… 24 $status = proc_get_status($handle); 27 proc_terminate($handle); 43 proc_terminate($handle); 53 $status = proc_get_status($handle); 73 proc_terminate($handle); 78 function($handle) use($router) { 79 proc_terminate($handle); 82 $status = proc_get_status($handle); 89 $handle
|
H A D | bug78775.phpt | 16 $handle = curl_init('https://self-signed.badssl.com/'); 18 $handle, 25 var_dump(curl_exec($handle)); 26 curl_close($handle);
|
/PHP-8.0/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!"; 25 echo "\n--> Try all methods with no handle:\n"; 27 unset($d->handle); 47 --> Try all methods with bad handle: 52 --> Try all methods with no handle: 53 Unable to find my handle property 54 Unable to find my handle property 55 Unable to find my handle property
|
H A D | DirectoryClass_error_001-mb.phpt | 10 echo "\n--> Try all methods with bad handle:\n"; 12 $d->handle = "Havoc!"; 29 echo "\n--> Try all methods with no handle:\n"; 31 unset($d->handle); 57 --> Try all methods with bad handle: 62 --> Try all methods with no handle: 63 Unable to find my handle property 64 Unable to find my handle property 65 Unable to find my handle property
|
/PHP-8.0/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-8.0/ext/standard/tests/file/ |
H A D | bug52820.phpt | 10 $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);
|
H A D | fgetc_variation2.phpt | 2 Test fgetc() function : usage variations - closed handle 6 - closed file handle 7 - unset file handle 15 echo "-- Testing fgetc() with closed handle --\n"; 32 -- Testing fgetc() with closed handle --
|
H A D | fgets_variation2.phpt | 2 Test fgets() function : usage variations - closed handle 6 - closed file handle 7 - unset file handle 15 echo "-- Testing fgets() with closed handle --\n"; 37 -- Testing fgets() with closed handle --
|
/PHP-8.0/ext/standard/tests/dir/ |
H A D | dir_variation4.phpt | 31 echo "-- reading directory contents with previous handle --\n"; 32 var_dump( $d->read() ); // with previous handle 34 echo "-- reading directory contents with current handle --\n"; 35 var_dump( $e->read() ); // with current handle 53 ["handle"]=> 59 ["handle"]=> 62 -- reading directory contents with previous handle -- 64 -- reading directory contents with current handle --
|
H A D | closedir_variation2.phpt | 2 Test closedir() function : usage variations - close directory handle twice 6 * close the directory handle twice using closedir() to test behaviour 17 echo "\n-- Close directory handle first time: --\n"; 22 echo "\n-- Close directory handle second time: --\n"; 39 -- Close directory handle first time: -- 43 -- Close directory handle second time: --
|
H A D | dir_variation4-win32-mb.phpt | 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 | closedir_variation2-win32-mb.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"; 45 -- Close directory handle first time: -- 49 -- Close directory handle second time: --
|
/PHP-8.0/ext/opcache/tests/ |
H A D | php_cli_server.inc | 20 …$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-8.0/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-8.0/ext/mysqli/tests/ |
H A D | mysqli_open_bug74432.phpt | 16 $handle = mysqli_connect("$host:$port", $user, $passwd); 18 var_dump($handle); 20 if ($handle) { 21 mysqli_close($handle);
|