/PHP-8.4/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() 91 handle->handle.fp = zend_fopen(handle->filename, &opened_path); in zend_stream_open() 92 if (!handle->handle.fp) { in zend_stream_open() 149 file_handle->handle.stream.handle = file_handle->handle.fp; in zend_stream_fixup() 223 if (fh->handle.stream.closer && fh->handle.stream.handle) { in zend_file_handle_dtor() 224 fh->handle.stream.closer(fh->handle.stream.handle); in zend_file_handle_dtor() 226 fh->handle.stream.handle = NULL; in zend_file_handle_dtor() 259 return fh1->handle.fp == fh2->handle.fp; in zend_compare_file_handles() [all …]
|
H A D | zend_extensions.c | 32 DL_HANDLE handle; in zend_load_extension() local 35 if (!handle) { in zend_load_extension() 82 DL_UNLOAD(handle); in zend_load_extension_handle() 98 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() 294 return handle; in zend_get_op_array_extension_handle() 303 return handle; in zend_get_op_array_extension_handles() 310 return handle; in zend_get_internal_function_extension_handle() [all …]
|
H A D | zend_stream.h | 33 typedef size_t (*zend_stream_fsizer_t)(void* handle); 34 typedef ssize_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len); 35 typedef void (*zend_stream_closer_t)(void* handle); 46 void *handle; member 57 } handle; member 68 ZEND_API void zend_stream_init_fp(zend_file_handle *handle, FILE *fp, const char *filename); 69 ZEND_API void zend_stream_init_filename(zend_file_handle *handle, const char *filename); 70 ZEND_API void zend_stream_init_filename_ex(zend_file_handle *handle, zend_string *filename); 71 ZEND_API zend_result zend_stream_open(zend_file_handle *handle);
|
H A D | zend_objects_API.c | 129 int handle; in zend_objects_store_put_cold() local 135 handle = EG(objects_store).top++; in zend_objects_store_put_cold() 136 object->handle = handle; in zend_objects_store_put_cold() 137 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put_cold() 142 int handle; in zend_objects_store_put() local 148 handle = EG(objects_store).free_list_head; in zend_objects_store_put() 154 handle = EG(objects_store).top++; in zend_objects_store_put() 156 object->handle = handle; in zend_objects_store_put() 157 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put() 185 uint32_t handle = object->handle; in zend_objects_store_del() local [all …]
|
/PHP-8.4/ext/standard/ |
H A D | dl.c | 85 void *handle; in php_load_shlib() local 89 if (!handle) { in php_load_shlib() 105 return handle; in php_load_shlib() 112 void *handle; in php_load_extension() local 153 if (!handle) { in php_load_extension() 164 if (!handle) { in php_load_extension() 203 DL_UNLOAD(handle); in php_load_extension() 210 DL_UNLOAD(handle); in php_load_extension() 230 DL_UNLOAD(handle); in php_load_extension() 235 DL_UNLOAD(handle); in php_load_extension() [all …]
|
/PHP-8.4/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 | 28 HANDLE handle; in opendir() local 73 …if ((handle = FindFirstFileExW(filespecw, FindExInfoBasic, &(dp->fileinfo), FindExSearchNameMatch,… in opendir() 85 dp->handle = handle; in opendir() 104 if (FindNextFileW(dp->handle, &(dp->fileinfo)) == 0) { in readdir() 140 if (dp->handle != INVALID_HANDLE_VALUE) { in closedir() 141 FindClose(dp->handle); in closedir() 155 HANDLE handle; in rewinddir() local 159 FindClose(dp->handle); in rewinddir() 193 …if ((handle = FindFirstFileExW(filespecw, FindExInfoBasic, &(dp->fileinfo), FindExSearchNameMatch,… in rewinddir() 198 dp->handle = handle; in rewinddir()
|
/PHP-8.4/ext/standard/tests/directory/ |
H A D | DirectoryClass_error_001.phpt | 2 Changing Directory::$handle property 8 $d->handle = "Havoc!"; 12 var_dump($d->handle); 16 unset($d->handle); 20 var_dump($d->handle); 24 Cannot modify readonly property Directory::$handle 26 Cannot unset readonly property Directory::$handle
|
/PHP-8.4/ext/standard/tests/image/ |
H A D | bug75708.phpt | 9 public $handle; 12 $this->handle = fopen(str_replace('fs://', __DIR__ . '/', $file), $mode); 16 return fread($this->handle, $count); 19 return feof($this->handle); 22 return fseek($this->handle, $offset, $whence) === 0; 25 return fstat($this->handle); 31 return ftell($this->handle); 34 fclose($this->handle);
|
/PHP-8.4/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 | 13 …$handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root, null, array("suppress_errors" => tru… 20 $status = proc_get_status($handle); 23 proc_terminate($handle); 39 proc_terminate($handle); 49 $status = proc_get_status($handle); 69 proc_terminate($handle); 74 function($handle) { 75 proc_terminate($handle); 78 $status = proc_get_status($handle); 85 $handle
|
H A D | curl_pushfunction.phpt | 43 $handle = $info['handle']; 44 if ($handle !== null) { 45 $responses[] = curl_multi_getcontent($info['handle']); 46 curl_multi_remove_handle($mh, $handle); 47 curl_close($handle);
|
H A D | curl_pushfunction_trampoline.phpt | 47 $handle = $info['handle']; 48 if ($handle !== null) { 49 $responses[] = curl_multi_getcontent($info['handle']); 50 curl_multi_remove_handle($mh, $handle); 51 curl_close($handle);
|
H A D | bug78775.phpt | 17 $handle = curl_init('https://self-signed.badssl.com/'); 19 $handle, 26 var_dump(curl_exec($handle)); 27 curl_close($handle);
|
/PHP-8.4/ext/pgsql/tests/ |
H A D | 05large_object.phpt | 18 $handle = pg_lo_open ($db, $oid, "w"); 21 pg_lo_close ($handle); 26 $handle = pg_lo_open ($db, $oid, "w"); 27 var_dump(pg_lo_read($handle, 5)); 28 var_dump(pg_lo_tell($handle)); 31 var_dump(pg_lo_tell($handle)); 33 var_dump(pg_lo_read($handle)); 35 var_dump(pg_lo_read($handle)); 36 pg_lo_close($handle); 41 $handle = pg_lo_open ($db, $oid, "w"); [all …]
|
/PHP-8.4/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+"))) 20 $handle=curl_init('file:///i_dont_exist/'); 21 curl_setopt($handle, CURLOPT_VERBOSE, true); 22 curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); 23 curl_setopt($handle, CURLOPT_STDERR, $o = fopen($url, "w+")); 24 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.4/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 | 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.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 | 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.4/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.4/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.4/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);
|