/PHP-5.5/ext/imap/tests/ |
H A D | imap_close_variation3.phpt | 21 var_dump($file_handle = fopen(__FILE__, 'r')); 22 var_dump(imap_close($file_handle)); 23 var_dump($file_handle);
|
H A D | imap_fetch_overview_variation6.phpt | 61 $file_handle = fopen(__FILE__, 'r+'); 71 $part4["contents.data"] = base64_encode(fread($file_handle, 1));
|
/PHP-5.5/ext/opcache/ |
H A D | ZendAccelerator.c | 684 if (!file_handle->opened_path) { in zend_get_file_handle_timestamp_win() 750 switch (file_handle->type) { in zend_get_file_handle_timestamp() 833 if (file_handle->opened_path) { in do_validate_timestamps() 853 file_handle->opened_path = NULL; in do_validate_timestamps() 867 file_handle->opened_path = NULL; in do_validate_timestamps() 1072 zend_file_handle file_handle; in zend_accel_invalidate() local 1075 file_handle.filename = realpath; in zend_accel_invalidate() 1438 if (file_handle->opened_path) { in compile_and_cache_file() 1459 if (!file_handle->filename || 1519 zend_stream_open(file_handle->filename, file_handle TSRMLS_CC) == FAILURE) { [all …]
|
H A D | ZendAccelerator.h | 333 …amp_and_record(zend_persistent_script *persistent_script, zend_file_handle *file_handle TSRMLS_DC); 338 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len TSR… 339 zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type TSRMLS_DC);
|
/PHP-5.5/ext/phar/ |
H A D | phar.c | 3350 if (!file_handle || !file_handle->filename) { 3353 if (strstr(file_handle->filename, ".phar") && !strstr(file_handle->filename, "://")) { 3356 zend_file_handle f = *file_handle; 3363 file_handle->filename = f.filename; 3364 if (file_handle->opened_path) { 3365 efree(file_handle->opened_path); 3367 file_handle->opened_path = f.opened_path; 3370 *file_handle = f; 3374 file_handle->type = ZEND_HANDLE_STREAM; 3380 file_handle->handle.stream.isatty = 0; [all …]
|
H A D | phar_object.c | 173 zend_file_handle file_handle; in phar_file_action() local 252 file_handle.type = ZEND_HANDLE_FILENAME; in phar_file_action() 253 file_handle.handle.fd = 0; in phar_file_action() 254 file_handle.filename = name; in phar_file_action() 255 file_handle.opened_path = NULL; in phar_file_action() 256 file_handle.free_filename = 0; in phar_file_action() 277 new_op_array = zend_compile_file(&file_handle, ZEND_REQUIRE TSRMLS_CC); in phar_file_action() 283 zend_destroy_file_handle(&file_handle TSRMLS_CC); in phar_file_action()
|
/PHP-5.5/ext/spl/ |
H A D | php_spl.c | 258 zend_file_handle file_handle; in spl_autoload() local 276 …ret = php_stream_open_for_zend_ex(class_file, &file_handle, USE_PATH|STREAM_OPEN_FOR_INCLUDE TSRML… in spl_autoload() 279 if (!file_handle.opened_path) { in spl_autoload() 280 file_handle.opened_path = estrndup(class_file, class_file_len); in spl_autoload() 282 …if (zend_hash_add(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path)+1,… in spl_autoload() 283 new_op_array = zend_compile_file(&file_handle, ZEND_REQUIRE TSRMLS_CC); in spl_autoload() 284 zend_destroy_file_handle(&file_handle TSRMLS_CC); in spl_autoload() 287 zend_file_handle_dtor(&file_handle TSRMLS_CC); in spl_autoload()
|
/PHP-5.5/ext/standard/ |
H A D | basic_functions.c | 5254 zend_file_handle file_handle = {0}; local 5262 file_handle.type = ZEND_HANDLE_FILENAME; 5263 file_handle.filename = filename; 5264 file_handle.free_filename = 0; 5265 file_handle.opened_path = NULL; 5267 if (open_file_for_scanning(&file_handle TSRMLS_CC) == FAILURE) { 5275 zend_destroy_file_handle(&file_handle TSRMLS_CC);
|
H A D | file.c | 1129 zval *file_handle; in PHP_FUNCTION() local 1134 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs*", &file_handle, &format, &format_len, &a… in PHP_FUNCTION() 1138 …what = zend_fetch_resource(&file_handle TSRMLS_CC, -1, "File-Handle", &type, 2, php_file_le_stream… in PHP_FUNCTION()
|
/PHP-5.5/ext/standard/tests/array/ |
H A D | array_search_variation4.phpt | 14 $file_handle = fopen(__FILE__, "r"); 20 $resources = array($file_handle, $dir_handle); 23 var_dump( array_search($file_handle, $resources, true) );
|
H A D | array_splice_variation4.phpt | 23 $file_handle = fopen(__FILE__, "r"); 25 test_splice ($file_handle);
|
H A D | end.phpt | 99 $file_handle = fopen(__FILE__, "r"); 105 $resources = array($file_handle, $dir_handle); 128 fclose( $file_handle ); //file resource handle deleted
|
H A D | end_64bit.phpt | 99 $file_handle = fopen(__FILE__, "r"); 105 $resources = array($file_handle, $dir_handle); 130 fclose( $file_handle ); //file resource handle deleted
|
H A D | in_array_variation4.phpt | 17 $file_handle = fopen(__FILE__, "r"); 23 $resources = array($file_handle, $dir_handle); 26 var_dump( in_array($file_handle, $resources, true) );
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | 005_variation-win32.phpt | 49 $file_handle = fopen("$file_path/005_variation1.tmp", "w"); 50 fclose($file_handle); 54 $file_handle = fopen("$file_path/005_variation2.tmp", "w"); 55 fclose($file_handle); 59 $file_handle = fopen("$file_path/005_variation3.tmp", "w"); 60 fclose($file_handle); 113 $file_handle = fopen($file_name2, "w"); 114 fclose($file_handle);
|
H A D | 005_variation.phpt | 52 $file_handle = fopen("$file_path/005_variation1.tmp", "w"); 53 fclose($file_handle); 57 $file_handle = fopen("$file_path/005_variation2.tmp", "w"); 58 fclose($file_handle); 62 $file_handle = fopen("$file_path/005_variation3.tmp", "w"); 63 fclose($file_handle); 128 $file_handle = fopen($file_name2, "w"); 129 fclose($file_handle);
|
H A D | 006_variation1.phpt | 34 $file_handle = fopen($file_name, "w"); 35 fclose($file_handle);
|
H A D | 006_variation2.phpt | 36 $file_handle = fopen($file_name, "w"); 37 fclose($file_handle);
|
H A D | 007_variation1.phpt | 30 $file_handle = fopen($file, "r"); //opening the file in "r" mode 31 var_dump($file_handle); //Check for the content of handle 32 var_dump( get_resource_type($file_handle) ); //Check for the type of resource 33 var_dump( ftell($file_handle) ); //Initial position of file pointer 34 var_dump( fread($file_handle, 100) ); //Check for read operation 35 var_dump( fwrite($file_handle, $string) ); //Check for write operation; fails; expected: 0 bytes 36 var_dump( fclose($file_handle) ); //Check for close operation on the file handle 37 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
|
H A D | 007_variation10.phpt | 30 $file_handle = fopen($file, "r+t"); //opening the file in "r+t" mode 31 var_dump($file_handle); //Check for the content of handle 32 var_dump( get_resource_type($file_handle) ); //Check for the type of resource 33 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 34 var_dump( fread($file_handle, 100) ); //Check for read operation 35 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end… 36 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t… 37 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en… 38 var_dump( fclose($file_handle) ); //Check for close operation on the file handle 39 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
|
H A D | 007_variation11-win32.phpt | 36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode 37 var_dump($file_handle); //Check for the content of handle 38 var_dump( get_resource_type($file_handle) ); //Check for the type of resource 39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 40 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t… 41 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en… 42 rewind($file_handle); 43 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: empty string 44 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg… 45 var_dump( fclose($file_handle) ); //Check for close operation on the file handle [all …]
|
H A D | 007_variation11.phpt | 36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode 37 var_dump($file_handle); //Check for the content of handle 38 var_dump( get_resource_type($file_handle) ); //Check for the type of resource 39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 40 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t… 41 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en… 42 rewind($file_handle); 43 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: empty string 44 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg… 45 var_dump( fclose($file_handle) ); //Check for close operation on the file handle [all …]
|
H A D | 007_variation12-win32.phpt | 36 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode 37 var_dump($file_handle); //Check for the content of handle 38 var_dump( get_resource_type($file_handle) ); //Check for the type of resource 39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 40 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t… 41 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en… 42 rewind($file_handle); 43 var_dump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of file 44 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end… 45 var_dump( fclose($file_handle) ); //Check for close operation on the file handle [all …]
|
H A D | 007_variation12.phpt | 36 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode 37 var_dump($file_handle); //Check for the content of handle 38 var_dump( get_resource_type($file_handle) ); //Check for the type of resource 39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 40 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t… 41 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en… 42 rewind($file_handle); 43 var_dump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of file 44 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end… 45 var_dump( fclose($file_handle) ); //Check for close operation on the file handle [all …]
|
H A D | 007_variation13-win32.phpt | 35 $file_handle = fopen($file, "at"); //opening the file "at" mode 36 var_dump($file_handle); //Check for the content of handle 37 var_dump( get_resource_type($file_handle) ); //Check for the type of resource 38 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t… 39 rewind($file_handle); 40 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: empty string 41 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end… 42 var_dump( fclose($file_handle) ); //Check for close operation on the file handle 43 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
|