/PHP-5.5/Zend/ |
H A D | zend_stream.c | 60 if (handle && (FILE*)handle != stdin) { in zend_stream_stdio_closer() 136 handle->handle.fp = zend_fopen(filename, &handle->opened_path TSRMLS_CC); in zend_stream_open() 292 file_handle->handle.stream.mmap.old_handle = file_handle->handle.stream.handle; 294 file_handle->handle.stream.handle = &file_handle->handle.stream; 314 if (fh->handle.stream.closer && fh->handle.stream.handle) { 315 fh->handle.stream.closer(fh->handle.stream.handle TSRMLS_CC); 317 fh->handle.stream.handle = NULL; 347 return fh1->handle.stream.handle == fh2->handle.stream.handle; 349 return (fh1->handle.stream.handle == &fh1->handle.stream && 350 fh2->handle.stream.handle == &fh2->handle.stream && [all …]
|
H A D | zend_objects_API.c | 109 zend_object_handle handle; in zend_objects_store_put() local 113 handle = EG(objects_store).free_list_head; in zend_objects_store_put() 120 handle = EG(objects_store).top++; in zend_objects_store_put() 124 EG(objects_store).object_buckets[handle].valid = 1; in zend_objects_store_put() 136 fprintf(stderr, "Allocated object id #%d\n", handle); in zend_objects_store_put() 138 return handle; in zend_objects_store_put() 143 zend_object_handle handle = Z_OBJ_HANDLE_P(object); in zend_objects_store_get_refcount() local 150 zend_object_handle handle = Z_OBJ_HANDLE_P(object); in zend_objects_store_add_ref() local 173 zend_object_handle handle; in zend_objects_store_del_ref() local 175 handle = Z_OBJ_HANDLE_P(zobject); in zend_objects_store_del_ref() [all …]
|
H A D | zend_extensions.c | 30 DL_HANDLE handle; in zend_load_extension() local 34 handle = DL_LOAD(path); in zend_load_extension() 35 if (!handle) { in zend_load_extension() 62 DL_UNLOAD(handle); in zend_load_extension() 79 DL_UNLOAD(handle); in zend_load_extension() 95 DL_UNLOAD(handle); in zend_load_extension() 106 DL_UNLOAD(handle); in zend_load_extension() 110 return zend_register_extension(new_extension, handle); in zend_load_extension() 128 extension.handle = handle; in zend_register_extension() 190 if (extension->handle) { in zend_extension_dtor() [all …]
|
H A D | zend_stream.h | 30 typedef size_t (*zend_stream_fsizer_t)(void* handle TSRMLS_DC); 31 typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len TSRMLS_DC); 32 typedef void (*zend_stream_closer_t)(void* handle TSRMLS_DC); 54 void *handle; member 70 } handle; member 75 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle TSRMLS_DC);
|
H A D | zend_objects_API.h | 27 typedef void (*zend_objects_store_dtor_t)(void *object, zend_object_handle handle TSRMLS_DC); 70 ZEND_API void zend_objects_store_add_ref_by_handle(zend_object_handle handle TSRMLS_DC); 71 ZEND_API void zend_objects_store_del_ref_by_handle_ex(zend_object_handle handle, const zend_object_… 72 static zend_always_inline void zend_objects_store_del_ref_by_handle(zend_object_handle handle TSRML… in zend_objects_store_del_ref_by_handle() 73 zend_objects_store_del_ref_by_handle_ex(handle, NULL TSRMLS_CC); in zend_objects_store_del_ref_by_handle() 78 ZEND_API void *zend_object_store_get_object_by_handle(zend_object_handle handle TSRMLS_DC);
|
/PHP-5.5/ext/standard/ |
H A D | dl.c | 104 void *handle; in php_load_extension() local 145 if (!handle) { in php_load_extension() 175 DL_UNLOAD(handle); in php_load_extension() 179 DL_UNLOAD(handle); in php_load_extension() 199 void *handle; in php_load_extension() member 225 DL_UNLOAD(handle); in php_load_extension() 235 DL_UNLOAD(handle); in php_load_extension() 240 module_entry->handle = handle; in php_load_extension() 243 DL_UNLOAD(handle); in php_load_extension() 248 DL_UNLOAD(handle); in php_load_extension() [all …]
|
/PHP-5.5/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 | curl_copy_handle_variation2.phpt | 11 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-5.5/win32/ |
H A D | readdir.c | 26 HANDLE handle; in opendir() local 54 if ((handle = FindFirstFile(filespec, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) { in opendir() 65 dp->handle = handle; in opendir() 77 if (FindNextFile(dp->handle, &(dp->fileinfo)) == 0) { in readdir() 100 if (FindNextFile(dp->handle, &(dp->fileinfo)) == 0) { in readdir_r() 126 if (dp->handle != INVALID_HANDLE_VALUE) { in closedir() 127 FindClose(dp->handle); in closedir() 141 HANDLE handle; in rewinddir() local 144 FindClose(dp->handle); in rewinddir() 161 if ((handle = FindFirstFile(filespec, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) { in rewinddir() [all …]
|
/PHP-5.5/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);
|
H A D | unlink_variation2-win32.phpt | 15 /* 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 ***
|
H A D | file_get_contents_basic001.phpt | 9 $handle = fopen($temp_filename,"w"); 10 fwrite($handle,$file_content); 11 fclose($handle);
|
/PHP-5.5/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-5.5/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 | 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 | dir_basic.phpt | 7 * 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 D | dir_variation3.phpt | 72 // 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-5.5/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
|
/PHP-5.5/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-5.5/ext/intl/spoofchecker/ |
H A D | spoofchecker_class.c | 35 zend_object_handle handle TSRMLS_DC) in Spoofchecker_objects_dtor() 37 zend_objects_destroy_object(object, handle TSRMLS_CC); in Spoofchecker_objects_dtor() 66 retval.handle = zend_objects_store_put( in Spoofchecker_object_create() 124 zend_object_handle handle = Z_OBJ_HANDLE_P(object); in spoofchecker_clone_obj() local 131 …new_sfo = (Spoofchecker_object *)zend_object_store_get_object_by_handle(new_obj_val.handle TSRMLS_… in spoofchecker_clone_obj() 133 zend_objects_clone_members(&new_sfo->zo, new_obj_val, &sfo->zo, handle TSRMLS_CC); in spoofchecker_clone_obj() 139 Spoofchecker_objects_dtor(new_sfo, new_obj_val.handle TSRMLS_CC); /* free new object */ in spoofchecker_clone_obj()
|
/PHP-5.5/ext/opcache/tests/ |
H A D | php_cli_server.inc | 18 …$handle = proc_open(addslashes($cmd), $descriptorspec, $pipes, $doc_root, NULL, array("bypass_shel… 21 $handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root); 36 function($handle) { 37 proc_terminate($handle); 39 $handle
|
/PHP-5.5/ext/wddx/tests/ |
H A D | bug52468.phpt | 12 …'><header><comment>my_command</comment></header><data><struct><var name='handle'><number></number>… 21 [handle] => 0 25 [handle] => 0
|
/PHP-5.5/ext/zip/tests/ |
H A D | utils.inc | 11 if ($handle = opendir($dir)) { 12 while (false !== ($item = readdir($handle))) { 21 closedir($handle);
|