/PHP-7.2/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() 284 file_handle->handle.stream.handle = &file_handle->handle.stream; in zend_stream_fixup() 304 if (fh->handle.stream.closer && fh->handle.stream.handle) { in zend_file_handle_dtor() 305 fh->handle.stream.closer(fh->handle.stream.handle); in zend_file_handle_dtor() 307 fh->handle.stream.handle = NULL; in zend_file_handle_dtor() 337 return fh1->handle.stream.handle == fh2->handle.stream.handle; in zend_compare_file_handles() 339 return (fh1->handle.stream.handle == &fh1->handle.stream && in zend_compare_file_handles() 340 fh2->handle.stream.handle == &fh2->handle.stream && 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() 75 DL_UNLOAD(handle); in zend_load_extension_handle() 91 DL_UNLOAD(handle); in zend_load_extension_handle() 107 DL_UNLOAD(handle); in zend_load_extension_handle() 118 DL_UNLOAD(handle); in zend_load_extension_handle() 126 DL_UNLOAD(handle); in zend_load_extension_handle() 134 DL_UNLOAD(handle); in zend_load_extension_handle() 156 extension.handle = handle; in zend_register_extension() [all …]
|
H A D | zend_objects_API.c | 135 int handle; in zend_objects_store_put() local 141 handle = EG(objects_store).free_list_head; in zend_objects_store_put() 150 handle = EG(objects_store).top++; in zend_objects_store_put() 152 object->handle = handle; in zend_objects_store_put() 153 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put() 156 #define ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(handle) \ argument 158 EG(objects_store).free_list_head = handle; 167 IS_OBJ_VALID(EG(objects_store).object_buckets[object->handle])) { in zend_objects_store_del() 182 uint32_t handle = object->handle; in zend_objects_store_del() local 185 EG(objects_store).object_buckets[handle] = SET_OBJ_INVALID(object); in zend_objects_store_del() [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.2/ext/standard/ |
H A D | dl.c | 83 void *handle; in php_load_shlib() local 87 if (!handle) { in php_load_shlib() 103 return handle; in php_load_shlib() 111 void *handle; in php_load_extension() local 152 if (!handle) { in php_load_extension() 163 if (!handle) { in php_load_extension() 194 DL_UNLOAD(handle); in php_load_extension() 216 DL_UNLOAD(handle); in php_load_extension() 221 module_entry->handle = handle; in php_load_extension() 224 DL_UNLOAD(handle); in php_load_extension() [all …]
|
/PHP-7.2/win32/ |
H A D | console.c | 27 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 D | readdir.c | 31 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.2/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.2/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
|
H A D | bug78775.phpt | 15 $handle = curl_init('https://self-signed.badssl.com/'); 17 $handle, 24 var_dump(curl_exec($handle)); 25 curl_close($handle);
|
/PHP-7.2/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);
|
/PHP-7.2/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.2/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.2/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: --
|
/PHP-7.2/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.2/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.2/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.2/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);
|