/PHP-5.3/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() 293 file_handle->handle.stream.mmap.old_handle = file_handle->handle.stream.handle; 295 file_handle->handle.stream.handle = &file_handle->handle.stream; 315 if (fh->handle.stream.closer && fh->handle.stream.handle) { 316 fh->handle.stream.closer(fh->handle.stream.handle TSRMLS_CC); 318 fh->handle.stream.handle = NULL; 348 return fh1->handle.stream.handle == fh2->handle.stream.handle; 350 return (fh1->handle.stream.handle == &fh1->handle.stream && 351 fh2->handle.stream.handle == &fh2->handle.stream && [all …]
|
H A D | zend_objects_API.c | 104 zend_object_handle handle; in zend_objects_store_put() local 108 handle = EG(objects_store).free_list_head; in zend_objects_store_put() 115 handle = EG(objects_store).top++; in zend_objects_store_put() 119 EG(objects_store).object_buckets[handle].valid = 1; in zend_objects_store_put() 130 fprintf(stderr, "Allocated object id #%d\n", handle); in zend_objects_store_put() 132 return handle; in zend_objects_store_put() 137 zend_object_handle handle = Z_OBJ_HANDLE_P(object); in zend_objects_store_get_refcount() local 144 zend_object_handle handle = Z_OBJ_HANDLE_P(object); in zend_objects_store_add_ref() local 167 zend_object_handle handle; in zend_objects_store_del_ref() local 169 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); 69 ZEND_API void zend_objects_store_add_ref_by_handle(zend_object_handle handle TSRMLS_DC); 70 ZEND_API void zend_objects_store_del_ref_by_handle_ex(zend_object_handle handle, const zend_object_… 71 static inline void zend_objects_store_del_ref_by_handle(zend_object_handle handle TSRMLS_DC) { in zend_objects_store_del_ref_by_handle() 72 zend_objects_store_del_ref_by_handle_ex(handle, NULL TSRMLS_CC); in zend_objects_store_del_ref_by_handle() 77 ZEND_API void *zend_object_store_get_object_by_handle(zend_object_handle handle TSRMLS_DC);
|
H A D | zend_objects.c | 50 ZEND_API void zend_objects_destroy_object(zend_object *object, zend_object_handle handle TSRMLS_DC) in zend_objects_destroy_object() 91 Z_OBJ_HANDLE_P(obj) = handle; in zend_objects_destroy_object() 92 obj_bucket = &EG(objects_store).object_buckets[handle]; in zend_objects_destroy_object() 105 if (Z_OBJ_HANDLE_P(EG(exception)) == handle) { in zend_objects_destroy_object() 136 …retval.handle = zend_objects_store_put(*object, (zend_objects_store_dtor_t) zend_objects_destroy_o… in zend_objects_new() 147 …bject, zend_object_value new_obj_val, zend_object *old_object, zend_object_handle handle TSRMLS_DC) in zend_objects_clone_members() 170 zend_object_handle handle = Z_OBJ_HANDLE_P(zobject); in zend_objects_clone_obj() local 180 zend_objects_clone_members(new_object, new_obj_val, old_object, handle TSRMLS_CC); in zend_objects_clone_obj()
|
/PHP-5.3/win32/ |
H A D | readdir.c | 26 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-5.3/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 | bug52820.phpt | 8 $handle=curl_init('http://127.0.0.1:37349/'); 9 curl_setopt($handle, CURLOPT_VERBOSE, true); 10 curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); 11 if (!curl_setopt($handle, CURLOPT_STDERR, fopen("php://memory", "w+"))) 16 $handle=curl_init('http://127.0.0.1:37349/'); 17 curl_setopt($handle, CURLOPT_VERBOSE, true); 18 curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); 19 curl_setopt($handle, CURLOPT_STDERR, $o = fopen($url, "w+")); 20 curl_exec($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 | 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);
|
H A D | fseek_ftell_rewind_error2.phpt | 6 /* Prototype: int fseek ( resource $handle, int $offset [, int $whence] ); 9 Prototype: bool rewind ( resource $handle ); 12 Prototype: int ftell ( resource $handle ); 42 // ftell on a file handle which is already closed 43 echo "-- Testing ftell with closed/unset file handle --"; 47 // ftell on a file handle which is unset 49 unset($file_handle); //unset file handle 89 -- Testing ftell with closed/unset file handle --
|
/PHP-5.3/ext/curl/tests/ |
H A D | curl_setopt_basic002.phpt | 18 $handle = fopen($temp_file, 'w'); 24 curl_setopt($ch, CURLOPT_STDERR, $handle); 27 fclose($handle); 28 unset($handle); 33 $handle = fopen($temp_file, 'w'); 35 curl_setopt($ch, CURLOPT_STDERR, $handle); 39 fclose($handle); 40 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.3/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.3/ext/standard/ |
H A D | dl.c | 107 void *handle; in php_load_extension() local 147 handle = DL_LOAD(libpath); in php_load_extension() 148 if (!handle) { in php_load_extension() 177 DL_UNLOAD(handle); in php_load_extension() 197 void *handle; in php_load_extension() member 223 DL_UNLOAD(handle); in php_load_extension() 233 DL_UNLOAD(handle); in php_load_extension() 238 module_entry->handle = handle; in php_load_extension() 241 DL_UNLOAD(handle); in php_load_extension() 246 DL_UNLOAD(handle); in php_load_extension() [all …]
|
/PHP-5.3/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.3/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.3/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.3/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.3/ext/zip/tests/ |
H A D | utils.inc | 11 if ($handle = opendir($dir)) { 12 while (false !== ($item = readdir($handle))) { 21 closedir($handle);
|