Home
last modified time | relevance | path

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

12345678910>>...30

/PHP-7.0/Zend/
H A Dzend_stream.c59 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()
293 file_handle->handle.stream.handle = &file_handle->handle.stream;
313 if (fh->handle.stream.closer && fh->handle.stream.handle) {
314 fh->handle.stream.closer(fh->handle.stream.handle);
316 fh->handle.stream.handle = NULL;
346 return fh1->handle.stream.handle == fh2->handle.stream.handle;
348 return (fh1->handle.stream.handle == &fh1->handle.stream &&
349 fh2->handle.stream.handle == &fh2->handle.stream &&
[all …]
H A Dzend_objects_API.c112 int handle; in zend_objects_store_put() local
115 handle = EG(objects_store).free_list_head; in zend_objects_store_put()
122 handle = EG(objects_store).top++; in zend_objects_store_put()
124 object->handle = handle; in zend_objects_store_put()
125 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put()
128 #define ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(handle) \ argument
130 EG(objects_store).free_list_head = handle;
134 uint32_t handle = object->handle; in zend_objects_store_free() local
139 ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(handle); in zend_objects_store_free()
169 uint32_t handle = object->handle; in zend_objects_store_del() local
[all …]
H A Dzend_extensions.c31 DL_HANDLE handle; in zend_load_extension() local
35 handle = DL_LOAD(path); in zend_load_extension()
36 if (!handle) { in zend_load_extension()
61 DL_UNLOAD(handle); in zend_load_extension()
78 DL_UNLOAD(handle); in zend_load_extension()
94 DL_UNLOAD(handle); in zend_load_extension()
105 DL_UNLOAD(handle); in zend_load_extension()
113 DL_UNLOAD(handle); in zend_load_extension()
121 DL_UNLOAD(handle); in zend_load_extension()
143 extension.handle = handle; in zend_register_extension()
[all …]
H A Dzend_stream.h33 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.0/ext/standard/
H A Ddl.c92 void *handle; in php_load_extension() local
132 handle = DL_LOAD(libpath); in php_load_extension()
133 if (!handle) { in php_load_extension()
163 DL_UNLOAD(handle); in php_load_extension()
167 DL_UNLOAD(handle); in php_load_extension()
179 DL_UNLOAD(handle); in php_load_extension()
189 DL_UNLOAD(handle); in php_load_extension()
194 module_entry->handle = handle; in php_load_extension()
197 DL_UNLOAD(handle); in php_load_extension()
202 DL_UNLOAD(handle); in php_load_extension()
[all …]
/PHP-7.0/sapi/cli/tests/
H A Dphp_cli_server.inc34 $handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root);
42 $status = proc_get_status($handle);
62 proc_terminate($handle);
67 function($handle) use($router) {
68 proc_terminate($handle);
71 $handle
74 return $handle;
77 function php_cli_server_stop($handle) {
79 if ($handle) {
80 proc_terminate($handle);
[all …]
/PHP-7.0/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…
31 $handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root);
39 $status = proc_get_status($handle);
59 proc_terminate($handle);
64 function($handle) use($router) {
65 proc_terminate($handle);
68 $status = proc_get_status($handle);
75 $handle
H A Dcurl_copy_handle_variation2.phpt11 the only way to test if a option is setten on a curl handle is using the curl_getinfo() function.
20 // copy the handle
24 // add some CURLOPT to the second handle
29 // add same CURLOPT to the first handle
33 // change a CURLOPT in the second handle
/PHP-7.0/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);
H A Dunlink_variation2-win32.phpt15 /* Try to unlink file when file handle is still in use */
19 echo "*** Testing unlink() on a file when file handle is open ***\n";
26 var_dump( unlink($filename) ); // expected: false as file handle is still open
27 // now close file handle
37 *** Testing unlink() on a file when file handle is open ***
/PHP-7.0/win32/
H A Dreaddir.c26 HANDLE handle; in opendir() local
53 if ((handle = FindFirstFile(filespec, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) { in opendir()
64 dp->handle = handle; in opendir()
76 if (FindNextFile(dp->handle, &(dp->fileinfo)) == 0) { in readdir()
99 if (FindNextFile(dp->handle, &(dp->fileinfo)) == 0) { in readdir_r()
125 if (dp->handle != INVALID_HANDLE_VALUE) { in closedir()
126 FindClose(dp->handle); in closedir()
140 HANDLE handle; in rewinddir() local
143 FindClose(dp->handle); in rewinddir()
160 if ((handle = FindFirstFile(filespec, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) { in rewinddir()
[all …]
/PHP-7.0/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.0/ext/opcache/tests/
H A Dphp_cli_server.inc18 …$handle = proc_open(addslashes($cmd), $descriptorspec, $pipes, $doc_root, NULL, array("bypass_shel…
21 $handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root);
29 $status = proc_get_status($handle);
49 proc_terminate($handle);
54 function($handle) {
55 proc_terminate($handle);
58 $status = proc_get_status($handle);
65 $handle
/PHP-7.0/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 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 Ddir_basic.phpt7 * Description: Directory class with properties, handle and class and methods read, rewind and close
33 echo "\nTest using handle directly:\n";
34 var_dump( readdir($d->handle) );
35 var_dump( readdir($d->handle) );
61 ["handle"]=>
70 Test using handle directly:
79 ["handle"]=>
H A Ddir_variation3.phpt72 // try to get dir handle
100 ["handle"]=>
111 ["handle"]=>
122 ["handle"]=>
133 ["handle"]=>
144 ["handle"]=>
155 ["handle"]=>
166 ["handle"]=>
177 ["handle"]=>
188 ["handle"]=>
[all …]
/PHP-7.0/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
/PHP-7.0/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.0/ext/zlib/tests/
H A Dgzgetss.phpt13 $handle = gzopen(__DIR__ . '/gzgetss.gz', 'r');
15 while (!gzeof($handle)){
16 $buffer = gzgetss($handle, 4096, "<code>");
19 gzclose($handle);
/PHP-7.0/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.0/ext/wddx/tests/
H A Dbug52468.phpt12 …'><header><comment>my_command</comment></header><data><struct><var name='handle'><number></number>…
21 [handle] => 0
25 [handle] => 0

Completed in 73 milliseconds

12345678910>>...30