summaryrefslogtreecommitdiff
path: root/ext/standard/tests
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-09-16 14:16:42 -0300
committerGabriel Caruso <carusogabriel34@gmail.com>2018-10-14 12:07:20 -0300
commit9c144e0d8217d1ef7a83c2498214308b21af749f (patch)
treed977ba0d8601de477c52f62accf02c120ef06253 /ext/standard/tests
parentb419732ddb0673dc5b15a67ee4bc7f06dd90d7d0 (diff)
downloadphp-git-9c144e0d8217d1ef7a83c2498214308b21af749f.tar.gz
Trim trailing whitespace in tests
Diffstat (limited to 'ext/standard/tests')
-rw-r--r--ext/standard/tests/array/005.phpt4
-rw-r--r--ext/standard/tests/array/009.phpt10
-rw-r--r--ext/standard/tests/array/array_change_key_case_variation.phpt12
-rw-r--r--ext/standard/tests/array/array_change_key_case_variation1.phpt4
-rw-r--r--ext/standard/tests/array/array_change_key_case_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_change_key_case_variation3.phpt4
-rw-r--r--ext/standard/tests/array/array_chunk2.phpt6
-rw-r--r--ext/standard/tests/array/array_chunk_basic1.phpt8
-rw-r--r--ext/standard/tests/array/array_chunk_basic2.phpt8
-rw-r--r--ext/standard/tests/array/array_chunk_variation4.phpt8
-rw-r--r--ext/standard/tests/array/array_chunk_variation6.phpt2
-rw-r--r--ext/standard/tests/array/array_chunk_variation7.phpt2
-rw-r--r--ext/standard/tests/array/array_combine_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_combine_variation5.phpt4
-rw-r--r--ext/standard/tests/array/array_count_values2.phpt18
-rw-r--r--ext/standard/tests/array/array_count_values_error.phpt2
-rw-r--r--ext/standard/tests/array/array_count_values_variation.phpt2
-rw-r--r--ext/standard/tests/array/array_diff_assoc.phpt2
-rw-r--r--ext/standard/tests/array/array_diff_assoc_variation1.phpt8
-rw-r--r--ext/standard/tests/array/array_diff_assoc_variation10.phpt10
-rw-r--r--ext/standard/tests/array/array_diff_assoc_variation2.phpt6
-rw-r--r--ext/standard/tests/array/array_diff_assoc_variation3.phpt12
-rw-r--r--ext/standard/tests/array/array_diff_assoc_variation4.phpt10
-rw-r--r--ext/standard/tests/array/array_diff_assoc_variation6.phpt40
-rw-r--r--ext/standard/tests/array/array_diff_assoc_variation8.phpt2
-rw-r--r--ext/standard/tests/array/array_diff_assoc_variation9.phpt2
-rw-r--r--ext/standard/tests/array/array_diff_key_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_diff_key_variation5.phpt4
-rw-r--r--ext/standard/tests/array/array_diff_key_variation6.phpt2
-rw-r--r--ext/standard/tests/array/array_diff_key_variation7.phpt4
-rw-r--r--ext/standard/tests/array/array_diff_key_variation8.phpt8
-rw-r--r--ext/standard/tests/array/array_diff_uassoc_variation10.phpt6
-rw-r--r--ext/standard/tests/array/array_diff_uassoc_variation11.phpt4
-rw-r--r--ext/standard/tests/array/array_diff_uassoc_variation12.phpt6
-rw-r--r--ext/standard/tests/array/array_diff_uassoc_variation9.phpt6
-rw-r--r--ext/standard/tests/array/array_diff_ukey_variation5.phpt8
-rw-r--r--ext/standard/tests/array/array_diff_ukey_variation6.phpt2
-rw-r--r--ext/standard/tests/array/array_diff_ukey_variation7.phpt4
-rw-r--r--ext/standard/tests/array/array_diff_ukey_variation8.phpt2
-rw-r--r--ext/standard/tests/array/array_diff_ukey_variation9.phpt4
-rw-r--r--ext/standard/tests/array/array_diff_variation1.phpt6
-rw-r--r--ext/standard/tests/array/array_diff_variation10.phpt10
-rw-r--r--ext/standard/tests/array/array_diff_variation2.phpt4
-rw-r--r--ext/standard/tests/array/array_diff_variation3.phpt14
-rw-r--r--ext/standard/tests/array/array_diff_variation4.phpt14
-rw-r--r--ext/standard/tests/array/array_diff_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_diff_variation6.phpt2
-rw-r--r--ext/standard/tests/array/array_fill_basic.phpt4
-rw-r--r--ext/standard/tests/array/array_fill_keys_error.phpt2
-rw-r--r--ext/standard/tests/array/array_fill_keys_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_fill_keys_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_fill_keys_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_fill_keys_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_fill_object.phpt8
-rw-r--r--ext/standard/tests/array/array_fill_variation1.phpt4
-rw-r--r--ext/standard/tests/array/array_fill_variation1_64bit.phpt4
-rw-r--r--ext/standard/tests/array/array_fill_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_fill_variation3.phpt4
-rw-r--r--ext/standard/tests/array/array_fill_variation4.phpt6
-rw-r--r--ext/standard/tests/array/array_fill_variation5.phpt4
-rw-r--r--ext/standard/tests/array/array_filter.phpt2
-rw-r--r--ext/standard/tests/array/array_filter_object.phpt4
-rw-r--r--ext/standard/tests/array/array_filter_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_filter_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_filter_variation5.phpt6
-rw-r--r--ext/standard/tests/array/array_filter_variation6.phpt4
-rw-r--r--ext/standard/tests/array/array_flip.phpt12
-rw-r--r--ext/standard/tests/array/array_flip_basic.phpt4
-rw-r--r--ext/standard/tests/array/array_flip_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_flip_variation4.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_assoc_variation1.phpt6
-rw-r--r--ext/standard/tests/array/array_intersect_assoc_variation2.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_assoc_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_intersect_assoc_variation7.phpt8
-rw-r--r--ext/standard/tests/array/array_intersect_assoc_variation8.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_assoc_variation9.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_key_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_intersect_key_variation5.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_key_variation6.phpt2
-rw-r--r--ext/standard/tests/array/array_intersect_key_variation7.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_key_variation8.phpt10
-rw-r--r--ext/standard/tests/array/array_intersect_uassoc_variation10.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_error.phpt2
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_variation6.phpt2
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_variation7.phpt2
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_variation9.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_variation1.phpt6
-rw-r--r--ext/standard/tests/array/array_intersect_variation2.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_variation7.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_variation8.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_variation9.phpt4
-rw-r--r--ext/standard/tests/array/array_key_exists.phpt22
-rw-r--r--ext/standard/tests/array/array_key_exists_object1.phpt2
-rw-r--r--ext/standard/tests/array/array_key_exists_object2.phpt2
-rw-r--r--ext/standard/tests/array/array_key_exists_variation1.phpt4
-rw-r--r--ext/standard/tests/array/array_key_exists_variation2.phpt4
-rw-r--r--ext/standard/tests/array/array_key_exists_variation5.phpt4
-rw-r--r--ext/standard/tests/array/array_key_exists_variation6.phpt6
-rw-r--r--ext/standard/tests/array/array_key_exists_variation8.phpt4
-rw-r--r--ext/standard/tests/array/array_keys_variation_001.phpt2
-rw-r--r--ext/standard/tests/array/array_keys_variation_002.phpt2
-rw-r--r--ext/standard/tests/array/array_keys_variation_002_64bit.phpt2
-rw-r--r--ext/standard/tests/array/array_keys_variation_003.phpt4
-rw-r--r--ext/standard/tests/array/array_keys_variation_004.phpt2
-rw-r--r--ext/standard/tests/array/array_keys_variation_005.phpt2
-rw-r--r--ext/standard/tests/array/array_map_001.phpt12
-rw-r--r--ext/standard/tests/array/array_map_variation17.phpt2
-rw-r--r--ext/standard/tests/array/array_map_variation18.phpt4
-rw-r--r--ext/standard/tests/array/array_map_variation4.phpt4
-rw-r--r--ext/standard/tests/array/array_map_variation5.phpt4
-rw-r--r--ext/standard/tests/array/array_map_variation6.phpt2
-rw-r--r--ext/standard/tests/array/array_merge.phpt10
-rw-r--r--ext/standard/tests/array/array_merge_recursive_variation1.phpt6
-rw-r--r--ext/standard/tests/array/array_merge_recursive_variation10.phpt2
-rw-r--r--ext/standard/tests/array/array_merge_recursive_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_merge_recursive_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_merge_recursive_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_merge_recursive_variation8.phpt2
-rw-r--r--ext/standard/tests/array/array_merge_variation1.phpt4
-rw-r--r--ext/standard/tests/array/array_merge_variation10.phpt2
-rw-r--r--ext/standard/tests/array/array_merge_variation2.phpt4
-rw-r--r--ext/standard/tests/array/array_merge_variation3.phpt6
-rw-r--r--ext/standard/tests/array/array_merge_variation4.phpt10
-rw-r--r--ext/standard/tests/array/array_multisort_basic1.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_basic2.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_case.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_error.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_incase.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_natural.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_natural_case.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_natural_incase.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_variation10.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_variation6.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_variation7.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_variation8.phpt2
-rw-r--r--ext/standard/tests/array/array_multisort_variation9.phpt2
-rw-r--r--ext/standard/tests/array/array_pad.phpt2
-rw-r--r--ext/standard/tests/array/array_pad_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_pad_variation3.phpt4
-rw-r--r--ext/standard/tests/array/array_pop.phpt4
-rw-r--r--ext/standard/tests/array/array_product_error.phpt2
-rw-r--r--ext/standard/tests/array/array_product_variation1.phpt4
-rw-r--r--ext/standard/tests/array/array_product_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_product_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_product_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_product_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_push.phpt4
-rw-r--r--ext/standard/tests/array/array_push_variation1.phpt4
-rw-r--r--ext/standard/tests/array/array_push_variation2.phpt4
-rw-r--r--ext/standard/tests/array/array_push_variation6.phpt4
-rw-r--r--ext/standard/tests/array/array_rand.phpt2
-rw-r--r--ext/standard/tests/array/array_rand_basic2.phpt2
-rw-r--r--ext/standard/tests/array/array_rand_variation1.phpt8
-rw-r--r--ext/standard/tests/array/array_rand_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_rand_variation3.phpt4
-rw-r--r--ext/standard/tests/array/array_rand_variation4.phpt10
-rw-r--r--ext/standard/tests/array/array_rand_variation5.phpt4
-rw-r--r--ext/standard/tests/array/array_reduce.phpt2
-rw-r--r--ext/standard/tests/array/array_reduce_error.phpt2
-rw-r--r--ext/standard/tests/array/array_reduce_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_reduce_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_reduce_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_reverse_variation1.phpt4
-rw-r--r--ext/standard/tests/array/array_reverse_variation4.phpt4
-rw-r--r--ext/standard/tests/array/array_reverse_variation5.phpt4
-rw-r--r--ext/standard/tests/array/array_reverse_variation6.phpt4
-rw-r--r--ext/standard/tests/array/array_search1.phpt2
-rw-r--r--ext/standard/tests/array/array_search_variation1.phpt10
-rw-r--r--ext/standard/tests/array/array_search_variation2.phpt10
-rw-r--r--ext/standard/tests/array/array_search_variation3.phpt10
-rw-r--r--ext/standard/tests/array/array_search_variation4.phpt26
-rw-r--r--ext/standard/tests/array/array_shift_variation1.phpt4
-rw-r--r--ext/standard/tests/array/array_shift_variation2.phpt6
-rw-r--r--ext/standard/tests/array/array_shift_variation3.phpt10
-rw-r--r--ext/standard/tests/array/array_slice_variation11.phpt4
-rw-r--r--ext/standard/tests/array/array_slice_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_slice_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_slice_variation4.phpt4
-rw-r--r--ext/standard/tests/array/array_slice_variation7.phpt10
-rw-r--r--ext/standard/tests/array/array_splice_basic.phpt4
-rw-r--r--ext/standard/tests/array/array_splice_errors.phpt4
-rw-r--r--ext/standard/tests/array/array_splice_variation1.phpt4
-rw-r--r--ext/standard/tests/array/array_splice_variation2.phpt4
-rw-r--r--ext/standard/tests/array/array_splice_variation3.phpt4
-rw-r--r--ext/standard/tests/array/array_splice_variation4.phpt4
-rw-r--r--ext/standard/tests/array/array_sum_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_sum_variation3.phpt4
-rw-r--r--ext/standard/tests/array/array_udiff_assoc_error.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_assoc_variation.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_assoc_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_assoc_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_assoc_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_assoc_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_assoc_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_error.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_uassoc_error.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_uassoc_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_uassoc_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_uassoc_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_uassoc_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_uassoc_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_uassoc_variation6.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_udiff_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_assoc_basic2.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_assoc_error.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_assoc_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_assoc_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_assoc_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_assoc_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_assoc_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_error.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_uassoc_error.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_uassoc_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_uassoc_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_uassoc_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_uassoc_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_uassoc_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_uassoc_variation6.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_uintersect_variation5.phpt2
-rw-r--r--ext/standard/tests/array/array_unique_variation2.phpt2
-rw-r--r--ext/standard/tests/array/array_unique_variation3.phpt2
-rw-r--r--ext/standard/tests/array/array_unique_variation4.phpt2
-rw-r--r--ext/standard/tests/array/array_unique_variation8.phpt2
-rw-r--r--ext/standard/tests/array/array_unshift.phpt2
-rw-r--r--ext/standard/tests/array/array_unshift_basic1.phpt2
-rw-r--r--ext/standard/tests/array/array_unshift_basic2.phpt2
-rw-r--r--ext/standard/tests/array/array_unshift_variation2.phpt10
-rw-r--r--ext/standard/tests/array/array_unshift_variation4.phpt4
-rw-r--r--ext/standard/tests/array/array_unshift_variation5.phpt6
-rw-r--r--ext/standard/tests/array/array_unshift_variation7.phpt4
-rw-r--r--ext/standard/tests/array/array_unshift_variation8.phpt4
-rw-r--r--ext/standard/tests/array/array_unshift_variation9.phpt8
-rw-r--r--ext/standard/tests/array/array_values_errors.phpt2
-rw-r--r--ext/standard/tests/array/array_values_variation.phpt6
-rw-r--r--ext/standard/tests/array/array_values_variation1.phpt4
-rw-r--r--ext/standard/tests/array/array_values_variation2.phpt6
-rw-r--r--ext/standard/tests/array/array_values_variation3.phpt10
-rw-r--r--ext/standard/tests/array/array_values_variation_64bit.phpt6
-rw-r--r--ext/standard/tests/array/array_walk.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_basic2.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_closure.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_error2.phpt4
-rw-r--r--ext/standard/tests/array/array_walk_object1.phpt4
-rw-r--r--ext/standard/tests/array/array_walk_object2.phpt6
-rw-r--r--ext/standard/tests/array/array_walk_objects.phpt6
-rw-r--r--ext/standard/tests/array/array_walk_rec_objects.phpt6
-rw-r--r--ext/standard/tests/array/array_walk_recursive1.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_recursive_basic2.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_recursive_error2.phpt4
-rw-r--r--ext/standard/tests/array/array_walk_recursive_object1.phpt4
-rw-r--r--ext/standard/tests/array/array_walk_recursive_object2.phpt6
-rw-r--r--ext/standard/tests/array/array_walk_recursive_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_recursive_variation3.phpt6
-rw-r--r--ext/standard/tests/array/array_walk_recursive_variation7.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_recursive_variation9.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_variation1.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_variation3.phpt6
-rw-r--r--ext/standard/tests/array/array_walk_variation7.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_variation9.phpt2
-rw-r--r--ext/standard/tests/array/arsort_object1.phpt4
-rw-r--r--ext/standard/tests/array/arsort_object2.phpt8
-rw-r--r--ext/standard/tests/array/arsort_variation1.phpt2
-rw-r--r--ext/standard/tests/array/arsort_variation10.phpt4
-rw-r--r--ext/standard/tests/array/arsort_variation2.phpt2
-rw-r--r--ext/standard/tests/array/arsort_variation3.phpt12
-rw-r--r--ext/standard/tests/array/arsort_variation5.phpt6
-rw-r--r--ext/standard/tests/array/arsort_variation8.phpt4
-rw-r--r--ext/standard/tests/array/asort_object1.phpt4
-rw-r--r--ext/standard/tests/array/asort_object2.phpt8
-rw-r--r--ext/standard/tests/array/asort_variation1.phpt2
-rw-r--r--ext/standard/tests/array/asort_variation10.phpt4
-rw-r--r--ext/standard/tests/array/asort_variation2.phpt2
-rw-r--r--ext/standard/tests/array/asort_variation3.phpt12
-rw-r--r--ext/standard/tests/array/asort_variation5.phpt6
-rw-r--r--ext/standard/tests/array/asort_variation8.phpt4
-rw-r--r--ext/standard/tests/array/bug21998.phpt6
-rw-r--r--ext/standard/tests/array/bug22463.phpt2
-rw-r--r--ext/standard/tests/array/bug24198.phpt4
-rw-r--r--ext/standard/tests/array/bug24980.phpt4
-rw-r--r--ext/standard/tests/array/bug30074.phpt2
-rw-r--r--ext/standard/tests/array/bug30833.phpt2
-rw-r--r--ext/standard/tests/array/bug33382.phpt2
-rw-r--r--ext/standard/tests/array/bug34066.phpt2
-rw-r--r--ext/standard/tests/array/bug34066_1.phpt2
-rw-r--r--ext/standard/tests/array/bug35014.phpt2
-rw-r--r--ext/standard/tests/array/bug35014_64bit.phpt2
-rw-r--r--ext/standard/tests/array/bug35022.phpt2
-rw-r--r--ext/standard/tests/array/bug35821.phpt2
-rw-r--r--ext/standard/tests/array/bug36975.phpt12
-rw-r--r--ext/standard/tests/array/bug38464.phpt2
-rw-r--r--ext/standard/tests/array/bug39576.phpt2
-rw-r--r--ext/standard/tests/array/bug40709.phpt2
-rw-r--r--ext/standard/tests/array/bug41121.phpt4
-rw-r--r--ext/standard/tests/array/bug41686.phpt2
-rw-r--r--ext/standard/tests/array/bug42850.phpt4
-rw-r--r--ext/standard/tests/array/bug43495.phpt2
-rw-r--r--ext/standard/tests/array/bug48484.phpt2
-rw-r--r--ext/standard/tests/array/bug50006_1.phpt2
-rw-r--r--ext/standard/tests/array/bug50006_2.phpt2
-rw-r--r--ext/standard/tests/array/bug61058.phpt2
-rw-r--r--ext/standard/tests/array/bug65304.phpt2
-rw-r--r--ext/standard/tests/array/bug70713.phpt4
-rw-r--r--ext/standard/tests/array/bug71220.phpt2
-rw-r--r--ext/standard/tests/array/compact_error.phpt2
-rw-r--r--ext/standard/tests/array/count_basic.phpt2
-rw-r--r--ext/standard/tests/array/count_error.phpt2
-rw-r--r--ext/standard/tests/array/count_variation1.phpt6
-rw-r--r--ext/standard/tests/array/count_variation2.phpt6
-rw-r--r--ext/standard/tests/array/count_variation3.phpt2
-rw-r--r--ext/standard/tests/array/current_variation1.phpt4
-rw-r--r--ext/standard/tests/array/current_variation2.phpt6
-rw-r--r--ext/standard/tests/array/each_basic.phpt2
-rw-r--r--ext/standard/tests/array/each_variation1.phpt4
-rw-r--r--ext/standard/tests/array/each_variation2.phpt6
-rw-r--r--ext/standard/tests/array/each_variation3.phpt10
-rw-r--r--ext/standard/tests/array/end.phpt8
-rw-r--r--ext/standard/tests/array/end_64bit.phpt8
-rw-r--r--ext/standard/tests/array/end_variation1.phpt4
-rw-r--r--ext/standard/tests/array/extract_error.phpt2
-rw-r--r--ext/standard/tests/array/extract_variation1.phpt2
-rw-r--r--ext/standard/tests/array/extract_variation2.phpt2
-rw-r--r--ext/standard/tests/array/extract_variation3.phpt2
-rw-r--r--ext/standard/tests/array/extract_variation4.phpt2
-rw-r--r--ext/standard/tests/array/extract_variation5.phpt2
-rw-r--r--ext/standard/tests/array/extract_variation6.phpt2
-rw-r--r--ext/standard/tests/array/extract_variation7.phpt2
-rw-r--r--ext/standard/tests/array/extract_variation8.phpt2
-rw-r--r--ext/standard/tests/array/extract_variation9.phpt2
-rw-r--r--ext/standard/tests/array/in_array_variation1.phpt10
-rw-r--r--ext/standard/tests/array/in_array_variation2.phpt10
-rw-r--r--ext/standard/tests/array/in_array_variation3.phpt10
-rw-r--r--ext/standard/tests/array/in_array_variation4.phpt26
-rw-r--r--ext/standard/tests/array/key_exists_basic.phpt2
-rw-r--r--ext/standard/tests/array/key_exists_error.phpt2
-rw-r--r--ext/standard/tests/array/key_exists_variation1.phpt2
-rw-r--r--ext/standard/tests/array/key_exists_variation2.phpt18
-rw-r--r--ext/standard/tests/array/key_variation1.phpt4
-rw-r--r--ext/standard/tests/array/key_variation2.phpt10
-rw-r--r--ext/standard/tests/array/krsort_basic.phpt2
-rw-r--r--ext/standard/tests/array/krsort_error.phpt2
-rw-r--r--ext/standard/tests/array/krsort_object.phpt4
-rw-r--r--ext/standard/tests/array/krsort_variation1.phpt2
-rw-r--r--ext/standard/tests/array/krsort_variation10.phpt2
-rw-r--r--ext/standard/tests/array/krsort_variation2.phpt2
-rw-r--r--ext/standard/tests/array/krsort_variation3.phpt10
-rw-r--r--ext/standard/tests/array/krsort_variation5.phpt6
-rw-r--r--ext/standard/tests/array/krsort_variation6.phpt2
-rw-r--r--ext/standard/tests/array/krsort_variation7.phpt4
-rw-r--r--ext/standard/tests/array/ksort_object.phpt4
-rw-r--r--ext/standard/tests/array/ksort_variation1.phpt2
-rw-r--r--ext/standard/tests/array/ksort_variation10.phpt4
-rw-r--r--ext/standard/tests/array/ksort_variation11.phpt2
-rw-r--r--ext/standard/tests/array/ksort_variation2.phpt2
-rw-r--r--ext/standard/tests/array/ksort_variation3.phpt12
-rw-r--r--ext/standard/tests/array/ksort_variation5.phpt6
-rw-r--r--ext/standard/tests/array/ksort_variation6.phpt2
-rw-r--r--ext/standard/tests/array/ksort_variation7.phpt4
-rw-r--r--ext/standard/tests/array/max.phpt2
-rw-r--r--ext/standard/tests/array/max_basic.phpt4
-rw-r--r--ext/standard/tests/array/max_basiclong_64bit.phpt6
-rw-r--r--ext/standard/tests/array/max_error.phpt4
-rw-r--r--ext/standard/tests/array/max_variation1.phpt4
-rw-r--r--ext/standard/tests/array/max_variation2.phpt4
-rw-r--r--ext/standard/tests/array/min.phpt2
-rw-r--r--ext/standard/tests/array/min_basic.phpt4
-rw-r--r--ext/standard/tests/array/min_basiclong_64bit.phpt6
-rw-r--r--ext/standard/tests/array/min_error.phpt4
-rw-r--r--ext/standard/tests/array/min_variation1.phpt4
-rw-r--r--ext/standard/tests/array/min_variation2.phpt4
-rw-r--r--ext/standard/tests/array/natcasesort_object1.phpt2
-rw-r--r--ext/standard/tests/array/natcasesort_variation1.phpt4
-rw-r--r--ext/standard/tests/array/natcasesort_variation11.phpt14
-rw-r--r--ext/standard/tests/array/natcasesort_variation2.phpt6
-rw-r--r--ext/standard/tests/array/natcasesort_variation3.phpt2
-rw-r--r--ext/standard/tests/array/next_variation1.phpt4
-rw-r--r--ext/standard/tests/array/prev_variation1.phpt4
-rw-r--r--ext/standard/tests/array/range.phpt10
-rw-r--r--ext/standard/tests/array/range_errors.phpt6
-rw-r--r--ext/standard/tests/array/reset_variation1.phpt4
-rw-r--r--ext/standard/tests/array/rsort_basic.phpt2
-rw-r--r--ext/standard/tests/array/rsort_object1.phpt4
-rw-r--r--ext/standard/tests/array/rsort_object2.phpt4
-rw-r--r--ext/standard/tests/array/rsort_variation1.phpt4
-rw-r--r--ext/standard/tests/array/rsort_variation2.phpt10
-rw-r--r--ext/standard/tests/array/rsort_variation3.phpt10
-rw-r--r--ext/standard/tests/array/rsort_variation5.phpt2
-rw-r--r--ext/standard/tests/array/rsort_variation8.phpt8
-rw-r--r--ext/standard/tests/array/shuffle_variation2.phpt4
-rw-r--r--ext/standard/tests/array/shuffle_variation3.phpt4
-rw-r--r--ext/standard/tests/array/shuffle_variation4.phpt4
-rw-r--r--ext/standard/tests/array/shuffle_variation5.phpt8
-rw-r--r--ext/standard/tests/array/sizeof_basic1.phpt2
-rw-r--r--ext/standard/tests/array/sizeof_basic2.phpt2
-rw-r--r--ext/standard/tests/array/sizeof_object2.phpt8
-rw-r--r--ext/standard/tests/array/sizeof_variation1.phpt8
-rw-r--r--ext/standard/tests/array/sizeof_variation2.phpt8
-rw-r--r--ext/standard/tests/array/sizeof_variation4.phpt6
-rw-r--r--ext/standard/tests/array/sizeof_variation5.phpt4
-rw-r--r--ext/standard/tests/array/sort_basic.phpt2
-rw-r--r--ext/standard/tests/array/sort_error.phpt2
-rw-r--r--ext/standard/tests/array/sort_object1.phpt4
-rw-r--r--ext/standard/tests/array/sort_object2.phpt8
-rw-r--r--ext/standard/tests/array/sort_variation1.phpt2
-rw-r--r--ext/standard/tests/array/sort_variation2.phpt4
-rw-r--r--ext/standard/tests/array/sort_variation3.phpt12
-rw-r--r--ext/standard/tests/array/sort_variation8.phpt4
-rw-r--r--ext/standard/tests/array/uasort_object1.phpt4
-rw-r--r--ext/standard/tests/array/uasort_object2.phpt4
-rw-r--r--ext/standard/tests/array/uasort_variation1.phpt4
-rw-r--r--ext/standard/tests/array/uasort_variation10.phpt2
-rw-r--r--ext/standard/tests/array/uasort_variation5.phpt2
-rw-r--r--ext/standard/tests/array/uksort_error.phpt2
-rw-r--r--ext/standard/tests/array/uksort_variation1.phpt2
-rw-r--r--ext/standard/tests/array/uksort_variation2.phpt2
-rw-r--r--ext/standard/tests/array/unexpected_array_mod_bug.phpt2
-rw-r--r--ext/standard/tests/array/usort_variation1.phpt4
-rw-r--r--ext/standard/tests/array/usort_variation10.phpt4
-rw-r--r--ext/standard/tests/array/usort_variation3.phpt14
-rw-r--r--ext/standard/tests/array/usort_variation4.phpt16
-rw-r--r--ext/standard/tests/array/usort_variation5.phpt8
-rw-r--r--ext/standard/tests/array/usort_variation8.phpt2
-rw-r--r--ext/standard/tests/array/usort_variation9.phpt2
-rw-r--r--ext/standard/tests/assert/assert.phpt2
-rw-r--r--ext/standard/tests/assert/assert03.phpt14
-rw-r--r--ext/standard/tests/assert/assert04.phpt18
-rw-r--r--ext/standard/tests/assert/assert_basic.phpt2
-rw-r--r--ext/standard/tests/assert/assert_basic1.phpt2
-rw-r--r--ext/standard/tests/assert/assert_basic2.phpt8
-rw-r--r--ext/standard/tests/assert/assert_basic3.phpt2
-rw-r--r--ext/standard/tests/assert/assert_basic5.phpt2
-rw-r--r--ext/standard/tests/assert/assert_basic6.phpt2
-rw-r--r--ext/standard/tests/assert/assert_error.phpt2
-rw-r--r--ext/standard/tests/assert/assert_error1.phpt2
-rw-r--r--ext/standard/tests/assert/assert_error2.phpt2
-rw-r--r--ext/standard/tests/assert/assert_variation.phpt6
-rw-r--r--ext/standard/tests/bug75220.phpt2
-rw-r--r--ext/standard/tests/class_object/class_exists_basic_001.phpt2
-rw-r--r--ext/standard/tests/class_object/class_exists_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/class_exists_variation_001.phpt2
-rw-r--r--ext/standard/tests/class_object/class_exists_variation_002.phpt2
-rw-r--r--ext/standard/tests/class_object/class_exists_variation_003.phpt2
-rw-r--r--ext/standard/tests/class_object/get_class_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/get_class_methods_basic_001.phpt4
-rw-r--r--ext/standard/tests/class_object/get_class_methods_basic_002.phpt8
-rw-r--r--ext/standard/tests/class_object/get_class_methods_basic_003.phpt6
-rw-r--r--ext/standard/tests/class_object/get_class_methods_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/get_class_methods_variation_001.phpt2
-rw-r--r--ext/standard/tests/class_object/get_class_methods_variation_002.phpt2
-rw-r--r--ext/standard/tests/class_object/get_class_variation_002.phpt2
-rw-r--r--ext/standard/tests/class_object/get_class_vars_variation1.phpt2
-rw-r--r--ext/standard/tests/class_object/get_class_vars_variation2.phpt12
-rw-r--r--ext/standard/tests/class_object/get_declared_classes_basic_001.phpt4
-rw-r--r--ext/standard/tests/class_object/get_declared_classes_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/get_declared_classes_variation1.phpt2
-rw-r--r--ext/standard/tests/class_object/get_declared_interfaces_basic_001.phpt4
-rw-r--r--ext/standard/tests/class_object/get_declared_interfaces_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/get_declared_interfaces_variation1.phpt2
-rw-r--r--ext/standard/tests/class_object/get_declared_traits_basic_001.phpt4
-rw-r--r--ext/standard/tests/class_object/get_declared_traits_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/get_declared_traits_variation1.phpt2
-rw-r--r--ext/standard/tests/class_object/get_object_vars_basic_001.phpt20
-rw-r--r--ext/standard/tests/class_object/get_object_vars_basic_002.phpt12
-rw-r--r--ext/standard/tests/class_object/get_object_vars_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/get_object_vars_variation_001.phpt2
-rw-r--r--ext/standard/tests/class_object/get_object_vars_variation_002.phpt2
-rw-r--r--ext/standard/tests/class_object/get_object_vars_variation_003.phpt2
-rw-r--r--ext/standard/tests/class_object/get_parent_class_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/get_parent_class_variation_001.phpt2
-rw-r--r--ext/standard/tests/class_object/get_parent_class_variation_002.phpt2
-rw-r--r--ext/standard/tests/class_object/interface_exists_error.phpt2
-rw-r--r--ext/standard/tests/class_object/interface_exists_variation1.phpt2
-rw-r--r--ext/standard/tests/class_object/interface_exists_variation2.phpt2
-rw-r--r--ext/standard/tests/class_object/interface_exists_variation3.phpt2
-rw-r--r--ext/standard/tests/class_object/interface_exists_variation4.phpt2
-rw-r--r--ext/standard/tests/class_object/is_a.phpt14
-rw-r--r--ext/standard/tests/class_object/is_a_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/is_a_variation_001.phpt4
-rw-r--r--ext/standard/tests/class_object/is_a_variation_002.phpt2
-rw-r--r--ext/standard/tests/class_object/is_a_variation_003.phpt2
-rw-r--r--ext/standard/tests/class_object/is_subclass_of_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/is_subclass_of_variation_001.phpt2
-rw-r--r--ext/standard/tests/class_object/is_subclass_of_variation_002.phpt2
-rw-r--r--ext/standard/tests/class_object/is_subclass_of_variation_003.phpt2
-rw-r--r--ext/standard/tests/class_object/is_subclass_of_variation_004.phpt2
-rw-r--r--ext/standard/tests/class_object/method_exists_basic_001.phpt4
-rw-r--r--ext/standard/tests/class_object/method_exists_basic_002.phpt2
-rw-r--r--ext/standard/tests/class_object/method_exists_basic_003.phpt4
-rw-r--r--ext/standard/tests/class_object/method_exists_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/method_exists_variation_001.phpt2
-rw-r--r--ext/standard/tests/class_object/method_exists_variation_002.phpt2
-rw-r--r--ext/standard/tests/class_object/method_exists_variation_003.phpt2
-rw-r--r--ext/standard/tests/class_object/property_exists_error.phpt2
-rw-r--r--ext/standard/tests/class_object/property_exists_variation1.phpt2
-rw-r--r--ext/standard/tests/class_object/trait_class_exists_variation_003.phpt2
-rw-r--r--ext/standard/tests/class_object/trait_exists_basic_001.phpt2
-rw-r--r--ext/standard/tests/class_object/trait_exists_error_001.phpt2
-rw-r--r--ext/standard/tests/class_object/trait_exists_variation_001.phpt2
-rw-r--r--ext/standard/tests/class_object/trait_exists_variation_002.phpt2
-rw-r--r--ext/standard/tests/dir/chdir_variation1-win32-mb.phpt8
-rw-r--r--ext/standard/tests/dir/chdir_variation1.phpt8
-rw-r--r--ext/standard/tests/dir/closedir_variation1.phpt4
-rw-r--r--ext/standard/tests/dir/dir_basic-win32-mb.phpt2
-rw-r--r--ext/standard/tests/dir/dir_basic.phpt2
-rw-r--r--ext/standard/tests/dir/dir_error.phpt2
-rw-r--r--ext/standard/tests/dir/dir_variation2-win32-mb.phpt2
-rw-r--r--ext/standard/tests/dir/dir_variation2.phpt2
-rw-r--r--ext/standard/tests/dir/dir_variation3.phpt2
-rw-r--r--ext/standard/tests/dir/dir_variation4-win32-mb.phpt2
-rw-r--r--ext/standard/tests/dir/dir_variation4.phpt2
-rw-r--r--ext/standard/tests/dir/dir_variation5.phpt2
-rw-r--r--ext/standard/tests/dir/dir_variation6.phpt2
-rw-r--r--ext/standard/tests/dir/dir_variation7.phpt4
-rw-r--r--ext/standard/tests/dir/dir_variation8.phpt6
-rw-r--r--ext/standard/tests/dir/dir_variation9.phpt4
-rw-r--r--ext/standard/tests/dir/opendir_variation2-win32-mb.phpt6
-rw-r--r--ext/standard/tests/dir/opendir_variation2.phpt6
-rw-r--r--ext/standard/tests/dir/opendir_variation6-win32.phpt2
-rw-r--r--ext/standard/tests/dir/opendir_variation6.phpt2
-rw-r--r--ext/standard/tests/dir/opendir_variation7.phpt2
-rw-r--r--ext/standard/tests/dir/readdir_error-win32-mb.phpt2
-rw-r--r--ext/standard/tests/dir/readdir_error.phpt2
-rw-r--r--ext/standard/tests/dir/readdir_variation1.phpt4
-rw-r--r--ext/standard/tests/dir/readdir_variation3-win32-mb.phpt2
-rw-r--r--ext/standard/tests/dir/readdir_variation3.phpt2
-rw-r--r--ext/standard/tests/dir/readdir_variation4-win32-mb.phpt6
-rw-r--r--ext/standard/tests/dir/readdir_variation4.phpt6
-rw-r--r--ext/standard/tests/dir/readdir_variation5.phpt2
-rw-r--r--ext/standard/tests/dir/rewinddir_variation1.phpt4
-rw-r--r--ext/standard/tests/dir/scandir_variation1.phpt4
-rw-r--r--ext/standard/tests/dir/scandir_variation2-mb.phpt4
-rw-r--r--ext/standard/tests/dir/scandir_variation2.phpt4
-rw-r--r--ext/standard/tests/dir/scandir_variation3-win32-mb.phpt4
-rw-r--r--ext/standard/tests/dir/scandir_variation3.phpt4
-rw-r--r--ext/standard/tests/dir/scandir_variation5.phpt2
-rw-r--r--ext/standard/tests/dir/scandir_variation6.phpt2
-rw-r--r--ext/standard/tests/dir/scandir_variation7.phpt4
-rw-r--r--ext/standard/tests/dir/scandir_variation8-win32-mb.phpt2
-rw-r--r--ext/standard/tests/dir/scandir_variation8.phpt2
-rw-r--r--ext/standard/tests/directory/DirectoryClass_basic_001.phpt2
-rw-r--r--ext/standard/tests/directory/bug74589_utf8.phpt2
-rw-r--r--ext/standard/tests/file/004.phpt6
-rw-r--r--ext/standard/tests/file/005_basic.phpt2
-rw-r--r--ext/standard/tests/file/005_error.phpt2
-rw-r--r--ext/standard/tests/file/005_variation-win32.phpt12
-rw-r--r--ext/standard/tests/file/005_variation.phpt12
-rw-r--r--ext/standard/tests/file/005_variation2-win32.phpt8
-rw-r--r--ext/standard/tests/file/005_variation2.phpt8
-rw-r--r--ext/standard/tests/file/006_basic.phpt2
-rw-r--r--ext/standard/tests/file/006_variation1.phpt6
-rw-r--r--ext/standard/tests/file/006_variation2.phpt6
-rw-r--r--ext/standard/tests/file/007_basic.phpt2
-rw-r--r--ext/standard/tests/file/007_variation1.phpt2
-rw-r--r--ext/standard/tests/file/007_variation10.phpt2
-rw-r--r--ext/standard/tests/file/007_variation11-win32-mb.phpt2
-rw-r--r--ext/standard/tests/file/007_variation11-win32.phpt2
-rw-r--r--ext/standard/tests/file/007_variation11.phpt2
-rw-r--r--ext/standard/tests/file/007_variation12-win32.phpt2
-rw-r--r--ext/standard/tests/file/007_variation12.phpt2
-rw-r--r--ext/standard/tests/file/007_variation13-win32.phpt2
-rw-r--r--ext/standard/tests/file/007_variation13.phpt2
-rw-r--r--ext/standard/tests/file/007_variation14.phpt2
-rw-r--r--ext/standard/tests/file/007_variation15.phpt2
-rw-r--r--ext/standard/tests/file/007_variation16.phpt2
-rw-r--r--ext/standard/tests/file/007_variation17.phpt2
-rw-r--r--ext/standard/tests/file/007_variation18.phpt2
-rw-r--r--ext/standard/tests/file/007_variation19.phpt2
-rw-r--r--ext/standard/tests/file/007_variation2.phpt2
-rw-r--r--ext/standard/tests/file/007_variation20.phpt2
-rw-r--r--ext/standard/tests/file/007_variation21.phpt2
-rw-r--r--ext/standard/tests/file/007_variation22.phpt2
-rw-r--r--ext/standard/tests/file/007_variation23.phpt2
-rw-r--r--ext/standard/tests/file/007_variation24.phpt2
-rw-r--r--ext/standard/tests/file/007_variation3.phpt2
-rw-r--r--ext/standard/tests/file/007_variation4.phpt2
-rw-r--r--ext/standard/tests/file/007_variation5.phpt2
-rw-r--r--ext/standard/tests/file/007_variation6.phpt2
-rw-r--r--ext/standard/tests/file/007_variation7.phpt2
-rw-r--r--ext/standard/tests/file/007_variation8.phpt2
-rw-r--r--ext/standard/tests/file/007_variation9.phpt2
-rw-r--r--ext/standard/tests/file/basename-win32.phpt12
-rw-r--r--ext/standard/tests/file/basename_basic-win32.phpt2
-rw-r--r--ext/standard/tests/file/basename_basic.phpt2
-rw-r--r--ext/standard/tests/file/basename_error.phpt2
-rw-r--r--ext/standard/tests/file/basename_variation1-win32.phpt4
-rw-r--r--ext/standard/tests/file/basename_variation1.phpt4
-rw-r--r--ext/standard/tests/file/basename_variation2-win32.phpt4
-rw-r--r--ext/standard/tests/file/basename_variation2.phpt4
-rw-r--r--ext/standard/tests/file/basename_variation3.phpt2
-rw-r--r--ext/standard/tests/file/basename_variation4.phpt2
-rw-r--r--ext/standard/tests/file/bug22414.phpt6
-rw-r--r--ext/standard/tests/file/bug24482.phpt8
-rw-r--r--ext/standard/tests/file/bug27508.phpt14
-rw-r--r--ext/standard/tests/file/bug30362.phpt2
-rw-r--r--ext/standard/tests/file/bug35740.phpt2
-rw-r--r--ext/standard/tests/file/bug35781.phpt4
-rw-r--r--ext/standard/tests/file/bug37158.phpt6
-rw-r--r--ext/standard/tests/file/bug38086.phpt2
-rw-r--r--ext/standard/tests/file/bug38450.phpt2
-rw-r--r--ext/standard/tests/file/bug38450_1.phpt2
-rw-r--r--ext/standard/tests/file/bug38450_2.phpt2
-rw-r--r--ext/standard/tests/file/bug38450_3.phpt2
-rw-r--r--ext/standard/tests/file/bug39551.phpt2
-rw-r--r--ext/standard/tests/file/bug39673.phpt2
-rw-r--r--ext/standard/tests/file/bug40374.phpt4
-rw-r--r--ext/standard/tests/file/bug41693.phpt4
-rw-r--r--ext/standard/tests/file/bug41815.phpt2
-rw-r--r--ext/standard/tests/file/bug66509.phpt4
-rw-r--r--ext/standard/tests/file/bug72035.phpt2
-rw-r--r--ext/standard/tests/file/chmod_error.phpt2
-rw-r--r--ext/standard/tests/file/chmod_variation2-win32-mb.phpt2
-rw-r--r--ext/standard/tests/file/chmod_variation2-win32.phpt2
-rw-r--r--ext/standard/tests/file/chmod_variation2.phpt2
-rw-r--r--ext/standard/tests/file/chmod_variation3.phpt2
-rw-r--r--ext/standard/tests/file/chmod_variation4.phpt2
-rw-r--r--ext/standard/tests/file/copy_basic.phpt2
-rw-r--r--ext/standard/tests/file/copy_error.phpt2
-rw-r--r--ext/standard/tests/file/copy_variation10.phpt4
-rw-r--r--ext/standard/tests/file/copy_variation11.phpt2
-rw-r--r--ext/standard/tests/file/copy_variation15.phpt2
-rw-r--r--ext/standard/tests/file/copy_variation17.phpt2
-rw-r--r--ext/standard/tests/file/copy_variation18.phpt4
-rw-r--r--ext/standard/tests/file/copy_variation2-win32-mb.phpt4
-rw-r--r--ext/standard/tests/file/copy_variation2-win32.phpt4
-rw-r--r--ext/standard/tests/file/copy_variation2.phpt4
-rw-r--r--ext/standard/tests/file/copy_variation3-win32.phpt4
-rw-r--r--ext/standard/tests/file/copy_variation3.phpt4
-rw-r--r--ext/standard/tests/file/copy_variation5-win32.phpt2
-rw-r--r--ext/standard/tests/file/dirname_basic-win32.phpt2
-rw-r--r--ext/standard/tests/file/dirname_basic.phpt2
-rw-r--r--ext/standard/tests/file/dirname_error.phpt2
-rw-r--r--ext/standard/tests/file/dirname_no_path_normalization-win32.phpt2
-rw-r--r--ext/standard/tests/file/dirname_variation1.phpt2
-rw-r--r--ext/standard/tests/file/disk.phpt2
-rw-r--r--ext/standard/tests/file/disk_free_space_basic.phpt14
-rw-r--r--ext/standard/tests/file/disk_free_space_variation.phpt6
-rw-r--r--ext/standard/tests/file/disk_total_space_variation.phpt6
-rw-r--r--ext/standard/tests/file/fflush_error.phpt2
-rw-r--r--ext/standard/tests/file/fflush_variation1-win32-mb.phpt18
-rw-r--r--ext/standard/tests/file/fflush_variation1-win32.phpt18
-rw-r--r--ext/standard/tests/file/fflush_variation1.phpt16
-rw-r--r--ext/standard/tests/file/fflush_variation2.phpt14
-rw-r--r--ext/standard/tests/file/fflush_variation3.phpt14
-rw-r--r--ext/standard/tests/file/fflush_variation4.phpt8
-rw-r--r--ext/standard/tests/file/fgetc_basic.phpt8
-rw-r--r--ext/standard/tests/file/fgetc_variation2.phpt2
-rw-r--r--ext/standard/tests/file/fgetc_variation3.phpt6
-rw-r--r--ext/standard/tests/file/fgetc_variation4.phpt10
-rw-r--r--ext/standard/tests/file/fgetcsv_variation1.phpt14
-rw-r--r--ext/standard/tests/file/fgetcsv_variation10.phpt14
-rw-r--r--ext/standard/tests/file/fgetcsv_variation11.phpt8
-rw-r--r--ext/standard/tests/file/fgetcsv_variation12.phpt12
-rw-r--r--ext/standard/tests/file/fgetcsv_variation13.phpt10
-rw-r--r--ext/standard/tests/file/fgetcsv_variation14.phpt8
-rw-r--r--ext/standard/tests/file/fgetcsv_variation15.phpt8
-rw-r--r--ext/standard/tests/file/fgetcsv_variation16.phpt10
-rw-r--r--ext/standard/tests/file/fgetcsv_variation17.phpt10
-rw-r--r--ext/standard/tests/file/fgetcsv_variation18.phpt12
-rw-r--r--ext/standard/tests/file/fgetcsv_variation19.phpt12
-rw-r--r--ext/standard/tests/file/fgetcsv_variation2.phpt10
-rw-r--r--ext/standard/tests/file/fgetcsv_variation20.phpt14
-rw-r--r--ext/standard/tests/file/fgetcsv_variation21.phpt10
-rw-r--r--ext/standard/tests/file/fgetcsv_variation22.phpt12
-rw-r--r--ext/standard/tests/file/fgetcsv_variation23.phpt2
-rw-r--r--ext/standard/tests/file/fgetcsv_variation24.phpt8
-rw-r--r--ext/standard/tests/file/fgetcsv_variation25.phpt18
-rw-r--r--ext/standard/tests/file/fgetcsv_variation26.phpt14
-rw-r--r--ext/standard/tests/file/fgetcsv_variation27.phpt18
-rw-r--r--ext/standard/tests/file/fgetcsv_variation28.phpt18
-rw-r--r--ext/standard/tests/file/fgetcsv_variation29.phpt12
-rw-r--r--ext/standard/tests/file/fgetcsv_variation3.phpt8
-rw-r--r--ext/standard/tests/file/fgetcsv_variation30.phpt14
-rw-r--r--ext/standard/tests/file/fgetcsv_variation31.phpt12
-rw-r--r--ext/standard/tests/file/fgetcsv_variation4.phpt8
-rw-r--r--ext/standard/tests/file/fgetcsv_variation5.phpt8
-rw-r--r--ext/standard/tests/file/fgetcsv_variation6.phpt10
-rw-r--r--ext/standard/tests/file/fgetcsv_variation7.phpt8
-rw-r--r--ext/standard/tests/file/fgetcsv_variation8.phpt12
-rw-r--r--ext/standard/tests/file/fgetcsv_variation9.phpt12
-rw-r--r--ext/standard/tests/file/fgets_error.phpt4
-rw-r--r--ext/standard/tests/file/fgets_variation1.phpt6
-rw-r--r--ext/standard/tests/file/fgets_variation2.phpt2
-rw-r--r--ext/standard/tests/file/fgets_variation3.phpt4
-rw-r--r--ext/standard/tests/file/fgets_variation4-win32-mb.phpt2
-rw-r--r--ext/standard/tests/file/fgets_variation4-win32.phpt2
-rw-r--r--ext/standard/tests/file/fgets_variation4.phpt2
-rw-r--r--ext/standard/tests/file/fgets_variation5.phpt2
-rw-r--r--ext/standard/tests/file/fgets_variation6-win32.phpt2
-rw-r--r--ext/standard/tests/file/fgets_variation6.phpt2
-rw-r--r--ext/standard/tests/file/fgetss.phpt2
-rw-r--r--ext/standard/tests/file/fgetss1.phpt2
-rw-r--r--ext/standard/tests/file/fgetss_basic1.phpt16
-rw-r--r--ext/standard/tests/file/fgetss_basic2-win32-mb.phpt8
-rw-r--r--ext/standard/tests/file/fgetss_basic2-win32.phpt8
-rw-r--r--ext/standard/tests/file/fgetss_basic2.phpt8
-rw-r--r--ext/standard/tests/file/fgetss_error.phpt4
-rw-r--r--ext/standard/tests/file/fgetss_variation1-win32.phpt8
-rw-r--r--ext/standard/tests/file/fgetss_variation1.phpt8
-rw-r--r--ext/standard/tests/file/fgetss_variation2.phpt10
-rw-r--r--ext/standard/tests/file/fgetss_variation3-win32.phpt8
-rw-r--r--ext/standard/tests/file/fgetss_variation3.phpt8
-rw-r--r--ext/standard/tests/file/fgetss_variation4.phpt10
-rw-r--r--ext/standard/tests/file/fgetss_variation5-win32.phpt6
-rw-r--r--ext/standard/tests/file/fgetss_variation5.phpt6
-rw-r--r--ext/standard/tests/file/file_basic.phpt2
-rw-r--r--ext/standard/tests/file/file_error.phpt2
-rw-r--r--ext/standard/tests/file/file_exists_error.phpt2
-rw-r--r--ext/standard/tests/file/file_exists_variation1.phpt2
-rw-r--r--ext/standard/tests/file/file_get_contents_error.phpt4
-rw-r--r--ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt4
-rw-r--r--ext/standard/tests/file/file_get_contents_variation1.phpt4
-rw-r--r--ext/standard/tests/file/file_get_contents_variation2.phpt4
-rw-r--r--ext/standard/tests/file/file_get_contents_variation3.phpt2
-rw-r--r--ext/standard/tests/file/file_get_contents_variation4.phpt6
-rw-r--r--ext/standard/tests/file/file_get_contents_variation5_32bit.phpt2
-rw-r--r--ext/standard/tests/file/file_get_contents_variation5_64bit.phpt2
-rw-r--r--ext/standard/tests/file/file_get_contents_variation6.phpt2
-rw-r--r--ext/standard/tests/file/file_get_contents_variation7-win32-mb.phpt8
-rw-r--r--ext/standard/tests/file/file_get_contents_variation7-win32.phpt8
-rw-r--r--ext/standard/tests/file/file_get_contents_variation7.phpt8
-rw-r--r--ext/standard/tests/file/file_get_contents_variation8-win32.phpt8
-rw-r--r--ext/standard/tests/file/file_get_contents_variation8.phpt8
-rw-r--r--ext/standard/tests/file/file_get_contents_variation9.phpt2
-rw-r--r--ext/standard/tests/file/file_put_contents.phpt2
-rw-r--r--ext/standard/tests/file/file_put_contents_variation1.phpt4
-rw-r--r--ext/standard/tests/file/file_put_contents_variation2.phpt2
-rw-r--r--ext/standard/tests/file/file_put_contents_variation3.phpt6
-rw-r--r--ext/standard/tests/file/file_put_contents_variation4.phpt4
-rw-r--r--ext/standard/tests/file/file_put_contents_variation5.phpt6
-rw-r--r--ext/standard/tests/file/file_put_contents_variation6.phpt6
-rw-r--r--ext/standard/tests/file/file_put_contents_variation7-win32.phpt10
-rw-r--r--ext/standard/tests/file/file_put_contents_variation7.phpt10
-rw-r--r--ext/standard/tests/file/file_put_contents_variation8-win32.phpt10
-rw-r--r--ext/standard/tests/file/file_put_contents_variation9.phpt4
-rw-r--r--ext/standard/tests/file/file_variation.phpt6
-rw-r--r--ext/standard/tests/file/file_variation2.phpt2
-rw-r--r--ext/standard/tests/file/file_variation3.phpt2
-rw-r--r--ext/standard/tests/file/file_variation4.phpt4
-rw-r--r--ext/standard/tests/file/file_variation5.phpt2
-rw-r--r--ext/standard/tests/file/file_variation8-win32.phpt8
-rw-r--r--ext/standard/tests/file/file_variation8.phpt8
-rw-r--r--ext/standard/tests/file/file_variation9.phpt4
-rw-r--r--ext/standard/tests/file/filegroup_basic.phpt2
-rw-r--r--ext/standard/tests/file/filegroup_variation1.phpt2
-rw-r--r--ext/standard/tests/file/filegroup_variation2.phpt4
-rw-r--r--ext/standard/tests/file/filegroup_variation3.phpt2
-rw-r--r--ext/standard/tests/file/fileinode_basic.phpt2
-rw-r--r--ext/standard/tests/file/fileinode_error.phpt2
-rw-r--r--ext/standard/tests/file/fileinode_variation.phpt2
-rw-r--r--ext/standard/tests/file/fileinode_variation1.phpt4
-rw-r--r--ext/standard/tests/file/fileinode_variation2.phpt6
-rw-r--r--ext/standard/tests/file/fileinode_variation3.phpt4
-rw-r--r--ext/standard/tests/file/fileowner_basic.phpt2
-rw-r--r--ext/standard/tests/file/fileowner_variation1.phpt2
-rw-r--r--ext/standard/tests/file/fileowner_variation2.phpt4
-rw-r--r--ext/standard/tests/file/fileowner_variation3.phpt2
-rw-r--r--ext/standard/tests/file/fileperms_variation1.phpt2
-rw-r--r--ext/standard/tests/file/fileperms_variation2.phpt4
-rw-r--r--ext/standard/tests/file/fileperms_variation3.phpt2
-rw-r--r--ext/standard/tests/file/filesize_basic.phpt6
-rw-r--r--ext/standard/tests/file/filesize_error.phpt4
-rw-r--r--ext/standard/tests/file/filesize_variation1-win32-mb.phpt4
-rw-r--r--ext/standard/tests/file/filesize_variation1-win32.phpt4
-rw-r--r--ext/standard/tests/file/filesize_variation1.phpt4
-rw-r--r--ext/standard/tests/file/filesize_variation2-win32.phpt6
-rw-r--r--ext/standard/tests/file/filesize_variation2.phpt6
-rw-r--r--ext/standard/tests/file/filesize_variation3-win32.phpt4
-rw-r--r--ext/standard/tests/file/filesize_variation3.phpt4
-rw-r--r--ext/standard/tests/file/filesize_variation4-win32.phpt4
-rw-r--r--ext/standard/tests/file/filesize_variation4.phpt4
-rw-r--r--ext/standard/tests/file/filesize_variation5.phpt6
-rw-r--r--ext/standard/tests/file/filestat.phpt2
-rw-r--r--ext/standard/tests/file/filetype_variation2.phpt2
-rw-r--r--ext/standard/tests/file/flock.phpt2
-rw-r--r--ext/standard/tests/file/flock_basic.phpt6
-rw-r--r--ext/standard/tests/file/flock_error.phpt4
-rw-r--r--ext/standard/tests/file/flock_variation.phpt6
-rw-r--r--ext/standard/tests/file/fnmatch_variation.phpt2
-rw-r--r--ext/standard/tests/file/fopen_variation10-win32.phpt18
-rw-r--r--ext/standard/tests/file/fopen_variation11-win32.phpt18
-rw-r--r--ext/standard/tests/file/fopen_variation12.phpt14
-rw-r--r--ext/standard/tests/file/fopen_variation13.phpt10
-rw-r--r--ext/standard/tests/file/fopen_variation14-win32.phpt14
-rw-r--r--ext/standard/tests/file/fopen_variation14.phpt14
-rw-r--r--ext/standard/tests/file/fopen_variation15-win32.phpt14
-rw-r--r--ext/standard/tests/file/fopen_variation15.phpt14
-rw-r--r--ext/standard/tests/file/fopen_variation16.phpt16
-rw-r--r--ext/standard/tests/file/fopen_variation17.phpt18
-rw-r--r--ext/standard/tests/file/fopen_variation19.phpt2
-rw-r--r--ext/standard/tests/file/fopen_variation3.phpt2
-rw-r--r--ext/standard/tests/file/fopen_variation4.phpt4
-rw-r--r--ext/standard/tests/file/fopen_variation5.phpt22
-rw-r--r--ext/standard/tests/file/fopen_variation6.phpt2
-rw-r--r--ext/standard/tests/file/fopen_variation7.phpt10
-rw-r--r--ext/standard/tests/file/fopen_variation8.phpt22
-rw-r--r--ext/standard/tests/file/fopen_variation9.phpt10
-rw-r--r--ext/standard/tests/file/fopencookie.phpt4
-rw-r--r--ext/standard/tests/file/fpassthru_basic.phpt2
-rw-r--r--ext/standard/tests/file/fpassthru_error.phpt2
-rw-r--r--ext/standard/tests/file/fpassthru_variation.phpt14
-rw-r--r--ext/standard/tests/file/fputcsv_variation1.phpt12
-rw-r--r--ext/standard/tests/file/fputcsv_variation10.phpt14
-rw-r--r--ext/standard/tests/file/fputcsv_variation11.phpt12
-rw-r--r--ext/standard/tests/file/fputcsv_variation12.phpt12
-rw-r--r--ext/standard/tests/file/fputcsv_variation13.phpt12
-rw-r--r--ext/standard/tests/file/fputcsv_variation14.phpt10
-rw-r--r--ext/standard/tests/file/fputcsv_variation2.phpt12
-rw-r--r--ext/standard/tests/file/fputcsv_variation3.phpt12
-rw-r--r--ext/standard/tests/file/fputcsv_variation4.phpt12
-rw-r--r--ext/standard/tests/file/fputcsv_variation5.phpt12
-rw-r--r--ext/standard/tests/file/fputcsv_variation6.phpt12
-rw-r--r--ext/standard/tests/file/fputcsv_variation7.phpt12
-rw-r--r--ext/standard/tests/file/fputcsv_variation8.phpt12
-rw-r--r--ext/standard/tests/file/fputcsv_variation9.phpt12
-rw-r--r--ext/standard/tests/file/fread_basic.phpt20
-rw-r--r--ext/standard/tests/file/fread_error.phpt4
-rw-r--r--ext/standard/tests/file/fread_fwrite_basic.phpt6
-rw-r--r--ext/standard/tests/file/fread_variation1.phpt4
-rw-r--r--ext/standard/tests/file/fread_variation2.phpt4
-rw-r--r--ext/standard/tests/file/fread_variation3-win32-mb.phpt6
-rw-r--r--ext/standard/tests/file/fread_variation3-win32.phpt6
-rw-r--r--ext/standard/tests/file/fread_variation3.phpt6
-rw-r--r--ext/standard/tests/file/fread_variation4-win32.phpt6
-rw-r--r--ext/standard/tests/file/fread_variation4.phpt6
-rw-r--r--ext/standard/tests/file/fscanf.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_error.phpt10
-rw-r--r--ext/standard/tests/file/fscanf_variation1.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation10.phpt6
-rw-r--r--ext/standard/tests/file/fscanf_variation11.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation12.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation13.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation14.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation15.phpt6
-rw-r--r--ext/standard/tests/file/fscanf_variation16.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation17.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation18.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation19.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation2.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation20.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation21.phpt6
-rw-r--r--ext/standard/tests/file/fscanf_variation22.phpt6
-rw-r--r--ext/standard/tests/file/fscanf_variation23.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation24.phpt6
-rw-r--r--ext/standard/tests/file/fscanf_variation25.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation26.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation27.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation28.phpt8
-rw-r--r--ext/standard/tests/file/fscanf_variation29.phpt6
-rw-r--r--ext/standard/tests/file/fscanf_variation3.phpt6
-rw-r--r--ext/standard/tests/file/fscanf_variation30.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation31.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation32.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation33.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation34.phpt6
-rw-r--r--ext/standard/tests/file/fscanf_variation35.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation36.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation37.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation38.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation39.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation4.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation40.phpt6
-rw-r--r--ext/standard/tests/file/fscanf_variation41.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation42.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation43.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation44.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation45.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation46.phpt6
-rw-r--r--ext/standard/tests/file/fscanf_variation47.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation48.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation49.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation5.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation50.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation51.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation52.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation53.phpt14
-rw-r--r--ext/standard/tests/file/fscanf_variation54.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation55.phpt12
-rw-r--r--ext/standard/tests/file/fscanf_variation6.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation7.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation8.phpt4
-rw-r--r--ext/standard/tests/file/fscanf_variation9.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_basic1.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_basic2-win32-mb.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_basic2-win32.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_basic2.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_error1.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation1.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation2-win32.phpt4
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation2.phpt4
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation3.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation4-win32.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation4.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation5.phpt4
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation6-win32.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation6.phpt2
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation7.phpt4
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation8-win32.phpt4
-rw-r--r--ext/standard/tests/file/fseek_ftell_rewind_variation8.phpt4
-rw-r--r--ext/standard/tests/file/fseek_variation1.phpt2
-rw-r--r--ext/standard/tests/file/fstat.phpt2
-rw-r--r--ext/standard/tests/file/fstat_error.phpt2
-rw-r--r--ext/standard/tests/file/ftruncate_error.phpt2
-rw-r--r--ext/standard/tests/file/ftruncate_variation1-win32-mb.phpt4
-rw-r--r--ext/standard/tests/file/ftruncate_variation1-win32.phpt4
-rw-r--r--ext/standard/tests/file/ftruncate_variation1.phpt4
-rw-r--r--ext/standard/tests/file/ftruncate_variation2-win32.phpt6
-rw-r--r--ext/standard/tests/file/ftruncate_variation2.phpt6
-rw-r--r--ext/standard/tests/file/ftruncate_variation3-win32.phpt6
-rw-r--r--ext/standard/tests/file/ftruncate_variation3.phpt6
-rw-r--r--ext/standard/tests/file/ftruncate_variation4-win32.phpt6
-rw-r--r--ext/standard/tests/file/ftruncate_variation4.phpt6
-rw-r--r--ext/standard/tests/file/ftruncate_variation5-win32.phpt8
-rw-r--r--ext/standard/tests/file/ftruncate_variation5.phpt8
-rw-r--r--ext/standard/tests/file/ftruncate_variation6-win32.phpt12
-rw-r--r--ext/standard/tests/file/ftruncate_variation6.phpt12
-rw-r--r--ext/standard/tests/file/ftruncate_variation7-win32.phpt12
-rw-r--r--ext/standard/tests/file/ftruncate_variation7.phpt12
-rw-r--r--ext/standard/tests/file/fwrite.phpt2
-rw-r--r--ext/standard/tests/file/fwrite_basic-win32-mb.phpt6
-rw-r--r--ext/standard/tests/file/fwrite_basic-win32.phpt6
-rw-r--r--ext/standard/tests/file/fwrite_basic.phpt6
-rw-r--r--ext/standard/tests/file/fwrite_error.phpt2
-rw-r--r--ext/standard/tests/file/fwrite_variation1-win32-mb.phpt2
-rw-r--r--ext/standard/tests/file/fwrite_variation1-win32.phpt2
-rw-r--r--ext/standard/tests/file/fwrite_variation1.phpt6
-rw-r--r--ext/standard/tests/file/fwrite_variation2.phpt4
-rw-r--r--ext/standard/tests/file/fwrite_variation3.phpt4
-rw-r--r--ext/standard/tests/file/get_current_user.phpt2
-rw-r--r--ext/standard/tests/file/include_streams.phpt4
-rw-r--r--ext/standard/tests/file/include_userstream_001.phpt2
-rw-r--r--ext/standard/tests/file/include_userstream_002.phpt2
-rw-r--r--ext/standard/tests/file/include_userstream_003.phpt2
-rw-r--r--ext/standard/tests/file/is_dir_variation2.phpt6
-rw-r--r--ext/standard/tests/file/is_executable_variation1.phpt4
-rw-r--r--ext/standard/tests/file/is_file_variation2.phpt2
-rw-r--r--ext/standard/tests/file/is_file_variation3.phpt4
-rw-r--r--ext/standard/tests/file/is_file_variation4.phpt2
-rw-r--r--ext/standard/tests/file/is_readable_variation1.phpt4
-rw-r--r--ext/standard/tests/file/is_writable_variation1.phpt4
-rw-r--r--ext/standard/tests/file/lchown_basic.phpt2
-rw-r--r--ext/standard/tests/file/lchown_error.phpt2
-rw-r--r--ext/standard/tests/file/lstat_stat_error.phpt2
-rw-r--r--ext/standard/tests/file/lstat_stat_variation12.phpt2
-rw-r--r--ext/standard/tests/file/lstat_stat_variation19.phpt2
-rw-r--r--ext/standard/tests/file/lstat_stat_variation2.phpt2
-rw-r--r--ext/standard/tests/file/lstat_stat_variation3.phpt2
-rw-r--r--ext/standard/tests/file/mkdir-001.phpt2
-rw-r--r--ext/standard/tests/file/mkdir-002.phpt2
-rw-r--r--ext/standard/tests/file/mkdir-003.phpt2
-rw-r--r--ext/standard/tests/file/mkdir-004.phpt2
-rw-r--r--ext/standard/tests/file/mkdir-005.phpt2
-rw-r--r--ext/standard/tests/file/mkdir_variation1-win32.phpt4
-rw-r--r--ext/standard/tests/file/mkdir_variation1.phpt4
-rw-r--r--ext/standard/tests/file/mkdir_variation2.phpt2
-rw-r--r--ext/standard/tests/file/mkdir_variation3.phpt2
-rw-r--r--ext/standard/tests/file/mkdir_variation4.phpt4
-rw-r--r--ext/standard/tests/file/mkdir_variation5-win32.phpt20
-rw-r--r--ext/standard/tests/file/mkdir_variation5.phpt18
-rw-r--r--ext/standard/tests/file/parse_ini_file.phpt2
-rw-r--r--ext/standard/tests/file/parse_ini_file_error.phpt4
-rw-r--r--ext/standard/tests/file/parse_ini_file_variation1.phpt2
-rw-r--r--ext/standard/tests/file/parse_ini_file_variation2.phpt2
-rw-r--r--ext/standard/tests/file/parse_ini_file_variation3.phpt4
-rw-r--r--ext/standard/tests/file/parse_ini_file_variation4.phpt2
-rw-r--r--ext/standard/tests/file/parse_ini_file_variation5.phpt2
-rw-r--r--ext/standard/tests/file/parse_ini_file_variation6-win32-mb.phpt8
-rw-r--r--ext/standard/tests/file/parse_ini_file_variation6-win32.phpt8
-rw-r--r--ext/standard/tests/file/parse_ini_file_variation6.phpt8
-rw-r--r--ext/standard/tests/file/pathinfo_basic.phpt2
-rw-r--r--ext/standard/tests/file/pathinfo_basic2-win32.phpt2
-rw-r--r--ext/standard/tests/file/pathinfo_basic2.phpt2
-rw-r--r--ext/standard/tests/file/pathinfo_variation1.phpt2
-rw-r--r--ext/standard/tests/file/pathinfo_variation2.phpt2
-rw-r--r--ext/standard/tests/file/pathinfo_variation3.phpt2
-rw-r--r--ext/standard/tests/file/pathinfo_variaton.phpt2
-rw-r--r--ext/standard/tests/file/pclose_variation1.phpt4
-rw-r--r--ext/standard/tests/file/php_fd_wrapper_04.phpt2
-rw-r--r--ext/standard/tests/file/proc_open01.phpt6
-rw-r--r--ext/standard/tests/file/readfile_variation10-win32.phpt8
-rw-r--r--ext/standard/tests/file/readfile_variation4.phpt4
-rw-r--r--ext/standard/tests/file/readfile_variation5.phpt2
-rw-r--r--ext/standard/tests/file/readfile_variation6.phpt4
-rw-r--r--ext/standard/tests/file/readfile_variation7.phpt4
-rw-r--r--ext/standard/tests/file/readfile_variation8-win32-mb.phpt8
-rw-r--r--ext/standard/tests/file/readfile_variation8-win32.phpt8
-rw-r--r--ext/standard/tests/file/readfile_variation9.phpt8
-rw-r--r--ext/standard/tests/file/readlink_realpath_basic1.phpt4
-rw-r--r--ext/standard/tests/file/readlink_realpath_variation1.phpt14
-rw-r--r--ext/standard/tests/file/readlink_realpath_variation2.phpt18
-rw-r--r--ext/standard/tests/file/readlink_realpath_variation3.phpt6
-rw-r--r--ext/standard/tests/file/readlink_variation1.phpt4
-rw-r--r--ext/standard/tests/file/realpath_cache.phpt2
-rw-r--r--ext/standard/tests/file/realpath_cache_win32.phpt2
-rw-r--r--ext/standard/tests/file/realpath_variation-win32-mb.phpt4
-rw-r--r--ext/standard/tests/file/realpath_variation-win32.phpt4
-rw-r--r--ext/standard/tests/file/realpath_variation2.phpt16
-rw-r--r--ext/standard/tests/file/rename_basic.phpt2
-rw-r--r--ext/standard/tests/file/rename_error.phpt4
-rw-r--r--ext/standard/tests/file/rename_variation-win32.phpt4
-rw-r--r--ext/standard/tests/file/rename_variation.phpt4
-rw-r--r--ext/standard/tests/file/rename_variation10.phpt4
-rw-r--r--ext/standard/tests/file/rename_variation11-win32.phpt8
-rw-r--r--ext/standard/tests/file/rename_variation12-win32.phpt8
-rw-r--r--ext/standard/tests/file/rename_variation12.phpt8
-rw-r--r--ext/standard/tests/file/rename_variation13.phpt8
-rw-r--r--ext/standard/tests/file/rename_variation3-win32.phpt4
-rw-r--r--ext/standard/tests/file/rename_variation5.phpt4
-rw-r--r--ext/standard/tests/file/rename_variation6-win32.phpt2
-rw-r--r--ext/standard/tests/file/rename_variation6.phpt2
-rw-r--r--ext/standard/tests/file/rename_variation7-win32.phpt2
-rw-r--r--ext/standard/tests/file/rename_variation7.phpt2
-rw-r--r--ext/standard/tests/file/rmdir_variation1-win32.phpt4
-rw-r--r--ext/standard/tests/file/rmdir_variation1.phpt4
-rw-r--r--ext/standard/tests/file/rmdir_variation2.phpt4
-rw-r--r--ext/standard/tests/file/rmdir_variation3-win32.phpt20
-rw-r--r--ext/standard/tests/file/rmdir_variation3.phpt16
-rw-r--r--ext/standard/tests/file/stat_error-win32.phpt2
-rw-r--r--ext/standard/tests/file/statpage.phpt2
-rw-r--r--ext/standard/tests/file/stream_001.phpt2
-rw-r--r--ext/standard/tests/file/stream_002.phpt2
-rw-r--r--ext/standard/tests/file/stream_copy_to_stream.phpt2
-rw-r--r--ext/standard/tests/file/stream_rfc2397_007.phpt2
-rw-r--r--ext/standard/tests/file/stream_supports_lock.phpt2
-rw-r--r--ext/standard/tests/file/symlink.phpt2
-rw-r--r--ext/standard/tests/file/symlink_link_linkinfo_is_link_variation1.phpt4
-rw-r--r--ext/standard/tests/file/symlink_link_linkinfo_is_link_variation4.phpt6
-rw-r--r--ext/standard/tests/file/tempnam_variation1-win32-mb.phpt12
-rw-r--r--ext/standard/tests/file/tempnam_variation1-win32.phpt12
-rw-r--r--ext/standard/tests/file/tempnam_variation1.phpt12
-rw-r--r--ext/standard/tests/file/tempnam_variation2-win32.phpt22
-rw-r--r--ext/standard/tests/file/tempnam_variation2.phpt20
-rw-r--r--ext/standard/tests/file/tempnam_variation4-0.phpt4
-rw-r--r--ext/standard/tests/file/tempnam_variation4-1.phpt4
-rw-r--r--ext/standard/tests/file/tempnam_variation5-win32.phpt2
-rw-r--r--ext/standard/tests/file/tempnam_variation5.phpt2
-rw-r--r--ext/standard/tests/file/tempnam_variation6-win32.phpt8
-rw-r--r--ext/standard/tests/file/tempnam_variation6.phpt8
-rw-r--r--ext/standard/tests/file/tempnam_variation7-win32.phpt8
-rw-r--r--ext/standard/tests/file/tempnam_variation7.phpt18
-rw-r--r--ext/standard/tests/file/tempnam_variation8-win32.phpt22
-rw-r--r--ext/standard/tests/file/touch.phpt2
-rw-r--r--ext/standard/tests/file/touch_basic-win32-mb.phpt2
-rw-r--r--ext/standard/tests/file/touch_basic-win32.phpt2
-rw-r--r--ext/standard/tests/file/touch_basic.phpt2
-rw-r--r--ext/standard/tests/file/touch_error.phpt2
-rw-r--r--ext/standard/tests/file/touch_variation1.phpt2
-rw-r--r--ext/standard/tests/file/touch_variation2.phpt2
-rw-r--r--ext/standard/tests/file/touch_variation3-win32-mb.phpt2
-rw-r--r--ext/standard/tests/file/touch_variation3-win32.phpt2
-rw-r--r--ext/standard/tests/file/touch_variation3.phpt2
-rw-r--r--ext/standard/tests/file/touch_variation4-win32.phpt2
-rw-r--r--ext/standard/tests/file/touch_variation4.phpt2
-rw-r--r--ext/standard/tests/file/touch_variation5-win32.phpt32
-rw-r--r--ext/standard/tests/file/touch_variation5.phpt30
-rw-r--r--ext/standard/tests/file/touch_variation6-win32.phpt34
-rw-r--r--ext/standard/tests/file/umask_variation1.phpt2
-rw-r--r--ext/standard/tests/file/umask_variation2.phpt2
-rw-r--r--ext/standard/tests/file/unlink_variation10.phpt18
-rw-r--r--ext/standard/tests/file/unlink_variation6.phpt4
-rw-r--r--ext/standard/tests/file/unlink_variation7.phpt4
-rw-r--r--ext/standard/tests/file/unlink_variation8-win32.phpt18
-rw-r--r--ext/standard/tests/file/unlink_variation8.phpt24
-rw-r--r--ext/standard/tests/file/unlink_variation9-win32.phpt20
-rw-r--r--ext/standard/tests/file/userfilters.phpt2
-rw-r--r--ext/standard/tests/file/userstreams.phpt4
-rw-r--r--ext/standard/tests/file/windows_acls/bug44859.phpt2
-rw-r--r--ext/standard/tests/file/windows_acls/bug44859_2.phpt2
-rw-r--r--ext/standard/tests/file/windows_acls/bug44859_3.phpt2
-rw-r--r--ext/standard/tests/file/windows_acls/bug44859_4.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/bug54977.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/bug64506.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_0.phpt4
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_1.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_2.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_3.phpt4
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_4.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_5.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_0.phpt4
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_1.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_2.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_0.phpt4
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_1.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_2.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_3.phpt4
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_0.phpt4
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_1.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_2.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_0.phpt4
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_1.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_2.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_cp874_to_utf8_1.phpt6
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_0.phpt4
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_1.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_2.phpt2
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_3.phpt6
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_long_path_0.phpt4
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_long_path_1.phpt4
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_long_path_2.phpt4
-rw-r--r--ext/standard/tests/file/windows_mb_path/test_long_path_mkdir.phpt4
-rw-r--r--ext/standard/tests/filters/001.phpt2
-rw-r--r--ext/standard/tests/filters/stream_filter_remove_basic.phpt2
-rw-r--r--ext/standard/tests/filters/stream_filter_remove_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/001.phpt2
-rw-r--r--ext/standard/tests/general_functions/003.phpt8
-rw-r--r--ext/standard/tests/general_functions/004.phpt2
-rw-r--r--ext/standard/tests/general_functions/007.phpt2
-rw-r--r--ext/standard/tests/general_functions/009.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug27678.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug31190.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug36011.phpt6
-rw-r--r--ext/standard/tests/general_functions/bug40752.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug41037.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug41445.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug41445_1.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug43293_1.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug44667.phpt12
-rw-r--r--ext/standard/tests/general_functions/bug66094.phpt2
-rw-r--r--ext/standard/tests/general_functions/call_user_func_array_variation_002.phpt2
-rw-r--r--ext/standard/tests/general_functions/call_user_func_array_variation_003.phpt2
-rw-r--r--ext/standard/tests/general_functions/closures_001.phpt2
-rw-r--r--ext/standard/tests/general_functions/closures_002.phpt2
-rw-r--r--ext/standard/tests/general_functions/debug_zval_dump_o.phpt2
-rw-r--r--ext/standard/tests/general_functions/debug_zval_dump_v.phpt6
-rw-r--r--ext/standard/tests/general_functions/dl-cve-2007-4887.phpt2
-rw-r--r--ext/standard/tests/general_functions/error_clear_last.phpt2
-rw-r--r--ext/standard/tests/general_functions/error_get_last.phpt2
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_basic-win32-mb.phpt2
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_basic-win32.phpt2
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_variation1-win32.phpt4
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_variation1.phpt4
-rw-r--r--ext/standard/tests/general_functions/floatval.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_cfg_var_variation9.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_defined_constants_basic.phpt4
-rw-r--r--ext/standard/tests/general_functions/get_defined_constants_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_defined_vars_basic.phpt36
-rw-r--r--ext/standard/tests/general_functions/get_extension_funcs_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_extension_funcs_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_extension_funcs_variation.phpt4
-rw-r--r--ext/standard/tests/general_functions/get_include_path_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_loaded_extensions_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_loaded_extensions_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt4
-rw-r--r--ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt4
-rw-r--r--ext/standard/tests/general_functions/get_resource_type_basic.phpt4
-rw-r--r--ext/standard/tests/general_functions/get_resource_type_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_resource_type_variation1.phpt4
-rw-r--r--ext/standard/tests/general_functions/getmypid_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/getrusage.phpt2
-rw-r--r--ext/standard/tests/general_functions/getrusage_basic.phpt6
-rw-r--r--ext/standard/tests/general_functions/getrusage_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/getrusage_variation1.phpt8
-rw-r--r--ext/standard/tests/general_functions/getservbyname_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/getservbyname_variation14.phpt2
-rw-r--r--ext/standard/tests/general_functions/getservbyname_variation2.phpt2
-rw-r--r--ext/standard/tests/general_functions/getservbyname_variation5.phpt2
-rw-r--r--ext/standard/tests/general_functions/getservbyport_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/getservbyport_variation1.phpt2
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation1.phpt22
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation2.phpt18
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation3.phpt14
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation4.phpt16
-rw-r--r--ext/standard/tests/general_functions/head.phpt2
-rw-r--r--ext/standard/tests/general_functions/intval_variation1.phpt2
-rw-r--r--ext/standard/tests/general_functions/intval_variation2.phpt2
-rw-r--r--ext/standard/tests/general_functions/is_array.phpt12
-rw-r--r--ext/standard/tests/general_functions/is_bool.phpt12
-rw-r--r--ext/standard/tests/general_functions/is_callable_basic2.phpt6
-rw-r--r--ext/standard/tests/general_functions/is_float.phpt10
-rw-r--r--ext/standard/tests/general_functions/is_float_64bit.phpt10
-rw-r--r--ext/standard/tests/general_functions/is_int.phpt16
-rw-r--r--ext/standard/tests/general_functions/is_int_64bit.phpt16
-rw-r--r--ext/standard/tests/general_functions/is_null.phpt4
-rw-r--r--ext/standard/tests/general_functions/is_numeric.phpt24
-rw-r--r--ext/standard/tests/general_functions/is_object.phpt14
-rw-r--r--ext/standard/tests/general_functions/is_resource_basic.phpt12
-rw-r--r--ext/standard/tests/general_functions/is_scalar.phpt6
-rw-r--r--ext/standard/tests/general_functions/is_string.phpt2
-rw-r--r--ext/standard/tests/general_functions/isset_basic1.phpt2
-rw-r--r--ext/standard/tests/general_functions/isset_basic2.phpt12
-rw-r--r--ext/standard/tests/general_functions/ob_get_flush_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/ob_get_flush_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/ob_get_length_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/parse_ini_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/parse_ini_booleans.phpt2
-rw-r--r--ext/standard/tests/general_functions/parse_ini_file.phpt2
-rw-r--r--ext/standard/tests/general_functions/parse_ini_string_001.phpt2
-rw-r--r--ext/standard/tests/general_functions/parse_ini_string_002.phpt2
-rw-r--r--ext/standard/tests/general_functions/php_uname_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/php_uname_variation1.phpt14
-rw-r--r--ext/standard/tests/general_functions/print_r.phpt6
-rw-r--r--ext/standard/tests/general_functions/print_r_64bit.phpt6
-rw-r--r--ext/standard/tests/general_functions/putenv.phpt2
-rw-r--r--ext/standard/tests/general_functions/putenv_bug75574_utf8.phpt2
-rw-r--r--ext/standard/tests/general_functions/rand.phpt2
-rw-r--r--ext/standard/tests/general_functions/sleep_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/sleep_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/strval.phpt16
-rw-r--r--ext/standard/tests/general_functions/type.phpt2
-rw-r--r--ext/standard/tests/general_functions/uniqid_basic.phpt6
-rw-r--r--ext/standard/tests/general_functions/uniqid_error.phpt4
-rw-r--r--ext/standard/tests/general_functions/usleep_basic.phpt4
-rw-r--r--ext/standard/tests/general_functions/usleep_error.phpt4
-rw-r--r--ext/standard/tests/general_functions/var_dump.phpt14
-rw-r--r--ext/standard/tests/general_functions/var_dump_64bit.phpt14
-rw-r--r--ext/standard/tests/general_functions/var_export-locale.phpt18
-rw-r--r--ext/standard/tests/general_functions/var_export_basic1.phpt4
-rw-r--r--ext/standard/tests/general_functions/var_export_basic2.phpt6
-rw-r--r--ext/standard/tests/general_functions/var_export_basic3.phpt2
-rw-r--r--ext/standard/tests/general_functions/var_export_basic4.phpt2
-rw-r--r--ext/standard/tests/general_functions/var_export_basic5.phpt2
-rw-r--r--ext/standard/tests/general_functions/var_export_basic6.phpt12
-rw-r--r--ext/standard/tests/general_functions/var_export_basic7.phpt2
-rw-r--r--ext/standard/tests/general_functions/var_export_basic8.phpt8
-rw-r--r--ext/standard/tests/general_functions/var_export_error1.phpt2
-rw-r--r--ext/standard/tests/general_functions/var_export_error2.phpt2
-rw-r--r--ext/standard/tests/general_functions/var_export_error3.phpt2
-rw-r--r--ext/standard/tests/http/bug60570.phpt2
-rw-r--r--ext/standard/tests/image/getimagesize_basic.phpt6
-rw-r--r--ext/standard/tests/image/getimagesize_error1.phpt2
-rw-r--r--ext/standard/tests/image/getimagesize_jpgapp.phpt2
-rw-r--r--ext/standard/tests/image/getimagesize_tif_mm.phpt2
-rw-r--r--ext/standard/tests/image/getimagesize_variation1.phpt2
-rw-r--r--ext/standard/tests/image/getimagesize_variation2.phpt2
-rw-r--r--ext/standard/tests/image/getimagesize_wbmp.phpt2
-rw-r--r--ext/standard/tests/image/getimagesize_xbm.phpt2
-rw-r--r--ext/standard/tests/image/getimagesizefromstring1.phpt4
-rw-r--r--ext/standard/tests/image/image_type_to_extension.phpt2
-rw-r--r--ext/standard/tests/image/image_type_to_mime_type_basic.phpt8
-rw-r--r--ext/standard/tests/image/image_type_to_mime_type_variation2.phpt4
-rw-r--r--ext/standard/tests/mail/bug66535.phpt2
-rw-r--r--ext/standard/tests/mail/bug73203.phpt2
-rw-r--r--ext/standard/tests/mail/ezmlm_hash_error.phpt2
-rw-r--r--ext/standard/tests/mail/ezmlm_hash_variation1.phpt2
-rw-r--r--ext/standard/tests/mail/mail_basic.phpt2
-rw-r--r--ext/standard/tests/mail/mail_basic2.phpt2
-rw-r--r--ext/standard/tests/mail/mail_basic3.phpt2
-rw-r--r--ext/standard/tests/mail/mail_basic4.phpt2
-rw-r--r--ext/standard/tests/mail/mail_basic5.phpt2
-rw-r--r--ext/standard/tests/mail/mail_basic_alt1-win32.phpt22
-rw-r--r--ext/standard/tests/mail/mail_basic_alt2-win32.phpt22
-rw-r--r--ext/standard/tests/mail/mail_basic_alt3-win32.phpt22
-rw-r--r--ext/standard/tests/mail/mail_basic_alt4-win32.phpt22
-rw-r--r--ext/standard/tests/mail/mail_error.phpt2
-rw-r--r--ext/standard/tests/mail/mail_variation1.phpt2
-rw-r--r--ext/standard/tests/mail/mail_variation2.phpt2
-rw-r--r--ext/standard/tests/mail/mail_variation_alt1-win32.phpt22
-rw-r--r--ext/standard/tests/mail/mail_variation_alt2-win32.phpt22
-rw-r--r--ext/standard/tests/mail/mail_variation_alt3-win32.phpt22
-rw-r--r--ext/standard/tests/math/abs_basic.phpt2
-rw-r--r--ext/standard/tests/math/abs_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/abs_error.phpt2
-rw-r--r--ext/standard/tests/math/abs_variation.phpt4
-rw-r--r--ext/standard/tests/math/acos_basic.phpt4
-rw-r--r--ext/standard/tests/math/acos_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/acos_error.phpt4
-rw-r--r--ext/standard/tests/math/acos_variation.phpt6
-rw-r--r--ext/standard/tests/math/acosh_basic.phpt4
-rw-r--r--ext/standard/tests/math/acosh_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/acosh_error.phpt4
-rw-r--r--ext/standard/tests/math/acosh_variation.phpt6
-rw-r--r--ext/standard/tests/math/asin_basic.phpt4
-rw-r--r--ext/standard/tests/math/asin_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/asin_error.phpt4
-rw-r--r--ext/standard/tests/math/asin_variation.phpt6
-rw-r--r--ext/standard/tests/math/asinh_basic.phpt4
-rw-r--r--ext/standard/tests/math/asinh_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/asinh_error.phpt4
-rw-r--r--ext/standard/tests/math/asinh_variation.phpt6
-rw-r--r--ext/standard/tests/math/atan2_basic.phpt8
-rw-r--r--ext/standard/tests/math/atan2_basiclong_64bit.phpt6
-rw-r--r--ext/standard/tests/math/atan2_variation1.phpt8
-rw-r--r--ext/standard/tests/math/atan2_variation2.phpt8
-rw-r--r--ext/standard/tests/math/atan_basic.phpt4
-rw-r--r--ext/standard/tests/math/atan_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/atan_error.phpt4
-rw-r--r--ext/standard/tests/math/atan_variation.phpt6
-rw-r--r--ext/standard/tests/math/atanh_basic.phpt4
-rw-r--r--ext/standard/tests/math/atanh_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/atanh_error.phpt4
-rw-r--r--ext/standard/tests/math/atanh_variation.phpt6
-rw-r--r--ext/standard/tests/math/base_convert_basic.phpt12
-rw-r--r--ext/standard/tests/math/base_convert_variation1.phpt6
-rw-r--r--ext/standard/tests/math/base_convert_variation2.phpt6
-rw-r--r--ext/standard/tests/math/base_convert_variation3.phpt6
-rw-r--r--ext/standard/tests/math/bindec_basic.phpt2
-rw-r--r--ext/standard/tests/math/bindec_basic_64bit.phpt2
-rw-r--r--ext/standard/tests/math/bindec_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/bindec_error.phpt2
-rw-r--r--ext/standard/tests/math/bindec_variation1.phpt4
-rw-r--r--ext/standard/tests/math/bindec_variation1_64bit.phpt4
-rw-r--r--ext/standard/tests/math/bug25665.phpt2
-rw-r--r--ext/standard/tests/math/ceil_basic.phpt2
-rw-r--r--ext/standard/tests/math/ceil_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/ceil_variation1.phpt4
-rw-r--r--ext/standard/tests/math/cos_basic.phpt4
-rw-r--r--ext/standard/tests/math/cos_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/cos_error.phpt4
-rw-r--r--ext/standard/tests/math/cos_variation.phpt6
-rw-r--r--ext/standard/tests/math/cosh_basic.phpt4
-rw-r--r--ext/standard/tests/math/cosh_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/cosh_error.phpt4
-rw-r--r--ext/standard/tests/math/cosh_variation.phpt6
-rw-r--r--ext/standard/tests/math/decbin_basic.phpt2
-rw-r--r--ext/standard/tests/math/decbin_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/decbin_variation1.phpt6
-rw-r--r--ext/standard/tests/math/decbin_variation1_64bit.phpt6
-rw-r--r--ext/standard/tests/math/dechex_basic.phpt2
-rw-r--r--ext/standard/tests/math/dechex_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/dechex_error.phpt2
-rw-r--r--ext/standard/tests/math/dechex_variation1.phpt8
-rw-r--r--ext/standard/tests/math/dechex_variation1_64bit.phpt10
-rw-r--r--ext/standard/tests/math/decoct_basic.phpt2
-rw-r--r--ext/standard/tests/math/decoct_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/decoct_variation1.phpt10
-rw-r--r--ext/standard/tests/math/decoct_variation1_64bit.phpt10
-rw-r--r--ext/standard/tests/math/deg2rad_basic.phpt4
-rw-r--r--ext/standard/tests/math/deg2rad_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/deg2rad_error.phpt4
-rw-r--r--ext/standard/tests/math/deg2rad_variation.phpt6
-rw-r--r--ext/standard/tests/math/exp_basic.phpt2
-rw-r--r--ext/standard/tests/math/exp_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/exp_variation1.phpt8
-rw-r--r--ext/standard/tests/math/expm1_basic.phpt2
-rw-r--r--ext/standard/tests/math/expm1_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/expm1_variation1.phpt10
-rw-r--r--ext/standard/tests/math/floor_basic.phpt6
-rw-r--r--ext/standard/tests/math/floor_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/floor_variation1.phpt4
-rw-r--r--ext/standard/tests/math/floorceil.phpt12
-rw-r--r--ext/standard/tests/math/fmod_basic.phpt12
-rw-r--r--ext/standard/tests/math/fmod_basiclong_64bit.phpt6
-rw-r--r--ext/standard/tests/math/fmod_variation1.phpt8
-rw-r--r--ext/standard/tests/math/fmod_variation2.phpt8
-rw-r--r--ext/standard/tests/math/hexdec_basic.phpt2
-rw-r--r--ext/standard/tests/math/hexdec_basic_64bit.phpt6
-rw-r--r--ext/standard/tests/math/hexdec_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/hexdec_variation1.phpt6
-rw-r--r--ext/standard/tests/math/hexdec_variation1_64bit.phpt6
-rw-r--r--ext/standard/tests/math/hypot_basic.phpt8
-rw-r--r--ext/standard/tests/math/hypot_basiclong_64bit.phpt6
-rw-r--r--ext/standard/tests/math/hypot_error.phpt2
-rw-r--r--ext/standard/tests/math/hypot_variation1.phpt8
-rw-r--r--ext/standard/tests/math/hypot_variation2.phpt8
-rw-r--r--ext/standard/tests/math/is_finite_basic.phpt4
-rw-r--r--ext/standard/tests/math/is_finite_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/is_finite_variation1.phpt8
-rw-r--r--ext/standard/tests/math/is_infinite_basic.phpt4
-rw-r--r--ext/standard/tests/math/is_infinite_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/is_infinite_variation1.phpt8
-rw-r--r--ext/standard/tests/math/is_nan_basic.phpt8
-rw-r--r--ext/standard/tests/math/is_nan_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/is_nan_variation1.phpt8
-rw-r--r--ext/standard/tests/math/lcg_value_basic.phpt16
-rw-r--r--ext/standard/tests/math/log.phpt8
-rw-r--r--ext/standard/tests/math/log10_basic.phpt4
-rw-r--r--ext/standard/tests/math/log10_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/log10_error.phpt4
-rw-r--r--ext/standard/tests/math/log10_variation.phpt6
-rw-r--r--ext/standard/tests/math/log1p_basic.phpt4
-rw-r--r--ext/standard/tests/math/log1p_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/log1p_error.phpt2
-rw-r--r--ext/standard/tests/math/log1p_variation1.phpt8
-rw-r--r--ext/standard/tests/math/log_basic.phpt2
-rw-r--r--ext/standard/tests/math/log_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/log_variation1.phpt8
-rw-r--r--ext/standard/tests/math/log_variation2.phpt8
-rw-r--r--ext/standard/tests/math/mt_rand_basic.phpt32
-rw-r--r--ext/standard/tests/math/mt_rand_variation1.phpt8
-rw-r--r--ext/standard/tests/math/mt_rand_variation2.phpt8
-rw-r--r--ext/standard/tests/math/mt_srand_variation1.phpt8
-rw-r--r--ext/standard/tests/math/number_format_basic.phpt2
-rw-r--r--ext/standard/tests/math/number_format_multichar.phpt2
-rw-r--r--ext/standard/tests/math/octdec_basic.phpt2
-rw-r--r--ext/standard/tests/math/octdec_basic_64bit.phpt2
-rw-r--r--ext/standard/tests/math/octdec_basiclong_64bit.phpt8
-rw-r--r--ext/standard/tests/math/octdec_error.phpt2
-rw-r--r--ext/standard/tests/math/octdec_variation1.phpt8
-rw-r--r--ext/standard/tests/math/pow_basic.phpt6
-rw-r--r--ext/standard/tests/math/pow_basic2.phpt4
-rw-r--r--ext/standard/tests/math/pow_basic_64bit.phpt6
-rw-r--r--ext/standard/tests/math/pow_basiclong_64bit.phpt6
-rw-r--r--ext/standard/tests/math/pow_variation1.phpt8
-rw-r--r--ext/standard/tests/math/pow_variation1_64bit.phpt8
-rw-r--r--ext/standard/tests/math/pow_variation2.phpt8
-rw-r--r--ext/standard/tests/math/rad2deg_basic.phpt4
-rw-r--r--ext/standard/tests/math/rad2deg_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/rad2deg_error.phpt4
-rw-r--r--ext/standard/tests/math/rad2deg_variation.phpt6
-rw-r--r--ext/standard/tests/math/rand_basic.phpt30
-rw-r--r--ext/standard/tests/math/rand_variation1.phpt8
-rw-r--r--ext/standard/tests/math/rand_variation2.phpt8
-rw-r--r--ext/standard/tests/math/round_basic.phpt8
-rw-r--r--ext/standard/tests/math/round_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/round_error.phpt4
-rw-r--r--ext/standard/tests/math/round_variation1.phpt8
-rw-r--r--ext/standard/tests/math/round_variation2.phpt8
-rw-r--r--ext/standard/tests/math/sin_basic.phpt6
-rw-r--r--ext/standard/tests/math/sin_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/sin_error.phpt4
-rw-r--r--ext/standard/tests/math/sin_variation.phpt6
-rw-r--r--ext/standard/tests/math/sinh_basic.phpt4
-rw-r--r--ext/standard/tests/math/sinh_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/sinh_error.phpt4
-rw-r--r--ext/standard/tests/math/sinh_variation.phpt6
-rw-r--r--ext/standard/tests/math/sqrt_basic.phpt4
-rw-r--r--ext/standard/tests/math/sqrt_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/sqrt_error.phpt4
-rw-r--r--ext/standard/tests/math/sqrt_variation.phpt6
-rw-r--r--ext/standard/tests/math/srand_error.phpt4
-rw-r--r--ext/standard/tests/math/srand_variation1.phpt8
-rw-r--r--ext/standard/tests/math/tan_basic.phpt6
-rw-r--r--ext/standard/tests/math/tan_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/tan_error.phpt4
-rw-r--r--ext/standard/tests/math/tan_variation.phpt6
-rw-r--r--ext/standard/tests/math/tanh_basic.phpt4
-rw-r--r--ext/standard/tests/math/tanh_basiclong_64bit.phpt4
-rw-r--r--ext/standard/tests/math/tanh_error.phpt4
-rw-r--r--ext/standard/tests/math/tanh_variation.phpt6
-rw-r--r--ext/standard/tests/misc/get_browser_basic.phpt2
-rw-r--r--ext/standard/tests/misc/get_browser_error.phpt2
-rw-r--r--ext/standard/tests/misc/get_browser_variation1.phpt2
-rw-r--r--ext/standard/tests/misc/time_nanosleep_error3.phpt2
-rw-r--r--ext/standard/tests/network/closelog_basic.phpt2
-rw-r--r--ext/standard/tests/network/closelog_error.phpt2
-rw-r--r--ext/standard/tests/network/fsockopen_basic.phpt2
-rw-r--r--ext/standard/tests/network/fsockopen_error.phpt2
-rw-r--r--ext/standard/tests/network/gethostbyaddr_error.phpt2
-rw-r--r--ext/standard/tests/network/gethostbynamel_error.phpt2
-rw-r--r--ext/standard/tests/network/inet.phpt8
-rw-r--r--ext/standard/tests/network/inet_ipv6.phpt8
-rw-r--r--ext/standard/tests/network/ip.phpt2
-rw-r--r--ext/standard/tests/network/ip2long_error.phpt2
-rw-r--r--ext/standard/tests/network/ip2long_variation1.phpt4
-rw-r--r--ext/standard/tests/network/ip2long_variation2.phpt2
-rw-r--r--ext/standard/tests/network/ip_x86_64.phpt2
-rw-r--r--ext/standard/tests/network/long2ip_error.phpt2
-rw-r--r--ext/standard/tests/network/long2ip_variation1.phpt6
-rw-r--r--ext/standard/tests/network/shutdown.phpt4
-rw-r--r--ext/standard/tests/network/syslog_basic.phpt2
-rw-r--r--ext/standard/tests/network/syslog_error.phpt2
-rw-r--r--ext/standard/tests/network/tcp6loop.phpt2
-rw-r--r--ext/standard/tests/network/udgloop.phpt2
-rw-r--r--ext/standard/tests/network/unixloop.phpt2
-rw-r--r--ext/standard/tests/serialize/001.phpt2
-rw-r--r--ext/standard/tests/serialize/002.phpt2
-rw-r--r--ext/standard/tests/serialize/003.phpt2
-rw-r--r--ext/standard/tests/serialize/005.phpt12
-rw-r--r--ext/standard/tests/serialize/bug14293.phpt4
-rw-r--r--ext/standard/tests/serialize/bug21957.phpt2
-rw-r--r--ext/standard/tests/serialize/bug23298.phpt2
-rw-r--r--ext/standard/tests/serialize/bug24063.phpt2
-rw-r--r--ext/standard/tests/serialize/bug25378.phpt2
-rw-r--r--ext/standard/tests/serialize/bug26762.phpt4
-rw-r--r--ext/standard/tests/serialize/bug30234.phpt2
-rw-r--r--ext/standard/tests/serialize/bug31402.phpt2
-rw-r--r--ext/standard/tests/serialize/bug49649.phpt6
-rw-r--r--ext/standard/tests/serialize/bug49649_1.phpt6
-rw-r--r--ext/standard/tests/serialize/bug49649_2.phpt6
-rw-r--r--ext/standard/tests/serialize/bug62373.phpt2
-rw-r--r--ext/standard/tests/serialize/bug64354_1.phpt4
-rw-r--r--ext/standard/tests/serialize/bug64354_2.phpt2
-rw-r--r--ext/standard/tests/serialize/bug64354_3.phpt2
-rw-r--r--ext/standard/tests/serialize/bug68545.phpt4
-rw-r--r--ext/standard/tests/serialize/bug69425.phpt2
-rw-r--r--ext/standard/tests/serialize/bug70219.phpt2
-rw-r--r--ext/standard/tests/serialize/bug70436.phpt8
-rw-r--r--ext/standard/tests/serialize/bug70513.phpt2
-rw-r--r--ext/standard/tests/serialize/incomplete_class.phpt2
-rw-r--r--ext/standard/tests/serialize/serialization_arrays_001.phpt8
-rw-r--r--ext/standard/tests/serialize/serialization_arrays_002.phpt10
-rw-r--r--ext/standard/tests/serialize/serialization_arrays_003.phpt10
-rw-r--r--ext/standard/tests/serialize/serialization_arrays_004.phpt10
-rw-r--r--ext/standard/tests/serialize/serialization_arrays_005.phpt10
-rw-r--r--ext/standard/tests/serialize/serialization_error_001.phpt6
-rw-r--r--ext/standard/tests/serialize/serialization_objects_003.phpt10
-rw-r--r--ext/standard/tests/serialize/serialization_objects_004.phpt6
-rw-r--r--ext/standard/tests/serialize/serialization_objects_005.phpt6
-rw-r--r--ext/standard/tests/serialize/serialization_objects_006.phpt6
-rw-r--r--ext/standard/tests/serialize/serialization_objects_007.phpt8
-rw-r--r--ext/standard/tests/serialize/serialization_objects_008.phpt8
-rw-r--r--ext/standard/tests/serialize/serialization_objects_009.phpt6
-rw-r--r--ext/standard/tests/serialize/serialization_objects_010.phpt10
-rw-r--r--ext/standard/tests/serialize/serialization_objects_011.phpt28
-rw-r--r--ext/standard/tests/serialize/serialization_objects_012.phpt18
-rw-r--r--ext/standard/tests/serialize/serialization_objects_013.phpt10
-rw-r--r--ext/standard/tests/serialize/serialization_objects_014.phpt10
-rw-r--r--ext/standard/tests/serialize/serialization_objects_015.phpt4
-rw-r--r--ext/standard/tests/serialize/serialization_precision_001.phpt6
-rw-r--r--ext/standard/tests/serialize/serialization_precision_002.phpt6
-rw-r--r--ext/standard/tests/serialize/serialization_resources_001.phpt8
-rw-r--r--ext/standard/tests/setrawcookie_basic_001.phpt2
-rw-r--r--ext/standard/tests/streams/bug40459.phpt2
-rw-r--r--ext/standard/tests/streams/bug46024.phpt2
-rw-r--r--ext/standard/tests/streams/bug60455_02.phpt4
-rw-r--r--ext/standard/tests/streams/bug60455_03.phpt2
-rw-r--r--ext/standard/tests/streams/bug60455_04.phpt4
-rw-r--r--ext/standard/tests/streams/bug60602.phpt2
-rw-r--r--ext/standard/tests/streams/bug61019.phpt16
-rw-r--r--ext/standard/tests/streams/bug61115-1.phpt2
-rw-r--r--ext/standard/tests/streams/bug64166_2.phpt2
-rw-r--r--ext/standard/tests/streams/bug64433.phpt2
-rw-r--r--ext/standard/tests/streams/bug64770.phpt4
-rw-r--r--ext/standard/tests/streams/bug67626.phpt6
-rw-r--r--ext/standard/tests/streams/bug72857.phpt2
-rw-r--r--ext/standard/tests/streams/proc_open_bug69900.phpt2
-rw-r--r--ext/standard/tests/streams/set_file_buffer.phpt6
-rw-r--r--ext/standard/tests/streams/stream_context_tcp_nodelay_server.phpt2
-rw-r--r--ext/standard/tests/streams/stream_get_line_NUL_delimiter.phpt4
-rw-r--r--ext/standard/tests/streams/stream_get_meta_data_process_basic.phpt4
-rw-r--r--ext/standard/tests/streams/stream_socket_enable_crypto.phpt2
-rw-r--r--ext/standard/tests/strings/004.phpt2
-rw-r--r--ext/standard/tests/strings/005.phpt2
-rw-r--r--ext/standard/tests/strings/006.phpt2
-rw-r--r--ext/standard/tests/strings/007-win32.phpt2
-rw-r--r--ext/standard/tests/strings/007.phpt2
-rw-r--r--ext/standard/tests/strings/addcslashes_002.phpt2
-rw-r--r--ext/standard/tests/strings/addcslashes_004.phpt2
-rw-r--r--ext/standard/tests/strings/addslashes_variation1.phpt20
-rw-r--r--ext/standard/tests/strings/addslashes_variation2.phpt12
-rw-r--r--ext/standard/tests/strings/basename_variation.phpt6
-rw-r--r--ext/standard/tests/strings/bin2hex_basic.phpt8
-rw-r--r--ext/standard/tests/strings/bin2hex_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/bug22207.phpt2
-rw-r--r--ext/standard/tests/strings/bug22224.phpt2
-rw-r--r--ext/standard/tests/strings/bug26817.phpt2
-rw-r--r--ext/standard/tests/strings/bug33076.phpt2
-rw-r--r--ext/standard/tests/strings/bug36944.phpt2
-rw-r--r--ext/standard/tests/strings/bug37262.phpt2
-rw-r--r--ext/standard/tests/strings/bug38322.phpt2
-rw-r--r--ext/standard/tests/strings/bug38770.phpt2
-rw-r--r--ext/standard/tests/strings/bug39032.phpt2
-rw-r--r--ext/standard/tests/strings/bug39350.phpt2
-rw-r--r--ext/standard/tests/strings/bug39873.phpt2
-rw-r--r--ext/standard/tests/strings/bug40637.phpt2
-rw-r--r--ext/standard/tests/strings/bug40704.phpt2
-rw-r--r--ext/standard/tests/strings/bug40754.phpt2
-rw-r--r--ext/standard/tests/strings/bug45166.phpt2
-rw-r--r--ext/standard/tests/strings/bug48709.phpt4
-rw-r--r--ext/standard/tests/strings/bug54721.phpt2
-rw-r--r--ext/standard/tests/strings/bug55871.phpt2
-rw-r--r--ext/standard/tests/strings/bug64879.phpt6
-rw-r--r--ext/standard/tests/strings/bug65230.phpt2
-rw-r--r--ext/standard/tests/strings/bug65947.phpt4
-rw-r--r--ext/standard/tests/strings/bug67252.phpt2
-rw-r--r--ext/standard/tests/strings/chop_variation1.phpt4
-rw-r--r--ext/standard/tests/strings/chop_variation2.phpt4
-rw-r--r--ext/standard/tests/strings/chr_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/chunk_split_basic.phpt6
-rw-r--r--ext/standard/tests/strings/chunk_split_variation10.phpt6
-rw-r--r--ext/standard/tests/strings/chunk_split_variation12.phpt4
-rw-r--r--ext/standard/tests/strings/chunk_split_variation13.phpt2
-rw-r--r--ext/standard/tests/strings/chunk_split_variation2.phpt2
-rw-r--r--ext/standard/tests/strings/chunk_split_variation3.phpt2
-rw-r--r--ext/standard/tests/strings/chunk_split_variation4.phpt4
-rw-r--r--ext/standard/tests/strings/chunk_split_variation6.phpt16
-rw-r--r--ext/standard/tests/strings/chunk_split_variation8.phpt6
-rw-r--r--ext/standard/tests/strings/convert_cyr_string.phpt2
-rw-r--r--ext/standard/tests/strings/convert_cyr_string_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/convert_uudecode_basic.phpt18
-rw-r--r--ext/standard/tests/strings/convert_uudecode_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/convert_uuencode_basic.phpt6
-rw-r--r--ext/standard/tests/strings/convert_uuencode_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/count_chars_error.phpt2
-rw-r--r--ext/standard/tests/strings/count_chars_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/count_chars_variation2.phpt16
-rw-r--r--ext/standard/tests/strings/crc32_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/crc32_variation2.phpt2
-rw-r--r--ext/standard/tests/strings/crc32_variation3.phpt2
-rw-r--r--ext/standard/tests/strings/dirname_basic.phpt10
-rw-r--r--ext/standard/tests/strings/dirname_variation.phpt8
-rw-r--r--ext/standard/tests/strings/explode1.phpt2
-rw-r--r--ext/standard/tests/strings/explode_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/explode_variation2.phpt18
-rw-r--r--ext/standard/tests/strings/explode_variation3.phpt18
-rw-r--r--ext/standard/tests/strings/explode_variation6.phpt4
-rw-r--r--ext/standard/tests/strings/get_html_translation_table_basic5.phpt2
-rw-r--r--ext/standard/tests/strings/get_html_translation_table_basic7.phpt2
-rw-r--r--ext/standard/tests/strings/get_html_translation_table_basic8.phpt2
-rw-r--r--ext/standard/tests/strings/get_html_translation_table_basic9.phpt2
-rw-r--r--ext/standard/tests/strings/get_html_translation_table_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/get_meta_tags.phpt2
-rw-r--r--ext/standard/tests/strings/hebrev_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/hebrev_variation2.phpt20
-rw-r--r--ext/standard/tests/strings/hebrevc_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/hebrevc_variation2.phpt20
-rw-r--r--ext/standard/tests/strings/html_entity_decode_cp866.phpt2
-rw-r--r--ext/standard/tests/strings/html_entity_decode_iso8859-15.phpt2
-rw-r--r--ext/standard/tests/strings/html_entity_decode_iso8859-5.phpt2
-rw-r--r--ext/standard/tests/strings/html_entity_decode_koi8-r.phpt2
-rw-r--r--ext/standard/tests/strings/html_entity_decode_macroman.phpt2
-rw-r--r--ext/standard/tests/strings/html_entity_decode_win1251.phpt2
-rw-r--r--ext/standard/tests/strings/html_entity_decode_win1252.phpt2
-rw-r--r--ext/standard/tests/strings/htmlentities-utf-2.phpt4
-rw-r--r--ext/standard/tests/strings/htmlentities-utf.phpt2
-rw-r--r--ext/standard/tests/strings/htmlentities02.phpt2
-rw-r--r--ext/standard/tests/strings/htmlentities20.phpt2
-rw-r--r--ext/standard/tests/strings/htmlentities22.phpt2
-rw-r--r--ext/standard/tests/strings/htmlentities_html4.phpt2
-rw-r--r--ext/standard/tests/strings/htmlentities_html5.phpt2
-rw-r--r--ext/standard/tests/strings/htmlspecialchars_decode_basic.phpt2
-rw-r--r--ext/standard/tests/strings/htmlspecialchars_decode_variation3.phpt2
-rw-r--r--ext/standard/tests/strings/htmlspecialchars_decode_variation4.phpt2
-rw-r--r--ext/standard/tests/strings/htmlspecialchars_decode_variation5.phpt2
-rw-r--r--ext/standard/tests/strings/http_build_query_variation2.phpt16
-rw-r--r--ext/standard/tests/strings/join_error.phpt2
-rw-r--r--ext/standard/tests/strings/join_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/join_variation2.phpt2
-rw-r--r--ext/standard/tests/strings/join_variation3.phpt10
-rw-r--r--ext/standard/tests/strings/levenshtein.phpt32
-rw-r--r--ext/standard/tests/strings/ltrim.phpt2
-rw-r--r--ext/standard/tests/strings/ltrim_basic.phpt6
-rw-r--r--ext/standard/tests/strings/ltrim_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/ltrim_variation2.phpt18
-rw-r--r--ext/standard/tests/strings/md5_basic2.phpt2
-rw-r--r--ext/standard/tests/strings/metaphone.phpt4
-rw-r--r--ext/standard/tests/strings/money_format_basic1.phpt4
-rw-r--r--ext/standard/tests/strings/money_format_variation1.phpt24
-rw-r--r--ext/standard/tests/strings/money_format_variation2.phpt22
-rw-r--r--ext/standard/tests/strings/nl2br.phpt4
-rw-r--r--ext/standard/tests/strings/nl_langinfo_basic.phpt4
-rw-r--r--ext/standard/tests/strings/nl_langinfo_error1.phpt2
-rw-r--r--ext/standard/tests/strings/nl_langinfo_variation1.phpt12
-rw-r--r--ext/standard/tests/strings/number_format_basic.phpt4
-rw-r--r--ext/standard/tests/strings/number_format_error.phpt2
-rw-r--r--ext/standard/tests/strings/ord_basic.phpt2
-rw-r--r--ext/standard/tests/strings/ord_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/pack_float.phpt16
-rw-r--r--ext/standard/tests/strings/parse_str_basic1.phpt4
-rw-r--r--ext/standard/tests/strings/parse_str_error1.phpt2
-rw-r--r--ext/standard/tests/strings/pathinfo.phpt2
-rw-r--r--ext/standard/tests/strings/php_strip_whitespace.phpt2
-rw-r--r--ext/standard/tests/strings/print_basic.phpt2
-rw-r--r--ext/standard/tests/strings/print_variation1.phpt20
-rw-r--r--ext/standard/tests/strings/printf_basic2.phpt2
-rw-r--r--ext/standard/tests/strings/printf_basic4.phpt2
-rw-r--r--ext/standard/tests/strings/printf_basic7.phpt2
-rw-r--r--ext/standard/tests/strings/printf_basic8.phpt2
-rw-r--r--ext/standard/tests/strings/printf_basic9.phpt8
-rw-r--r--ext/standard/tests/strings/printf_error.phpt2
-rw-r--r--ext/standard/tests/strings/printf_variation1.phpt22
-rw-r--r--ext/standard/tests/strings/printf_variation2.phpt28
-rw-r--r--ext/standard/tests/strings/quoted_printable_decode_basic.phpt2
-rw-r--r--ext/standard/tests/strings/quoted_printable_decode_error.phpt2
-rw-r--r--ext/standard/tests/strings/quoted_printable_decode_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/quoted_printable_encode_001.phpt2
-rw-r--r--ext/standard/tests/strings/rtrim_basic.phpt6
-rw-r--r--ext/standard/tests/strings/rtrim_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/rtrim_variation2.phpt18
-rw-r--r--ext/standard/tests/strings/setlocale_basic1.phpt8
-rw-r--r--ext/standard/tests/strings/setlocale_basic2.phpt10
-rw-r--r--ext/standard/tests/strings/setlocale_error.phpt2
-rw-r--r--ext/standard/tests/strings/setlocale_variation2.phpt4
-rw-r--r--ext/standard/tests/strings/setlocale_variation3.phpt2
-rw-r--r--ext/standard/tests/strings/setlocale_variation4.phpt2
-rw-r--r--ext/standard/tests/strings/setlocale_variation5.phpt2
-rw-r--r--ext/standard/tests/strings/sha1_error.phpt2
-rw-r--r--ext/standard/tests/strings/sha1_file.phpt2
-rw-r--r--ext/standard/tests/strings/sha1_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/sha1_variation2.phpt18
-rw-r--r--ext/standard/tests/strings/soundex.phpt8
-rw-r--r--ext/standard/tests/strings/soundex_basic.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_error.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_f_2.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation10.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation11.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation12.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation13.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation14.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation16.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation17.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation18.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation19.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation2.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation20.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation23.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation28.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation28_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation29.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation29_64bit.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation3.phpt4
-rw-r--r--ext/standard/tests/strings/sprintf_variation30.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation31.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation32.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation33.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation34.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation34_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation35.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation35_64bit.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation36.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation37.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation38.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation39.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation4.phpt4
-rw-r--r--ext/standard/tests/strings/sprintf_variation40.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation40_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation41.phpt4
-rw-r--r--ext/standard/tests/strings/sprintf_variation41_64bit.phpt4
-rw-r--r--ext/standard/tests/strings/sprintf_variation42.phpt4
-rw-r--r--ext/standard/tests/strings/sprintf_variation43.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation44.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation44_64bit.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation45.phpt8
-rw-r--r--ext/standard/tests/strings/sprintf_variation46.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation47.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation48.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation49.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation4_64bit.phpt4
-rw-r--r--ext/standard/tests/strings/sprintf_variation5.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation50.phpt2
-rw-r--r--ext/standard/tests/strings/sprintf_variation51.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation6.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation7.phpt6
-rw-r--r--ext/standard/tests/strings/sprintf_variation8.phpt4
-rw-r--r--ext/standard/tests/strings/sprintf_variation9.phpt2
-rw-r--r--ext/standard/tests/strings/sscanf_basic1.phpt6
-rw-r--r--ext/standard/tests/strings/sscanf_basic2.phpt6
-rw-r--r--ext/standard/tests/strings/sscanf_basic3.phpt6
-rw-r--r--ext/standard/tests/strings/sscanf_basic4.phpt6
-rw-r--r--ext/standard/tests/strings/sscanf_basic5.phpt8
-rw-r--r--ext/standard/tests/strings/sscanf_basic6.phpt6
-rw-r--r--ext/standard/tests/strings/sscanf_basic7.phpt6
-rw-r--r--ext/standard/tests/strings/sscanf_basic8.phpt8
-rw-r--r--ext/standard/tests/strings/sscanf_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/sscanf_variation2.phpt18
-rw-r--r--ext/standard/tests/strings/str_ireplace.phpt2
-rw-r--r--ext/standard/tests/strings/str_pad_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/str_pad_variation2.phpt18
-rw-r--r--ext/standard/tests/strings/str_pad_variation3.phpt18
-rw-r--r--ext/standard/tests/strings/str_pad_variation4.phpt20
-rw-r--r--ext/standard/tests/strings/str_replace_basic.phpt6
-rw-r--r--ext/standard/tests/strings/str_replace_error.phpt4
-rw-r--r--ext/standard/tests/strings/str_replace_variation1.phpt6
-rw-r--r--ext/standard/tests/strings/str_replace_variation3.phpt6
-rw-r--r--ext/standard/tests/strings/str_rot13_basic.phpt12
-rw-r--r--ext/standard/tests/strings/str_shuffle_basic.phpt10
-rw-r--r--ext/standard/tests/strings/str_shuffle_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/str_split_variation4.phpt2
-rw-r--r--ext/standard/tests/strings/str_split_variation5.phpt4
-rw-r--r--ext/standard/tests/strings/str_word_count.phpt4
-rw-r--r--ext/standard/tests/strings/str_word_count1.phpt2
-rw-r--r--ext/standard/tests/strings/strcspn_basic.phpt2
-rw-r--r--ext/standard/tests/strings/strcspn_error.phpt2
-rw-r--r--ext/standard/tests/strings/strcspn_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/strcspn_variation10.phpt4
-rw-r--r--ext/standard/tests/strings/strcspn_variation11.phpt4
-rw-r--r--ext/standard/tests/strings/strcspn_variation12.phpt6
-rw-r--r--ext/standard/tests/strings/strcspn_variation2.phpt2
-rw-r--r--ext/standard/tests/strings/strcspn_variation3.phpt2
-rw-r--r--ext/standard/tests/strings/strcspn_variation4.phpt2
-rw-r--r--ext/standard/tests/strings/strcspn_variation6.phpt4
-rw-r--r--ext/standard/tests/strings/strcspn_variation7.phpt4
-rw-r--r--ext/standard/tests/strings/strcspn_variation8.phpt8
-rw-r--r--ext/standard/tests/strings/strip_tags_basic1.phpt4
-rw-r--r--ext/standard/tests/strings/strip_tags_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/strip_tags_variation11.phpt4
-rw-r--r--ext/standard/tests/strings/stripcslashes_variation1.phpt20
-rw-r--r--ext/standard/tests/strings/stripos_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/stripos_variation10.phpt2
-rw-r--r--ext/standard/tests/strings/stripos_variation11.phpt4
-rw-r--r--ext/standard/tests/strings/stripos_variation14.phpt4
-rw-r--r--ext/standard/tests/strings/stripos_variation15.phpt4
-rw-r--r--ext/standard/tests/strings/stripos_variation9.phpt2
-rw-r--r--ext/standard/tests/strings/stripslashes_variation1.phpt20
-rw-r--r--ext/standard/tests/strings/stripslashes_variation3.phpt4
-rw-r--r--ext/standard/tests/strings/stripslashes_variation4.phpt2
-rw-r--r--ext/standard/tests/strings/stristr_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/stristr_variation2.phpt18
-rw-r--r--ext/standard/tests/strings/strlen_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/strnatcasecmp_basic.phpt2
-rw-r--r--ext/standard/tests/strings/strnatcasecmp_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/strnatcmp_basic.phpt2
-rw-r--r--ext/standard/tests/strings/strncasecmp_variation10.phpt4
-rw-r--r--ext/standard/tests/strings/strncasecmp_variation11.phpt4
-rw-r--r--ext/standard/tests/strings/strncasecmp_variation3.phpt2
-rw-r--r--ext/standard/tests/strings/strncasecmp_variation4.phpt4
-rw-r--r--ext/standard/tests/strings/strncasecmp_variation8.phpt2
-rw-r--r--ext/standard/tests/strings/strncmp_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/strncmp_variation4.phpt4
-rw-r--r--ext/standard/tests/strings/strncmp_variation6.phpt2
-rw-r--r--ext/standard/tests/strings/strncmp_variation8.phpt2
-rw-r--r--ext/standard/tests/strings/strncmp_variation9.phpt2
-rw-r--r--ext/standard/tests/strings/strpbrk_basic.phpt2
-rw-r--r--ext/standard/tests/strings/strpbrk_error.phpt2
-rw-r--r--ext/standard/tests/strings/strrchr.phpt2
-rw-r--r--ext/standard/tests/strings/strrchr_basic.phpt4
-rw-r--r--ext/standard/tests/strings/strrchr_variation10.phpt2
-rw-r--r--ext/standard/tests/strings/strrchr_variation11.phpt2
-rw-r--r--ext/standard/tests/strings/strrchr_variation2.phpt2
-rw-r--r--ext/standard/tests/strings/strrchr_variation3.phpt6
-rw-r--r--ext/standard/tests/strings/strrchr_variation9.phpt4
-rw-r--r--ext/standard/tests/strings/strrev.phpt2
-rw-r--r--ext/standard/tests/strings/strripos_basic1.phpt2
-rw-r--r--ext/standard/tests/strings/strripos_basic2.phpt8
-rw-r--r--ext/standard/tests/strings/strripos_offset.phpt2
-rw-r--r--ext/standard/tests/strings/strripos_variation1.phpt28
-rw-r--r--ext/standard/tests/strings/strripos_variation2.phpt22
-rw-r--r--ext/standard/tests/strings/strrpos_offset.phpt2
-rw-r--r--ext/standard/tests/strings/strrpos_variation1.phpt16
-rw-r--r--ext/standard/tests/strings/strrpos_variation10.phpt2
-rw-r--r--ext/standard/tests/strings/strrpos_variation11.phpt4
-rw-r--r--ext/standard/tests/strings/strrpos_variation14.phpt4
-rw-r--r--ext/standard/tests/strings/strrpos_variation15.phpt4
-rw-r--r--ext/standard/tests/strings/strrpos_variation2.phpt10
-rw-r--r--ext/standard/tests/strings/strrpos_variation9.phpt2
-rw-r--r--ext/standard/tests/strings/strspn_basic.phpt2
-rw-r--r--ext/standard/tests/strings/strspn_error.phpt2
-rw-r--r--ext/standard/tests/strings/strspn_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/strspn_variation10.phpt4
-rw-r--r--ext/standard/tests/strings/strspn_variation11.phpt4
-rw-r--r--ext/standard/tests/strings/strspn_variation12.phpt6
-rw-r--r--ext/standard/tests/strings/strspn_variation2.phpt2
-rw-r--r--ext/standard/tests/strings/strspn_variation3.phpt2
-rw-r--r--ext/standard/tests/strings/strspn_variation4.phpt2
-rw-r--r--ext/standard/tests/strings/strspn_variation6.phpt4
-rw-r--r--ext/standard/tests/strings/strspn_variation7.phpt4
-rw-r--r--ext/standard/tests/strings/strspn_variation8.phpt10
-rw-r--r--ext/standard/tests/strings/strtok_error.phpt2
-rw-r--r--ext/standard/tests/strings/strtok_variation2.phpt4
-rw-r--r--ext/standard/tests/strings/strtok_variation5.phpt8
-rw-r--r--ext/standard/tests/strings/strtok_variation6.phpt10
-rw-r--r--ext/standard/tests/strings/strtok_variation7.phpt6
-rw-r--r--ext/standard/tests/strings/strtr_basic.phpt2
-rw-r--r--ext/standard/tests/strings/strtr_variation5.phpt18
-rw-r--r--ext/standard/tests/strings/strtr_variation6.phpt18
-rw-r--r--ext/standard/tests/strings/strtr_variation7.phpt18
-rw-r--r--ext/standard/tests/strings/strtr_variation8.phpt2
-rw-r--r--ext/standard/tests/strings/strtr_variation9.phpt18
-rw-r--r--ext/standard/tests/strings/strtr_with_reference.phpt2
-rw-r--r--ext/standard/tests/strings/strval_basic.phpt10
-rw-r--r--ext/standard/tests/strings/strval_variation1.phpt22
-rw-r--r--ext/standard/tests/strings/substr_count_basic.phpt2
-rw-r--r--ext/standard/tests/strings/substr_count_error.phpt2
-rw-r--r--ext/standard/tests/strings/substr_count_variation_001.phpt6
-rw-r--r--ext/standard/tests/strings/substr_count_variation_002.phpt2
-rw-r--r--ext/standard/tests/strings/substr_replace_error.phpt12
-rw-r--r--ext/standard/tests/strings/trim_basic.phpt4
-rw-r--r--ext/standard/tests/strings/trim_variation1.phpt18
-rw-r--r--ext/standard/tests/strings/trim_variation2.phpt18
-rw-r--r--ext/standard/tests/strings/ucwords_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/ucwords_variation3.phpt4
-rw-r--r--ext/standard/tests/strings/ucwords_variation4.phpt4
-rw-r--r--ext/standard/tests/strings/utf8_decode_error.phpt2
-rw-r--r--ext/standard/tests/strings/utf8_decode_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/utf8_encode_error.phpt2
-rw-r--r--ext/standard/tests/strings/utf8_encode_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/uuencode.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_basic.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_basic2.phpt6
-rw-r--r--ext/standard/tests/strings/vfprintf_basic3.phpt12
-rw-r--r--ext/standard/tests/strings/vfprintf_basic5.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_basic6.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_basic7.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_basic7_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_basic8.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_error1.phpt4
-rw-r--r--ext/standard/tests/strings/vfprintf_error2.phpt4
-rw-r--r--ext/standard/tests/strings/vfprintf_error3.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_error4.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_variation1.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_variation12.phpt14
-rw-r--r--ext/standard/tests/strings/vfprintf_variation14.phpt12
-rw-r--r--ext/standard/tests/strings/vfprintf_variation15.phpt6
-rw-r--r--ext/standard/tests/strings/vfprintf_variation15_64bit.phpt6
-rw-r--r--ext/standard/tests/strings/vfprintf_variation16.phpt6
-rw-r--r--ext/standard/tests/strings/vfprintf_variation16_64bit.phpt6
-rw-r--r--ext/standard/tests/strings/vfprintf_variation17.phpt8
-rw-r--r--ext/standard/tests/strings/vfprintf_variation18.phpt6
-rw-r--r--ext/standard/tests/strings/vfprintf_variation19.phpt4
-rw-r--r--ext/standard/tests/strings/vfprintf_variation19_64bit.phpt4
-rw-r--r--ext/standard/tests/strings/vfprintf_variation20.phpt18
-rw-r--r--ext/standard/tests/strings/vfprintf_variation21.phpt18
-rw-r--r--ext/standard/tests/strings/vfprintf_variation4.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_variation4_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_variation6.phpt2
-rw-r--r--ext/standard/tests/strings/vfprintf_variation8.phpt6
-rw-r--r--ext/standard/tests/strings/vprintf_basic8.phpt6
-rw-r--r--ext/standard/tests/strings/vprintf_error.phpt2
-rw-r--r--ext/standard/tests/strings/vprintf_variation1.phpt22
-rw-r--r--ext/standard/tests/strings/vprintf_variation11.phpt4
-rw-r--r--ext/standard/tests/strings/vprintf_variation11_64bit.phpt4
-rw-r--r--ext/standard/tests/strings/vprintf_variation12.phpt16
-rw-r--r--ext/standard/tests/strings/vprintf_variation13.phpt2
-rw-r--r--ext/standard/tests/strings/vprintf_variation13_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/vprintf_variation14.phpt14
-rw-r--r--ext/standard/tests/strings/vprintf_variation14_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/vprintf_variation15.phpt8
-rw-r--r--ext/standard/tests/strings/vprintf_variation15_64bit.phpt6
-rw-r--r--ext/standard/tests/strings/vprintf_variation16.phpt4
-rw-r--r--ext/standard/tests/strings/vprintf_variation16_64bit.phpt6
-rw-r--r--ext/standard/tests/strings/vprintf_variation17.phpt6
-rw-r--r--ext/standard/tests/strings/vprintf_variation18.phpt2
-rw-r--r--ext/standard/tests/strings/vprintf_variation19_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/vprintf_variation2.phpt18
-rw-r--r--ext/standard/tests/strings/vprintf_variation3.phpt2
-rw-r--r--ext/standard/tests/strings/vprintf_variation4.phpt2
-rw-r--r--ext/standard/tests/strings/vprintf_variation4_64bit.phpt4
-rw-r--r--ext/standard/tests/strings/vprintf_variation5.phpt2
-rw-r--r--ext/standard/tests/strings/vprintf_variation6.phpt4
-rw-r--r--ext/standard/tests/strings/vprintf_variation8.phpt8
-rw-r--r--ext/standard/tests/strings/vsprintf_error.phpt2
-rw-r--r--ext/standard/tests/strings/vsprintf_variation1.phpt4
-rw-r--r--ext/standard/tests/strings/vsprintf_variation11.phpt2
-rw-r--r--ext/standard/tests/strings/vsprintf_variation11_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/vsprintf_variation12.phpt14
-rw-r--r--ext/standard/tests/strings/vsprintf_variation13.phpt2
-rw-r--r--ext/standard/tests/strings/vsprintf_variation13_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/vsprintf_variation14.phpt14
-rw-r--r--ext/standard/tests/strings/vsprintf_variation15.phpt6
-rw-r--r--ext/standard/tests/strings/vsprintf_variation15_64bit.phpt6
-rw-r--r--ext/standard/tests/strings/vsprintf_variation16.phpt4
-rw-r--r--ext/standard/tests/strings/vsprintf_variation16_64bit.phpt4
-rw-r--r--ext/standard/tests/strings/vsprintf_variation17.phpt6
-rw-r--r--ext/standard/tests/strings/vsprintf_variation18.phpt2
-rw-r--r--ext/standard/tests/strings/vsprintf_variation3.phpt2
-rw-r--r--ext/standard/tests/strings/vsprintf_variation4.phpt2
-rw-r--r--ext/standard/tests/strings/vsprintf_variation4_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/vsprintf_variation5.phpt2
-rw-r--r--ext/standard/tests/strings/vsprintf_variation6.phpt4
-rw-r--r--ext/standard/tests/strings/vsprintf_variation8.phpt6
-rw-r--r--ext/standard/tests/strings/wordwrap_variation5.phpt2
-rw-r--r--ext/standard/tests/time/001.phpt4
-rw-r--r--ext/standard/tests/time/strptime_basic.phpt12
-rw-r--r--ext/standard/tests/time/strptime_error.phpt8
-rw-r--r--ext/standard/tests/time/strptime_parts.phpt12
-rw-r--r--ext/standard/tests/url/base64_decode_basic_001.phpt2
-rw-r--r--ext/standard/tests/url/base64_decode_basic_002.phpt2
-rw-r--r--ext/standard/tests/url/base64_decode_error_001.phpt2
-rw-r--r--ext/standard/tests/url/base64_decode_variation_001.phpt28
-rw-r--r--ext/standard/tests/url/base64_decode_variation_002.phpt20
-rw-r--r--ext/standard/tests/url/base64_encode_basic_001.phpt2
-rw-r--r--ext/standard/tests/url/base64_encode_basic_002.phpt6
-rw-r--r--ext/standard/tests/url/base64_encode_error_001.phpt2
-rw-r--r--ext/standard/tests/url/base64_encode_variation_001.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_basic_001.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_basic_002.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_basic_003.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_basic_004.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_basic_005.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_basic_006.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_basic_007.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_basic_008.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_basic_009.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_basic_010.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_error_001.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_error_002.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_variation_001.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_variation_002_32bit.phpt2
-rw-r--r--ext/standard/tests/url/parse_url_variation_002_64bit.phpt2
-rw-r--r--ext/standard/tests/url/rawurldecode_error_001.phpt2
-rw-r--r--ext/standard/tests/url/rawurldecode_variation_001.phpt2
-rw-r--r--ext/standard/tests/url/rawurlencode_error_001.phpt2
-rw-r--r--ext/standard/tests/url/rawurlencode_variation_001.phpt2
-rw-r--r--ext/standard/tests/url/urldecode_error_001.phpt2
-rw-r--r--ext/standard/tests/url/urldecode_variation_001.phpt2
-rw-r--r--ext/standard/tests/url/urlencode_error_001.phpt2
-rw-r--r--ext/standard/tests/url/urlencode_variation_001.phpt2
1976 files changed, 5123 insertions, 5123 deletions
diff --git a/ext/standard/tests/array/005.phpt b/ext/standard/tests/array/005.phpt
index 667c954895..9257ce951b 100644
--- a/ext/standard/tests/array/005.phpt
+++ b/ext/standard/tests/array/005.phpt
@@ -52,13 +52,13 @@ var_dump( array_shift($empty_array) );
echo "\n*** Testing with various array inputs ***\n";
$counter = 1;
-foreach( $mixed_array as $sub_array ) {
+foreach( $mixed_array as $sub_array ) {
echo "\n-- Input Array for Iteration $counter is -- \n";
print_r( $sub_array );
echo "\nOutput after shift is :\n";
var_dump( array_shift($sub_array) );
$counter++;
-}
+}
/*Checking for internal array pointer beint reset when shift is called */
diff --git a/ext/standard/tests/array/009.phpt b/ext/standard/tests/array/009.phpt
index f275085de5..4e046dfbed 100644
--- a/ext/standard/tests/array/009.phpt
+++ b/ext/standard/tests/array/009.phpt
@@ -19,16 +19,16 @@ $basic_arrays = array (
array('d' => 'drink', 'p' => 'port', 's' => 'set'), // another associative array
array(1 => 'One', 2 => 'two', 3 => "three") // associative array with key as integers
);
-
+
$varient_arrays = array (
array(), // empty array
array(""), // array with null string
array(NULL),// array with NULL
array(null),// array with null
array(NULL, true, null, "", 1), // mixed array
- array(-1.5 => "test", -2 => "rest", 2.5 => "two",
+ array(-1.5 => "test", -2 => "rest", 2.5 => "two",
"" => "string", 0 => "zero", "" => "" ) // mixed array
-);
+);
echo "*** Testing basic operations ***\n";
$loop_count = 1;
@@ -69,7 +69,7 @@ foreach ($varient_arrays as $sub_array ) {
echo "\n";
}
-/*test these functions on array which is already unset */
+/*test these functions on array which is already unset */
echo "\n-- Testing variation: when array is unset --\n";
$unset_array = array (1);
unset($unset_array);
@@ -116,7 +116,7 @@ var_dump( reset($string) );
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
*** Testing basic operations ***
-- Iteration 1 --
int(0)
diff --git a/ext/standard/tests/array/array_change_key_case_variation.phpt b/ext/standard/tests/array/array_change_key_case_variation.phpt
index 5c2d524f9b..3f8d502ffe 100644
--- a/ext/standard/tests/array/array_change_key_case_variation.phpt
+++ b/ext/standard/tests/array/array_change_key_case_variation.phpt
@@ -6,17 +6,17 @@ Test array_change_key_case() function - 2
$item = array ("one" => 1, "two" => 2, "THREE" => 3, "FOUR" => "four");
/* use 'case' argument other than CASE_LOWER & CASE_UPPER */
-var_dump(array_change_key_case($item, "CASE_UPPER"));
-var_dump(array_change_key_case($item, 5));
+var_dump(array_change_key_case($item, "CASE_UPPER"));
+var_dump(array_change_key_case($item, 5));
/* when keys are different in terms of only case */
/* should return one value key pair with key being in lowercase */
-var_dump( array_change_key_case( array("ONE" => 1, "one" => 3, "One" => 4) ) );
-var_dump( array_change_key_case( array("ONE" => 1, "one" => 6, "One" => 5), "CASE_UPPER" ) );
+var_dump( array_change_key_case( array("ONE" => 1, "one" => 3, "One" => 4) ) );
+var_dump( array_change_key_case( array("ONE" => 1, "one" => 6, "One" => 5), "CASE_UPPER" ) );
/* should return one value key pair with key being in uppercase */
-var_dump( array_change_key_case( array("ONE" => 1, "one" => 2, "One" => 3), CASE_UPPER ) );
-var_dump( array_change_key_case( array("ONE" => 1, "one" => 1, "One" => 2), 5 ) );
+var_dump( array_change_key_case( array("ONE" => 1, "one" => 2, "One" => 3), CASE_UPPER ) );
+var_dump( array_change_key_case( array("ONE" => 1, "one" => 1, "One" => 2), 5 ) );
echo "end\n";
?>
diff --git a/ext/standard/tests/array/array_change_key_case_variation1.phpt b/ext/standard/tests/array/array_change_key_case_variation1.phpt
index ef4ce85256..1f1120ef14 100644
--- a/ext/standard/tests/array/array_change_key_case_variation1.phpt
+++ b/ext/standard/tests/array/array_change_key_case_variation1.phpt
@@ -58,7 +58,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -68,7 +68,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/array_change_key_case_variation2.phpt b/ext/standard/tests/array/array_change_key_case_variation2.phpt
index 818c20e2ee..4ca3f398b4 100644
--- a/ext/standard/tests/array/array_change_key_case_variation2.phpt
+++ b/ext/standard/tests/array/array_change_key_case_variation2.phpt
@@ -56,7 +56,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
diff --git a/ext/standard/tests/array/array_change_key_case_variation3.phpt b/ext/standard/tests/array/array_change_key_case_variation3.phpt
index 025e8f5d61..e04b32f89a 100644
--- a/ext/standard/tests/array/array_change_key_case_variation3.phpt
+++ b/ext/standard/tests/array/array_change_key_case_variation3.phpt
@@ -40,7 +40,7 @@ $inputs = array(
-10.5 => 'negative',
.5 => 'half',
),
-
+
'extreme floats' => array(
12.3456789000e6 => 'large',
12.3456789000E-10 => 'small',
@@ -63,7 +63,7 @@ $inputs = array(
TRUE => 'uppert',
FALSE => 'upperf',
),
-
+
// empty data
/*5*/ 'empty double quotes' => array(
"" => 'emptyd',
diff --git a/ext/standard/tests/array/array_chunk2.phpt b/ext/standard/tests/array/array_chunk2.phpt
index 2560332bf5..6d8b74545e 100644
--- a/ext/standard/tests/array/array_chunk2.phpt
+++ b/ext/standard/tests/array/array_chunk2.phpt
@@ -6,11 +6,11 @@ $input_array = array('a', 'b', 'c', 'd', 'e');
var_dump(array_chunk($input_array, 0));
var_dump(array_chunk($input_array, 0, true));
var_dump(array_chunk($input_array, 1));
-var_dump(array_chunk($input_array, 1, true));
+var_dump(array_chunk($input_array, 1, true));
var_dump(array_chunk($input_array, 2));
-var_dump(array_chunk($input_array, 2, true));
+var_dump(array_chunk($input_array, 2, true));
var_dump(array_chunk($input_array, 10));
-var_dump(array_chunk($input_array, 10, true));
+var_dump(array_chunk($input_array, 10, true));
?>
--EXPECTF--
Warning: array_chunk(): Size parameter expected to be greater than 0 in %s on line %d
diff --git a/ext/standard/tests/array/array_chunk_basic1.phpt b/ext/standard/tests/array/array_chunk_basic1.phpt
index 44c9b5ffaa..8a5c5726b1 100644
--- a/ext/standard/tests/array/array_chunk_basic1.phpt
+++ b/ext/standard/tests/array/array_chunk_basic1.phpt
@@ -20,19 +20,19 @@ $input_arrays = array (
// associative arrays - key as string
array('key1' => 1, "key2" => 2, "key3" => 3),
-
+
// associative arrays - key as numeric
array(1 => 'one', 2 => "two", 3 => "three"),
// array containing elements with/witout keys
array(1 => 'one','two', 3 => 'three', 4, "five" => 5)
-);
+);
$count = 1;
// loop through each element of the array for input
-foreach ($input_arrays as $input_array){
- echo "\n-- Iteration $count --\n";
+foreach ($input_arrays as $input_array){
+ echo "\n-- Iteration $count --\n";
var_dump( array_chunk($input_array, $size) );
$count++;
}
diff --git a/ext/standard/tests/array/array_chunk_basic2.phpt b/ext/standard/tests/array/array_chunk_basic2.phpt
index 6e622df070..030324c320 100644
--- a/ext/standard/tests/array/array_chunk_basic2.phpt
+++ b/ext/standard/tests/array/array_chunk_basic2.phpt
@@ -20,18 +20,18 @@ $input_arrays = array(
// associative arrays - key as string
array('key1' => 1, "key2" => 2, "key3" => 3),
-
+
// associative arrays - key as numeric
array(1 => 'one', 2 => "two", 3 => "three"),
// array containing elements with/without keys
array(1 => 'one','two', 3 => 'three', 4, "five" => 5)
-);
+);
$count = 1;
// loop through each element of the array for input
-foreach ($input_arrays as $input_array){
- echo "\n-- Iteration $count --\n";
+foreach ($input_arrays as $input_array){
+ echo "\n-- Iteration $count --\n";
var_dump( array_chunk($input_array, $size, true) );
var_dump( array_chunk($input_array, $size, false) );
$count++;
diff --git a/ext/standard/tests/array/array_chunk_variation4.phpt b/ext/standard/tests/array/array_chunk_variation4.phpt
index b5d0818327..66e431c0e8 100644
--- a/ext/standard/tests/array/array_chunk_variation4.phpt
+++ b/ext/standard/tests/array/array_chunk_variation4.phpt
@@ -20,16 +20,16 @@ $size = 2;
$input_array = array (
"array1" => array(),
"array2" => array(1, 2, 3),
- "array3" => array(1)
+ "array3" => array(1)
);
-echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' as defualt --\n";
+echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' as defualt --\n";
var_dump( array_chunk($input_array, $size) );
-echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' = true --\n";
+echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' = true --\n";
var_dump( array_chunk($input_array, $size, true) );
-echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' = false --\n";
+echo "\n-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' = false --\n";
var_dump( array_chunk($input_array, $size, false) );
echo "Done";
diff --git a/ext/standard/tests/array/array_chunk_variation6.phpt b/ext/standard/tests/array/array_chunk_variation6.phpt
index 0f66fc19f5..e761a72822 100644
--- a/ext/standard/tests/array/array_chunk_variation6.phpt
+++ b/ext/standard/tests/array/array_chunk_variation6.phpt
@@ -25,7 +25,7 @@ $input_arrays = array (
// array with one element
"array2" => array(1),
-
+
// associative array with duplicate keys
"array3" => array("a" => 1, "b" => 2, "c" => 3, "a" => 4, "d" => 5)
diff --git a/ext/standard/tests/array/array_chunk_variation7.phpt b/ext/standard/tests/array/array_chunk_variation7.phpt
index 0d5ccb7e6d..3d20531704 100644
--- a/ext/standard/tests/array/array_chunk_variation7.phpt
+++ b/ext/standard/tests/array/array_chunk_variation7.phpt
@@ -21,7 +21,7 @@ echo "\n-- Testing array_chunk(), input array containing references \n";
$numbers=array(1, 2, 3, 4);
// reference array
-$input_array = array (
+$input_array = array (
"one" => &$numbers[0],
"two" => &$numbers[1],
"three" => &$numbers[2],
diff --git a/ext/standard/tests/array/array_combine_variation4.phpt b/ext/standard/tests/array/array_combine_variation4.phpt
index bcd8428cee..9fd3852830 100644
--- a/ext/standard/tests/array/array_combine_variation4.phpt
+++ b/ext/standard/tests/array/array_combine_variation4.phpt
@@ -70,7 +70,7 @@ $arrays = array (
// array to be passsed to $arr2 argument
$arr2 = array(0 => 0, 2 => "float", 4 => "f3", 33333333 => "f4",
- "\tHello" => 111, 2.2, 'color', "Hello world" => "string",
+ "\tHello" => 111, 2.2, 'color', "Hello world" => "string",
"pen\n" => 33, new classA() => 11, 133 => "int");
// loop through each sub-array within $arrays to check the behavior of array_combine()
diff --git a/ext/standard/tests/array/array_combine_variation5.phpt b/ext/standard/tests/array/array_combine_variation5.phpt
index 4d9f185786..db5c90df34 100644
--- a/ext/standard/tests/array/array_combine_variation5.phpt
+++ b/ext/standard/tests/array/array_combine_variation5.phpt
@@ -60,8 +60,8 @@ $arrays = array (
/*10*/ array(11 => new classA(), "unset" => @$unset_var, "resource" => $fp),
// array with mixed values
-/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
- 'resource' => $fp, "int" => 133, "float" => 444.432,
+/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
+ 'resource' => $fp, "int" => 133, "float" => 444.432,
"unset" => @$unset_var, "heredoc" => $heredoc)
);
diff --git a/ext/standard/tests/array/array_count_values2.phpt b/ext/standard/tests/array/array_count_values2.phpt
index 6ec907856c..a02868362b 100644
--- a/ext/standard/tests/array/array_count_values2.phpt
+++ b/ext/standard/tests/array/array_count_values2.phpt
@@ -2,15 +2,15 @@
basic array_count_values test
--FILE--
<?php
-$array1 = array(1,
- "hello",
- 1,
- "world",
- "hello",
- "",
- "rabbit",
- "foo",
- "Foo",
+$array1 = array(1,
+ "hello",
+ 1,
+ "world",
+ "hello",
+ "",
+ "rabbit",
+ "foo",
+ "Foo",
TRUE,
FALSE,
NULL,
diff --git a/ext/standard/tests/array/array_count_values_error.phpt b/ext/standard/tests/array/array_count_values_error.phpt
index e544c8117c..2d41fd7bc1 100644
--- a/ext/standard/tests/array/array_count_values_error.phpt
+++ b/ext/standard/tests/array/array_count_values_error.phpt
@@ -5,7 +5,7 @@ Test array_count_values() function : Invalid parameters
/* Prototype : proto array array_count_values(array input)
* Description: Return the value as key and the frequency of that value in input as value
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/array/array_count_values_variation.phpt b/ext/standard/tests/array/array_count_values_variation.phpt
index 9a2830b918..2368973e12 100644
--- a/ext/standard/tests/array/array_count_values_variation.phpt
+++ b/ext/standard/tests/array/array_count_values_variation.phpt
@@ -5,7 +5,7 @@ Test array_count_values() function : Test all normal parameter variations
/* Prototype : proto array array_count_values(array input)
* Description: Return the value as key and the frequency of that value in input as value
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/array/array_diff_assoc.phpt b/ext/standard/tests/array/array_diff_assoc.phpt
index 29db107d65..509c632ba5 100644
--- a/ext/standard/tests/array/array_diff_assoc.phpt
+++ b/ext/standard/tests/array/array_diff_assoc.phpt
@@ -1,6 +1,6 @@
--TEST--
basic array_diff_assoc test
---FILE--
+--FILE--
<?php
$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red", "");
$array2 = array("a" => "green", "yellow", "red", TRUE);
diff --git a/ext/standard/tests/array/array_diff_assoc_variation1.phpt b/ext/standard/tests/array/array_diff_assoc_variation1.phpt
index 10b012414c..c930dd5951 100644
--- a/ext/standard/tests/array/array_diff_assoc_variation1.phpt
+++ b/ext/standard/tests/array/array_diff_assoc_variation1.phpt
@@ -11,7 +11,7 @@ Test array_diff_assoc() function : usage variations - unexpected values for 'ar
/*
* Pass array_diff_assoc arguments that are not arrays in place of $arr1
*/
-
+
echo "*** Testing array_diff_assoc() : usage variations ***\n";
$array = array(1, 2, 3);
@@ -61,7 +61,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -70,11 +70,11 @@ $inputs = array(
/*18*/ "string",
'string',
$heredoc,
-
+
// binary data
/*21*/ b"binary",
(binary)"binary",
-
+
// object data
/*23*/ new classA(),
diff --git a/ext/standard/tests/array/array_diff_assoc_variation10.phpt b/ext/standard/tests/array/array_diff_assoc_variation10.phpt
index 5e4460cd2a..79aae55d4f 100644
--- a/ext/standard/tests/array/array_diff_assoc_variation10.phpt
+++ b/ext/standard/tests/array/array_diff_assoc_variation10.phpt
@@ -15,15 +15,15 @@ Test array_diff_assoc() function : usage variations - binary safe check
echo "*** Testing array_diff_assoc() : usage variations ***\n";
-$array1 = array( b"1",
- b"hello",
- "world",
- "str1" => "hello",
+$array1 = array( b"1",
+ b"hello",
+ "world",
+ "str1" => "hello",
"str2" => "world");
$array2 = array( b"1" => 'hello',
b"world",
- "hello",
+ "hello",
'test');
var_dump(array_diff_assoc($array1, $array2));
diff --git a/ext/standard/tests/array/array_diff_assoc_variation2.phpt b/ext/standard/tests/array/array_diff_assoc_variation2.phpt
index b625819c01..566d89973e 100644
--- a/ext/standard/tests/array/array_diff_assoc_variation2.phpt
+++ b/ext/standard/tests/array/array_diff_assoc_variation2.phpt
@@ -61,7 +61,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -70,11 +70,11 @@ $inputs = array(
/*18*/ "string",
'string',
$heredoc,
-
+
// binary data
/*21*/ b"binary",
(binary)"binary",
-
+
// object data
/*23*/ new classA(),
diff --git a/ext/standard/tests/array/array_diff_assoc_variation3.phpt b/ext/standard/tests/array/array_diff_assoc_variation3.phpt
index 1d4aaf2e43..80278ed9a5 100644
--- a/ext/standard/tests/array/array_diff_assoc_variation3.phpt
+++ b/ext/standard/tests/array/array_diff_assoc_variation3.phpt
@@ -11,7 +11,7 @@ Test array_diff_assoc() function : variation - array containing different data t
/*
* Test how array_diff_assoc() compares indexed arrays containing different data types
*/
-
+
echo "\n*** Testing array_diff_assoc() : usage variations ***\n";
$array = array(1, 2, 3);
@@ -38,7 +38,7 @@ $inputs = array(
// int data
/*1*/
-'int' => array(
+'int' => array(
0,
1,
12345,
@@ -46,7 +46,7 @@ $inputs = array(
// float data
/*2*/
-'float' => array(
+'float' => array(
10.5,
-10.5,
12.3456789000e10,
@@ -66,7 +66,7 @@ $inputs = array(
false,
TRUE,
FALSE),
-
+
// empty data
/*5*/
'empty' => array(
@@ -79,13 +79,13 @@ $inputs = array(
"string",
'string',
$heredoc),
-
+
// binary data
/*7*/
'binary' => array(
b"binary",
(binary)"binary"),
-
+
// object data
/*8*/
'object' => array(
diff --git a/ext/standard/tests/array/array_diff_assoc_variation4.phpt b/ext/standard/tests/array/array_diff_assoc_variation4.phpt
index c93f9c1d0f..047fe9ede1 100644
--- a/ext/standard/tests/array/array_diff_assoc_variation4.phpt
+++ b/ext/standard/tests/array/array_diff_assoc_variation4.phpt
@@ -13,7 +13,7 @@ Test array_diff_assoc() function : usage variations - arrays with different data
* Test how array_diff_assoc() compares arrays containing different data types
* as keys
*/
-
+
echo "\n*** Testing array_diff_assoc() : usage variations ***\n";
$array = array(1, 2, 3);
@@ -32,7 +32,7 @@ $inputs = array(
// int data
/*1*/
-'int' => array(
+'int' => array(
0 => 'zero',
1 => 'one',
12345 => 'positive',
@@ -40,7 +40,7 @@ $inputs = array(
// float data
/*2*/
-'float' => array(
+'float' => array(
10.5 => 'float 1',
-10.5 => 'float 2',
.5 => 'float 3'),
@@ -58,7 +58,7 @@ $inputs = array(
false => 'boolf',
TRUE => 'boolT',
FALSE => 'boolF'),
-
+
// empty data
/*5*/
'empty' => array(
@@ -71,7 +71,7 @@ $inputs = array(
"string" => 'stringd',
'string' => 'strings',
$heredoc => 'stringh'),
-
+
// binary data
/*7*/
'binary' => array(
diff --git a/ext/standard/tests/array/array_diff_assoc_variation6.phpt b/ext/standard/tests/array/array_diff_assoc_variation6.phpt
index e04d80724b..4d519b00f2 100644
--- a/ext/standard/tests/array/array_diff_assoc_variation6.phpt
+++ b/ext/standard/tests/array/array_diff_assoc_variation6.phpt
@@ -17,51 +17,51 @@ Test array_diff_assoc() function : usage variations - strict string comparison c
echo "*** Testing array_diff_assoc() : usage variations ***\n";
-$array = array ('zero',
- 1 => 1,
+$array = array ('zero',
+ 1 => 1,
'two' => 2.00000000000001);
-
+
$inputs = array (
//default keys => string values
/*1*/ array('2.00000000000001', '1', 'zero', 'a'),
-
+
//numeric keys => string values
-/*2*/ array(2 => '2.00000000000001',
- 1 => '1',
- 0 => 'zero',
+/*2*/ array(2 => '2.00000000000001',
+ 1 => '1',
+ 0 => 'zero',
3 => 'a'),
//string keys => string values
-/*3*/ array('2' => '2.00000000000001',
- '1' => '1',
- '0' => 'zero',
+/*3*/ array('2' => '2.00000000000001',
+ '1' => '1',
+ '0' => 'zero',
'3' => 'a') ,
-
+
//default keys => numeric values
/*4*/ array(2, 1, 0),
-
+
//numeric keys => numeric values
/*5*/ array(2 => 2,
1 => 1,
0 => 0),
-
+
//string keys => numeric values
-/*6*/ array('two' => 2,
- '1' => 1,
+/*6*/ array('two' => 2,
+ '1' => 1,
'0' => 0),
-
+
//defualt keys => float values
/*7*/ array(2.00000000000001, 1.00, 0.01E-9),
-
+
//numeric keys => float values
/*8*/ array(2 => 2.00000000000001,
1 => 1.00,
0 => 0.01E-9),
-
+
//string keys => float values
-/*9*/ array ('two' => 2.00000000000001,
- '1' => 1.00,
+/*9*/ array ('two' => 2.00000000000001,
+ '1' => 1.00,
'0' =>0.01E-9)
);
diff --git a/ext/standard/tests/array/array_diff_assoc_variation8.phpt b/ext/standard/tests/array/array_diff_assoc_variation8.phpt
index 54680957ab..52d3a2e98b 100644
--- a/ext/standard/tests/array/array_diff_assoc_variation8.phpt
+++ b/ext/standard/tests/array/array_diff_assoc_variation8.phpt
@@ -21,7 +21,7 @@ echo "*** Testing array_diff_assoc() : variation ***\n";
$array_index = array('a', 'b', 'c', 0 => 'd', 'b'); //duplicate key (0), duplicate value (b)
$array_assoc = array ('2' => 'c', //same key=>value pair, different order
'1' => 'b',
- '0' => 'a',
+ '0' => 'a',
'b' => '3', //key and value from array_index swapped
'c' => 2); //same as above, using integer
diff --git a/ext/standard/tests/array/array_diff_assoc_variation9.phpt b/ext/standard/tests/array/array_diff_assoc_variation9.phpt
index bc3e5417cc..55964711e3 100644
--- a/ext/standard/tests/array/array_diff_assoc_variation9.phpt
+++ b/ext/standard/tests/array/array_diff_assoc_variation9.phpt
@@ -24,7 +24,7 @@ $array2 = array('sub_arraya' => array (1, 3, 5),
echo "-- Compare two 2-D arrays --\n";
var_dump(array_diff_assoc($array1, $array2));
var_dump(array_diff_assoc($array2, $array1));
-
+
echo "\n-- Compare subarrays from two 2-D arrays --\n";
var_dump(array_diff_assoc($array1['sub_array1'], $array2['sub_arraya']));
var_dump(array_diff_assoc($array2['sub_arraya'], $array1['sub_array1']));
diff --git a/ext/standard/tests/array/array_diff_key_variation4.phpt b/ext/standard/tests/array/array_diff_key_variation4.phpt
index 4201becefd..4b8a662930 100644
--- a/ext/standard/tests/array/array_diff_key_variation4.phpt
+++ b/ext/standard/tests/array/array_diff_key_variation4.phpt
@@ -10,7 +10,7 @@ Test array_diff_key() function : usage variation - Passing integer indexed array
echo "*** Testing array_diff_key() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(-07 => '-07', 0xA => '0xA');
+$input_array = array(-07 => '-07', 0xA => '0xA');
$input_arrays = array(
'decimal indexed' => array(10 => '10', '-17' => '-17'),
diff --git a/ext/standard/tests/array/array_diff_key_variation5.phpt b/ext/standard/tests/array/array_diff_key_variation5.phpt
index ff8f3aff4b..e82f1759d4 100644
--- a/ext/standard/tests/array/array_diff_key_variation5.phpt
+++ b/ext/standard/tests/array/array_diff_key_variation5.phpt
@@ -10,8 +10,8 @@ Test array_diff_key() function : usage variation - Passing float indexed array
echo "*** Testing array_diff_key() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(0 => '0', 10 => '10', -10 => '-10', 20 =>'20', -20 => '-20');
-$float_indx_array = array(0.0 => '0.0', 10.5 => '10.5', -10.5 => '-10.5', 0.5 => '0.5');
+$input_array = array(0 => '0', 10 => '10', -10 => '-10', 20 =>'20', -20 => '-20');
+$float_indx_array = array(0.0 => '0.0', 10.5 => '10.5', -10.5 => '-10.5', 0.5 => '0.5');
echo "\n-- Testing array_diff_key() function with float indexed array --\n";
// loop through each element of the array for arr1
diff --git a/ext/standard/tests/array/array_diff_key_variation6.phpt b/ext/standard/tests/array/array_diff_key_variation6.phpt
index 8670d05257..71fb9881a1 100644
--- a/ext/standard/tests/array/array_diff_key_variation6.phpt
+++ b/ext/standard/tests/array/array_diff_key_variation6.phpt
@@ -10,7 +10,7 @@ Test array_diff_key() function : usage variation - Passing boolean indexed array
echo "*** Testing array_diff_key() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(0 => '0', 1 => '1', -10 => '-10', 'true' => 1, 'false' => 0);
+$input_array = array(0 => '0', 1 => '1', -10 => '-10', 'true' => 1, 'false' => 0);
$boolean_indx_array = array(true => 'boolt', false => 'boolf', TRUE => 'boolT', FALSE => 'boolF');
echo "\n-- Testing array_diff_key() function with boolean indexed array --\n";
diff --git a/ext/standard/tests/array/array_diff_key_variation7.phpt b/ext/standard/tests/array/array_diff_key_variation7.phpt
index d3acf8c88c..72da179f6d 100644
--- a/ext/standard/tests/array/array_diff_key_variation7.phpt
+++ b/ext/standard/tests/array/array_diff_key_variation7.phpt
@@ -10,7 +10,7 @@ Test array_diff_key() function : usage variation - Passing null,unset and undefi
echo "*** Testing array_diff_key() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(10 => '10', "" => 'empty');
+$input_array = array(10 => '10', "" => 'empty');
//get an unset variable
$unset_var = 10;
@@ -27,7 +27,7 @@ foreach($input_arrays as $key =>$value) {
// loop through each element of the array for arr1
var_dump( array_diff_key($input_array, $value) );
var_dump( array_diff_key($value, $input_array) );
-}
+}
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/array/array_diff_key_variation8.phpt b/ext/standard/tests/array/array_diff_key_variation8.phpt
index 7134b4e52d..bbe3921ca0 100644
--- a/ext/standard/tests/array/array_diff_key_variation8.phpt
+++ b/ext/standard/tests/array/array_diff_key_variation8.phpt
@@ -13,18 +13,18 @@ echo "*** Testing array_diff_key() : usage variation ***\n";
$array1 = array(
'first' => array('blue' => 1, 'red' => 2),
-
+
'second' => array('yellow' => 7),
-
+
'third' => array(0 => 'zero'),
);
$array2 = array (
'first' => array('blue' => 1, 'red' => 2,),
-
+
'second' => array('cyan' => 8),
-
+
'fourth' => array(2 => 'two'),
);
diff --git a/ext/standard/tests/array/array_diff_uassoc_variation10.phpt b/ext/standard/tests/array/array_diff_uassoc_variation10.phpt
index db0476ae34..4af3023c03 100644
--- a/ext/standard/tests/array/array_diff_uassoc_variation10.phpt
+++ b/ext/standard/tests/array/array_diff_uassoc_variation10.phpt
@@ -11,13 +11,13 @@ Test array_diff_uassoc() function : usage variation - Passing float indexed arra
echo "*** Testing array_diff_uassoc() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(0 => '0', 10 => '10', -10 => '-10', 20 =>'20', -20 => '-20');
-$float_indx_array = array(0.0 => '0.0', 10.5 => '10.5', -10.5 => '-10.5', 0.5 => '0.5');
+$input_array = array(0 => '0', 10 => '10', -10 => '-10', 20 =>'20', -20 => '-20');
+$float_indx_array = array(0.0 => '0.0', 10.5 => '10.5', -10.5 => '-10.5', 0.5 => '0.5');
echo "\n-- Testing array_diff_key() function with float indexed array --\n";
var_dump( array_diff_uassoc($input_array, $float_indx_array, "strcasecmp") );
var_dump( array_diff_uassoc($float_indx_array, $input_array, "strcasecmp") );
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/array/array_diff_uassoc_variation11.phpt b/ext/standard/tests/array/array_diff_uassoc_variation11.phpt
index f2e945840f..6d03dc5fa9 100644
--- a/ext/standard/tests/array/array_diff_uassoc_variation11.phpt
+++ b/ext/standard/tests/array/array_diff_uassoc_variation11.phpt
@@ -11,13 +11,13 @@ Test array_diff_uassoc() function : usage variation - Passing boolean indexed ar
echo "*** Testing array_diff_uassoc() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(0 => '0', 1 => '1', -10 => '-10', 'true' => 1, 'false' => 0);
+$input_array = array(0 => '0', 1 => '1', -10 => '-10', 'true' => 1, 'false' => 0);
$boolean_indx_array = array(true => 'boolt', false => 'boolf', TRUE => 'boolT', FALSE => 'boolF');
echo "\n-- Testing array_diff_key() function with float indexed array --\n";
var_dump( array_diff_uassoc($input_array, $boolean_indx_array, "strcasecmp") );
var_dump( array_diff_uassoc($boolean_indx_array, $input_array, "strcasecmp") );
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/array/array_diff_uassoc_variation12.phpt b/ext/standard/tests/array/array_diff_uassoc_variation12.phpt
index 656faf4793..1b18d37d7b 100644
--- a/ext/standard/tests/array/array_diff_uassoc_variation12.phpt
+++ b/ext/standard/tests/array/array_diff_uassoc_variation12.phpt
@@ -11,7 +11,7 @@ Test array_diff_uassoc() function : usage variation - Passing null,unset and und
echo "*** Testing array_diff_uassoc() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(10 => '10', "" => '');
+$input_array = array(10 => '10', "" => '');
//get an unset variable
$unset_var = 10;
@@ -27,8 +27,8 @@ foreach($input_arrays as $key =>$value) {
echo "\n--$key--\n";
var_dump( array_diff_uassoc($input_array, $value, "strcasecmp") );
var_dump( array_diff_uassoc($value, $input_array, "strcasecmp") );
-}
-
+}
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/array/array_diff_uassoc_variation9.phpt b/ext/standard/tests/array/array_diff_uassoc_variation9.phpt
index cb4672773d..eb4833bc75 100644
--- a/ext/standard/tests/array/array_diff_uassoc_variation9.phpt
+++ b/ext/standard/tests/array/array_diff_uassoc_variation9.phpt
@@ -11,7 +11,7 @@ Test array_diff_uassoc() function : usage variation - Passing integer indexed ar
echo "*** Testing array_diff_uassoc() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(10 => 10, 12 => 12);
+$input_array = array(10 => 10, 12 => 12);
$input_arrays = array(
'decimal indexed' => array(10 => 10, -17 => -17),
@@ -23,8 +23,8 @@ foreach($input_arrays as $key =>$value) {
echo "\n--$key--\n";
var_dump( array_diff_uassoc($input_array, $value, "strcasecmp") );
var_dump( array_diff_uassoc($value, $input_array, "strcasecmp") );
-}
-
+}
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/array/array_diff_ukey_variation5.phpt b/ext/standard/tests/array/array_diff_ukey_variation5.phpt
index eae2cbb915..8d0a5cffc9 100644
--- a/ext/standard/tests/array/array_diff_ukey_variation5.phpt
+++ b/ext/standard/tests/array/array_diff_ukey_variation5.phpt
@@ -13,18 +13,18 @@ echo "*** Testing array_diff_ukey() : usage variation ***\n";
$array1 = array(
'first' => array('blue' => 1, 'red' => 2),
-
+
'second' => array('yellow' => 7),
-
+
'third' => array(0 => 'zero'),
);
$array2 = array (
'first' => array('blue' => 1, 'red' => 2,),
-
+
'second' => array('cyan' => 8),
-
+
'fourth' => array(2 => 'two'),
);
diff --git a/ext/standard/tests/array/array_diff_ukey_variation6.phpt b/ext/standard/tests/array/array_diff_ukey_variation6.phpt
index ab94239696..713967c9c1 100644
--- a/ext/standard/tests/array/array_diff_ukey_variation6.phpt
+++ b/ext/standard/tests/array/array_diff_ukey_variation6.phpt
@@ -10,7 +10,7 @@ Test array_diff_ukey() function : usage variation - Passing integer indexed arra
echo "*** Testing array_diff_ukey() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(-07 => '-07', 0xA => '0xA');
+$input_array = array(-07 => '-07', 0xA => '0xA');
$input_arrays = array(
'decimal indexed' => array(10 => '10', '-17' => '-17'),
diff --git a/ext/standard/tests/array/array_diff_ukey_variation7.phpt b/ext/standard/tests/array/array_diff_ukey_variation7.phpt
index d499fe73c1..d76bae5232 100644
--- a/ext/standard/tests/array/array_diff_ukey_variation7.phpt
+++ b/ext/standard/tests/array/array_diff_ukey_variation7.phpt
@@ -10,8 +10,8 @@ Test array_diff_ukey() function : usage variation - Passing float indexed array
echo "*** Testing array_diff_ukey() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(0 => '0', 10 => '10', -10 => '-10', 20 =>'20');
-$float_indx_array = array(0.0 => '0.0', 10.5 => '10.5', -30.5 => '-30.5');
+$input_array = array(0 => '0', 10 => '10', -10 => '-10', 20 =>'20');
+$float_indx_array = array(0.0 => '0.0', 10.5 => '10.5', -30.5 => '-30.5');
function key_compare_func($key1, $key2)
{
diff --git a/ext/standard/tests/array/array_diff_ukey_variation8.phpt b/ext/standard/tests/array/array_diff_ukey_variation8.phpt
index c3dbdc1376..cf0e3e221d 100644
--- a/ext/standard/tests/array/array_diff_ukey_variation8.phpt
+++ b/ext/standard/tests/array/array_diff_ukey_variation8.phpt
@@ -10,7 +10,7 @@ Test array_diff_ukey() function : usage variation - Passing boolean indexed arra
echo "*** Testing array_diff_ukey() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(0 => '0', 1 => '1', -10 => '-10', 'true' => 1, 'false' => 0);
+$input_array = array(0 => '0', 1 => '1', -10 => '-10', 'true' => 1, 'false' => 0);
$boolean_indx_array = array(true => 'boolt', false => 'boolf', TRUE => 'boolT', FALSE => 'boolF');
function key_compare_func($key1, $key2)
diff --git a/ext/standard/tests/array/array_diff_ukey_variation9.phpt b/ext/standard/tests/array/array_diff_ukey_variation9.phpt
index c211bfe88b..d75aac0715 100644
--- a/ext/standard/tests/array/array_diff_ukey_variation9.phpt
+++ b/ext/standard/tests/array/array_diff_ukey_variation9.phpt
@@ -10,7 +10,7 @@ Test array_diff_ukey() function : usage variation - Passing null,unset and undef
echo "*** Testing array_diff_ukey() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(10 => '10', "" => 'empty');
+$input_array = array(10 => '10', "" => 'empty');
//get an unset variable
$unset_var = 10;
@@ -26,7 +26,7 @@ foreach($input_arrays as $key =>$value) {
echo "\n--$key--\n";
var_dump( array_diff_ukey($value, $input_array, 'strcasecmp') );
var_dump( array_diff_ukey($input_array, $value, 'strcasecmp') );
-}
+}
?>
===DONE===
diff --git a/ext/standard/tests/array/array_diff_variation1.phpt b/ext/standard/tests/array/array_diff_variation1.phpt
index bfe7ac439e..1349db4adf 100644
--- a/ext/standard/tests/array/array_diff_variation1.phpt
+++ b/ext/standard/tests/array/array_diff_variation1.phpt
@@ -61,7 +61,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -70,11 +70,11 @@ $inputs = array(
/*18*/ "string",
'string',
$heredoc,
-
+
// binary data
/*21*/ b"binary",
(binary)"binary",
-
+
// object data
/*23*/ new classA(),
diff --git a/ext/standard/tests/array/array_diff_variation10.phpt b/ext/standard/tests/array/array_diff_variation10.phpt
index ec748c2884..ec9291f9f8 100644
--- a/ext/standard/tests/array/array_diff_variation10.phpt
+++ b/ext/standard/tests/array/array_diff_variation10.phpt
@@ -15,15 +15,15 @@ Test array_diff() function : usage variations - binary safe checking
echo "*** Testing array_diff() : usage variations ***\n";
-$array1 = array( b"1",
- b"hello",
- "world",
- "str1" => "hello",
+$array1 = array( b"1",
+ b"hello",
+ "world",
+ "str1" => "hello",
"str2" => "world");
$array2 = array( b"1" => 'hello',
b"world",
- "hello",
+ "hello",
'test');
var_dump(array_diff($array1, $array2));
diff --git a/ext/standard/tests/array/array_diff_variation2.phpt b/ext/standard/tests/array/array_diff_variation2.phpt
index 7f3f36c9e6..3d76714ca7 100644
--- a/ext/standard/tests/array/array_diff_variation2.phpt
+++ b/ext/standard/tests/array/array_diff_variation2.phpt
@@ -61,7 +61,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -70,7 +70,7 @@ $inputs = array(
/*18*/ "string",
'string',
$heredoc,
-
+
// binary data
/*21*/ b"binary",
(binary)"binary",
diff --git a/ext/standard/tests/array/array_diff_variation3.phpt b/ext/standard/tests/array/array_diff_variation3.phpt
index 5888c3b1ba..08f921c38d 100644
--- a/ext/standard/tests/array/array_diff_variation3.phpt
+++ b/ext/standard/tests/array/array_diff_variation3.phpt
@@ -50,7 +50,7 @@ $values = array(
.5),
/*4*/
-"null" => array(
+"null" => array(
// null data
NULL,
null),
@@ -64,7 +64,7 @@ $values = array(
FALSE),
/*6*/
-"empty" => array(
+"empty" => array(
// empty data
"",
''),
@@ -75,20 +75,20 @@ $values = array(
"string",
'string',
$heredoc),
-
-/*8*/
+
+/*8*/
"binary" => array(
// binary data
b"binary",
(binary)"binary"),
-
-/*9*/
+
+/*9*/
"undefined" => array(
// undefined data
@$undefined_var),
/*10*/
-"unset" => array(
+"unset" => array(
// unset data
@$unset_var)
);
diff --git a/ext/standard/tests/array/array_diff_variation4.phpt b/ext/standard/tests/array/array_diff_variation4.phpt
index 01fb1a43ef..17c8db1c35 100644
--- a/ext/standard/tests/array/array_diff_variation4.phpt
+++ b/ext/standard/tests/array/array_diff_variation4.phpt
@@ -50,7 +50,7 @@ $values = array(
.5),
/*4*/
-"null" => array(
+"null" => array(
// null data
NULL,
null),
@@ -64,7 +64,7 @@ $values = array(
FALSE),
/*6*/
-"empty" => array(
+"empty" => array(
// empty data
"",
''),
@@ -75,20 +75,20 @@ $values = array(
"string",
'string',
$heredoc),
-
-/*8*/
+
+/*8*/
"binary" => array(
// binary data
b"binary",
(binary)"binary"),
-
-/*9*/
+
+/*9*/
"undefined" => array(
// undefined data
@$undefined_var),
/*10*/
-"unset" => array(
+"unset" => array(
// unset data
@$unset_var)
);
diff --git a/ext/standard/tests/array/array_diff_variation5.phpt b/ext/standard/tests/array/array_diff_variation5.phpt
index 71667f67fa..67b978845d 100644
--- a/ext/standard/tests/array/array_diff_variation5.phpt
+++ b/ext/standard/tests/array/array_diff_variation5.phpt
@@ -18,7 +18,7 @@ echo "*** Testing array_diff() : usage variations ***\n";
$arr_int = array(1, 2, 3);
$arr_float = array(1.00, 2.00, 3.00);
$arr_int_str = array('1', '2', '3');
-$arr_float_str = array('1.00', '2.00', '3.00');
+$arr_float_str = array('1.00', '2.00', '3.00');
print "-- Compare integers and floats: --\n";
var_dump(array_diff($arr_int, $arr_float));
diff --git a/ext/standard/tests/array/array_diff_variation6.phpt b/ext/standard/tests/array/array_diff_variation6.phpt
index 9a71db570c..392715657c 100644
--- a/ext/standard/tests/array/array_diff_variation6.phpt
+++ b/ext/standard/tests/array/array_diff_variation6.phpt
@@ -20,7 +20,7 @@ echo "*** Testing array_diff() : usage variations ***\n";
$array_index = array('a', 'b', 'c', 0 => 'd', 'b'); //duplicate key (0), duplicate value (b)
$array_assoc = array ('2' => 'c', //same key=>value pair, different order
'1' => 'b',
- '0' => 'a',
+ '0' => 'a',
'b' => '3', //key and value from array_index swapped
'c' => 2); //same as above, using integer
diff --git a/ext/standard/tests/array/array_fill_basic.phpt b/ext/standard/tests/array/array_fill_basic.phpt
index a368bbaf93..0ac3d08bc9 100644
--- a/ext/standard/tests/array/array_fill_basic.phpt
+++ b/ext/standard/tests/array/array_fill_basic.phpt
@@ -18,7 +18,7 @@ HERE_DOC;
// array of possible valid values for 'val' argument
$values = array (
-
+
/* 1 */ NULL,
0,
1,
@@ -38,7 +38,7 @@ for($i = 0; $i < count($values); $i ++)
var_dump( array_fill($start_key,$num,$val) );
$counter++;
-}
+}
echo "Done";
?>
diff --git a/ext/standard/tests/array/array_fill_keys_error.phpt b/ext/standard/tests/array/array_fill_keys_error.phpt
index 012a729d62..e4aba5f0f7 100644
--- a/ext/standard/tests/array/array_fill_keys_error.phpt
+++ b/ext/standard/tests/array/array_fill_keys_error.phpt
@@ -5,7 +5,7 @@ Test array_fill_keys() function : error conditions
/* Prototype : proto array array_fill_keys(array keys, mixed val)
* Description: Create an array using the elements of the first parameter as keys each initialized to val
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_fill_keys() : error conditions ***\n";
diff --git a/ext/standard/tests/array/array_fill_keys_variation1.phpt b/ext/standard/tests/array/array_fill_keys_variation1.phpt
index 9fab89d7f2..ea27fbdf77 100644
--- a/ext/standard/tests/array/array_fill_keys_variation1.phpt
+++ b/ext/standard/tests/array/array_fill_keys_variation1.phpt
@@ -5,7 +5,7 @@ Test array_fill_keys() function : variation of parameter
/* Prototype : proto array array_fill_keys(array keys, mixed val)
* Description: Create an array using the elements of the first parameter as keys each initialized to val
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
diff --git a/ext/standard/tests/array/array_fill_keys_variation2.phpt b/ext/standard/tests/array/array_fill_keys_variation2.phpt
index 1c9382eb09..368a3c8729 100644
--- a/ext/standard/tests/array/array_fill_keys_variation2.phpt
+++ b/ext/standard/tests/array/array_fill_keys_variation2.phpt
@@ -5,7 +5,7 @@ Test array_fill_keys() function : variation of parameter
/* Prototype : proto array array_fill_keys(array keys, mixed val)
* Description: Create an array using the elements of the first parameter as keys each initialized to val
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Testing with reference types for the arguments */
diff --git a/ext/standard/tests/array/array_fill_keys_variation3.phpt b/ext/standard/tests/array/array_fill_keys_variation3.phpt
index c6eee72175..aac8915935 100644
--- a/ext/standard/tests/array/array_fill_keys_variation3.phpt
+++ b/ext/standard/tests/array/array_fill_keys_variation3.phpt
@@ -5,7 +5,7 @@ Test array_fill_keys() function : variation of parameter
/* Prototype : proto array array_fill_keys(array keys, mixed val)
* Description: Create an array using the elements of the first parameter as keys each initialized to val
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Testing with unexpected argument types */
diff --git a/ext/standard/tests/array/array_fill_keys_variation4.phpt b/ext/standard/tests/array/array_fill_keys_variation4.phpt
index 209443db08..20ba8248f9 100644
--- a/ext/standard/tests/array/array_fill_keys_variation4.phpt
+++ b/ext/standard/tests/array/array_fill_keys_variation4.phpt
@@ -5,7 +5,7 @@ Test array_fill_keys() function : variation of parameter
/* Prototype : proto array array_fill_keys(array keys, mixed val)
* Description: Create an array using the elements of the first parameter as keys each initialized to val
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Testing with unexpected argument types */
diff --git a/ext/standard/tests/array/array_fill_object.phpt b/ext/standard/tests/array/array_fill_object.phpt
index aa1db044cc..bed1cc210f 100644
--- a/ext/standard/tests/array/array_fill_object.phpt
+++ b/ext/standard/tests/array/array_fill_object.phpt
@@ -85,7 +85,7 @@ class Test3
public static $test3_static = 0;
protected $member1;
var $var1 = 30;
- var $var2;
+ var $var2;
function __construct($value1 , $value2)
{
@@ -127,7 +127,7 @@ class Test4
class Child_test4 extends Test4
{
var $var1;
-
+
function __construct($value1 , $value2 , $value3 , $value4)
{
parent::__construct($value1 , $value2 , $value3);
@@ -142,7 +142,7 @@ abstract class AbstractClass
private $member2;
protected $member3;
var $var1 = 30;
-
+
abstract protected function display();
}
@@ -173,7 +173,7 @@ class Template1 implements iTemplate
//array of object values for 'val' argument
$objects = array(
-
+
/* 1 */ new Test(),
new Test1(100 , 101),
new Child_test1(100 , 101 , 102),
diff --git a/ext/standard/tests/array/array_fill_variation1.phpt b/ext/standard/tests/array/array_fill_variation1.phpt
index 5701f79b48..54ec0ec880 100644
--- a/ext/standard/tests/array/array_fill_variation1.phpt
+++ b/ext/standard/tests/array/array_fill_variation1.phpt
@@ -95,9 +95,9 @@ for($index = 0; $index < count($values); $index ++)
{
echo "-- Iteration $counter --\n";
$start_key = $values[$index];
-
+
var_dump( array_fill($start_key,$num,$val) );
-
+
$counter ++;
}
diff --git a/ext/standard/tests/array/array_fill_variation1_64bit.phpt b/ext/standard/tests/array/array_fill_variation1_64bit.phpt
index 699e98b1b3..9872d256fa 100644
--- a/ext/standard/tests/array/array_fill_variation1_64bit.phpt
+++ b/ext/standard/tests/array/array_fill_variation1_64bit.phpt
@@ -95,9 +95,9 @@ for($index = 0; $index < count($values); $index ++)
{
echo "-- Iteration $counter --\n";
$start_key = $values[$index];
-
+
var_dump( array_fill($start_key,$num,$val) );
-
+
$counter ++;
}
diff --git a/ext/standard/tests/array/array_fill_variation2.phpt b/ext/standard/tests/array/array_fill_variation2.phpt
index d3955fdaaa..0d1ec464b7 100644
--- a/ext/standard/tests/array/array_fill_variation2.phpt
+++ b/ext/standard/tests/array/array_fill_variation2.phpt
@@ -88,7 +88,7 @@ for($index = 0; $index < count($values); $index ++)
$num = $values[$index];
var_dump( array_fill($start_key,$num,$val) );
-
+
$counter ++;
}
diff --git a/ext/standard/tests/array/array_fill_variation3.phpt b/ext/standard/tests/array/array_fill_variation3.phpt
index 4a463a9c0e..96531197ea 100644
--- a/ext/standard/tests/array/array_fill_variation3.phpt
+++ b/ext/standard/tests/array/array_fill_variation3.phpt
@@ -55,9 +55,9 @@ for($index = 0; $index < count($values); $index ++)
{
echo "-- Iteration $counter --\n";
$val = $values[$index];
-
+
var_dump( array_fill($start_key , $num , $val) );
-
+
$counter++;
}
diff --git a/ext/standard/tests/array/array_fill_variation4.phpt b/ext/standard/tests/array/array_fill_variation4.phpt
index d3f9e4c1e7..d469774026 100644
--- a/ext/standard/tests/array/array_fill_variation4.phpt
+++ b/ext/standard/tests/array/array_fill_variation4.phpt
@@ -35,11 +35,11 @@ for($i =0; $i < count($values); $i ++)
{
echo "-- Iteration $counter --\n";
$val = $values[$i];
-
+
var_dump( array_fill($start_key,$num,array_fill($start_key,$num,$val)) );
-
+
$counter++;
-}
+}
echo "Done";
?>
diff --git a/ext/standard/tests/array/array_fill_variation5.phpt b/ext/standard/tests/array/array_fill_variation5.phpt
index 341e0cf565..5253fb4c1f 100644
--- a/ext/standard/tests/array/array_fill_variation5.phpt
+++ b/ext/standard/tests/array/array_fill_variation5.phpt
@@ -20,7 +20,7 @@ $num = 2;
//array of different types of array values for 'val' argument
$values = array(
-
+
/* 1 */ array(),
array(1 , 2 , 3 , 4),
array(1 => "Hi" , 2 => "Hello"),
@@ -44,7 +44,7 @@ for($i = 0; $i < count($values); $i++)
{
echo "-- Iteration $counter --\n";
$val = $values[$i];
-
+
var_dump( array_fill($start_key , $num , $val) );
$counter++;
diff --git a/ext/standard/tests/array/array_filter.phpt b/ext/standard/tests/array/array_filter.phpt
index 94f8e39331..ba27a59c96 100644
--- a/ext/standard/tests/array/array_filter.phpt
+++ b/ext/standard/tests/array/array_filter.phpt
@@ -31,7 +31,7 @@ var_dump(array_filter("", null));
var_dump(array_filter($array1, 1));
echo '== DONE ==';
-?>
+?>
--EXPECTF--
Odd :
array(3) {
diff --git a/ext/standard/tests/array/array_filter_object.phpt b/ext/standard/tests/array/array_filter_object.phpt
index de782fe69b..2126b4c482 100644
--- a/ext/standard/tests/array/array_filter_object.phpt
+++ b/ext/standard/tests/array/array_filter_object.phpt
@@ -42,7 +42,7 @@ abstract class AbstractClass
class ChildClass extends AbstractClass
{
private $var3;
- public function emptyMethod() {
+ public function emptyMethod() {
echo "defined in child";
}
}
@@ -51,7 +51,7 @@ class ChildClass extends AbstractClass
class FinalClass
{
private $var4;
- final function finalMethod() {
+ final function finalMethod() {
echo 'This can not be overloaded';
}
}
diff --git a/ext/standard/tests/array/array_filter_variation1.phpt b/ext/standard/tests/array/array_filter_variation1.phpt
index bbcff3818c..c9c1ab7564 100644
--- a/ext/standard/tests/array/array_filter_variation1.phpt
+++ b/ext/standard/tests/array/array_filter_variation1.phpt
@@ -76,7 +76,7 @@ $input_values = array(
// object data
/*20*/ new MyClass(),
-
+
// resource data
$fp,
diff --git a/ext/standard/tests/array/array_filter_variation4.phpt b/ext/standard/tests/array/array_filter_variation4.phpt
index 03a08835b9..45ac232aed 100644
--- a/ext/standard/tests/array/array_filter_variation4.phpt
+++ b/ext/standard/tests/array/array_filter_variation4.phpt
@@ -46,7 +46,7 @@ var_dump( array_filter($input, "callback3") );
// callback function with parameter and with return value
function callback4($input)
{
- if($input > 0 ) {
+ if($input > 0 ) {
return true;
}
else {
diff --git a/ext/standard/tests/array/array_filter_variation5.phpt b/ext/standard/tests/array/array_filter_variation5.phpt
index f35c321376..af83fcbc94 100644
--- a/ext/standard/tests/array/array_filter_variation5.phpt
+++ b/ext/standard/tests/array/array_filter_variation5.phpt
@@ -55,13 +55,13 @@ $input = array(
);
// With default callback function
-var_dump( array_filter($input) );
+var_dump( array_filter($input) );
// With callback function which returns always true
-var_dump( array_filter($input, 'always_true') );
+var_dump( array_filter($input, 'always_true') );
// With callback function which returns always false
-var_dump( array_filter($input, 'always_false') );
+var_dump( array_filter($input, 'always_false') );
echo "Done"
?>
diff --git a/ext/standard/tests/array/array_filter_variation6.phpt b/ext/standard/tests/array/array_filter_variation6.phpt
index 2e7ea77dca..108f474513 100644
--- a/ext/standard/tests/array/array_filter_variation6.phpt
+++ b/ext/standard/tests/array/array_filter_variation6.phpt
@@ -29,7 +29,7 @@ function callback($input)
return false;
}
}
-
+
// initializing variables
$value1 = array(1, 2, 8);
$value2 = array(5, 6, 4);
@@ -39,7 +39,7 @@ $input = array(&$value1, 10, &$value2, 'value');
var_dump( array_filter($input, 'callback') );
// with default 'callback' argument
-var_dump( array_filter($input) );
+var_dump( array_filter($input) );
echo "Done"
?>
diff --git a/ext/standard/tests/array/array_flip.phpt b/ext/standard/tests/array/array_flip.phpt
index c268f5aaf6..c2c29b2952 100644
--- a/ext/standard/tests/array/array_flip.phpt
+++ b/ext/standard/tests/array/array_flip.phpt
@@ -2,15 +2,15 @@
basic array_flip test
--FILE--
<?php
-$trans = array("a" => 1,
- "b" => 1,
- "c" => 2,
- "z" => 0,
+$trans = array("a" => 1,
+ "b" => 1,
+ "c" => 2,
+ "z" => 0,
"d" => TRUE,
"E" => FALSE,
"F" => NULL,
- 0 => "G",
- 1 => "h",
+ 0 => "G",
+ 1 => "h",
2 => "i");
$trans = array_flip($trans);
var_dump($trans);
diff --git a/ext/standard/tests/array/array_flip_basic.phpt b/ext/standard/tests/array/array_flip_basic.phpt
index ab326b4ab6..a081a81939 100644
--- a/ext/standard/tests/array/array_flip_basic.phpt
+++ b/ext/standard/tests/array/array_flip_basic.phpt
@@ -10,7 +10,7 @@ Test array_flip() function : basic functionality
echo "*** Testing array_flip() : basic functionality ***\n";
// array with default keys - numeric values
-$input = array(1, 2);
+$input = array(1, 2);
var_dump( array_flip($input) );
// array with default keys - string values
@@ -18,7 +18,7 @@ $input = array('value1', "value2");
var_dump( array_flip($input) );
// associative arrays - key as string
-$input = array('key1' => 1, "key2" => 2);
+$input = array('key1' => 1, "key2" => 2);
var_dump( array_flip($input) );
// associative arrays - key as numeric
diff --git a/ext/standard/tests/array/array_flip_variation1.phpt b/ext/standard/tests/array/array_flip_variation1.phpt
index 9fbfdf0139..8df3a11eea 100644
--- a/ext/standard/tests/array/array_flip_variation1.phpt
+++ b/ext/standard/tests/array/array_flip_variation1.phpt
@@ -24,7 +24,7 @@ class MyClass
//resource variable
$fp = fopen(__FILE__,'r');
-
+
//array of values for 'input' argument
$values = array(
// int data
diff --git a/ext/standard/tests/array/array_flip_variation4.phpt b/ext/standard/tests/array/array_flip_variation4.phpt
index 2420c7e00f..405e518b63 100644
--- a/ext/standard/tests/array/array_flip_variation4.phpt
+++ b/ext/standard/tests/array/array_flip_variation4.phpt
@@ -38,7 +38,7 @@ $input = array(
'bool_value2' => false,
'bool_value3' => TRUE,
'bool_value4' => FALSE,
-
+
// null values
'null_value1' => null,
@@ -51,7 +51,7 @@ $input = array(
// resource value
'resource_value' => $fp,
);
-
+
var_dump( array_flip($input) );
// closing resource
diff --git a/ext/standard/tests/array/array_intersect_assoc_variation1.phpt b/ext/standard/tests/array/array_intersect_assoc_variation1.phpt
index 406e82a86f..ca11b7cc9b 100644
--- a/ext/standard/tests/array/array_intersect_assoc_variation1.phpt
+++ b/ext/standard/tests/array/array_intersect_assoc_variation1.phpt
@@ -20,7 +20,7 @@ echo "*** Testing array_intersect_assoc() : Passing non-array values to \$arr1 a
$arr2 = array(1, 2);
// additional array to be passed for intersection
-$arr3 = array(1, 2, "one" => 1, "two" => 2);
+$arr3 = array(1, 2, "one" => 1, "two" => 2);
// get an unset variable
$unset_var = 10;
@@ -71,7 +71,7 @@ $arrays = array(
// empty data
/*16*/ "",
'',
-
+
// string data
/*18*/ "string",
'string',
@@ -94,7 +94,7 @@ $arrays = array(
$iterator = 1;
foreach($arrays as $unexpected_value) {
echo "\n-- Iteration $iterator --";
-
+
// Calling array_intersect_assoc() with default arguments
var_dump( array_intersect_assoc($unexpected_value, $arr2) );
diff --git a/ext/standard/tests/array/array_intersect_assoc_variation2.phpt b/ext/standard/tests/array/array_intersect_assoc_variation2.phpt
index 59ba9048d3..274da6f7b2 100644
--- a/ext/standard/tests/array/array_intersect_assoc_variation2.phpt
+++ b/ext/standard/tests/array/array_intersect_assoc_variation2.phpt
@@ -71,7 +71,7 @@ $arrays = array(
// empty data
/*16*/ "",
'',
-
+
// string data
/*18*/ "string",
'string',
@@ -94,7 +94,7 @@ $arrays = array(
$iterator = 1;
foreach($arrays as $unexpected_value) {
echo "\n-- Iteration $iterator --";
-
+
// Calling array_intersect_assoc() with default arguments
var_dump( array_intersect_assoc($arr1,$unexpected_value) );
diff --git a/ext/standard/tests/array/array_intersect_assoc_variation5.phpt b/ext/standard/tests/array/array_intersect_assoc_variation5.phpt
index 0aa109933a..3a86aa9466 100644
--- a/ext/standard/tests/array/array_intersect_assoc_variation5.phpt
+++ b/ext/standard/tests/array/array_intersect_assoc_variation5.phpt
@@ -60,7 +60,7 @@ $arrays = array (
// array to be passsed to $arr2 argument
$arr2 = array(0 => 0, 2 => "float", 4 => "f3", 33333333 => "f4",
- "\tHello" => 111, 2.2, 'color', "Hello world" => "string",
+ "\tHello" => 111, 2.2, 'color', "Hello world" => "string",
"pen\n" => 33, 133 => "int");
// loop through each sub-array within $arrrays to check the behavior of array_intersect_assoc()
diff --git a/ext/standard/tests/array/array_intersect_assoc_variation7.phpt b/ext/standard/tests/array/array_intersect_assoc_variation7.phpt
index ba2f79a7ec..9ffbaac77a 100644
--- a/ext/standard/tests/array/array_intersect_assoc_variation7.phpt
+++ b/ext/standard/tests/array/array_intersect_assoc_variation7.phpt
@@ -60,14 +60,14 @@ $arrays = array (
/*10*/ array(11 => new classA(), "unset" => @$unset_var, "resource" => $fp),
// array with mixed values
-/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
- 'resource' => $fp, "int" => 133, "float" => 444.432,
+/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
+ 'resource' => $fp, "int" => 133, "float" => 444.432,
"unset" => @$unset_var, "heredoc" => $heredoc)
);
// array to be passsed to $arr2 argument
-$arr2 = array(0 => "0", 1, "two" => 2, "float" => 2.3333, "f1" => 1.2,
- "f4" => 33333333.333, 111 => "\tHello", 3.3 => 'pen\n', '\v\fworld',
+$arr2 = array(0 => "0", 1, "two" => 2, "float" => 2.3333, "f1" => 1.2,
+ "f4" => 33333333.333, 111 => "\tHello", 3.3 => 'pen\n', '\v\fworld',
"heredoc" => "Hello world", 11 => new classA(), "resource" => $fp,
"int" => 133, 222 => "fruit");
diff --git a/ext/standard/tests/array/array_intersect_assoc_variation8.phpt b/ext/standard/tests/array/array_intersect_assoc_variation8.phpt
index 6ec8fb08d7..a287f4742f 100644
--- a/ext/standard/tests/array/array_intersect_assoc_variation8.phpt
+++ b/ext/standard/tests/array/array_intersect_assoc_variation8.phpt
@@ -60,8 +60,8 @@ $arrays = array (
/*10*/ array(11 => new classA(), "unset" => @$unset_var, "resource" => $fp),
// array with mixed values
-/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
- 'resource' => $fp, "int" => 133, "float" => 444.432,
+/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
+ 'resource' => $fp, "int" => 133, "float" => 444.432,
"unset" => @$unset_var, "heredoc" => $heredoc)
);
diff --git a/ext/standard/tests/array/array_intersect_assoc_variation9.phpt b/ext/standard/tests/array/array_intersect_assoc_variation9.phpt
index 338d40936e..48a502fcc4 100644
--- a/ext/standard/tests/array/array_intersect_assoc_variation9.phpt
+++ b/ext/standard/tests/array/array_intersect_assoc_variation9.phpt
@@ -18,7 +18,7 @@ echo "*** Testing array_intersect_assoc() : passing two dimensional array to bot
// two dimensional arrays for $arr1 and $arr2 argument
$arr1 = array (
-
+
// arrays with default keys
array(1, 2, "hello", 'world'),
array(1, 2, 3, 4),
@@ -26,7 +26,7 @@ $arr1 = array (
// arrays with explicit keys
array(1 => "one", 2 => "two", 3 => "three"),
array("ten" => 10, "twenty" => 20.00, "thirty" => 30)
-);
+);
$arr2 = array (
array(1, 2, 3, 4),
diff --git a/ext/standard/tests/array/array_intersect_key_variation4.phpt b/ext/standard/tests/array/array_intersect_key_variation4.phpt
index 24e649fe15..396248728a 100644
--- a/ext/standard/tests/array/array_intersect_key_variation4.phpt
+++ b/ext/standard/tests/array/array_intersect_key_variation4.phpt
@@ -10,7 +10,7 @@ Test array_intersect_key() function : usage variation - Passing integer indexed
echo "*** Testing array_intersect_key() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(0 => '0', -1 => '-1' , 02 => 'two', -07 => '-07', 0xA => '0xA', -0xC => '-0xc');
+$input_array = array(0 => '0', -1 => '-1' , 02 => 'two', -07 => '-07', 0xA => '0xA', -0xC => '-0xc');
$input_arrays = array(
'decimal indexed' => array(10 => '10', '-17' => '-17'),
diff --git a/ext/standard/tests/array/array_intersect_key_variation5.phpt b/ext/standard/tests/array/array_intersect_key_variation5.phpt
index c89add62ec..cf53919256 100644
--- a/ext/standard/tests/array/array_intersect_key_variation5.phpt
+++ b/ext/standard/tests/array/array_intersect_key_variation5.phpt
@@ -10,8 +10,8 @@ Test array_intersect_key() function : usage variation - Passing float indexed ar
echo "*** Testing array_intersect_key() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(0 => '0', 10 => '10' , -10 => '-10');
-$float_indx_array = array(0.0 => '0.0', 10.5 => '10.5' , -10.5 => '-10.5', 0.5 => '0.5');
+$input_array = array(0 => '0', 10 => '10' , -10 => '-10');
+$float_indx_array = array(0.0 => '0.0', 10.5 => '10.5' , -10.5 => '-10.5', 0.5 => '0.5');
echo "\n-- Testing array_intersect_key() function with float indexed array --\n";
var_dump( array_intersect_key($input_array, $float_indx_array) );
diff --git a/ext/standard/tests/array/array_intersect_key_variation6.phpt b/ext/standard/tests/array/array_intersect_key_variation6.phpt
index b671e11e92..fa6bf02776 100644
--- a/ext/standard/tests/array/array_intersect_key_variation6.phpt
+++ b/ext/standard/tests/array/array_intersect_key_variation6.phpt
@@ -10,7 +10,7 @@ Test array_intersect_key() function : usage variation - Passing boolean indexed
echo "*** Testing array_intersect_key() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(0 => '0', 1 => '1' , -10 => '-10');
+$input_array = array(0 => '0', 1 => '1' , -10 => '-10');
$boolean_indx_array = array(true => 'boolt', false => 'boolf', TRUE => 'boolT', FALSE => 'boolF');
echo "\n-- Testing array_intersect_key() function with boolean indexed array --\n";
diff --git a/ext/standard/tests/array/array_intersect_key_variation7.phpt b/ext/standard/tests/array/array_intersect_key_variation7.phpt
index 4dabf8d1b7..2698681d8e 100644
--- a/ext/standard/tests/array/array_intersect_key_variation7.phpt
+++ b/ext/standard/tests/array/array_intersect_key_variation7.phpt
@@ -10,7 +10,7 @@ Test array_intersect_key() function : usage variation - Passing null,unset and u
echo "*** Testing array_intersect_key() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
-$input_array = array(0 => '0', 1 => '1' , -10 => '-10' , null => 'null');
+$input_array = array(0 => '0', 1 => '1' , -10 => '-10' , null => 'null');
//get an unset variable
$unset_var = 10;
unset ($unset_var);
@@ -25,7 +25,7 @@ foreach($input_arrays as $key =>$value) {
echo "\n--$key--\n";
var_dump( array_intersect_key($input_array, $value) );
var_dump( array_intersect_key($value,$input_array ) );
-}
+}
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/array/array_intersect_key_variation8.phpt b/ext/standard/tests/array/array_intersect_key_variation8.phpt
index 5792930afc..29d1f3ba7e 100644
--- a/ext/standard/tests/array/array_intersect_key_variation8.phpt
+++ b/ext/standard/tests/array/array_intersect_key_variation8.phpt
@@ -13,22 +13,22 @@ echo "*** Testing array_intersect_key() : usage variation ***\n";
$array1 = array(
'first' => array('blue' => 1, 'red' => 2),
-
+
'second' => array('yellow' => 7),
-
+
'third' => array(0 =>'zero'),
);
$array2 = array (
'first' => array('blue' => 1, 'red' => 2,),
-
+
'second' => array('cyan' => 8),
-
+
'fourth' => array(2 => 'two'),
);
var_dump( array_intersect_key($array1, $array2) );
-var_dump( array_intersect_key($array2,$array1 ) );
+var_dump( array_intersect_key($array2,$array1 ) );
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/array/array_intersect_uassoc_variation10.phpt b/ext/standard/tests/array/array_intersect_uassoc_variation10.phpt
index 9fda4da434..8f0bfd4753 100644
--- a/ext/standard/tests/array/array_intersect_uassoc_variation10.phpt
+++ b/ext/standard/tests/array/array_intersect_uassoc_variation10.phpt
@@ -18,11 +18,11 @@ class MyClass
static function static_compare_func($a, $b) {
return strcasecmp($a, $b);
}
-
+
public function class_compare_func($a, $b) {
return strcasecmp($a, $b);
}
-
+
}
echo "\n-- Testing array_intersect_uassoc() function using class with static method as callback --\n";
diff --git a/ext/standard/tests/array/array_intersect_ukey_error.phpt b/ext/standard/tests/array/array_intersect_ukey_error.phpt
index bb052fbf76..1d449e8fb0 100644
--- a/ext/standard/tests/array/array_intersect_ukey_error.phpt
+++ b/ext/standard/tests/array/array_intersect_ukey_error.phpt
@@ -19,7 +19,7 @@ function key_compare_func($key1, $key2)
if ($key1 == $key2)
return 0;
else
- return ($key1 > $key2)? 1:-1;
+ return ($key1 > $key2)? 1:-1;
}
//Test array_intersect_ukey with one more than the expected number of arguments
diff --git a/ext/standard/tests/array/array_intersect_ukey_variation1.phpt b/ext/standard/tests/array/array_intersect_ukey_variation1.phpt
index 4eb2253f9b..ab3e7d14b4 100644
--- a/ext/standard/tests/array/array_intersect_ukey_variation1.phpt
+++ b/ext/standard/tests/array/array_intersect_ukey_variation1.phpt
@@ -19,7 +19,7 @@ function key_compare_func($key1, $key2)
if ($key1 == $key2)
return 0;
else
- return ($key1 > $key2)? 1:-1;
+ return ($key1 > $key2)? 1:-1;
}
//get an unset variable
diff --git a/ext/standard/tests/array/array_intersect_ukey_variation2.phpt b/ext/standard/tests/array/array_intersect_ukey_variation2.phpt
index 5bfe56065c..79bf2b07af 100644
--- a/ext/standard/tests/array/array_intersect_ukey_variation2.phpt
+++ b/ext/standard/tests/array/array_intersect_ukey_variation2.phpt
@@ -19,7 +19,7 @@ function key_compare_func($key1, $key2)
if ($key1 == $key2)
return 0;
else
- return ($key1 > $key2)? 1:-1;
+ return ($key1 > $key2)? 1:-1;
}
//get an unset variable
diff --git a/ext/standard/tests/array/array_intersect_ukey_variation4.phpt b/ext/standard/tests/array/array_intersect_ukey_variation4.phpt
index 4d58cb7c2c..82ac583131 100644
--- a/ext/standard/tests/array/array_intersect_ukey_variation4.phpt
+++ b/ext/standard/tests/array/array_intersect_ukey_variation4.phpt
@@ -20,7 +20,7 @@ function key_compare_func($key1, $key2)
if ($key1 == $key2)
return 0;
else
- return ($key1 > $key2)? 1:-1;
+ return ($key1 > $key2)? 1:-1;
}
//get an unset variable
diff --git a/ext/standard/tests/array/array_intersect_ukey_variation5.phpt b/ext/standard/tests/array/array_intersect_ukey_variation5.phpt
index b512b06040..10e5b7f099 100644
--- a/ext/standard/tests/array/array_intersect_ukey_variation5.phpt
+++ b/ext/standard/tests/array/array_intersect_ukey_variation5.phpt
@@ -21,7 +21,7 @@ function key_compare_func($key1, $key2)
if ($key1 == $key2)
return 0;
else
- return ($key1 > $key2)? 1:-1;
+ return ($key1 > $key2)? 1:-1;
}
echo "\n-- Result of integers and floating point intersection --\n";
diff --git a/ext/standard/tests/array/array_intersect_ukey_variation6.phpt b/ext/standard/tests/array/array_intersect_ukey_variation6.phpt
index 6231a657a9..6f5431b1b6 100644
--- a/ext/standard/tests/array/array_intersect_ukey_variation6.phpt
+++ b/ext/standard/tests/array/array_intersect_ukey_variation6.phpt
@@ -20,7 +20,7 @@ function key_compare_func($key1, $key2)
if ($key1 == $key2)
return 0;
else
- return ($key1 > $key2)? 1:-1;
+ return ($key1 > $key2)? 1:-1;
}
echo "\n-- Result of floating points and strings containing integers intersection --\n";
diff --git a/ext/standard/tests/array/array_intersect_ukey_variation7.phpt b/ext/standard/tests/array/array_intersect_ukey_variation7.phpt
index c79277df56..96fef2a48d 100644
--- a/ext/standard/tests/array/array_intersect_ukey_variation7.phpt
+++ b/ext/standard/tests/array/array_intersect_ukey_variation7.phpt
@@ -21,7 +21,7 @@ function key_compare_func($key1, $key2)
if ($key1 == $key2)
return 0;
else
- return ($key1 > $key2)? 1:-1;
+ return ($key1 > $key2)? 1:-1;
}
echo "\n-- Result of strings containing integers intersection --\n";
diff --git a/ext/standard/tests/array/array_intersect_ukey_variation9.phpt b/ext/standard/tests/array/array_intersect_ukey_variation9.phpt
index 38c91fca07..5094d54435 100644
--- a/ext/standard/tests/array/array_intersect_ukey_variation9.phpt
+++ b/ext/standard/tests/array/array_intersect_ukey_variation9.phpt
@@ -18,11 +18,11 @@ class MyClass
static function static_compare_func($key1, $key2) {
return strcasecmp($key1, $key2);
}
-
+
public function class_compare_func($key1, $key2) {
return strcasecmp($key1, $key2);
}
-
+
}
echo "\n-- Testing array_intersect_ukey() function using class with static method as callback --\n";
diff --git a/ext/standard/tests/array/array_intersect_variation1.phpt b/ext/standard/tests/array/array_intersect_variation1.phpt
index e171cbb7bf..f6836c1bda 100644
--- a/ext/standard/tests/array/array_intersect_variation1.phpt
+++ b/ext/standard/tests/array/array_intersect_variation1.phpt
@@ -19,7 +19,7 @@ echo "*** Testing array_intersect() : Passing non-array values to \$arr1 argumen
$arr2 = array(1, 2);
// array to be passed to optional argument
-$arr3 = array(1, 2, "one" => 1, "two" => 2);
+$arr3 = array(1, 2, "one" => 1, "two" => 2);
// get an unset variable
$unset_var = 10;
@@ -70,7 +70,7 @@ $arrays = array(
// empty data
/*16*/ "",
'',
-
+
// string data
/*18*/ "string",
'string',
@@ -93,7 +93,7 @@ $arrays = array(
$iterator = 1;
foreach($arrays as $unexpected_value) {
echo "\n-- Iterator $iterator --";
-
+
// Calling array_intersect() with default arguments
var_dump( array_intersect($unexpected_value,$arr2) );
diff --git a/ext/standard/tests/array/array_intersect_variation2.phpt b/ext/standard/tests/array/array_intersect_variation2.phpt
index 976211deec..932841107e 100644
--- a/ext/standard/tests/array/array_intersect_variation2.phpt
+++ b/ext/standard/tests/array/array_intersect_variation2.phpt
@@ -70,7 +70,7 @@ $arrays = array(
// empty data
/*16*/ "",
'',
-
+
// string data
/*18*/ "string",
'string',
@@ -93,7 +93,7 @@ $arrays = array(
$iterator = 1;
foreach($arrays as $unexpected_value) {
echo "\n-- Iterator $iterator --";
-
+
// Calling array_intersect() with default arguments
var_dump( array_intersect($arr1,$unexpected_value) );
diff --git a/ext/standard/tests/array/array_intersect_variation7.phpt b/ext/standard/tests/array/array_intersect_variation7.phpt
index da1088c5ed..c6e12512f1 100644
--- a/ext/standard/tests/array/array_intersect_variation7.phpt
+++ b/ext/standard/tests/array/array_intersect_variation7.phpt
@@ -59,8 +59,8 @@ $arrays = array (
/*10*/ array(11 => new classA(), "unset" => @$unset_var, "resource" => $fp),
// array with mixed values
-/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
- 'resource' => $fp, "int" => 133, "float" => 444.432,
+/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
+ 'resource' => $fp, "int" => 133, "float" => 444.432,
"unset" => @$unset_var, "heredoc" => $heredoc)
);
diff --git a/ext/standard/tests/array/array_intersect_variation8.phpt b/ext/standard/tests/array/array_intersect_variation8.phpt
index 91eae49aab..de13518ade 100644
--- a/ext/standard/tests/array/array_intersect_variation8.phpt
+++ b/ext/standard/tests/array/array_intersect_variation8.phpt
@@ -59,8 +59,8 @@ $arrays = array (
/*10*/ array(11 => new classA(), "unset" => @$unset_var, "resource" => $fp),
// array with mixed values
-/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
- 'resource' => $fp, "int" => 133, "float" => 444.432,
+/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
+ 'resource' => $fp, "int" => 133, "float" => 444.432,
"unset" => @$unset_var, "heredoc" => $heredoc)
);
diff --git a/ext/standard/tests/array/array_intersect_variation9.phpt b/ext/standard/tests/array/array_intersect_variation9.phpt
index 0dba1af6d3..74d1c833e7 100644
--- a/ext/standard/tests/array/array_intersect_variation9.phpt
+++ b/ext/standard/tests/array/array_intersect_variation9.phpt
@@ -17,7 +17,7 @@ echo "*** Testing array_intersect() : passing two dimensional array to both \$ar
// two dimensional arrays for $arr1 and $arr2 argument
$arr1 = array (
-
+
// arrays with default keys
array(1, 2, "hello", 'world'),
array(1, 2, 3, 4),
@@ -25,7 +25,7 @@ $arr1 = array (
// arrays with explicit keys
array(1 => "one", 2 => "two", 3 => "three"),
array("ten" => 10, "twenty" => 20.00, "thirty" => 30)
-);
+);
$arr2 = array (
array(1, 2, 3, 4),
diff --git a/ext/standard/tests/array/array_key_exists.phpt b/ext/standard/tests/array/array_key_exists.phpt
index 95ca367284..c1d1cc2e8f 100644
--- a/ext/standard/tests/array/array_key_exists.phpt
+++ b/ext/standard/tests/array/array_key_exists.phpt
@@ -8,7 +8,7 @@ Test array_key_exists() function
* Returns TRUE if the given key is set in the array.
* key can be any value possible for an array index.
* Also also works on objects.
- */
+ */
echo "*** Testing basic functionalities ***\n";
/* Arrays with regular values */
@@ -24,7 +24,7 @@ $search_arrays = array(
);
/* keys to search in $search_arrays. $keys[0]
is the key to be searched in $search_arrays[0] and so on */
-$keys = array( 1, 'a', 2, 4, "Name", "Red", 0, 3 );
+$keys = array( 1, 'a', 2, 4, "Name", "Red", 0, 3 );
$key_counter = 0;
foreach ($search_arrays as $search_array) {
@@ -74,21 +74,21 @@ var_dump( array_key_exists() );
// first args as array
var_dump( array_key_exists(array(), array()) );
// second args as string
-var_dump( array_key_exists("", "") );
+var_dump( array_key_exists("", "") );
// second args a integer
-var_dump( array_key_exists(1, 1) );
+var_dump( array_key_exists(1, 1) );
// second args as NULL
-var_dump( array_key_exists(1, NULL) );
+var_dump( array_key_exists(1, NULL) );
// second args as boolean
-var_dump( array_key_exists(1, true) );
+var_dump( array_key_exists(1, true) );
// first args as boolean
-var_dump( array_key_exists(false, true) );
+var_dump( array_key_exists(false, true) );
// second args as float
-var_dump( array_key_exists(false, 17.5) );
+var_dump( array_key_exists(false, 17.5) );
// args more than expected
-var_dump( array_key_exists(1, array(), array()) );
+var_dump( array_key_exists(1, array(), array()) );
// first argument as floating point value
-var_dump( array_key_exists(17.5, array(1,23) ) ) ;
+var_dump( array_key_exists(17.5, array(1,23) ) ) ;
echo "\n*** Testing operation on objects ***\n";
class key_check
@@ -118,7 +118,7 @@ var_dump(array_key_exists("var", $key_check_obj->arr)); //found, key is in memb
var_dump( array_key_exists($key_check_obj, $key_check_obj) );
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
*** Testing basic functionalities ***
-- Iteration 1 --
bool(true)
diff --git a/ext/standard/tests/array/array_key_exists_object1.phpt b/ext/standard/tests/array/array_key_exists_object1.phpt
index 70fb49a725..e55ce93706 100644
--- a/ext/standard/tests/array/array_key_exists_object1.phpt
+++ b/ext/standard/tests/array/array_key_exists_object1.phpt
@@ -18,7 +18,7 @@ class myClass {
var $var1;
var $var2;
var $var3;
-
+
function __construct($a, $b, $c = null) {
$this->var1 = $a;
$this->var2 = $b;
diff --git a/ext/standard/tests/array/array_key_exists_object2.phpt b/ext/standard/tests/array/array_key_exists_object2.phpt
index 78c20c9c72..681f6413f9 100644
--- a/ext/standard/tests/array/array_key_exists_object2.phpt
+++ b/ext/standard/tests/array/array_key_exists_object2.phpt
@@ -18,7 +18,7 @@ class myClass {
public $var1;
protected $var2;
private $var3;
-
+
function __construct($a, $b, $c = null) {
$this->var1 = $a;
$this->var2 = $b;
diff --git a/ext/standard/tests/array/array_key_exists_variation1.phpt b/ext/standard/tests/array/array_key_exists_variation1.phpt
index 2f50d3e86f..b3df9783a6 100644
--- a/ext/standard/tests/array/array_key_exists_variation1.phpt
+++ b/ext/standard/tests/array/array_key_exists_variation1.phpt
@@ -62,7 +62,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -72,7 +72,7 @@ $inputs = array(
/*19*/ "key",
'key',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/array_key_exists_variation2.phpt b/ext/standard/tests/array/array_key_exists_variation2.phpt
index 30c498768e..183f0605c4 100644
--- a/ext/standard/tests/array/array_key_exists_variation2.phpt
+++ b/ext/standard/tests/array/array_key_exists_variation2.phpt
@@ -62,7 +62,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -72,7 +72,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/array_key_exists_variation5.phpt b/ext/standard/tests/array/array_key_exists_variation5.phpt
index 2144fb893c..461a8719ea 100644
--- a/ext/standard/tests/array/array_key_exists_variation5.phpt
+++ b/ext/standard/tests/array/array_key_exists_variation5.phpt
@@ -14,8 +14,8 @@ Test array_key_exists() function : usage variations - multidimensional arrays
echo "*** Testing array_key_exists() : usage variations ***\n";
-$multi_array = array ('zero' => 'val1',
- 'one' => 'val2',
+$multi_array = array ('zero' => 'val1',
+ 'one' => 'val2',
'sub1' => array (1, 2, 3));
echo "\n-- Attempt to match key in sub-array --\n";
diff --git a/ext/standard/tests/array/array_key_exists_variation6.phpt b/ext/standard/tests/array/array_key_exists_variation6.phpt
index abfba0a4c3..4efca6cb2d 100644
--- a/ext/standard/tests/array/array_key_exists_variation6.phpt
+++ b/ext/standard/tests/array/array_key_exists_variation6.phpt
@@ -20,8 +20,8 @@ $unset = 10;
unset($unset);
$array = array ('null' => null,
'NULL' => NULL,
- 'empty single quoted string' => '',
- "empty double quoted string" => "",
+ 'empty single quoted string' => '',
+ "empty double quoted string" => "",
'undefined variable' => @$undefined,
'unset variable' => @$unset);
@@ -30,7 +30,7 @@ foreach($array as $name => $input) {
$iterator = 1;
echo "\n-- Key in \$search array is : $name --\n";
$search[$input] = 'test';
-
+
//iterate through array again to see which values are considered equal
foreach($array as $key) {
echo "Iteration $iterator: ";
diff --git a/ext/standard/tests/array/array_key_exists_variation8.phpt b/ext/standard/tests/array/array_key_exists_variation8.phpt
index 522fd67e99..9dc1f0626c 100644
--- a/ext/standard/tests/array/array_key_exists_variation8.phpt
+++ b/ext/standard/tests/array/array_key_exists_variation8.phpt
@@ -42,7 +42,7 @@ $inputs = array(
-10.5 => 'negative',
.5 => 'half',
),
-
+
'extreme floats' => array(
12.3456789000e10 => 'large',
12.3456789000E-10 => 'small',
@@ -65,7 +65,7 @@ $inputs = array(
TRUE => 'uppert',
FALSE => 'upperf',
),
-
+
// empty data
/*5*/ 'empty double quotes' => array(
"" => 'emptyd',
diff --git a/ext/standard/tests/array/array_keys_variation_001.phpt b/ext/standard/tests/array/array_keys_variation_001.phpt
index a6203fbbf5..bda5700c3a 100644
--- a/ext/standard/tests/array/array_keys_variation_001.phpt
+++ b/ext/standard/tests/array/array_keys_variation_001.phpt
@@ -23,7 +23,7 @@ $i = 0;
/* loop through to test array_keys() with different arrays */
foreach ($arrays as $array) {
echo "\n-- Iteration $i --\n";
- var_dump(array_keys($array));
+ var_dump(array_keys($array));
$i++;
}
diff --git a/ext/standard/tests/array/array_keys_variation_002.phpt b/ext/standard/tests/array/array_keys_variation_002.phpt
index 1e7f0df4ad..8378cfbf0d 100644
--- a/ext/standard/tests/array/array_keys_variation_002.phpt
+++ b/ext/standard/tests/array/array_keys_variation_002.phpt
@@ -11,7 +11,7 @@ echo "\n*** Testing array_keys() on range of values ***\n";
$arr_range = array(
2147483647 => 1,
2147483648 => 2,
- -2147483647 => 3,
+ -2147483647 => 3,
-2147483648 => 4,
-2147483649 => 5,
-0 => 6,
diff --git a/ext/standard/tests/array/array_keys_variation_002_64bit.phpt b/ext/standard/tests/array/array_keys_variation_002_64bit.phpt
index 04f574d810..dd35a77642 100644
--- a/ext/standard/tests/array/array_keys_variation_002_64bit.phpt
+++ b/ext/standard/tests/array/array_keys_variation_002_64bit.phpt
@@ -11,7 +11,7 @@ echo "\n*** Testing array_keys() on range of values ***\n";
$arr_range = array(
2147483647 => 1,
2147483648 => 2,
- -2147483647 => 3,
+ -2147483647 => 3,
-2147483648 => 4,
-2147483649 => 5,
-0 => 6,
diff --git a/ext/standard/tests/array/array_keys_variation_003.phpt b/ext/standard/tests/array/array_keys_variation_003.phpt
index b3a97a0dfb..adb2baea66 100644
--- a/ext/standard/tests/array/array_keys_variation_003.phpt
+++ b/ext/standard/tests/array/array_keys_variation_003.phpt
@@ -9,7 +9,7 @@ $types_arr = array(
FALSE => FALSE,
1 => 1,
0 => 0,
- -1 => -1,
+ -1 => -1,
"1" => "1",
"0" => "0",
"-1" => "-1",
@@ -21,7 +21,7 @@ $types_arr = array(
$values = array(TRUE, FALSE, 1, 0, -1, "1", "0", "-1", NULL, array(), "php", "");
foreach ($values as $value){
var_dump($value);
- var_dump(array_keys($types_arr, $value));
+ var_dump(array_keys($types_arr, $value));
}
echo "Done\n";
diff --git a/ext/standard/tests/array/array_keys_variation_004.phpt b/ext/standard/tests/array/array_keys_variation_004.phpt
index 081660d51b..8198a75e23 100644
--- a/ext/standard/tests/array/array_keys_variation_004.phpt
+++ b/ext/standard/tests/array/array_keys_variation_004.phpt
@@ -9,7 +9,7 @@ $types_arr = array(
FALSE => FALSE,
1 => 1,
0 => 0,
- -1 => -1,
+ -1 => -1,
"1" => "1",
"0" => "0",
"-1" => "-1",
diff --git a/ext/standard/tests/array/array_keys_variation_005.phpt b/ext/standard/tests/array/array_keys_variation_005.phpt
index ee37400801..6fa5e4225d 100644
--- a/ext/standard/tests/array/array_keys_variation_005.phpt
+++ b/ext/standard/tests/array/array_keys_variation_005.phpt
@@ -8,7 +8,7 @@ $resource1 = fopen( __FILE__, "r");
$resource2 = opendir( "." );
/* creating an array with resource types as elements */
-$arr_resource = array($resource1, $resource2);
+$arr_resource = array($resource1, $resource2);
var_dump(array_keys($arr_resource, $resource1)); // loose type checking
var_dump(array_keys($arr_resource, $resource1, TRUE)); // strict type checking
diff --git a/ext/standard/tests/array/array_map_001.phpt b/ext/standard/tests/array/array_map_001.phpt
index 087e3ba284..c5d78c257e 100644
--- a/ext/standard/tests/array/array_map_001.phpt
+++ b/ext/standard/tests/array/array_map_001.phpt
@@ -5,18 +5,18 @@ array_map() and exceptions in the callback
$a = array(1,2,3);
-function foo() {
- throw new exception(1);
-}
+function foo() {
+ throw new exception(1);
+}
-try {
- array_map("foo", $a, array(2,3));
+try {
+ array_map("foo", $a, array(2,3));
} catch (Exception $e) {
var_dump("exception caught!");
}
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
string(17) "exception caught!"
Done
diff --git a/ext/standard/tests/array/array_map_variation17.phpt b/ext/standard/tests/array/array_map_variation17.phpt
index d9440bb2c1..e2176df760 100644
--- a/ext/standard/tests/array/array_map_variation17.phpt
+++ b/ext/standard/tests/array/array_map_variation17.phpt
@@ -47,7 +47,7 @@ $unexpected_callbacks = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*14*/ "",
'',
diff --git a/ext/standard/tests/array/array_map_variation18.phpt b/ext/standard/tests/array/array_map_variation18.phpt
index ef235e730c..4c85d12e88 100644
--- a/ext/standard/tests/array/array_map_variation18.phpt
+++ b/ext/standard/tests/array/array_map_variation18.phpt
@@ -67,7 +67,7 @@ $unexpected_inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -76,7 +76,7 @@ $unexpected_inputs = array(
/*18*/ "string",
'string',
$heredoc,
-
+
// object data
/*21*/ new classA(),
diff --git a/ext/standard/tests/array/array_map_variation4.phpt b/ext/standard/tests/array/array_map_variation4.phpt
index fcc4090632..d99a529e3a 100644
--- a/ext/standard/tests/array/array_map_variation4.phpt
+++ b/ext/standard/tests/array/array_map_variation4.phpt
@@ -61,8 +61,8 @@ $arrays = array (
array(new classA() => 11, @$unset_var => "hello", $fp => 'resource'),
// array with mixed values
-/*11*/ array('hello' => 1, new classA() => 2, "fruit" => 2.2,
- $fp => 'resource', 133 => "int", 444.432 => "float",
+/*11*/ array('hello' => 1, new classA() => 2, "fruit" => 2.2,
+ $fp => 'resource', 133 => "int", 444.432 => "float",
@$unset_var => "unset", $heredoc => "heredoc")
);
diff --git a/ext/standard/tests/array/array_map_variation5.phpt b/ext/standard/tests/array/array_map_variation5.phpt
index 55f1569211..e286095576 100644
--- a/ext/standard/tests/array/array_map_variation5.phpt
+++ b/ext/standard/tests/array/array_map_variation5.phpt
@@ -61,8 +61,8 @@ $arrays = array (
array(11 => new classA(), "unset" => @$unset_var, "resource" => $fp),
// array with mixed values
-/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
- 'resource' => $fp, "int" => 133, "float" => 444.432,
+/*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
+ 'resource' => $fp, "int" => 133, "float" => 444.432,
"unset" => @$unset_var, "heredoc" => $heredoc)
);
diff --git a/ext/standard/tests/array/array_map_variation6.phpt b/ext/standard/tests/array/array_map_variation6.phpt
index 9b6ee42e2a..e0ab99b042 100644
--- a/ext/standard/tests/array/array_map_variation6.phpt
+++ b/ext/standard/tests/array/array_map_variation6.phpt
@@ -25,7 +25,7 @@ $arr1 = array(
array('a', 'b'),
array(1, 2, 'a', 'b'),
array(1 => 'a', 'b' => 2)
-);
+);
var_dump( array_map('callback', $arr1));
echo "Done";
diff --git a/ext/standard/tests/array/array_merge.phpt b/ext/standard/tests/array/array_merge.phpt
index 245f59e745..205260b2a5 100644
--- a/ext/standard/tests/array/array_merge.phpt
+++ b/ext/standard/tests/array/array_merge.phpt
@@ -16,7 +16,7 @@ $begin_array = array(
array( -2.44444 => 12),
array( "a" => 1, "b" => -2.344, "b" => "string", "c" => NULL, "d" => -2.344),
array( 4 => 1, 3 => -2.344, "3" => "string", "2" => NULL,1 => -2.344),
- array( NULL, 1.23 => "Hi", "string" => "hello",
+ array( NULL, 1.23 => "Hi", "string" => "hello",
array("" => "World", "-2.34" => "a", "0" => "b"))
);
@@ -27,7 +27,7 @@ $end_array = array(
array( -2.44444 => 12),
array( "a" => 1, "b" => -2.344, "b" => "string", "c" => NULL, "d" => -2.344),
array( 4 => 1, 3 => -2.344, "3" => "string", "2" => NULL, 1=> -2.344),
- array( NULL, 1.23 => "Hi", "string" => "hello",
+ array( NULL, 1.23 => "Hi", "string" => "hello",
array("" => "World", "-2.34" => "a", "0" => "b"))
);
@@ -41,7 +41,7 @@ foreach($begin_array as $first) {
$result = array_merge($first, $second);
print_r($result);
$count_inner++;
- }
+ }
$count_outer++;
}
@@ -64,7 +64,7 @@ var_dump( array_merge( $end_array[0],
echo "\n*** Testing single array argument ***\n";
/* Empty array */
-var_dump(array_merge(array()));
+var_dump(array_merge(array()));
/* associative array with string keys, which will not be re-indexed */
var_dump(array_merge($begin_array[4]));
@@ -86,7 +86,7 @@ var_dump(array_merge($begin_array[0], $begin_array[1], 100));
var_dump(array_merge($begin_array[0], $begin_array[1], $arr4));
echo "Done\n";
-?>
+?>
--EXPECTF--
*** Testing array_merge() basic functionality ***
diff --git a/ext/standard/tests/array/array_merge_recursive_variation1.phpt b/ext/standard/tests/array/array_merge_recursive_variation1.phpt
index 63731d2ad7..67a45e33c8 100644
--- a/ext/standard/tests/array/array_merge_recursive_variation1.phpt
+++ b/ext/standard/tests/array/array_merge_recursive_variation1.phpt
@@ -89,15 +89,15 @@ $arr2 = array(1, array("hello", 'world'));
$iterator = 1;
foreach($arrays as $arr1) {
echo "\n-- Iteration $iterator --";
-
+
// with default argument
echo "\n-- With default argument --";
var_dump( array_merge_recursive($arr1) );
-
+
// with more arguments
echo "-- With more arguments --";
var_dump( array_merge_recursive($arr1, $arr2) );
-
+
$iterator++;
}
diff --git a/ext/standard/tests/array/array_merge_recursive_variation10.phpt b/ext/standard/tests/array/array_merge_recursive_variation10.phpt
index 06595d5130..224b594a8a 100644
--- a/ext/standard/tests/array/array_merge_recursive_variation10.phpt
+++ b/ext/standard/tests/array/array_merge_recursive_variation10.phpt
@@ -15,7 +15,7 @@ Test array_merge_recursive() function : usage variations - two dimensional array
echo "*** Testing array_merge_recursive() : two dimensional array for \$arr1 argument ***\n";
// initialize the 2-d array
-$arr1 = array(
+$arr1 = array(
array(1, 2, 3, 1),
"array" => array("hello", "world", "str1" => "hello", "str2" => 'world'),
array(1 => "one", 2 => "two", "one", 'two'),
diff --git a/ext/standard/tests/array/array_merge_recursive_variation3.phpt b/ext/standard/tests/array/array_merge_recursive_variation3.phpt
index 8a76a67153..12d225a0d5 100644
--- a/ext/standard/tests/array/array_merge_recursive_variation3.phpt
+++ b/ext/standard/tests/array/array_merge_recursive_variation3.phpt
@@ -92,7 +92,7 @@ foreach($arrays as $arr1) {
$iterator++;
}
-
+
echo "Done";
?>
--EXPECT--
diff --git a/ext/standard/tests/array/array_merge_recursive_variation4.phpt b/ext/standard/tests/array/array_merge_recursive_variation4.phpt
index b497acec7e..dfbfc56337 100644
--- a/ext/standard/tests/array/array_merge_recursive_variation4.phpt
+++ b/ext/standard/tests/array/array_merge_recursive_variation4.phpt
@@ -74,7 +74,7 @@ foreach($arrays as $arr1) {
// close the file resource used
fclose($fp);
-
+
echo "Done";
?>
--EXPECTF--
diff --git a/ext/standard/tests/array/array_merge_recursive_variation5.phpt b/ext/standard/tests/array/array_merge_recursive_variation5.phpt
index 3b251220ea..76e2ee399c 100644
--- a/ext/standard/tests/array/array_merge_recursive_variation5.phpt
+++ b/ext/standard/tests/array/array_merge_recursive_variation5.phpt
@@ -74,7 +74,7 @@ foreach($arrays as $arr1) {
// close the file resource used
fclose($fp);
-
+
echo "Done";
?>
--EXPECTF--
diff --git a/ext/standard/tests/array/array_merge_recursive_variation8.phpt b/ext/standard/tests/array/array_merge_recursive_variation8.phpt
index 255ed070aa..ff76ed959c 100644
--- a/ext/standard/tests/array/array_merge_recursive_variation8.phpt
+++ b/ext/standard/tests/array/array_merge_recursive_variation8.phpt
@@ -18,7 +18,7 @@ $arr1 = array(b"1", b"hello" => "hello", b"world", "str1" => b"hello", "str2" =>
// initialize the second argument
$arr2 = array(b"str1" => b"binary", b"hello" => "binary", b"str2" => b"binary");
-
+
echo "-- With default argument --\n";
var_dump( array_merge_recursive($arr1) );
diff --git a/ext/standard/tests/array/array_merge_variation1.phpt b/ext/standard/tests/array/array_merge_variation1.phpt
index 96996edcf4..76821fae0f 100644
--- a/ext/standard/tests/array/array_merge_variation1.phpt
+++ b/ext/standard/tests/array/array_merge_variation1.phpt
@@ -61,7 +61,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -71,7 +71,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/array_merge_variation10.phpt b/ext/standard/tests/array/array_merge_variation10.phpt
index 46403fac9e..00a197a29e 100644
--- a/ext/standard/tests/array/array_merge_variation10.phpt
+++ b/ext/standard/tests/array/array_merge_variation10.phpt
@@ -7,7 +7,7 @@ Test array_merge() function : usage variations - position of internal array poin
* Source code: ext/standard/array.c
*/
-/*
+/*
* Check the position of the internal array pointer after calling array_merge().
* This test is also passing more than two arguments to array_merge().
*/
diff --git a/ext/standard/tests/array/array_merge_variation2.phpt b/ext/standard/tests/array/array_merge_variation2.phpt
index 30a405c623..7b67b4840d 100644
--- a/ext/standard/tests/array/array_merge_variation2.phpt
+++ b/ext/standard/tests/array/array_merge_variation2.phpt
@@ -61,7 +61,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -71,7 +71,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/array_merge_variation3.phpt b/ext/standard/tests/array/array_merge_variation3.phpt
index 717968adb8..6eec1d98e5 100644
--- a/ext/standard/tests/array/array_merge_variation3.phpt
+++ b/ext/standard/tests/array/array_merge_variation3.phpt
@@ -70,13 +70,13 @@ $inputs = array(
TRUE,
FALSE,
),
-
+
// empty data
/*5*/ 'empty string' => array(
"",
'',
),
-
+
/*6*/ 'empty array' => array(
),
@@ -86,7 +86,7 @@ $inputs = array(
'string',
$heredoc,
),
-
+
// object data
/*8*/ 'object' => array(
new classA(),
diff --git a/ext/standard/tests/array/array_merge_variation4.phpt b/ext/standard/tests/array/array_merge_variation4.phpt
index ad7d7fe5dc..05e520d67f 100644
--- a/ext/standard/tests/array/array_merge_variation4.phpt
+++ b/ext/standard/tests/array/array_merge_variation4.phpt
@@ -43,7 +43,7 @@ $inputs = array(
-10.5 => 'negative',
.5 => 'half',
),
-
+
/*3*/ 'extreme floats' => array(
12.3456789000e10 => 'large',
12.3456789000E-10 => 'small',
@@ -53,7 +53,7 @@ $inputs = array(
/*4*/ 'null uppercase' => array(
NULL => 'null 1',
),
-
+
/*5*/ 'null lowercase' => array(
null => 'null 2',
),
@@ -63,17 +63,17 @@ $inputs = array(
true => 'lowert',
false => 'lowerf',
),
-
+
/*7*/ 'bool uppercase' => array(
TRUE => 'uppert',
FALSE => 'upperf',
),
-
+
// empty data
/*8*/ 'empty double quotes' => array(
"" => 'emptyd',
),
-
+
/*9*/ 'empty single quotes' => array(
'' => 'emptys',
),
diff --git a/ext/standard/tests/array/array_multisort_basic1.phpt b/ext/standard/tests/array/array_multisort_basic1.phpt
index 7d33596630..79248b0cbc 100644
--- a/ext/standard/tests/array/array_multisort_basic1.phpt
+++ b/ext/standard/tests/array/array_multisort_basic1.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : basic functionality
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : basic functionality ***\n";
diff --git a/ext/standard/tests/array/array_multisort_basic2.phpt b/ext/standard/tests/array/array_multisort_basic2.phpt
index 682543bc9f..af59731558 100644
--- a/ext/standard/tests/array/array_multisort_basic2.phpt
+++ b/ext/standard/tests/array/array_multisort_basic2.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : basic functionality
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : basic functionality - renumbering of numeric keys ***\n";
diff --git a/ext/standard/tests/array/array_multisort_case.phpt b/ext/standard/tests/array/array_multisort_case.phpt
index f766e5fc1d..ce4be6bd9a 100644
--- a/ext/standard/tests/array/array_multisort_case.phpt
+++ b/ext/standard/tests/array/array_multisort_case.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : case-sensitive
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : case-sensitive\n";
diff --git a/ext/standard/tests/array/array_multisort_error.phpt b/ext/standard/tests/array/array_multisort_error.phpt
index 5956630f84..d1ea4663d2 100644
--- a/ext/standard/tests/array/array_multisort_error.phpt
+++ b/ext/standard/tests/array/array_multisort_error.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : error conditions
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : error conditions ***\n";
diff --git a/ext/standard/tests/array/array_multisort_incase.phpt b/ext/standard/tests/array/array_multisort_incase.phpt
index 46d55ae065..b03c2f2d33 100644
--- a/ext/standard/tests/array/array_multisort_incase.phpt
+++ b/ext/standard/tests/array/array_multisort_incase.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : case-insensitive
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : case-insensitive\n";
diff --git a/ext/standard/tests/array/array_multisort_natural.phpt b/ext/standard/tests/array/array_multisort_natural.phpt
index 35576c481c..66f57d7257 100644
--- a/ext/standard/tests/array/array_multisort_natural.phpt
+++ b/ext/standard/tests/array/array_multisort_natural.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : natural sorting
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : natural sorting\n";
diff --git a/ext/standard/tests/array/array_multisort_natural_case.phpt b/ext/standard/tests/array/array_multisort_natural_case.phpt
index 163819ef96..21d6844864 100644
--- a/ext/standard/tests/array/array_multisort_natural_case.phpt
+++ b/ext/standard/tests/array/array_multisort_natural_case.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : natural sorting case-sensitive
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : natural sorting case-sensitive\n";
diff --git a/ext/standard/tests/array/array_multisort_natural_incase.phpt b/ext/standard/tests/array/array_multisort_natural_incase.phpt
index 1ada637f0e..f84b73c773 100644
--- a/ext/standard/tests/array/array_multisort_natural_incase.phpt
+++ b/ext/standard/tests/array/array_multisort_natural_incase.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : natural sorting case-insensitive
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : natural sorting case-insensitive\n";
diff --git a/ext/standard/tests/array/array_multisort_variation1.phpt b/ext/standard/tests/array/array_multisort_variation1.phpt
index 93c265922e..e761a9649c 100644
--- a/ext/standard/tests/array/array_multisort_variation1.phpt
+++ b/ext/standard/tests/array/array_multisort_variation1.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : usage variation
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_multisort_variation10.phpt b/ext/standard/tests/array/array_multisort_variation10.phpt
index e4e9075562..e6c068e276 100644
--- a/ext/standard/tests/array/array_multisort_variation10.phpt
+++ b/ext/standard/tests/array/array_multisort_variation10.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : usage variation - testing with anonymous arrar
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : Testing with anonymous arguments ***\n";
diff --git a/ext/standard/tests/array/array_multisort_variation2.phpt b/ext/standard/tests/array/array_multisort_variation2.phpt
index 86210eeb49..ab2bfcca3d 100644
--- a/ext/standard/tests/array/array_multisort_variation2.phpt
+++ b/ext/standard/tests/array/array_multisort_variation2.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : usage variation
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_multisort_variation3.phpt b/ext/standard/tests/array/array_multisort_variation3.phpt
index b2cdb05ece..49bae0ff34 100644
--- a/ext/standard/tests/array/array_multisort_variation3.phpt
+++ b/ext/standard/tests/array/array_multisort_variation3.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : usage variation
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_multisort_variation4.phpt b/ext/standard/tests/array/array_multisort_variation4.phpt
index 76eb9ab04b..6ec0f5720c 100644
--- a/ext/standard/tests/array/array_multisort_variation4.phpt
+++ b/ext/standard/tests/array/array_multisort_variation4.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : usage variation - testing with multiple array
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : Testing with multiple array arguments ***\n";
diff --git a/ext/standard/tests/array/array_multisort_variation5.phpt b/ext/standard/tests/array/array_multisort_variation5.phpt
index 66504ca798..bb18e9893f 100644
--- a/ext/standard/tests/array/array_multisort_variation5.phpt
+++ b/ext/standard/tests/array/array_multisort_variation5.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : usage variation - testing with multiple array
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : Testing all array sort specifiers ***\n";
diff --git a/ext/standard/tests/array/array_multisort_variation6.phpt b/ext/standard/tests/array/array_multisort_variation6.phpt
index 81bd1d1acd..70b03a4bd0 100644
--- a/ext/standard/tests/array/array_multisort_variation6.phpt
+++ b/ext/standard/tests/array/array_multisort_variation6.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : usage variation - testing with multiple array
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : Testing all array sort specifiers ***\n";
diff --git a/ext/standard/tests/array/array_multisort_variation7.phpt b/ext/standard/tests/array/array_multisort_variation7.phpt
index 996c183fcd..7c6dd5f135 100644
--- a/ext/standard/tests/array/array_multisort_variation7.phpt
+++ b/ext/standard/tests/array/array_multisort_variation7.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : usage variation - test sort order of all types
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : usage variation - test sort order of all types***\n";
diff --git a/ext/standard/tests/array/array_multisort_variation8.phpt b/ext/standard/tests/array/array_multisort_variation8.phpt
index 90c66a97cc..1765315337 100644
--- a/ext/standard/tests/array/array_multisort_variation8.phpt
+++ b/ext/standard/tests/array/array_multisort_variation8.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : usage variation - test sort order of all types
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : usage variation - test sort order of all types***\n";
diff --git a/ext/standard/tests/array/array_multisort_variation9.phpt b/ext/standard/tests/array/array_multisort_variation9.phpt
index cc4b8d147b..7c76919d23 100644
--- a/ext/standard/tests/array/array_multisort_variation9.phpt
+++ b/ext/standard/tests/array/array_multisort_variation9.phpt
@@ -5,7 +5,7 @@ Test array_multisort() function : usage variation - test sort order of all types
/* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...])
* Description: Sort multiple arrays at once similar to how ORDER BY clause works in SQL
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_multisort() : usage variation - test sort order of all types***\n";
diff --git a/ext/standard/tests/array/array_pad.phpt b/ext/standard/tests/array/array_pad.phpt
index add9b3c8e5..c267516730 100644
--- a/ext/standard/tests/array/array_pad.phpt
+++ b/ext/standard/tests/array/array_pad.phpt
@@ -20,7 +20,7 @@ var_dump(array_pad("", 2000000, 0));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: array_pad() expects exactly 3 parameters, 0 given in %s on line %d
NULL
diff --git a/ext/standard/tests/array/array_pad_variation2.phpt b/ext/standard/tests/array/array_pad_variation2.phpt
index 69de77ee97..77a2d6e949 100644
--- a/ext/standard/tests/array/array_pad_variation2.phpt
+++ b/ext/standard/tests/array/array_pad_variation2.phpt
@@ -71,7 +71,7 @@ $pad_sizes = array(
// object data
/*21*/ new classA(),
-
+
// undefined data
/*22*/ @$undefined_var,
diff --git a/ext/standard/tests/array/array_pad_variation3.phpt b/ext/standard/tests/array/array_pad_variation3.phpt
index 75df118220..b761d615a7 100644
--- a/ext/standard/tests/array/array_pad_variation3.phpt
+++ b/ext/standard/tests/array/array_pad_variation3.phpt
@@ -7,7 +7,7 @@ Test array_pad() function : usage variations - possible values for 'pad_value' a
* Source code: ext/standard/array.c
*/
-/*
+/*
* Testing array_pad() function for expected behavior by passing
* different possible values for $pad_value argument.
* $input and $pad_size arguments take fixed value.
@@ -97,7 +97,7 @@ $pad_values = array(
// unset data
/*30*/ @$unset_var,
-
+
// resource variable
/*31*/ $fp,
diff --git a/ext/standard/tests/array/array_pop.phpt b/ext/standard/tests/array/array_pop.phpt
index 2336d2a394..843a618f2e 100644
--- a/ext/standard/tests/array/array_pop.phpt
+++ b/ext/standard/tests/array/array_pop.phpt
@@ -32,13 +32,13 @@ echo "\n*** Normal testing with various array inputs ***\n";
$counter = 1;
foreach( $mixed_array as $sub_array )
-{
+{
echo "\n-- Input Array for Iteration $counter is --\n";
print_r( $sub_array );
echo "\nOutput after Pop is :\n";
var_dump( array_pop($sub_array) );
$counter++;
-}
+}
echo"\nDone";
?>
diff --git a/ext/standard/tests/array/array_product_error.phpt b/ext/standard/tests/array/array_product_error.phpt
index 79f7cb4a08..4aaf2112b9 100644
--- a/ext/standard/tests/array/array_product_error.phpt
+++ b/ext/standard/tests/array/array_product_error.phpt
@@ -5,7 +5,7 @@ Test array_product() function : error conditions
/* Prototype : mixed array_product(array input)
* Description: Returns the product of the array entries
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_product() : error conditions ***\n";
diff --git a/ext/standard/tests/array/array_product_variation1.phpt b/ext/standard/tests/array/array_product_variation1.phpt
index cd2ed71ae6..799e7ea0ca 100644
--- a/ext/standard/tests/array/array_product_variation1.phpt
+++ b/ext/standard/tests/array/array_product_variation1.phpt
@@ -5,7 +5,7 @@ Test array_product() function : variation
/* Prototype : mixed array_product(array input)
* Description: Returns the product of the array entries
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_product() : variation - using non numeric values ***\n";
@@ -15,7 +15,7 @@ class A {
}
$fp = fopen(__FILE__, "r");
-$types = array("boolean (true)" => true, "boolean (false)" => false,
+$types = array("boolean (true)" => true, "boolean (false)" => false,
"string" => "hello", "numeric string" => "12",
"resource" => $fp, "object" => new A(), "null" => null,
"array" => array(3,2));
diff --git a/ext/standard/tests/array/array_product_variation2.phpt b/ext/standard/tests/array/array_product_variation2.phpt
index 79821981a0..0f81835c17 100644
--- a/ext/standard/tests/array/array_product_variation2.phpt
+++ b/ext/standard/tests/array/array_product_variation2.phpt
@@ -5,7 +5,7 @@ Test array_product() function : variation
/* Prototype : mixed array_product(array input)
* Description: Returns the product of the array entries
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_product() : variations ***\n";
diff --git a/ext/standard/tests/array/array_product_variation3.phpt b/ext/standard/tests/array/array_product_variation3.phpt
index e2b5e3efe8..9202ef20c8 100644
--- a/ext/standard/tests/array/array_product_variation3.phpt
+++ b/ext/standard/tests/array/array_product_variation3.phpt
@@ -5,7 +5,7 @@ Test array_product() function : variation
/* Prototype : mixed array_product(array input)
* Description: Returns the product of the array entries
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_product() : variations - negative numbers***\n";
diff --git a/ext/standard/tests/array/array_product_variation4.phpt b/ext/standard/tests/array/array_product_variation4.phpt
index f2b9f2bc29..51d0c12ca6 100644
--- a/ext/standard/tests/array/array_product_variation4.phpt
+++ b/ext/standard/tests/array/array_product_variation4.phpt
@@ -5,7 +5,7 @@ Test array_product() function : variation
/* Prototype : mixed array_product(array input)
* Description: Returns the product of the array entries
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_product() : variations ***\n";
diff --git a/ext/standard/tests/array/array_product_variation5.phpt b/ext/standard/tests/array/array_product_variation5.phpt
index 687ea89c38..36e9f5708a 100644
--- a/ext/standard/tests/array/array_product_variation5.phpt
+++ b/ext/standard/tests/array/array_product_variation5.phpt
@@ -5,7 +5,7 @@ Test array_product() function : usage variation
/* Prototype : mixed array_product(array input)
* Description: Returns the product of the array entries
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_product() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_push.phpt b/ext/standard/tests/array/array_push.phpt
index 829100c54c..52e754f94d 100644
--- a/ext/standard/tests/array/array_push.phpt
+++ b/ext/standard/tests/array/array_push.phpt
@@ -54,13 +54,13 @@ echo "\n*** Testing with various array inputs ***\n";
$counter = 1;
foreach( $mixed_array as $sub_array )
-{
+{
echo "\n-- Input Array for Iteration $counter is --\n";
print_r( $sub_array );
echo "\nOutput after push is :\n";
var_dump( array_push($sub_array, 22, "abc") );
$counter++;
-}
+}
/* Checking for return value and the new array formed from push operation */
echo "\n*** Checking for return value and the new array formed from push operation ***\n";
diff --git a/ext/standard/tests/array/array_push_variation1.phpt b/ext/standard/tests/array/array_push_variation1.phpt
index 14125fcb87..766d8459d1 100644
--- a/ext/standard/tests/array/array_push_variation1.phpt
+++ b/ext/standard/tests/array/array_push_variation1.phpt
@@ -61,7 +61,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -71,7 +71,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/array_push_variation2.phpt b/ext/standard/tests/array/array_push_variation2.phpt
index 9e31a7628a..0cb14b5039 100644
--- a/ext/standard/tests/array/array_push_variation2.phpt
+++ b/ext/standard/tests/array/array_push_variation2.phpt
@@ -61,7 +61,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -71,7 +71,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/array_push_variation6.phpt b/ext/standard/tests/array/array_push_variation6.phpt
index 903a7a5ef4..3cf0d7f91c 100644
--- a/ext/standard/tests/array/array_push_variation6.phpt
+++ b/ext/standard/tests/array/array_push_variation6.phpt
@@ -42,7 +42,7 @@ $inputs = array(
-10.5 => 'negative',
.5 => 'half',
),
-
+
'extreme floats' => array(
12.3456789000e10 => 'large',
12.3456789000E-10 => 'small',
@@ -65,7 +65,7 @@ $inputs = array(
TRUE => 'uppert',
FALSE => 'upperf',
),
-
+
// empty data
/*5*/ 'empty double quotes' => array(
"" => 'emptyd',
diff --git a/ext/standard/tests/array/array_rand.phpt b/ext/standard/tests/array/array_rand.phpt
index 678892b6e0..db432dc9b4 100644
--- a/ext/standard/tests/array/array_rand.phpt
+++ b/ext/standard/tests/array/array_rand.phpt
@@ -15,7 +15,7 @@ var_dump(array_rand(array(1,2,3), 2));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: array_rand() expects at least 1 parameter, 0 given in %s on line %d
NULL
diff --git a/ext/standard/tests/array/array_rand_basic2.phpt b/ext/standard/tests/array/array_rand_basic2.phpt
index e18fede4bd..b9e75c9679 100644
--- a/ext/standard/tests/array/array_rand_basic2.phpt
+++ b/ext/standard/tests/array/array_rand_basic2.phpt
@@ -16,7 +16,7 @@ echo "*** Testing array_rand() : with associative array ***\n";
// Initialise the 'input' and 'num_req' variables
$input = array(
- 'one' => 1, 'two' => 2, 'three' => 3,
+ 'one' => 1, 'two' => 2, 'three' => 3,
'FoUr' => 'four', '#5' => 5, 'SIX' => 'six',
"seven" => 7, "#8" => "eight", "nine" => "NINE"
);
diff --git a/ext/standard/tests/array/array_rand_variation1.phpt b/ext/standard/tests/array/array_rand_variation1.phpt
index 1847e60dc6..4e3e13462b 100644
--- a/ext/standard/tests/array/array_rand_variation1.phpt
+++ b/ext/standard/tests/array/array_rand_variation1.phpt
@@ -28,7 +28,7 @@ $fp = fopen(__FILE__, "r");
class test
{
var $t = 10;
- function __toString()
+ function __toString()
{
return "object";
}
@@ -48,8 +48,8 @@ $values = array(
-10.5,
12.3456789000e10,
12.3456789000E-10,
- .5,
-
+ .5,
+
// null data
/*10*/ NULL,
null,
@@ -88,7 +88,7 @@ $count = 1;
foreach($values as $value) {
echo "\n-- Iteration $count --\n";
var_dump( array_rand($value,$num_req) );
- $count++;
+ $count++;
};
// closing the resource
diff --git a/ext/standard/tests/array/array_rand_variation2.phpt b/ext/standard/tests/array/array_rand_variation2.phpt
index 44967ffd8c..9978673e50 100644
--- a/ext/standard/tests/array/array_rand_variation2.phpt
+++ b/ext/standard/tests/array/array_rand_variation2.phpt
@@ -82,7 +82,7 @@ $values = array(
$count = 1;
foreach($values as $value) {
echo "\n-- Iteration $count --\n";
- var_dump( array_rand($input,$value) );
+ var_dump( array_rand($input,$value) );
$count++;
};
diff --git a/ext/standard/tests/array/array_rand_variation3.phpt b/ext/standard/tests/array/array_rand_variation3.phpt
index 81194a135d..b858a13e7d 100644
--- a/ext/standard/tests/array/array_rand_variation3.phpt
+++ b/ext/standard/tests/array/array_rand_variation3.phpt
@@ -21,7 +21,7 @@ $input = array(
// array with float values
array(1.23, -1.23, 0.34, -0.34, 0e2, 2e-3, -2e2, -40e-2),
-
+
// array with single quoted strings
/*3*/ array('one', '123numbers', 'hello\tworld', 'hello world\0', '12.34floatnum'),
@@ -33,7 +33,7 @@ $input = array(
// array with hexa values
array(0x123, -0x123, 0xabc, 0xABC, 0xab),
-
+
// array with null values
/*7*/ array(null, NULL, "\0", Null, NuLl)
diff --git a/ext/standard/tests/array/array_rand_variation4.phpt b/ext/standard/tests/array/array_rand_variation4.phpt
index 74dada0aa0..f2a665185a 100644
--- a/ext/standard/tests/array/array_rand_variation4.phpt
+++ b/ext/standard/tests/array/array_rand_variation4.phpt
@@ -16,12 +16,12 @@ echo "*** Testing array_rand() : with associative arrays ***\n";
// initialise associative arrays
$asso_arrays = array(
-
+
// array with numeric keys
/*1*/ array(1 => 'one', 2 => 2, 1234567890 => 'big', -1 => 'negative key',
2.3 => 'float key', 0 => "zero key", 0.2 => 'decimal key',
2e2 => 'exp key1', -2e3 => 'negative exp key'),
-
+
// array with string keys
array('one' => 1, "two" => 2.0, "three" => 'three',
'12twelve' => 12.00, "" => 'empty string', " " => "space key"),
@@ -42,7 +42,7 @@ $asso_arrays = array(
"\t" => "tab as key", "'" => 'single quote as key',
'"' => 'double quote as key', "\0" => "null char as key")
);
-
+
/* looping to test array_rand() function with different arrays having
* different types of keys
*/
@@ -59,10 +59,10 @@ foreach($asso_arrays as $input) {
var_dump( array_rand($input, 1) ); // with $num_req=1
echo"\nWith num_req = 2\n";
var_dump( array_rand($input, 2) ); // with $num_req=2
-
+
$counter++;
} // end of for loop
-
+
echo "Done";
?>
diff --git a/ext/standard/tests/array/array_rand_variation5.phpt b/ext/standard/tests/array/array_rand_variation5.phpt
index 44f5cd8573..734c6267b9 100644
--- a/ext/standard/tests/array/array_rand_variation5.phpt
+++ b/ext/standard/tests/array/array_rand_variation5.phpt
@@ -22,7 +22,7 @@ $input = array(
0xabc => 2748, 0x12f => '303', 0xff => "255",
0123 => 83, 012 => 10, 010 => "8"
);
-
+
// Testing array_rand() function with various invalid 'req_num' values
// with valid num_req values
echo"\n-- With default num_req value --\n";
@@ -39,7 +39,7 @@ echo"\n-- With num_req = -2 --\n";
var_dump( array_rand($input, -2) ); // with $num_req=-2
echo"\n-- With num_req more than number of members in 'input' array --\n";
var_dump( array_rand($input, 13) ); // with $num_req=13
-
+
echo "Done";
?>
diff --git a/ext/standard/tests/array/array_reduce.phpt b/ext/standard/tests/array/array_reduce.phpt
index 9d702ebce0..4a73a8eb95 100644
--- a/ext/standard/tests/array/array_reduce.phpt
+++ b/ext/standard/tests/array/array_reduce.phpt
@@ -36,7 +36,7 @@ $initial = null;
var_dump(array_reduce($array, 'reduce_null', $initial), $initial);
echo "\nDone";
-?>
+?>
--EXPECT--
*** Testing array_reduce() to integer ***
int(61)
diff --git a/ext/standard/tests/array/array_reduce_error.phpt b/ext/standard/tests/array/array_reduce_error.phpt
index 954aa43d76..0cbb2c6428 100644
--- a/ext/standard/tests/array/array_reduce_error.phpt
+++ b/ext/standard/tests/array/array_reduce_error.phpt
@@ -5,7 +5,7 @@ Test array_reduce() function : error conditions
/* Prototype : mixed array_reduce(array input, mixed callback [, int initial])
* Description: Iteratively reduce the array to a single value via the callback.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_reduce() : error conditions ***\n";
diff --git a/ext/standard/tests/array/array_reduce_variation1.phpt b/ext/standard/tests/array/array_reduce_variation1.phpt
index e4bbea8bf0..a2a396b556 100644
--- a/ext/standard/tests/array/array_reduce_variation1.phpt
+++ b/ext/standard/tests/array/array_reduce_variation1.phpt
@@ -5,7 +5,7 @@ Test array_reduce() function : variation
/* Prototype : mixed array_reduce(array input, mixed callback [, int initial])
* Description: Iteratively reduce the array to a single value via the callback.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_reduce() : variation ***\n";
diff --git a/ext/standard/tests/array/array_reduce_variation2.phpt b/ext/standard/tests/array/array_reduce_variation2.phpt
index 35b2d38f40..d1cb97e2c4 100644
--- a/ext/standard/tests/array/array_reduce_variation2.phpt
+++ b/ext/standard/tests/array/array_reduce_variation2.phpt
@@ -5,7 +5,7 @@ Test array_reduce() function : variation - invalid parameters
/* Prototype : mixed array_reduce(array input, mixed callback [, int initial])
* Description: Iteratively reduce the array to a single value via the callback.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_reduce() : variation - invalid parameters ***\n";
diff --git a/ext/standard/tests/array/array_reduce_variation3.phpt b/ext/standard/tests/array/array_reduce_variation3.phpt
index a359d425db..274259129d 100644
--- a/ext/standard/tests/array/array_reduce_variation3.phpt
+++ b/ext/standard/tests/array/array_reduce_variation3.phpt
@@ -5,7 +5,7 @@ Test array_reduce() function : variation - object callbacks
/* Prototype : mixed array_reduce(array input, mixed callback [, int initial])
* Description: Iteratively reduce the array to a single value via the callback.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_reduce() : variation - object callbacks ***\n";
diff --git a/ext/standard/tests/array/array_reverse_variation1.phpt b/ext/standard/tests/array/array_reverse_variation1.phpt
index 70c5d5fa3d..b2936c171c 100644
--- a/ext/standard/tests/array/array_reverse_variation1.phpt
+++ b/ext/standard/tests/array/array_reverse_variation1.phpt
@@ -58,12 +58,12 @@ $arrays = array (
// empty data
/*16*/ "",
'',
-
+
// string data
'Hello world',
"Hello world",
$heredoc_string,
-
+
// object data
/*21*/ new classA(),
diff --git a/ext/standard/tests/array/array_reverse_variation4.phpt b/ext/standard/tests/array/array_reverse_variation4.phpt
index e3f0254f52..a71ec8311d 100644
--- a/ext/standard/tests/array/array_reverse_variation4.phpt
+++ b/ext/standard/tests/array/array_reverse_variation4.phpt
@@ -43,11 +43,11 @@ $arrays = array (
array(0 => "0"),
array(1 => "1"),
array(1 => "1", 2 => "2", 3 => "3", 4 => "4"),
-
+
// arrays with float keys
/*5*/ array(2.3333 => "float"),
array(1.2 => "f1", 3.33 => "f2", 4.89999922839999 => "f3", 33333333.333333 => "f4"),
-
+
// arrays with string keys
array("\tHello" => 111, "re\td" => "color", "\v\fworld" => 2.2, "pen\n" => 33),
/*8*/ array("\tHello" => 111, "re\td" => "color", "\v\fworld" => 2.2, "pen\n" => 33),
diff --git a/ext/standard/tests/array/array_reverse_variation5.phpt b/ext/standard/tests/array/array_reverse_variation5.phpt
index 6c4c952240..5c889ee118 100644
--- a/ext/standard/tests/array/array_reverse_variation5.phpt
+++ b/ext/standard/tests/array/array_reverse_variation5.phpt
@@ -46,11 +46,11 @@ $arrays = array (
array('0' => 0),
array("1" => 1),
array("one" => 1, 'two' => 2, "three" => 3, 4 => 4),
-
+
// arrays with float values
/*5*/ array("float" => 2.3333),
array("f1" => 1.2, 'f2' => 3.33, 3 => 4.89999922839999, 'f4' => 33333333.333333),
-
+
// arrays with string values
array(111 => "\tHello", "red" => "col\tor", 2 => "\v\fworld", 3.3 => "pen\n"),
/*8*/ array(111 => '\tHello', "red" => 'col\tor', 2 => '\v\fworld', 3.3 => 'pen\n'),
diff --git a/ext/standard/tests/array/array_reverse_variation6.phpt b/ext/standard/tests/array/array_reverse_variation6.phpt
index edbefd345f..e48673ec1d 100644
--- a/ext/standard/tests/array/array_reverse_variation6.phpt
+++ b/ext/standard/tests/array/array_reverse_variation6.phpt
@@ -15,7 +15,7 @@ echo "*** Testing array_reverse() : usage variations ***\n";
// Initializing the 2-d arrays
$two_dimensional_array = array(
-
+
// associative array
array('color' => 'red', 'item' => 'pen', 'place' => 'LA'),
@@ -24,7 +24,7 @@ $two_dimensional_array = array(
// combination of numeric and associative arrays
array('a' => 'green', 'red', 'brown', 33, 88, 'orange', 'item' => 'ball')
-);
+);
// calling array_reverse() with various types of 2-d arrays
// with default arguments
diff --git a/ext/standard/tests/array/array_search1.phpt b/ext/standard/tests/array/array_search1.phpt
index 81dd55db62..49563f9712 100644
--- a/ext/standard/tests/array/array_search1.phpt
+++ b/ext/standard/tests/array/array_search1.phpt
@@ -18,7 +18,7 @@ var_dump(array_search(-1,$a, true));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: array_search() expects at least 2 parameters, 1 given in %s on line %d
NULL
diff --git a/ext/standard/tests/array/array_search_variation1.phpt b/ext/standard/tests/array/array_search_variation1.phpt
index 094767dacd..6c52a3bfed 100644
--- a/ext/standard/tests/array/array_search_variation1.phpt
+++ b/ext/standard/tests/array/array_search_variation1.phpt
@@ -19,7 +19,7 @@ $arrays = array (
array(TRUE, FALSE),
array("", array()),
array("abcd\x00abcd\x00abcd"),
- array("abcd\tabcd\nabcd\rabcd\0abcdefghij")
+ array("abcd\tabcd\nabcd\rabcd\0abcdefghij")
);
$array_compare = array (
@@ -49,15 +49,15 @@ foreach($arrays as $array) {
foreach($array_compare as $compare) {
echo "-- Iteration $counter --\n";
//strict option OFF
- var_dump(array_search($compare,$array));
+ var_dump(array_search($compare,$array));
//strict option ON
- var_dump(array_search($compare,$array,TRUE));
+ var_dump(array_search($compare,$array,TRUE));
//strict option OFF
- var_dump(array_search($compare,$array,FALSE));
+ var_dump(array_search($compare,$array,FALSE));
$counter++;
}
}
-
+
echo "Done\n";
?>
--EXPECT--
diff --git a/ext/standard/tests/array/array_search_variation2.phpt b/ext/standard/tests/array/array_search_variation2.phpt
index a8bac04edb..fa43841984 100644
--- a/ext/standard/tests/array/array_search_variation2.phpt
+++ b/ext/standard/tests/array/array_search_variation2.phpt
@@ -16,10 +16,10 @@ $misc_array = array (
'a',
'key' =>'d',
3,
- ".001" =>-67,
+ ".001" =>-67,
"-.051" =>"k",
0.091 =>"-.08",
- "e" =>"5",
+ "e" =>"5",
"y" =>NULL,
NULL =>"",
0,
@@ -39,11 +39,11 @@ $counter = 1;
foreach($array_type as $type) {
echo "-- Iteration $counter --\n";
//loose type checking
- var_dump( array_search($type,$misc_array ) );
+ var_dump( array_search($type,$misc_array ) );
//strict type checking
- var_dump( array_search($type,$misc_array,true) );
+ var_dump( array_search($type,$misc_array,true) );
//loose type checking
- var_dump( array_search($type,$misc_array,false) );
+ var_dump( array_search($type,$misc_array,false) );
$counter++;
}
diff --git a/ext/standard/tests/array/array_search_variation3.phpt b/ext/standard/tests/array/array_search_variation3.phpt
index 8af089a72c..41b0b5bb20 100644
--- a/ext/standard/tests/array/array_search_variation3.phpt
+++ b/ext/standard/tests/array/array_search_variation3.phpt
@@ -11,7 +11,7 @@ Test array_search() function : usage variations - haystack as sub-array/object
/* checking for sub-arrays with array_search() */
echo "*** Testing sub-arrays with array_search() ***\n";
$sub_array = array (
- "one",
+ "one",
array(1, 2 => "two", "three" => 3),
4 => "four",
"five" => 5,
@@ -19,7 +19,7 @@ $sub_array = array (
);
var_dump( array_search("four", $sub_array) );
//checking for element in a sub-array
-var_dump( array_search(3, $sub_array[1]) );
+var_dump( array_search(3, $sub_array[1]) );
var_dump( array_search(array('','i'), $sub_array) );
/* checking for objects in array_search() */
@@ -33,11 +33,11 @@ class array_search_check {
$array_search_obj = new array_search_check(); //creating new object
//error: as wrong datatype for second argument
-var_dump( array_search("array_var", $array_search_obj) );
+var_dump( array_search("array_var", $array_search_obj) );
//error: as wrong datatype for second argument
-var_dump( array_search("foo", $array_search_obj) );
+var_dump( array_search("foo", $array_search_obj) );
//element found as "one" exists in array $array_var
-var_dump( array_search("one", $array_search_obj->array_var) );
+var_dump( array_search("one", $array_search_obj->array_var) );
echo "Done\n";
?>
diff --git a/ext/standard/tests/array/array_search_variation4.phpt b/ext/standard/tests/array/array_search_variation4.phpt
index 95656899ce..2355008261 100644
--- a/ext/standard/tests/array/array_search_variation4.phpt
+++ b/ext/standard/tests/array/array_search_variation4.phpt
@@ -20,37 +20,37 @@ $dir_handle = opendir( dirname(__FILE__) );
$resources = array($file_handle, $dir_handle);
// search for resouce type in the resource array
-var_dump( array_search($file_handle, $resources, true) );
+var_dump( array_search($file_handle, $resources, true) );
//checking for (int) type resource
-var_dump( array_search((int)$dir_handle, $resources, true) );
+var_dump( array_search((int)$dir_handle, $resources, true) );
/* Miscellenous input check */
echo "\n*** Testing miscelleneos inputs with array_search() ***\n";
//matching "Good" in array(0,"hello"), result:true in loose type check
-var_dump( array_search("Good", array(0,"hello")) );
+var_dump( array_search("Good", array(0,"hello")) );
//false in strict mode
-var_dump( array_search("Good", array(0,"hello"), TRUE) );
+var_dump( array_search("Good", array(0,"hello"), TRUE) );
//matching integer 0 in array("this"), result:true in loose type check
-var_dump( array_search(0, array("this")) );
+var_dump( array_search(0, array("this")) );
// false in strict mode
-var_dump( array_search(0, array("this")),TRUE );
+var_dump( array_search(0, array("this")),TRUE );
//matching string "this" in array(0), result:true in loose type check
-var_dump( array_search("this", array(0)) );
+var_dump( array_search("this", array(0)) );
// false in stric mode
-var_dump( array_search("this", array(0), TRUE) );
+var_dump( array_search("this", array(0), TRUE) );
//checking for type FALSE in multidimensional array with loose checking, result:false in loose type check
var_dump( array_search(FALSE,
array("a"=> TRUE, "b"=> TRUE,
- array("c"=> TRUE, "d"=>TRUE)
- )
- )
- );
+ array("c"=> TRUE, "d"=>TRUE)
+ )
+ )
+ );
//matching string having integer in beginning, result:true in loose type check
-var_dump( array_search('123abc', array(123)) );
+var_dump( array_search('123abc', array(123)) );
var_dump( array_search('123abc', array(123), TRUE) ); // false in strict mode
echo "Done\n";
diff --git a/ext/standard/tests/array/array_shift_variation1.phpt b/ext/standard/tests/array/array_shift_variation1.phpt
index cef9af8b8a..14615a1f61 100644
--- a/ext/standard/tests/array/array_shift_variation1.phpt
+++ b/ext/standard/tests/array/array_shift_variation1.phpt
@@ -58,7 +58,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -67,7 +67,7 @@ $inputs = array(
/*18*/ "string",
'string',
$heredoc,
-
+
// object data
/*21*/ new classA(),
diff --git a/ext/standard/tests/array/array_shift_variation2.phpt b/ext/standard/tests/array/array_shift_variation2.phpt
index 2b3adc605f..f1a2bc9bfc 100644
--- a/ext/standard/tests/array/array_shift_variation2.phpt
+++ b/ext/standard/tests/array/array_shift_variation2.phpt
@@ -67,13 +67,13 @@ $inputs = array(
TRUE,
FALSE,
),
-
+
// empty data
/*5*/ 'empty string' => array(
"",
'',
),
-
+
/*6*/ 'empty array' => array(
),
@@ -83,7 +83,7 @@ $inputs = array(
'string',
$heredoc,
),
-
+
// object data
/*8*/ 'object' => array(
new classA(),
diff --git a/ext/standard/tests/array/array_shift_variation3.phpt b/ext/standard/tests/array/array_shift_variation3.phpt
index d3a359fab8..303d295e12 100644
--- a/ext/standard/tests/array/array_shift_variation3.phpt
+++ b/ext/standard/tests/array/array_shift_variation3.phpt
@@ -39,7 +39,7 @@ $inputs = array(
-10.5 => 'negative',
.5 => 'half',
),
-
+
/*3*/ 'extreme floats' => array(
12.3456789000e10 => 'large',
12.3456789000E-10 => 'small',
@@ -49,7 +49,7 @@ $inputs = array(
/*4*/ 'null uppercase' => array(
NULL => 'null 1',
),
-
+
/*5*/ 'null lowercase' => array(
null => 'null 2',
),
@@ -59,17 +59,17 @@ $inputs = array(
true => 'lowert',
false => 'lowerf',
),
-
+
/*7*/ 'bool uppercase' => array(
TRUE => 'uppert',
FALSE => 'upperf',
),
-
+
// empty data
/*8*/ 'empty double quotes' => array(
"" => 'emptyd',
),
-
+
/*9*/ 'empty single quotes' => array(
'' => 'emptys',
),
diff --git a/ext/standard/tests/array/array_slice_variation11.phpt b/ext/standard/tests/array/array_slice_variation11.phpt
index 2e2bfc4fc0..54de5740dd 100644
--- a/ext/standard/tests/array/array_slice_variation11.phpt
+++ b/ext/standard/tests/array/array_slice_variation11.phpt
@@ -61,7 +61,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -71,7 +71,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/array_slice_variation2.phpt b/ext/standard/tests/array/array_slice_variation2.phpt
index 1d3be8127d..0af0959989 100644
--- a/ext/standard/tests/array/array_slice_variation2.phpt
+++ b/ext/standard/tests/array/array_slice_variation2.phpt
@@ -63,7 +63,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
diff --git a/ext/standard/tests/array/array_slice_variation3.phpt b/ext/standard/tests/array/array_slice_variation3.phpt
index 32bfc045c6..40deacabb7 100644
--- a/ext/standard/tests/array/array_slice_variation3.phpt
+++ b/ext/standard/tests/array/array_slice_variation3.phpt
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
diff --git a/ext/standard/tests/array/array_slice_variation4.phpt b/ext/standard/tests/array/array_slice_variation4.phpt
index 40bfad3332..90a1ac4a35 100644
--- a/ext/standard/tests/array/array_slice_variation4.phpt
+++ b/ext/standard/tests/array/array_slice_variation4.phpt
@@ -60,7 +60,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -70,7 +70,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/array_slice_variation7.phpt b/ext/standard/tests/array/array_slice_variation7.phpt
index fd0bfd822d..96c8462df6 100644
--- a/ext/standard/tests/array/array_slice_variation7.phpt
+++ b/ext/standard/tests/array/array_slice_variation7.phpt
@@ -44,7 +44,7 @@ $inputs = array(
-10.5 => 'negative',
.5 => 'half',
),
-
+
/*3*/ 'extreme floats' => array(
12.3456789000e6 => 'large',
12.3456789000E-10 => 'small',
@@ -54,7 +54,7 @@ $inputs = array(
/*4*/ 'null uppercase' => array(
NULL => 'null 1',
),
-
+
/*5*/ 'null lowercase' => array(
null => 'null 2',
),
@@ -64,17 +64,17 @@ $inputs = array(
true => 'lowert',
false => 'lowerf',
),
-
+
/*7*/ 'bool uppercase' => array(
TRUE => 'uppert',
FALSE => 'upperf',
),
-
+
// empty data
/*8*/ 'empty double quotes' => array(
"" => 'emptyd',
),
-
+
/*9*/ 'empty single quotes' => array(
'' => 'emptys',
),
diff --git a/ext/standard/tests/array/array_splice_basic.phpt b/ext/standard/tests/array/array_splice_basic.phpt
index e96303d13a..9a96ccb362 100644
--- a/ext/standard/tests/array/array_splice_basic.phpt
+++ b/ext/standard/tests/array/array_splice_basic.phpt
@@ -2,10 +2,10 @@
Test array_splice(): basic functionality
--FILE--
<?php
-/*
+/*
* proto array array_splice(array input, int offset [, int length [, array replacement]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "*** Testing array_splice() basic operations ***\n";
echo "test truncation \n";
diff --git a/ext/standard/tests/array/array_splice_errors.phpt b/ext/standard/tests/array/array_splice_errors.phpt
index bdcd9913cf..18148fbff2 100644
--- a/ext/standard/tests/array/array_splice_errors.phpt
+++ b/ext/standard/tests/array/array_splice_errors.phpt
@@ -2,10 +2,10 @@
Test array_splice() function : error conditions
--FILE--
<?php
-/*
+/*
* proto array array_splice(array input, int offset [, int length [, array replacement]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "\n*** Testing error conditions of array_splice() ***\n";
diff --git a/ext/standard/tests/array/array_splice_variation1.phpt b/ext/standard/tests/array/array_splice_variation1.phpt
index 9ba94f6633..ecd6f67eb0 100644
--- a/ext/standard/tests/array/array_splice_variation1.phpt
+++ b/ext/standard/tests/array/array_splice_variation1.phpt
@@ -2,10 +2,10 @@
Test array_splice() function : usage variations - references
--FILE--
<?php
-/*
+/*
* proto array array_splice(array input, int offset [, int length [, array replacement]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "test behaviour when input array is in a reference set\n";
diff --git a/ext/standard/tests/array/array_splice_variation2.phpt b/ext/standard/tests/array/array_splice_variation2.phpt
index 516339c7e8..42692918d1 100644
--- a/ext/standard/tests/array/array_splice_variation2.phpt
+++ b/ext/standard/tests/array/array_splice_variation2.phpt
@@ -2,10 +2,10 @@
Test array_splice() function : usage variations - additional parameters
--FILE--
<?php
-/*
+/*
* proto array array_splice(array input, int offset [, int length [, array replacement]])
* Function is implemented in ext/standard/array.c
-*/
+*/
$array=array(0,1,2);
var_dump (array_splice($array,1,1,3,4,5,6,7,8,9));
diff --git a/ext/standard/tests/array/array_splice_variation3.phpt b/ext/standard/tests/array/array_splice_variation3.phpt
index 33ec80e5a8..9c1a7c86ab 100644
--- a/ext/standard/tests/array/array_splice_variation3.phpt
+++ b/ext/standard/tests/array/array_splice_variation3.phpt
@@ -2,10 +2,10 @@
Test array_splice() function : usage variations - lengths and offsets
--FILE--
<?php
-/*
+/*
* proto array array_splice(array input, int offset [, int length [, array replacement]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "*** array_splice() function : usage variations - lengths and offsets\n";
diff --git a/ext/standard/tests/array/array_splice_variation4.phpt b/ext/standard/tests/array/array_splice_variation4.phpt
index d1cc501c6b..ddd966780e 100644
--- a/ext/standard/tests/array/array_splice_variation4.phpt
+++ b/ext/standard/tests/array/array_splice_variation4.phpt
@@ -2,10 +2,10 @@
Test array_splice() function : usage variations - non array replacement values
--FILE--
<?php
-/*
+/*
* proto array array_splice(array input, int offset [, int length [, array replacement]])
* Function is implemented in ext/standard/array.c
-*/
+*/
function test_splice ($replacement)
{
diff --git a/ext/standard/tests/array/array_sum_variation1.phpt b/ext/standard/tests/array/array_sum_variation1.phpt
index 55b249616a..c795c2acd1 100644
--- a/ext/standard/tests/array/array_sum_variation1.phpt
+++ b/ext/standard/tests/array/array_sum_variation1.phpt
@@ -8,7 +8,7 @@ Test array_sum() function : usage variations - unexpected values for 'input' arg
*/
/*
-* Passing different scalar/nonscalar values as 'input' argument to array_sum()
+* Passing different scalar/nonscalar values as 'input' argument to array_sum()
*/
echo "*** Testing array_sum() : unexpected values for 'input' ***\n";
diff --git a/ext/standard/tests/array/array_sum_variation3.phpt b/ext/standard/tests/array/array_sum_variation3.phpt
index 7f1a756bec..25b565cd26 100644
--- a/ext/standard/tests/array/array_sum_variation3.phpt
+++ b/ext/standard/tests/array/array_sum_variation3.phpt
@@ -26,7 +26,7 @@ $float_input = array( 1.2E2, 23.4E3, -4.1E2, 0.2E2, 2.1E-2, .5E3);
var_dump( array_sum($float_input) );
// Mixed float array
-$float_input = array(
+$float_input = array(
1.2,
0.5
-5.8,
@@ -39,7 +39,7 @@ $float_input = array(
);
echo "-- Mixed float array --\n";
var_dump( array_sum($float_input) );
-
+
echo "Done"
?>
--EXPECT--
diff --git a/ext/standard/tests/array/array_udiff_assoc_error.phpt b/ext/standard/tests/array/array_udiff_assoc_error.phpt
index ec1cc062ed..eec33b0530 100644
--- a/ext/standard/tests/array/array_udiff_assoc_error.phpt
+++ b/ext/standard/tests/array/array_udiff_assoc_error.phpt
@@ -5,7 +5,7 @@ Test array_udiff_assoc() function : error conditions
/* Prototype : array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_assoc() : error conditions ***\n";
diff --git a/ext/standard/tests/array/array_udiff_assoc_variation.phpt b/ext/standard/tests/array/array_udiff_assoc_variation.phpt
index f824244f6f..c813e9383b 100644
--- a/ext/standard/tests/array/array_udiff_assoc_variation.phpt
+++ b/ext/standard/tests/array/array_udiff_assoc_variation.phpt
@@ -5,7 +5,7 @@ Test array_udiff_assoc() function : variation
/* Prototype : array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_assoc() : variation - testing with multiple array arguments ***\n";
diff --git a/ext/standard/tests/array/array_udiff_assoc_variation1.phpt b/ext/standard/tests/array/array_udiff_assoc_variation1.phpt
index 108d2a3ff0..44b78a75f1 100644
--- a/ext/standard/tests/array/array_udiff_assoc_variation1.phpt
+++ b/ext/standard/tests/array/array_udiff_assoc_variation1.phpt
@@ -5,7 +5,7 @@ Test array_udiff_assoc() function : usage variation
/* Prototype : array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_assoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_assoc_variation2.phpt b/ext/standard/tests/array/array_udiff_assoc_variation2.phpt
index d022a4e82f..bdc0b01596 100644
--- a/ext/standard/tests/array/array_udiff_assoc_variation2.phpt
+++ b/ext/standard/tests/array/array_udiff_assoc_variation2.phpt
@@ -5,7 +5,7 @@ Test array_udiff_assoc() function : usage variation
/* Prototype : array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_assoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_assoc_variation3.phpt b/ext/standard/tests/array/array_udiff_assoc_variation3.phpt
index e693afff87..324aacbca3 100644
--- a/ext/standard/tests/array/array_udiff_assoc_variation3.phpt
+++ b/ext/standard/tests/array/array_udiff_assoc_variation3.phpt
@@ -5,7 +5,7 @@ Test array_udiff_assoc() function : usage variation
/* Prototype : array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_assoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_assoc_variation4.phpt b/ext/standard/tests/array/array_udiff_assoc_variation4.phpt
index c5634dbcd7..bcd748fe01 100644
--- a/ext/standard/tests/array/array_udiff_assoc_variation4.phpt
+++ b/ext/standard/tests/array/array_udiff_assoc_variation4.phpt
@@ -5,7 +5,7 @@ Test array_udiff_assoc() function : usage variation
/* Prototype : array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_assoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_assoc_variation5.phpt b/ext/standard/tests/array/array_udiff_assoc_variation5.phpt
index 5eb21cd723..680f65c6cf 100644
--- a/ext/standard/tests/array/array_udiff_assoc_variation5.phpt
+++ b/ext/standard/tests/array/array_udiff_assoc_variation5.phpt
@@ -5,7 +5,7 @@ Test array_udiff_assoc() function : usage variation - incorrect comparison funct
/* Prototype : array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
diff --git a/ext/standard/tests/array/array_udiff_error.phpt b/ext/standard/tests/array/array_udiff_error.phpt
index dc9657756e..c3063d3046 100644
--- a/ext/standard/tests/array/array_udiff_error.phpt
+++ b/ext/standard/tests/array/array_udiff_error.phpt
@@ -5,7 +5,7 @@ Test array_udiff() function : error conditions
/* Prototype : array array_udiff(array arr1, array arr2 [, array ...], callback data_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments. Elements are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff() : error conditions ***\n";
diff --git a/ext/standard/tests/array/array_udiff_uassoc_error.phpt b/ext/standard/tests/array/array_udiff_uassoc_error.phpt
index e7d27e65db..c157a53946 100644
--- a/ext/standard/tests/array/array_udiff_uassoc_error.phpt
+++ b/ext/standard/tests/array/array_udiff_uassoc_error.phpt
@@ -5,7 +5,7 @@ Test array_udiff_uassoc() function : error conditions
/* Prototype : array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_uassoc() : error conditions ***\n";
diff --git a/ext/standard/tests/array/array_udiff_uassoc_variation1.phpt b/ext/standard/tests/array/array_udiff_uassoc_variation1.phpt
index e55a600e48..8773f6c4ff 100644
--- a/ext/standard/tests/array/array_udiff_uassoc_variation1.phpt
+++ b/ext/standard/tests/array/array_udiff_uassoc_variation1.phpt
@@ -5,7 +5,7 @@ Test array_udiff_uassoc() function : usage variation
/* Prototype : array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_uassoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_uassoc_variation2.phpt b/ext/standard/tests/array/array_udiff_uassoc_variation2.phpt
index 73edbfe0bb..2cc56ba057 100644
--- a/ext/standard/tests/array/array_udiff_uassoc_variation2.phpt
+++ b/ext/standard/tests/array/array_udiff_uassoc_variation2.phpt
@@ -5,7 +5,7 @@ Test array_udiff_uassoc() function : usage variation
/* Prototype : array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_uassoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_uassoc_variation3.phpt b/ext/standard/tests/array/array_udiff_uassoc_variation3.phpt
index 76afda098b..7096451e8a 100644
--- a/ext/standard/tests/array/array_udiff_uassoc_variation3.phpt
+++ b/ext/standard/tests/array/array_udiff_uassoc_variation3.phpt
@@ -5,7 +5,7 @@ Test array_udiff_uassoc() function : usage variation
/* Prototype : array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_uassoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_uassoc_variation4.phpt b/ext/standard/tests/array/array_udiff_uassoc_variation4.phpt
index 0beb15ff77..31d14a5120 100644
--- a/ext/standard/tests/array/array_udiff_uassoc_variation4.phpt
+++ b/ext/standard/tests/array/array_udiff_uassoc_variation4.phpt
@@ -5,7 +5,7 @@ Test array_udiff_uassoc() function : usage variation
/* Prototype : array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_uassoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_uassoc_variation5.phpt b/ext/standard/tests/array/array_udiff_uassoc_variation5.phpt
index f78261a1eb..12a2f32ecf 100644
--- a/ext/standard/tests/array/array_udiff_uassoc_variation5.phpt
+++ b/ext/standard/tests/array/array_udiff_uassoc_variation5.phpt
@@ -5,7 +5,7 @@ Test array_udiff_uassoc() function : usage variation
/* Prototype : array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_uassoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_uassoc_variation6.phpt b/ext/standard/tests/array/array_udiff_uassoc_variation6.phpt
index f8ca5300ca..39def47e24 100644
--- a/ext/standard/tests/array/array_udiff_uassoc_variation6.phpt
+++ b/ext/standard/tests/array/array_udiff_uassoc_variation6.phpt
@@ -5,7 +5,7 @@ Test array_udiff_uassoc() function : usage variation
/* Prototype : array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff_uassoc() : usage variation - differing comparison functions***\n";
diff --git a/ext/standard/tests/array/array_udiff_variation1.phpt b/ext/standard/tests/array/array_udiff_variation1.phpt
index b32324a2dd..02db27173c 100644
--- a/ext/standard/tests/array/array_udiff_variation1.phpt
+++ b/ext/standard/tests/array/array_udiff_variation1.phpt
@@ -5,7 +5,7 @@ Test array_udiff() function : usage variation
/* Prototype : array array_udiff(array arr1, array arr2 [, array ...], callback data_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments. Elements are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_variation2.phpt b/ext/standard/tests/array/array_udiff_variation2.phpt
index 4281ffcd18..c58822feaa 100644
--- a/ext/standard/tests/array/array_udiff_variation2.phpt
+++ b/ext/standard/tests/array/array_udiff_variation2.phpt
@@ -5,7 +5,7 @@ Test array_udiff() function : usage variation
/* Prototype : array array_udiff(array arr1, array arr2 [, array ...], callback data_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments. Elements are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_variation3.phpt b/ext/standard/tests/array/array_udiff_variation3.phpt
index aeeee89bf1..1f5532ee06 100644
--- a/ext/standard/tests/array/array_udiff_variation3.phpt
+++ b/ext/standard/tests/array/array_udiff_variation3.phpt
@@ -5,7 +5,7 @@ Test array_udiff() function : usage variation
/* Prototype : array array_udiff(array arr1, array arr2 [, array ...], callback data_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments. Elements are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_variation4.phpt b/ext/standard/tests/array/array_udiff_variation4.phpt
index 1048c82cc1..d46ca719bb 100644
--- a/ext/standard/tests/array/array_udiff_variation4.phpt
+++ b/ext/standard/tests/array/array_udiff_variation4.phpt
@@ -5,7 +5,7 @@ Test array_udiff() function : usage variation
/* Prototype : array array_udiff(array arr1, array arr2 [, array ...], callback data_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments. Elements are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_udiff_variation5.phpt b/ext/standard/tests/array/array_udiff_variation5.phpt
index a391cb4eb6..76f8a29135 100644
--- a/ext/standard/tests/array/array_udiff_variation5.phpt
+++ b/ext/standard/tests/array/array_udiff_variation5.phpt
@@ -5,7 +5,7 @@ Test array_udiff() function : usage variation
/* Prototype : array array_udiff(array arr1, array arr2 [, array ...], callback data_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments. Elements are compared by user supplied function.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_udiff() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_assoc_basic2.phpt b/ext/standard/tests/array/array_uintersect_assoc_basic2.phpt
index 076dbf16fb..b9837e7954 100644
--- a/ext/standard/tests/array/array_uintersect_assoc_basic2.phpt
+++ b/ext/standard/tests/array/array_uintersect_assoc_basic2.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_assoc() function : basic functionality - testing with mult
/* Prototype : array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: U
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_assoc() : basic functionality - testing with multiple array arguments ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_assoc_error.phpt b/ext/standard/tests/array/array_uintersect_assoc_error.phpt
index 73fc61e397..fd491622f1 100644
--- a/ext/standard/tests/array/array_uintersect_assoc_error.phpt
+++ b/ext/standard/tests/array/array_uintersect_assoc_error.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_assoc() function : error conditions
/* Prototype : array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: U
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_assoc() : error conditions ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_assoc_variation1.phpt b/ext/standard/tests/array/array_uintersect_assoc_variation1.phpt
index 634d036464..c94d8f744f 100644
--- a/ext/standard/tests/array/array_uintersect_assoc_variation1.phpt
+++ b/ext/standard/tests/array/array_uintersect_assoc_variation1.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_assoc() function : usage variation
/* Prototype : array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: U
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_assoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_assoc_variation2.phpt b/ext/standard/tests/array/array_uintersect_assoc_variation2.phpt
index eed4afa6be..97b88c1b0f 100644
--- a/ext/standard/tests/array/array_uintersect_assoc_variation2.phpt
+++ b/ext/standard/tests/array/array_uintersect_assoc_variation2.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_assoc() function : usage variation
/* Prototype : array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: U
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_assoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_assoc_variation3.phpt b/ext/standard/tests/array/array_uintersect_assoc_variation3.phpt
index a76fca0f5c..aabd8a68df 100644
--- a/ext/standard/tests/array/array_uintersect_assoc_variation3.phpt
+++ b/ext/standard/tests/array/array_uintersect_assoc_variation3.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_assoc() function : usage variation
/* Prototype : array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: U
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_assoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_assoc_variation4.phpt b/ext/standard/tests/array/array_uintersect_assoc_variation4.phpt
index 0c8973f084..dca5b9d5f0 100644
--- a/ext/standard/tests/array/array_uintersect_assoc_variation4.phpt
+++ b/ext/standard/tests/array/array_uintersect_assoc_variation4.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_assoc() function : usage variation
/* Prototype : array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: U
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_assoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_assoc_variation5.phpt b/ext/standard/tests/array/array_uintersect_assoc_variation5.phpt
index 802934b37d..e7f5f6d725 100644
--- a/ext/standard/tests/array/array_uintersect_assoc_variation5.phpt
+++ b/ext/standard/tests/array/array_uintersect_assoc_variation5.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_assoc() function : usage variation - differing comparison
/* Prototype : array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_assoc() : usage variation - differing comparison functions***\n";
diff --git a/ext/standard/tests/array/array_uintersect_error.phpt b/ext/standard/tests/array/array_uintersect_error.phpt
index 1b25db4345..230247e52d 100644
--- a/ext/standard/tests/array/array_uintersect_error.phpt
+++ b/ext/standard/tests/array/array_uintersect_error.phpt
@@ -5,7 +5,7 @@ Test array_uintersect() function : error conditions
/* Prototype : array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect() : error conditions ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_uassoc_error.phpt b/ext/standard/tests/array/array_uintersect_uassoc_error.phpt
index c7391eeda9..b10de85f88 100644
--- a/ext/standard/tests/array/array_uintersect_uassoc_error.phpt
+++ b/ext/standard/tests/array/array_uintersect_uassoc_error.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_uassoc() function : error conditions
/* Prototype : array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_uassoc() : error conditions ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_uassoc_variation1.phpt b/ext/standard/tests/array/array_uintersect_uassoc_variation1.phpt
index de0f4ebeb5..1a6d501bce 100644
--- a/ext/standard/tests/array/array_uintersect_uassoc_variation1.phpt
+++ b/ext/standard/tests/array/array_uintersect_uassoc_variation1.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_uassoc() function : usage variation
/* Prototype : array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_uassoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_uassoc_variation2.phpt b/ext/standard/tests/array/array_uintersect_uassoc_variation2.phpt
index ffe8ccfd9a..1279428982 100644
--- a/ext/standard/tests/array/array_uintersect_uassoc_variation2.phpt
+++ b/ext/standard/tests/array/array_uintersect_uassoc_variation2.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_uassoc() function : usage variation
/* Prototype : array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_uassoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_uassoc_variation3.phpt b/ext/standard/tests/array/array_uintersect_uassoc_variation3.phpt
index 860a1661a6..87991b532e 100644
--- a/ext/standard/tests/array/array_uintersect_uassoc_variation3.phpt
+++ b/ext/standard/tests/array/array_uintersect_uassoc_variation3.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_uassoc() function : usage variation
/* Prototype : array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_uassoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_uassoc_variation4.phpt b/ext/standard/tests/array/array_uintersect_uassoc_variation4.phpt
index a3963184c3..ed563ca499 100644
--- a/ext/standard/tests/array/array_uintersect_uassoc_variation4.phpt
+++ b/ext/standard/tests/array/array_uintersect_uassoc_variation4.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_uassoc() function : usage variation
/* Prototype : array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_uassoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_uassoc_variation5.phpt b/ext/standard/tests/array/array_uintersect_uassoc_variation5.phpt
index 432f1c5a44..4f0c361287 100644
--- a/ext/standard/tests/array/array_uintersect_uassoc_variation5.phpt
+++ b/ext/standard/tests/array/array_uintersect_uassoc_variation5.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_uassoc() function : usage variation
/* Prototype : array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_uassoc() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_uassoc_variation6.phpt b/ext/standard/tests/array/array_uintersect_uassoc_variation6.phpt
index 782821f4a7..e8f7974577 100644
--- a/ext/standard/tests/array/array_uintersect_uassoc_variation6.phpt
+++ b/ext/standard/tests/array/array_uintersect_uassoc_variation6.phpt
@@ -5,7 +5,7 @@ Test array_uintersect_uassoc() function : usage variation - incorrect callbacks
/* Prototype : array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect_uassoc() : usage variation - incorrect callbacks ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_variation1.phpt b/ext/standard/tests/array/array_uintersect_variation1.phpt
index c26ace67df..0c5f406b1e 100644
--- a/ext/standard/tests/array/array_uintersect_variation1.phpt
+++ b/ext/standard/tests/array/array_uintersect_variation1.phpt
@@ -5,7 +5,7 @@ Test array_uintersect() function : usage variation
/* Prototype : array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_variation2.phpt b/ext/standard/tests/array/array_uintersect_variation2.phpt
index ed34d69a1c..6ce6ca0306 100644
--- a/ext/standard/tests/array/array_uintersect_variation2.phpt
+++ b/ext/standard/tests/array/array_uintersect_variation2.phpt
@@ -5,7 +5,7 @@ Test array_uintersect() function : usage variation
/* Prototype : array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_variation3.phpt b/ext/standard/tests/array/array_uintersect_variation3.phpt
index 707ba113c8..8cc9598e57 100644
--- a/ext/standard/tests/array/array_uintersect_variation3.phpt
+++ b/ext/standard/tests/array/array_uintersect_variation3.phpt
@@ -5,7 +5,7 @@ Test array_uintersect() function : usage variation
/* Prototype : array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_variation4.phpt b/ext/standard/tests/array/array_uintersect_variation4.phpt
index 7ecf7a6395..0c189fd765 100644
--- a/ext/standard/tests/array/array_uintersect_variation4.phpt
+++ b/ext/standard/tests/array/array_uintersect_variation4.phpt
@@ -5,7 +5,7 @@ Test array_uintersect() function : usage variation
/* Prototype : array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect() : usage variation ***\n";
diff --git a/ext/standard/tests/array/array_uintersect_variation5.phpt b/ext/standard/tests/array/array_uintersect_variation5.phpt
index 04051dbf5e..9c41db3acd 100644
--- a/ext/standard/tests/array/array_uintersect_variation5.phpt
+++ b/ext/standard/tests/array/array_uintersect_variation5.phpt
@@ -5,7 +5,7 @@ Test array_uintersect() function : usage variation - differing comparison functi
/* Prototype : array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)
* Description: Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback.
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing array_uintersect() : usage variation - differing comparison functions***\n";
diff --git a/ext/standard/tests/array/array_unique_variation2.phpt b/ext/standard/tests/array/array_unique_variation2.phpt
index 470cd284d0..176017c86a 100644
--- a/ext/standard/tests/array/array_unique_variation2.phpt
+++ b/ext/standard/tests/array/array_unique_variation2.phpt
@@ -77,7 +77,7 @@ foreach($inputs as $input) {
var_dump( array_unique($input, SORT_STRING) );
$iterator++;
}
-
+
echo "Done";
?>
--EXPECT--
diff --git a/ext/standard/tests/array/array_unique_variation3.phpt b/ext/standard/tests/array/array_unique_variation3.phpt
index 49103c8154..4d82e5f71d 100644
--- a/ext/standard/tests/array/array_unique_variation3.phpt
+++ b/ext/standard/tests/array/array_unique_variation3.phpt
@@ -62,7 +62,7 @@ foreach($inputs as $input) {
}
fclose($fp);
-
+
echo "Done";
?>
--EXPECTF--
diff --git a/ext/standard/tests/array/array_unique_variation4.phpt b/ext/standard/tests/array/array_unique_variation4.phpt
index a1fc13e94d..8a6392fb9c 100644
--- a/ext/standard/tests/array/array_unique_variation4.phpt
+++ b/ext/standard/tests/array/array_unique_variation4.phpt
@@ -62,7 +62,7 @@ foreach($inputs as $input) {
}
fclose($fp);
-
+
echo "Done";
?>
--EXPECTF--
diff --git a/ext/standard/tests/array/array_unique_variation8.phpt b/ext/standard/tests/array/array_unique_variation8.phpt
index 8b67adfbab..b2b2c5556c 100644
--- a/ext/standard/tests/array/array_unique_variation8.phpt
+++ b/ext/standard/tests/array/array_unique_variation8.phpt
@@ -15,7 +15,7 @@ Test array_unique() function : usage variations - two dimensional arrays
echo "*** Testing array_unique() : two dimensional array for \$input argument ***\n";
// initialize the 2-d array
-$input = array(
+$input = array(
array(1, 2, 3, 1),
array("hello", "world", "str1" => "hello", "str2" => 'world'),
array(1 => "one", 2 => "two", "one", 'two'),
diff --git a/ext/standard/tests/array/array_unshift.phpt b/ext/standard/tests/array/array_unshift.phpt
index ebcf19041f..9b474277a9 100644
--- a/ext/standard/tests/array/array_unshift.phpt
+++ b/ext/standard/tests/array/array_unshift.phpt
@@ -14,7 +14,7 @@ var_dump($a);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(1)
array(1) {
[0]=>
diff --git a/ext/standard/tests/array/array_unshift_basic1.phpt b/ext/standard/tests/array/array_unshift_basic1.phpt
index c041a47756..9427a1cb24 100644
--- a/ext/standard/tests/array/array_unshift_basic1.phpt
+++ b/ext/standard/tests/array/array_unshift_basic1.phpt
@@ -7,7 +7,7 @@ Test array_unshift() function : basic functionality - array with default keys fo
* Source code: ext/standard/array.c
*/
-/*
+/*
* Testing array_unshift() by giving array with default keys for $array argument
*/
diff --git a/ext/standard/tests/array/array_unshift_basic2.phpt b/ext/standard/tests/array/array_unshift_basic2.phpt
index eec6412042..4be6b8d1e5 100644
--- a/ext/standard/tests/array/array_unshift_basic2.phpt
+++ b/ext/standard/tests/array/array_unshift_basic2.phpt
@@ -7,7 +7,7 @@ Test array_unshift() function : basic functionality - associative arrays for 'ar
* Source code: ext/standard/array.c
*/
-/*
+/*
* Testing array_unshift() by giving associative arrays for $array argument
*/
diff --git a/ext/standard/tests/array/array_unshift_variation2.phpt b/ext/standard/tests/array/array_unshift_variation2.phpt
index 064309b53f..c8073ecaa1 100644
--- a/ext/standard/tests/array/array_unshift_variation2.phpt
+++ b/ext/standard/tests/array/array_unshift_variation2.phpt
@@ -44,7 +44,7 @@ $vars = array(
1,
12345,
-2345,
-
+
// float data
/*5*/ 10.5,
-10.5,
@@ -58,7 +58,7 @@ $vars = array(
array(1),
array(1, 2),
array('color' => 'red', 'item' => 'pen'),
-
+
// null data
/*15*/ NULL,
null,
@@ -68,7 +68,7 @@ $vars = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*21*/ "",
'',
@@ -86,7 +86,7 @@ $vars = array(
// unset data
@$unset_var,
-
+
// resource variable
/*29*/ $fp
);
@@ -103,7 +103,7 @@ foreach($vars as $var) {
var_dump( array_unshift($temp_array, $var) );
// dump the resulting array
- var_dump($temp_array);
+ var_dump($temp_array);
/* with optional arguments */
// returns element count in the resulting array after arguments are pushed to
diff --git a/ext/standard/tests/array/array_unshift_variation4.phpt b/ext/standard/tests/array/array_unshift_variation4.phpt
index 25c9159a11..d3f901d1f0 100644
--- a/ext/standard/tests/array/array_unshift_variation4.phpt
+++ b/ext/standard/tests/array/array_unshift_variation4.phpt
@@ -52,13 +52,13 @@ $arrays = array (
// arrays with float keys
/*5*/ array(2.3333 => "float"),
array(1.2 => "f1", 3.33 => "f2",
- 4.89999922839999 => "f3",
+ 4.89999922839999 => "f3",
33333333.333333 => "f4"),
// arrays with string keys
/*7*/ array('\tHello' => 111, 're\td' => "color",
'\v\fworld' => 2.2, 'pen\n' => 33),
- array("\tHello" => 111, "re\td" => "color",
+ array("\tHello" => 111, "re\td" => "color",
"\v\fworld" => 2.2, "pen\n" => 33),
array("hello", $heredoc => "string"), // heredoc
diff --git a/ext/standard/tests/array/array_unshift_variation5.phpt b/ext/standard/tests/array/array_unshift_variation5.phpt
index 7f083694af..48f12e9dc8 100644
--- a/ext/standard/tests/array/array_unshift_variation5.phpt
+++ b/ext/standard/tests/array/array_unshift_variation5.phpt
@@ -2,7 +2,7 @@
Test array_unshift() function : usage variations - assoc. array with diff values for 'array' argument
--INI--
precision=12
---FILE--
+--FILE--
<?php
/* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
* Description: Pushes elements onto the beginning of the array
@@ -14,11 +14,11 @@ precision=12
* associative arrays having different possible values to $array argument.
* The $var argument passed is a fixed value
*/
-
+
echo "*** Testing array_unshift() : associative array with different values ***\n";
// get an unset variable
-$unset_var = 10;
+$unset_var = 10;
unset ($unset_var);
// get a resource variable
diff --git a/ext/standard/tests/array/array_unshift_variation7.phpt b/ext/standard/tests/array/array_unshift_variation7.phpt
index a54e2ce9f5..e41d4bdced 100644
--- a/ext/standard/tests/array/array_unshift_variation7.phpt
+++ b/ext/standard/tests/array/array_unshift_variation7.phpt
@@ -37,7 +37,7 @@ foreach($vars as $var) {
// returns element count in the resulting array after arguments are pushed to
// beginning of the given array
var_dump( array_unshift($temp_array, $var) );
-
+
// dump the resulting array
var_dump($temp_array);
@@ -46,7 +46,7 @@ foreach($vars as $var) {
// beginning of the given array
$temp_array = $array;
var_dump( array_unshift($temp_array, $var, "hello", 'world') );
-
+
// dump the resulting array
var_dump($temp_array);
$iterator++;
diff --git a/ext/standard/tests/array/array_unshift_variation8.phpt b/ext/standard/tests/array/array_unshift_variation8.phpt
index a184ec44c2..7a9f9720c1 100644
--- a/ext/standard/tests/array/array_unshift_variation8.phpt
+++ b/ext/standard/tests/array/array_unshift_variation8.phpt
@@ -32,12 +32,12 @@ $iterator = 1;
foreach($vars as $var) {
echo "-- Iteration $iterator --\n";
$temp_array = $array; // assign $array to another temporary $temp_array
-
+
/* with default argument */
// returns element count in the resulting array after arguments are pushed to
// beginning of the given array
var_dump( array_unshift($temp_array, $var) );
-
+
// dump the resulting array
var_dump($temp_array);
diff --git a/ext/standard/tests/array/array_unshift_variation9.phpt b/ext/standard/tests/array/array_unshift_variation9.phpt
index 89d867df92..f4c57351ed 100644
--- a/ext/standard/tests/array/array_unshift_variation9.phpt
+++ b/ext/standard/tests/array/array_unshift_variation9.phpt
@@ -18,13 +18,13 @@ echo "*** Testing array_unshift() : heredoc strings for \$var argument ***\n";
// heredoc with empty value
$empty_string = <<<EOT
EOT;
-
+
// heredoc with blank line
$blank_line = <<<EOT
EOT;
-
+
// heredoc with multiline string
$multiline_string = <<<EOT
hello world
@@ -77,7 +77,7 @@ foreach($vars as $var) {
// returns element count in the resulting array after arguments are pushed to
// beginning of the given array
var_dump( array_unshift($temp_array, $var) );
-
+
// dump the resulting array
var_dump($temp_array);
@@ -86,7 +86,7 @@ foreach($vars as $var) {
// beginning of the given array
$temp_array = $array;
var_dump( array_unshift($temp_array, $var, "hello", 'world') );
-
+
// dump the resulting array
var_dump($temp_array);
$iterator++;
diff --git a/ext/standard/tests/array/array_values_errors.phpt b/ext/standard/tests/array/array_values_errors.phpt
index 82e5e04956..4f723c2b3b 100644
--- a/ext/standard/tests/array/array_values_errors.phpt
+++ b/ext/standard/tests/array/array_values_errors.phpt
@@ -16,7 +16,7 @@ var_dump( array_values(new stdclass) ); // object
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
*** Testing error conditions ***
Warning: array_values() expects exactly 1 parameter, 0 given in %s on line %d
diff --git a/ext/standard/tests/array/array_values_variation.phpt b/ext/standard/tests/array/array_values_variation.phpt
index 15da1a621e..15eb77dac0 100644
--- a/ext/standard/tests/array/array_values_variation.phpt
+++ b/ext/standard/tests/array/array_values_variation.phpt
@@ -19,8 +19,8 @@ var_dump( array_values($arr_resource) );
echo "\n*** Testing array_values() with range checking ***\n";
$arr_range = array(
- 2147483647,
- 2147483648,
+ 2147483647,
+ 2147483648,
-2147483647,
-2147483648,
-0,
@@ -35,7 +35,7 @@ var_dump( array_values(array()) ); // null array
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
*** Testing array_values() with resource type ***
array(2) {
[0]=>
diff --git a/ext/standard/tests/array/array_values_variation1.phpt b/ext/standard/tests/array/array_values_variation1.phpt
index ba6649695d..19b2fb73fa 100644
--- a/ext/standard/tests/array/array_values_variation1.phpt
+++ b/ext/standard/tests/array/array_values_variation1.phpt
@@ -58,7 +58,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -68,7 +68,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/array_values_variation2.phpt b/ext/standard/tests/array/array_values_variation2.phpt
index c7e9ad3f71..b939354da5 100644
--- a/ext/standard/tests/array/array_values_variation2.phpt
+++ b/ext/standard/tests/array/array_values_variation2.phpt
@@ -66,13 +66,13 @@ $inputs = array(
TRUE,
FALSE,
),
-
+
// empty data
/*5*/ 'empty string' => array(
"",
'',
),
-
+
/*6*/ 'empty array' => array(
),
@@ -82,7 +82,7 @@ $inputs = array(
'string',
$heredoc,
),
-
+
// object data
/*8*/ 'object' => array(
new classA(),
diff --git a/ext/standard/tests/array/array_values_variation3.phpt b/ext/standard/tests/array/array_values_variation3.phpt
index d036cfdebe..69359b409c 100644
--- a/ext/standard/tests/array/array_values_variation3.phpt
+++ b/ext/standard/tests/array/array_values_variation3.phpt
@@ -40,7 +40,7 @@ $inputs = array(
-10.5 => 'negative',
.5 => 'half',
),
-
+
/*3*/ 'extreme floats' => array(
12.3456789000e10 => 'large',
12.3456789000E-10 => 'small',
@@ -50,7 +50,7 @@ $inputs = array(
/*4*/ 'null uppercase' => array(
NULL => 'null 1',
),
-
+
/*5*/ 'null lowercase' => array(
null => 'null 2',
),
@@ -60,17 +60,17 @@ $inputs = array(
true => 'lowert',
false => 'lowerf',
),
-
+
/*7*/ 'bool uppercase' => array(
TRUE => 'uppert',
FALSE => 'upperf',
),
-
+
// empty data
/*8*/ 'empty double quotes' => array(
"" => 'emptyd',
),
-
+
/*9*/ 'empty single quotes' => array(
'' => 'emptys',
),
diff --git a/ext/standard/tests/array/array_values_variation_64bit.phpt b/ext/standard/tests/array/array_values_variation_64bit.phpt
index 8b1e2c0b0e..066d35da84 100644
--- a/ext/standard/tests/array/array_values_variation_64bit.phpt
+++ b/ext/standard/tests/array/array_values_variation_64bit.phpt
@@ -19,8 +19,8 @@ var_dump( array_values($arr_resource) );
echo "\n*** Testing array_values() with range checking ***\n";
$arr_range = array(
- 2147483647,
- 2147483648,
+ 2147483647,
+ 2147483648,
-2147483647,
-2147483648,
-0,
@@ -34,7 +34,7 @@ var_dump( array_values(array(1,2,3)) );
var_dump( array_values(array()) ); // null array
?>
---EXPECTF--
+--EXPECTF--
*** Testing array_values() with resource type ***
array(2) {
[0]=>
diff --git a/ext/standard/tests/array/array_walk.phpt b/ext/standard/tests/array/array_walk.phpt
index d3ef3750b0..7cd8a8cf7a 100644
--- a/ext/standard/tests/array/array_walk.phpt
+++ b/ext/standard/tests/array/array_walk.phpt
@@ -30,7 +30,7 @@ try {
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: array_walk() expects at least 2 parameters, 0 given in %s on line %d
NULL
diff --git a/ext/standard/tests/array/array_walk_basic2.phpt b/ext/standard/tests/array/array_walk_basic2.phpt
index 3ef15605e7..b1412f4b97 100644
--- a/ext/standard/tests/array/array_walk_basic2.phpt
+++ b/ext/standard/tests/array/array_walk_basic2.phpt
@@ -18,7 +18,7 @@ $fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"
* key - key in key/value pair
* prefix - string to be added
* Description : alters the array values by appending prefix string
- */
+ */
function test_alter(&$item, $key, $prefix)
{
// dump the arguments to check that they are passed
diff --git a/ext/standard/tests/array/array_walk_closure.phpt b/ext/standard/tests/array/array_walk_closure.phpt
index 846e8a01af..0a5d854582 100644
--- a/ext/standard/tests/array/array_walk_closure.phpt
+++ b/ext/standard/tests/array/array_walk_closure.phpt
@@ -93,7 +93,7 @@ try {
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: array_walk() expects at least 2 parameters, 0 given in %s on line %d
NULL
diff --git a/ext/standard/tests/array/array_walk_error2.phpt b/ext/standard/tests/array/array_walk_error2.phpt
index fd3cbf5037..e39320d1ec 100644
--- a/ext/standard/tests/array/array_walk_error2.phpt
+++ b/ext/standard/tests/array/array_walk_error2.phpt
@@ -35,12 +35,12 @@ try {
// expected: Warning is suppressed
try {
- var_dump( @array_walk($input, "callback1") );
+ var_dump( @array_walk($input, "callback1") );
} catch (Throwable $e) {
echo "Exception: " . $e->getMessage() . "\n";
}
try {
- var_dump( @array_walk($input, "callback2", 4) );
+ var_dump( @array_walk($input, "callback2", 4) );
} catch (Throwable $e) {
echo "Exception: " . $e->getMessage() . "\n";
}
diff --git a/ext/standard/tests/array/array_walk_object1.phpt b/ext/standard/tests/array/array_walk_object1.phpt
index 3bd83fdab2..fe51143a60 100644
--- a/ext/standard/tests/array/array_walk_object1.phpt
+++ b/ext/standard/tests/array/array_walk_object1.phpt
@@ -40,10 +40,10 @@ class MyClass
$this->pub_value = $setVal;
$this->pro_value = $setVal;
}
-};
+};
// object for 'input' argument
-$input = new MyClass(10);
+$input = new MyClass(10);
var_dump( array_walk($input, "callback", 1));
diff --git a/ext/standard/tests/array/array_walk_object2.phpt b/ext/standard/tests/array/array_walk_object2.phpt
index 97606a6592..1be79f7241 100644
--- a/ext/standard/tests/array/array_walk_object2.phpt
+++ b/ext/standard/tests/array/array_walk_object2.phpt
@@ -21,7 +21,7 @@ echo "*** Testing array_walk() : array of objects ***\n";
* Description : Function adds the addvalue to each element of an array
*/
function callback_private($value, $key, $addValue)
-{
+{
echo "value : ";
var_dump($value->getValue());
echo "key : ";
@@ -58,7 +58,7 @@ class MyClass
{
return $this->pro_value;
}
-};
+};
// array containing objects of MyClass
$input = array (
@@ -73,7 +73,7 @@ var_dump( array_walk($input, "callback_private", 1));
echo "-- For public member --\n";
var_dump( array_walk($input, "callback_public"));
echo "-- For protected member --\n";
-var_dump( array_walk($input, "callback_protected"));
+var_dump( array_walk($input, "callback_protected"));
echo "Done"
?>
diff --git a/ext/standard/tests/array/array_walk_objects.phpt b/ext/standard/tests/array/array_walk_objects.phpt
index f9214d25a5..fc04304fc5 100644
--- a/ext/standard/tests/array/array_walk_objects.phpt
+++ b/ext/standard/tests/array/array_walk_objects.phpt
@@ -3,8 +3,8 @@ array_walk() and objects
--FILE--
<?php
-function walk($key, $value) {
- var_dump($value, $key);
+function walk($key, $value) {
+ var_dump($value, $key);
}
class test {
@@ -28,7 +28,7 @@ array_walk($var, "walk");
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
string(3) "foo"
string(3) "foo"
string(3) "bar"
diff --git a/ext/standard/tests/array/array_walk_rec_objects.phpt b/ext/standard/tests/array/array_walk_rec_objects.phpt
index d2fa9b86eb..a83c227a3b 100644
--- a/ext/standard/tests/array/array_walk_rec_objects.phpt
+++ b/ext/standard/tests/array/array_walk_rec_objects.phpt
@@ -3,8 +3,8 @@ array_walk_recursive() and objects
--FILE--
<?php
-function walk($key, $value) {
- var_dump($value, $key);
+function walk($key, $value) {
+ var_dump($value, $key);
}
class test {
@@ -28,7 +28,7 @@ array_walk_recursive($var, "walk");
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
string(3) "foo"
string(3) "foo"
string(3) "bar"
diff --git a/ext/standard/tests/array/array_walk_recursive1.phpt b/ext/standard/tests/array/array_walk_recursive1.phpt
index 07f09c5263..962f133e4c 100644
--- a/ext/standard/tests/array/array_walk_recursive1.phpt
+++ b/ext/standard/tests/array/array_walk_recursive1.phpt
@@ -30,7 +30,7 @@ try {
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: array_walk_recursive() expects at least 2 parameters, 0 given in %s on line %d
NULL
diff --git a/ext/standard/tests/array/array_walk_recursive_basic2.phpt b/ext/standard/tests/array/array_walk_recursive_basic2.phpt
index a049c0b812..40d5e1eb2b 100644
--- a/ext/standard/tests/array/array_walk_recursive_basic2.phpt
+++ b/ext/standard/tests/array/array_walk_recursive_basic2.phpt
@@ -18,7 +18,7 @@ $fruits = array("a" => "lemon", "b" => array( "c" => "orange", "d" => "banana"),
* key - key in key/value pair
* prefix - string to be added
* Description : alters the array values by appending prefix string
- */
+ */
function test_alter(&$item, $key, $prefix)
{
// dump the arguments to check that they are passed
diff --git a/ext/standard/tests/array/array_walk_recursive_error2.phpt b/ext/standard/tests/array/array_walk_recursive_error2.phpt
index 5a077c6886..8b5e92a0e0 100644
--- a/ext/standard/tests/array/array_walk_recursive_error2.phpt
+++ b/ext/standard/tests/array/array_walk_recursive_error2.phpt
@@ -35,12 +35,12 @@ try {
// expected: Warning is suppressed
try {
- var_dump( @array_walk_recursive($input, "callback1") );
+ var_dump( @array_walk_recursive($input, "callback1") );
} catch (Throwable $e) {
echo "Exception: " . $e->getMessage() . "\n";
}
try {
- var_dump( @array_walk_recursive($input, "callback2", 4) );
+ var_dump( @array_walk_recursive($input, "callback2", 4) );
} catch (Throwable $e) {
echo "Exception: " . $e->getMessage() . "\n";
}
diff --git a/ext/standard/tests/array/array_walk_recursive_object1.phpt b/ext/standard/tests/array/array_walk_recursive_object1.phpt
index 5c01c55817..d68d1554dc 100644
--- a/ext/standard/tests/array/array_walk_recursive_object1.phpt
+++ b/ext/standard/tests/array/array_walk_recursive_object1.phpt
@@ -38,10 +38,10 @@ class MyClass
$this->pub_value = $setVal;
$this->pro_value = $setVal;
}
-};
+};
// object for 'input' argument
-$input = new MyClass(10);
+$input = new MyClass(10);
var_dump( array_walk_recursive($input, "callback", 1));
diff --git a/ext/standard/tests/array/array_walk_recursive_object2.phpt b/ext/standard/tests/array/array_walk_recursive_object2.phpt
index 87d8e49d95..42855b0a68 100644
--- a/ext/standard/tests/array/array_walk_recursive_object2.phpt
+++ b/ext/standard/tests/array/array_walk_recursive_object2.phpt
@@ -21,7 +21,7 @@ echo "*** Testing array_walk_recursive() : array of objects ***\n";
* Description : Function adds the addvalue to each element of an array
*/
function callback_private($value, $key, $addValue)
-{
+{
echo "value : ";
var_dump($value->getValue());
echo "key : ";
@@ -58,7 +58,7 @@ class MyClass
{
return $this->pro_value;
}
-};
+};
// array containing objects of MyClass
$input = array (
@@ -75,7 +75,7 @@ var_dump( array_walk_recursive($input, "callback_private", 1));
echo "-- For public member --\n";
var_dump( array_walk_recursive($input, "callback_public"));
echo "-- For protected member --\n";
-var_dump( array_walk_recursive($input, "callback_protected"));
+var_dump( array_walk_recursive($input, "callback_protected"));
echo "Done"
?>
diff --git a/ext/standard/tests/array/array_walk_recursive_variation1.phpt b/ext/standard/tests/array/array_walk_recursive_variation1.phpt
index 5b8c0b1d1d..105c1af4f1 100644
--- a/ext/standard/tests/array/array_walk_recursive_variation1.phpt
+++ b/ext/standard/tests/array/array_walk_recursive_variation1.phpt
@@ -65,7 +65,7 @@ $input_values = array(
// empty data
/* 16*/ "",
- '',
+ '',
// string data
/* 18*/ "string",
diff --git a/ext/standard/tests/array/array_walk_recursive_variation3.phpt b/ext/standard/tests/array/array_walk_recursive_variation3.phpt
index 96c93d6f35..2db65ff20f 100644
--- a/ext/standard/tests/array/array_walk_recursive_variation3.phpt
+++ b/ext/standard/tests/array/array_walk_recursive_variation3.phpt
@@ -29,10 +29,10 @@ echo "*** Testing array_walk_recursive() : 'input' array with different values**
// different arrays as input
$input_values = array(
-
+
// integer values
/*1*/ array(array(1, 0, -10), array(023, -041), array(0x5A, 0X1F, -0x6E)),
-
+
// float value
array(array(3.4, 0.8, -2.9), array(6.25e2, 8.20E-3)),
@@ -58,7 +58,7 @@ $input_values = array(
for($count = 0; $count < count($input_values); $count++) {
echo "\n-- Iteration ".($count + 1)." --\n";
var_dump( array_walk_recursive($input_values[$count], "print_value", $count+1));
-}
+}
echo "Done"
?>
--EXPECT--
diff --git a/ext/standard/tests/array/array_walk_recursive_variation7.phpt b/ext/standard/tests/array/array_walk_recursive_variation7.phpt
index bc0d205900..c07a353d38 100644
--- a/ext/standard/tests/array/array_walk_recursive_variation7.phpt
+++ b/ext/standard/tests/array/array_walk_recursive_variation7.phpt
@@ -30,7 +30,7 @@ echo "-- Anonymous function with three arguments --\n";
var_dump( array_walk_recursive($input, function($value, $key, $user_data) { var_dump($key); var_dump($value); var_dump($user_data); echo "\n"; }, 10));
echo "-- Anonymous function with one more argument --\n";
-var_dump( array_walk_recursive($input, function($value, $key, $user_data) { var_dump($key); var_dump($value); var_dump($user_data); echo "\n"; }, 20, 30));
+var_dump( array_walk_recursive($input, function($value, $key, $user_data) { var_dump($key); var_dump($value); var_dump($user_data); echo "\n"; }, 20, 30));
echo "-- Anonymous function with null argument --\n";
var_dump( array_walk_recursive( $input, function() { echo "1\n"; }));
diff --git a/ext/standard/tests/array/array_walk_recursive_variation9.phpt b/ext/standard/tests/array/array_walk_recursive_variation9.phpt
index 780d779a7e..46a58fa53b 100644
--- a/ext/standard/tests/array/array_walk_recursive_variation9.phpt
+++ b/ext/standard/tests/array/array_walk_recursive_variation9.phpt
@@ -46,7 +46,7 @@ function callback_no_parameter()
var_dump( array_walk_recursive($input, 'callback_no_parameter'));
echo "-- passing one more parameter to function with two parameters --\n";
-var_dump( array_walk_recursive($input, 'callback_two_parameter', 10));
+var_dump( array_walk_recursive($input, 'callback_two_parameter', 10));
echo "Done"
?>
diff --git a/ext/standard/tests/array/array_walk_variation1.phpt b/ext/standard/tests/array/array_walk_variation1.phpt
index 4121f1a5a1..e1698ab4d6 100644
--- a/ext/standard/tests/array/array_walk_variation1.phpt
+++ b/ext/standard/tests/array/array_walk_variation1.phpt
@@ -65,7 +65,7 @@ $input_values = array(
// empty data
/* 16*/ "",
- '',
+ '',
// string data
/* 18*/ "string",
diff --git a/ext/standard/tests/array/array_walk_variation3.phpt b/ext/standard/tests/array/array_walk_variation3.phpt
index 964853705c..34d7a8c2ec 100644
--- a/ext/standard/tests/array/array_walk_variation3.phpt
+++ b/ext/standard/tests/array/array_walk_variation3.phpt
@@ -29,10 +29,10 @@ echo "*** Testing array_walk() : 'input' array with different values***\n";
// different arrays as input
$input_values = array(
-
+
// integer values
/*1*/ array(1, 0, -10, 023, -041, 0x5A, 0X1F, -0x6E),
-
+
// float value
array(3.4, 0.8, -2.9, 6.25e2, 8.20E-3),
@@ -58,7 +58,7 @@ $input_values = array(
for($count = 0; $count < count($input_values); $count++) {
echo "\n-- Iteration ".($count + 1)." --\n";
var_dump( array_walk($input_values[$count], "print_value", $count+1));
-}
+}
echo "Done"
?>
--EXPECT--
diff --git a/ext/standard/tests/array/array_walk_variation7.phpt b/ext/standard/tests/array/array_walk_variation7.phpt
index 692f276628..a411ae0b5c 100644
--- a/ext/standard/tests/array/array_walk_variation7.phpt
+++ b/ext/standard/tests/array/array_walk_variation7.phpt
@@ -30,7 +30,7 @@ echo "-- Anonymous function with three arguments --\n";
var_dump( array_walk($input, function($value, $key, $user_data) { var_dump($key); var_dump($value); var_dump($user_data); echo "\n"; }, 10));
echo "-- Anonymous function with one more argument --\n";
-var_dump( array_walk($input, function($value, $key, $user_data) { var_dump($key); var_dump($value); var_dump($user_data); echo "\n"; }, 20, 30));
+var_dump( array_walk($input, function($value, $key, $user_data) { var_dump($key); var_dump($value); var_dump($user_data); echo "\n"; }, 20, 30));
echo "-- Anonymous function with null argument --\n";
var_dump( array_walk( $input, function() { echo "1\n"; }));
diff --git a/ext/standard/tests/array/array_walk_variation9.phpt b/ext/standard/tests/array/array_walk_variation9.phpt
index 3af6316c12..5f82ab65d8 100644
--- a/ext/standard/tests/array/array_walk_variation9.phpt
+++ b/ext/standard/tests/array/array_walk_variation9.phpt
@@ -46,7 +46,7 @@ function callback_no_parameter()
var_dump( array_walk($input, 'callback_no_parameter'));
echo "-- passing one more parameter to function with two parameters --\n";
-var_dump( array_walk($input, 'callback_two_parameter', 10));
+var_dump( array_walk($input, 'callback_two_parameter', 10));
echo "Done"
?>
diff --git a/ext/standard/tests/array/arsort_object1.phpt b/ext/standard/tests/array/arsort_object1.phpt
index f73696392e..40db0b4817 100644
--- a/ext/standard/tests/array/arsort_object1.phpt
+++ b/ext/standard/tests/array/arsort_object1.phpt
@@ -44,14 +44,14 @@ class for_string_arsort
}
// array of integer objects
-$unsorted_int_obj = array (
+$unsorted_int_obj = array (
1 => new for_integer_arsort(11), 2 => new for_integer_asort(66),
3 => new for_integer_arsort(23), 4 => new for_integer_asort(-5),
5 => new for_integer_arsort(0.001), 6 => new for_integer_asort(0)
);
// array of string objects
-$unsorted_str_obj = array (
+$unsorted_str_obj = array (
"a" => new for_string_arsort("axx"), "b" => new for_string_asort("t"),
"c" => new for_string_arsort("w"), "d" => new for_string_asort("py"),
"e" => new for_string_arsort("apple"), "f" => new for_string_asort("Orange"),
diff --git a/ext/standard/tests/array/arsort_object2.phpt b/ext/standard/tests/array/arsort_object2.phpt
index f5ed333623..1e674ffd3a 100644
--- a/ext/standard/tests/array/arsort_object2.phpt
+++ b/ext/standard/tests/array/arsort_object2.phpt
@@ -21,7 +21,7 @@ class for_integer_arsort
{
public $public_class_value;
private $private_class_value;
- protected $protected_class_value;
+ protected $protected_class_value;
// initializing object member value
function __construct($value1, $value2,$value3){
$this->public_class_value = $value1;
@@ -36,7 +36,7 @@ class for_string_arsort
{
public $public_class_value;
private $private_class_value;
- protected $protected_class_value;
+ protected $protected_class_value;
// initializing object member value
function __construct($value1, $value2,$value3){
$this->public_class_value = $value1;
@@ -51,13 +51,13 @@ class for_string_arsort
}
// array of integer objects
-$unsorted_int_obj = array (
+$unsorted_int_obj = array (
1 => new for_integer_arsort(11, 33,2), 2 => new for_integer_asort(44, 66,3),
3 => new for_integer_arsort(23, 32,6), 4 => new for_integer_asort(-88, -5,-4),
);
// array of string objects
-$unsorted_str_obj = array (
+$unsorted_str_obj = array (
"a" => new for_string_arsort("axx","AXX","d"), "b" => new for_string_asort("T", "t","q"),
"c" => new for_string_arsort("w", "W","c"), "d" => new for_string_asort("PY", "py","s"),
);
diff --git a/ext/standard/tests/array/arsort_variation1.phpt b/ext/standard/tests/array/arsort_variation1.phpt
index c32e377295..947d8f07a9 100644
--- a/ext/standard/tests/array/arsort_variation1.phpt
+++ b/ext/standard/tests/array/arsort_variation1.phpt
@@ -76,7 +76,7 @@ $unexpected_values = array (
// loop though each element of the array and check the working of arsort()
// when $array argument is supplied with different values from $unexpected_values
echo "\n-- Testing arsort() by supplying different unexpected values for 'array' argument --\n";
-echo "\n-- Flag values are defualt, SORT_REGULAR, SORT_NUMERIC, SORT_STRING --\n";
+echo "\n-- Flag values are defualt, SORT_REGULAR, SORT_NUMERIC, SORT_STRING --\n";
$counter = 1;
for($index = 0; $index < count($unexpected_values); $index ++) {
diff --git a/ext/standard/tests/array/arsort_variation10.phpt b/ext/standard/tests/array/arsort_variation10.phpt
index 0520e455c6..093be7e61c 100644
--- a/ext/standard/tests/array/arsort_variation10.phpt
+++ b/ext/standard/tests/array/arsort_variation10.phpt
@@ -18,8 +18,8 @@ Test arsort() function : usage variations - sort octal values
echo "*** Testing arsort() : usage variations ***\n";
// an array contains unsorted octal values
-$unsorted_oct_array = array (
- 01235 => 01235, 0321 => 0321, 0345 => 0345, 066 => 066, 0772 => 0772,
+$unsorted_oct_array = array (
+ 01235 => 01235, 0321 => 0321, 0345 => 0345, 066 => 066, 0772 => 0772,
077 => 077, -066 => -066, -0345 => -0345, 0 => 0
);
diff --git a/ext/standard/tests/array/arsort_variation2.phpt b/ext/standard/tests/array/arsort_variation2.phpt
index b716b65793..e6674774ee 100644
--- a/ext/standard/tests/array/arsort_variation2.phpt
+++ b/ext/standard/tests/array/arsort_variation2.phpt
@@ -78,7 +78,7 @@ for($index = 0; $index < count($unexpected_values); $index ++) {
echo "-- Iteration $counter --\n";
$value = $unexpected_values [$index];
$temp_array = $unsorted_values;
- var_dump( arsort($temp_array, $value) );
+ var_dump( arsort($temp_array, $value) );
var_dump($temp_array);
$counter++;
}
diff --git a/ext/standard/tests/array/arsort_variation3.phpt b/ext/standard/tests/array/arsort_variation3.phpt
index 765efe874d..ede832f26f 100644
--- a/ext/standard/tests/array/arsort_variation3.phpt
+++ b/ext/standard/tests/array/arsort_variation3.phpt
@@ -27,7 +27,7 @@ $various_arrays = array(
// mixed value array
array(1 => .0001, 2 => .0021, 3 => -.01, 4 => -1, 5 => 0, 6 => .09, 7 => 2, 8 => -.9, 9 => 10.6E-2, 10 => -10.6E-2, 11 => 33),
-
+
// array values contains minimum and maximum ranges
array(1 => 2147483647, 2 => 2147483648, 3 => -2147483647, 4 => -2147483648, 5 => -0, 6 => 0, 7 => -2147483649)
);
@@ -42,20 +42,20 @@ echo "\n-- Testing arsort() by supplying various integer/float arrays --\n";
foreach ($various_arrays as $array) {
echo "\n-- Iteration $count --\n";
- echo "- With default sort_flag -\n";
- $temp_array = $array;
+ echo "- With default sort_flag -\n";
+ $temp_array = $array;
var_dump(arsort($temp_array) );
var_dump($temp_array);
// loop through $flag_value array and setting all possible flag values
foreach($flag_value as $key => $flag){
echo "- Sort_flag = $key -\n";
- $temp_array = $array;
+ $temp_array = $array;
var_dump(arsort($temp_array, $flag) );
var_dump($temp_array);
- }
+ }
$count++;
-}
+}
echo "Done\n";
?>
diff --git a/ext/standard/tests/array/arsort_variation5.phpt b/ext/standard/tests/array/arsort_variation5.phpt
index b7adf76eab..b8149c66a6 100644
--- a/ext/standard/tests/array/arsort_variation5.phpt
+++ b/ext/standard/tests/array/arsort_variation5.phpt
@@ -24,13 +24,13 @@ echo "*** Testing arsort() : usage variations ***\n";
$various_arrays = array (
// group of escape sequences
- array ("null"=> null, "NULL" => NULL, "\a" => "\a", "\cx" => "\cx", "\e" => "\e",
- "\f" => "\f", "\n" =>"\n", "\r" => "\r", "\t" => "\t", "\xhh" => "\xhh",
+ array ("null"=> null, "NULL" => NULL, "\a" => "\a", "\cx" => "\cx", "\e" => "\e",
+ "\f" => "\f", "\n" =>"\n", "\r" => "\r", "\t" => "\t", "\xhh" => "\xhh",
"\ddd" => "\ddd", "\v" => "\v"
),
// array contains combination of capital/small letters
- array ('l' => "lemoN", 'O' => "Orange", 'b' => "banana", 'a' => "apple", 'Te' => "Test",
+ array ('l' => "lemoN", 'O' => "Orange", 'b' => "banana", 'a' => "apple", 'Te' => "Test",
'T' => "TTTT", 't' => "ttt", 'w' => "ww", 'x' => "x", 'X' => "X", 'o' => "oraNGe",
'B' => "BANANA"
)
diff --git a/ext/standard/tests/array/arsort_variation8.phpt b/ext/standard/tests/array/arsort_variation8.phpt
index d190408d54..1f948092a9 100644
--- a/ext/standard/tests/array/arsort_variation8.phpt
+++ b/ext/standard/tests/array/arsort_variation8.phpt
@@ -39,8 +39,8 @@ echo "\n-- Testing arsort() by supplying various arrays containing sub arrays --
// loop through to test arsort() with different arrays
foreach ($various_arrays as $array) {
-
- echo "\n-- Iteration $count --\n";
+
+ echo "\n-- Iteration $count --\n";
// testing arsort() function by supplying different arrays, flag value is default
echo "- With default sort_flag -\n";
$temp_array = $array;
diff --git a/ext/standard/tests/array/asort_object1.phpt b/ext/standard/tests/array/asort_object1.phpt
index ad54675d64..414c89086c 100644
--- a/ext/standard/tests/array/asort_object1.phpt
+++ b/ext/standard/tests/array/asort_object1.phpt
@@ -44,14 +44,14 @@ class for_string_asort
}
// array of integer objects
-$unsorted_int_obj = array (
+$unsorted_int_obj = array (
1 => new for_integer_asort(11), 2 => new for_integer_asort(66),
3 => new for_integer_asort(23), 4 => new for_integer_asort(-5),
5 => new for_integer_asort(0.001), 6 => new for_integer_asort(0)
);
// array of string objects
-$unsorted_str_obj = array (
+$unsorted_str_obj = array (
"a" => new for_string_asort("axx"), "b" => new for_string_asort("t"),
"c" => new for_string_asort("w"), "d" => new for_string_asort("py"),
"e" => new for_string_asort("apple"), "f" => new for_string_asort("Orange"),
diff --git a/ext/standard/tests/array/asort_object2.phpt b/ext/standard/tests/array/asort_object2.phpt
index be761205b2..dc5c4b9522 100644
--- a/ext/standard/tests/array/asort_object2.phpt
+++ b/ext/standard/tests/array/asort_object2.phpt
@@ -21,7 +21,7 @@ class for_integer_asort
{
public $public_class_value;
private $private_class_value;
- protected $protected_class_value;
+ protected $protected_class_value;
// initializing object member value
function __construct($value1, $value2,$value3){
$this->public_class_value = $value1;
@@ -36,7 +36,7 @@ class for_string_asort
{
public $public_class_value;
private $private_class_value;
- protected $protected_class_value;
+ protected $protected_class_value;
// initializing object member value
function __construct($value1, $value2,$value3){
$this->public_class_value = $value1;
@@ -51,13 +51,13 @@ class for_string_asort
}
// array of integer objects
-$unsorted_int_obj = array (
+$unsorted_int_obj = array (
1 => new for_integer_asort(11, 33,2), 2 => new for_integer_asort(44, 66,3),
3 => new for_integer_asort(23, 32,6), 4 => new for_integer_asort(-88, -5,-4),
);
// array of string objects
-$unsorted_str_obj = array (
+$unsorted_str_obj = array (
"a" => new for_string_asort("axx","AXX","d"), "b" => new for_string_asort("T", "t","q"),
"c" => new for_string_asort("w", "W","c"), "d" => new for_string_asort("PY", "py","s"),
);
diff --git a/ext/standard/tests/array/asort_variation1.phpt b/ext/standard/tests/array/asort_variation1.phpt
index 07fc53787b..6ad5b4a6ea 100644
--- a/ext/standard/tests/array/asort_variation1.phpt
+++ b/ext/standard/tests/array/asort_variation1.phpt
@@ -76,7 +76,7 @@ $unexpected_values = array (
// loop though each element of the array and check the working of asort()
// when $array argument is supplied with different values from $unexpected_values
echo "\n-- Testing asort() by supplying different unexpected values for 'array' argument --\n";
-echo "\n-- Flag values are defualt, SORT_REGULAR, SORT_NUMERIC, SORT_STRING --\n";
+echo "\n-- Flag values are defualt, SORT_REGULAR, SORT_NUMERIC, SORT_STRING --\n";
$counter = 1;
for($index = 0; $index < count($unexpected_values); $index ++) {
diff --git a/ext/standard/tests/array/asort_variation10.phpt b/ext/standard/tests/array/asort_variation10.phpt
index 793315e999..3762ce04a5 100644
--- a/ext/standard/tests/array/asort_variation10.phpt
+++ b/ext/standard/tests/array/asort_variation10.phpt
@@ -18,8 +18,8 @@ Test asort() function : usage variations - sort octal values
echo "*** Testing asort() : usage variations ***\n";
// an array contains unsorted octal values
-$unsorted_oct_array = array (
- 01235 => 01235, 0321 => 0321, 0345 => 0345, 066 => 066, 0772 => 0772,
+$unsorted_oct_array = array (
+ 01235 => 01235, 0321 => 0321, 0345 => 0345, 066 => 066, 0772 => 0772,
077 => 077, -066 => -066, -0345 => -0345, 0 => 0
);
diff --git a/ext/standard/tests/array/asort_variation2.phpt b/ext/standard/tests/array/asort_variation2.phpt
index f58663cdaa..e8dda190df 100644
--- a/ext/standard/tests/array/asort_variation2.phpt
+++ b/ext/standard/tests/array/asort_variation2.phpt
@@ -78,7 +78,7 @@ for($index = 0; $index < count($unexpected_values); $index ++) {
echo "-- Iteration $counter --\n";
$value = $unexpected_values [$index];
$temp_array = $unsorted_values;
- var_dump( asort($temp_array, $value) );
+ var_dump( asort($temp_array, $value) );
var_dump($temp_array);
$counter++;
}
diff --git a/ext/standard/tests/array/asort_variation3.phpt b/ext/standard/tests/array/asort_variation3.phpt
index a9d3f6afa3..1b201a9c2b 100644
--- a/ext/standard/tests/array/asort_variation3.phpt
+++ b/ext/standard/tests/array/asort_variation3.phpt
@@ -27,7 +27,7 @@ $various_arrays = array(
// mixed value array
array(1 => .0001, 2 => .0021, 3 => -.01, 4 => -1, 5 => 0, 6 => .09, 7 => 2, 8 => -.9, 9 => 10.6E-2, 10 => -10.6E-2, 11 => 33),
-
+
// array values contains minimum and maximum ranges
array(1 => 2147483647, 2 => 2147483648, 3 => -2147483647, 4 => -2147483648, 5 => -0, 6 => 0, 7 => -2147483649)
);
@@ -42,20 +42,20 @@ echo "\n-- Testing asort() by supplying various integer/float arrays --\n";
foreach ($various_arrays as $array) {
echo "\n-- Iteration $count --\n";
- echo "- With default sort_flag -\n";
- $temp_array = $array;
+ echo "- With default sort_flag -\n";
+ $temp_array = $array;
var_dump(asort($temp_array) );
var_dump($temp_array);
// loop through $flag_value array and setting all possible flag values
foreach($flag_value as $key => $flag){
echo "- Sort_flag = $key -\n";
- $temp_array = $array;
+ $temp_array = $array;
var_dump(asort($temp_array, $flag) );
var_dump($temp_array);
- }
+ }
$count++;
-}
+}
echo "Done\n";
?>
diff --git a/ext/standard/tests/array/asort_variation5.phpt b/ext/standard/tests/array/asort_variation5.phpt
index e416a59ca6..bb0581a660 100644
--- a/ext/standard/tests/array/asort_variation5.phpt
+++ b/ext/standard/tests/array/asort_variation5.phpt
@@ -24,13 +24,13 @@ echo "*** Testing asort() : usage variations ***\n";
$various_arrays = array (
// group of escape sequences
- array ("null"=> null, "NULL" => NULL, "\a" => "\a", "\cx" => "\cx", "\e" => "\e",
- "\f" => "\f", "\n" =>"\n", "\r" => "\r", "\t" => "\t", "\xhh" => "\xhh",
+ array ("null"=> null, "NULL" => NULL, "\a" => "\a", "\cx" => "\cx", "\e" => "\e",
+ "\f" => "\f", "\n" =>"\n", "\r" => "\r", "\t" => "\t", "\xhh" => "\xhh",
"\ddd" => "\ddd", "\v" => "\v"
),
// array contains combination of capital/small letters
- array ('l' => "lemoN", 'O' => "Orange", 'b' => "banana", 'a' => "apple", 'Te' => "Test",
+ array ('l' => "lemoN", 'O' => "Orange", 'b' => "banana", 'a' => "apple", 'Te' => "Test",
'T' => "TTTT", 't' => "ttt", 'w' => "ww", 'x' => "x", 'X' => "X", 'o' => "oraNGe",
'B' => "BANANA"
)
diff --git a/ext/standard/tests/array/asort_variation8.phpt b/ext/standard/tests/array/asort_variation8.phpt
index b097346dff..d53fb0d21c 100644
--- a/ext/standard/tests/array/asort_variation8.phpt
+++ b/ext/standard/tests/array/asort_variation8.phpt
@@ -39,8 +39,8 @@ echo "\n-- Testing asort() by supplying various arrays containing sub arrays --\
// loop through to test asort() with different arrays
foreach ($various_arrays as $array) {
-
- echo "\n-- Iteration $count --\n";
+
+ echo "\n-- Iteration $count --\n";
// testing asort() function by supplying different arrays, flag value is default
echo "- With default sort_flag -\n";
$temp_array = $array;
diff --git a/ext/standard/tests/array/bug21998.phpt b/ext/standard/tests/array/bug21998.phpt
index aa52dc590a..e1bb0033ea 100644
--- a/ext/standard/tests/array/bug21998.phpt
+++ b/ext/standard/tests/array/bug21998.phpt
@@ -7,11 +7,11 @@ $a = array("a", "b", "c");
var_dump(key($a));
var_dump(array_pop($a));
-var_dump(key($a));
+var_dump(key($a));
var_dump(array_pop($a));
-var_dump(key($a));
+var_dump(key($a));
var_dump(array_pop($a));
-var_dump(key($a));
+var_dump(key($a));
?>
--EXPECT--
diff --git a/ext/standard/tests/array/bug22463.phpt b/ext/standard/tests/array/bug22463.phpt
index dcede511bb..7993ac2576 100644
--- a/ext/standard/tests/array/bug22463.phpt
+++ b/ext/standard/tests/array/bug22463.phpt
@@ -8,7 +8,7 @@ function a($ary) {
}
function cb($v, $elem) {
- return $v + a($elem);
+ return $v + a($elem);
}
$ary = array(
diff --git a/ext/standard/tests/array/bug24198.phpt b/ext/standard/tests/array/bug24198.phpt
index b1cd523026..a1a30afb6d 100644
--- a/ext/standard/tests/array/bug24198.phpt
+++ b/ext/standard/tests/array/bug24198.phpt
@@ -2,9 +2,9 @@
Bug #24198 (array_merge_recursive() invalid recursion detection)
--FILE--
<?php
-$c = array('a' => 'aa','b' => 'bb');
+$c = array('a' => 'aa','b' => 'bb');
-var_dump(array_merge_recursive($c, $c));
+var_dump(array_merge_recursive($c, $c));
?>
--EXPECT--
array(2) {
diff --git a/ext/standard/tests/array/bug24980.phpt b/ext/standard/tests/array/bug24980.phpt
index b9e04fd67f..6c97562f6c 100644
--- a/ext/standard/tests/array/bug24980.phpt
+++ b/ext/standard/tests/array/bug24980.phpt
@@ -9,7 +9,7 @@ function add_up($running_total, $current_value)
$running_total += $current_value * $current_value;
return $running_total;
}
-
+
$numbers = array (2,3,5,7);
$total = array_reduce($numbers, 'add_up');
print "Total is $total\n";
@@ -21,7 +21,7 @@ function foo ($a, $b)
return $a . $b;
}
var_dump(array_reduce($a, "foo"));
-
+
/* test #3: basic test (used to leak memory) */
function rsum($v, $w)
{
diff --git a/ext/standard/tests/array/bug30074.phpt b/ext/standard/tests/array/bug30074.phpt
index 7720fe0006..289e802c00 100644
--- a/ext/standard/tests/array/bug30074.phpt
+++ b/ext/standard/tests/array/bug30074.phpt
@@ -3,7 +3,7 @@ Bug #30074 (EG(uninitialized_zval_ptr) gets set to reference using EXTR_REFS, af
--FILE--
<?php
error_reporting(E_ALL & ~E_NOTICE); // We don't want the notice for $undefined
-$result = extract(array('a'=>$undefined), EXTR_REFS);
+$result = extract(array('a'=>$undefined), EXTR_REFS);
var_dump(array($a));
echo "Done\n";
?>
diff --git a/ext/standard/tests/array/bug30833.phpt b/ext/standard/tests/array/bug30833.phpt
index 728a659d8f..c79c33fa74 100644
--- a/ext/standard/tests/array/bug30833.phpt
+++ b/ext/standard/tests/array/bug30833.phpt
@@ -13,7 +13,7 @@ var_dump($foo);
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
array(2) {
[0]=>
string(3) "abc"
diff --git a/ext/standard/tests/array/bug33382.phpt b/ext/standard/tests/array/bug33382.phpt
index e54b984fd0..0153da90bd 100644
--- a/ext/standard/tests/array/bug33382.phpt
+++ b/ext/standard/tests/array/bug33382.phpt
@@ -11,7 +11,7 @@ var_dump(array_reverse($array));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
array(5) {
[0]=>
int(5)
diff --git a/ext/standard/tests/array/bug34066.phpt b/ext/standard/tests/array/bug34066.phpt
index eb5b85e700..44710b0426 100644
--- a/ext/standard/tests/array/bug34066.phpt
+++ b/ext/standard/tests/array/bug34066.phpt
@@ -265,7 +265,7 @@ function gen_xml($val, $key, $prefix)
}
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
gen_xml(prefix=/Docs/)
gen_xml(prefix=/Docs/@)
/Docs/@Version=1.0
diff --git a/ext/standard/tests/array/bug34066_1.phpt b/ext/standard/tests/array/bug34066_1.phpt
index 12aa35c347..5200fa86a6 100644
--- a/ext/standard/tests/array/bug34066_1.phpt
+++ b/ext/standard/tests/array/bug34066_1.phpt
@@ -265,7 +265,7 @@ function gen_xml($val, $key, $prefix)
}
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
gen_xml(prefix=/Docs/)
/Docs/Version=1.0
gen_xml(prefix=/Docs/) end
diff --git a/ext/standard/tests/array/bug35014.phpt b/ext/standard/tests/array/bug35014.phpt
index 9250c03e10..f858bf107b 100644
--- a/ext/standard/tests/array/bug35014.phpt
+++ b/ext/standard/tests/array/bug35014.phpt
@@ -22,7 +22,7 @@ foreach ($tests as $v) {
var_dump(array_product($v));
}
?>
---EXPECTF--
+--EXPECTF--
Warning: array_product() expects parameter 1 to be array, string given in %s on line %d
NULL
int(1)
diff --git a/ext/standard/tests/array/bug35014_64bit.phpt b/ext/standard/tests/array/bug35014_64bit.phpt
index efd791ac99..5caf48c6ee 100644
--- a/ext/standard/tests/array/bug35014_64bit.phpt
+++ b/ext/standard/tests/array/bug35014_64bit.phpt
@@ -22,7 +22,7 @@ foreach ($tests as $v) {
var_dump(array_product($v));
}
?>
---EXPECTF--
+--EXPECTF--
Warning: array_product() expects parameter 1 to be array, string given in %s on line %d
NULL
int(1)
diff --git a/ext/standard/tests/array/bug35022.phpt b/ext/standard/tests/array/bug35022.phpt
index e3f5386482..07138f138d 100644
--- a/ext/standard/tests/array/bug35022.phpt
+++ b/ext/standard/tests/array/bug35022.phpt
@@ -13,7 +13,7 @@ foo($state);
reset($state);
var_dump( key($state), current($state) );
?>
---EXPECT--
+--EXPECT--
three => 3
two => 2
one => 1
diff --git a/ext/standard/tests/array/bug35821.phpt b/ext/standard/tests/array/bug35821.phpt
index d7abc7773b..be48ca8570 100644
--- a/ext/standard/tests/array/bug35821.phpt
+++ b/ext/standard/tests/array/bug35821.phpt
@@ -21,7 +21,7 @@ array_map(array('Element', 'CallBack'), $arr);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Fatal error: Uncaught Exception in %s:%d
Stack trace:
diff --git a/ext/standard/tests/array/bug36975.phpt b/ext/standard/tests/array/bug36975.phpt
index 7912fffca4..67a34325d0 100644
--- a/ext/standard/tests/array/bug36975.phpt
+++ b/ext/standard/tests/array/bug36975.phpt
@@ -2,13 +2,13 @@
Bug #36975 (natcasesort() causes array_pop() to misbehave)
--FILE--
<?php
-$a = array('aa', 'aa', 'bb', 'bb', 'cc', 'cc');
+$a = array('aa', 'aa', 'bb', 'bb', 'cc', 'cc');
$test = natcasesort($a);
-if ($test) {
- echo "natcasesort success!\n";
-}
-$val = array_pop($a);
-$a[] = $val;
+if ($test) {
+ echo "natcasesort success!\n";
+}
+$val = array_pop($a);
+$a[] = $val;
var_dump($a);
$b = array(1 => 'foo', 0 => 'baz');
diff --git a/ext/standard/tests/array/bug38464.phpt b/ext/standard/tests/array/bug38464.phpt
index 42f7a6ab54..5480109ba2 100644
--- a/ext/standard/tests/array/bug38464.phpt
+++ b/ext/standard/tests/array/bug38464.phpt
@@ -5,7 +5,7 @@ Bug #38464 (array_count_values() mishandles numeric strings)
$array = array('-000', ' 001', 1, ' 123', '+123');
var_dump(array_count_values($array));
?>
---EXPECT--
+--EXPECT--
array(5) {
["-000"]=>
int(1)
diff --git a/ext/standard/tests/array/bug39576.phpt b/ext/standard/tests/array/bug39576.phpt
index f94aa3a2be..bb58e79183 100644
--- a/ext/standard/tests/array/bug39576.phpt
+++ b/ext/standard/tests/array/bug39576.phpt
@@ -32,7 +32,7 @@ array_intersect_key (
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Notice: Only variables should be passed by reference in %s on line %d
object(Test)#%d (4) {
["_table"]=>
diff --git a/ext/standard/tests/array/bug40709.phpt b/ext/standard/tests/array/bug40709.phpt
index 7e132ba3d4..93836d0398 100644
--- a/ext/standard/tests/array/bug40709.phpt
+++ b/ext/standard/tests/array/bug40709.phpt
@@ -19,7 +19,7 @@ echo "result for arr2: ".array_reduce($arr2,'CommaSeparatedList')."\n";
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
result for arr1: 1,2,3
result for arr2: 1
result for arr1: 1,2,3
diff --git a/ext/standard/tests/array/bug41121.phpt b/ext/standard/tests/array/bug41121.phpt
index a03bdaf4ce..abe73567ec 100644
--- a/ext/standard/tests/array/bug41121.phpt
+++ b/ext/standard/tests/array/bug41121.phpt
@@ -12,7 +12,7 @@ var_dump(range(2147483400, 2147483600, 100));
var_dump( range(2147483646, 2147483648, 1 ) );
var_dump( range(2147483646, 2147483657, 1 ) );
var_dump( range(2147483630, 2147483646, 5 ) );
-
+
// negative steps
var_dump( range(-2147483645, -2147483648, 1 ) );
var_dump( range(-2147483645, -2147483649, 1 ) );
@@ -23,7 +23,7 @@ var_dump(range(2147483647, 2147483645, 1 ));
var_dump(range(2147483648, 2147483645, 1 ));
?>
---EXPECT--
+--EXPECT--
array(3) {
[0]=>
int(2147483400)
diff --git a/ext/standard/tests/array/bug41686.phpt b/ext/standard/tests/array/bug41686.phpt
index 9f1384eddd..66bbc394d6 100644
--- a/ext/standard/tests/array/bug41686.phpt
+++ b/ext/standard/tests/array/bug41686.phpt
@@ -16,7 +16,7 @@ var_dump(
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
array(2) {
[0]=>
int(2)
diff --git a/ext/standard/tests/array/bug42850.phpt b/ext/standard/tests/array/bug42850.phpt
index 3baec831bd..16063bbdfc 100644
--- a/ext/standard/tests/array/bug42850.phpt
+++ b/ext/standard/tests/array/bug42850.phpt
@@ -1,11 +1,11 @@
--TEST--
-Bug #42850 (array_walk_recursive() leaves references)
+Bug #42850 (array_walk_recursive() leaves references)
--FILE--
<?php
// Bug #42850
$data = array ('key1' => 'val1', array('key2' => 'val2'));
-function apply_dumb($item, $key) {};
+function apply_dumb($item, $key) {};
var_dump($data);
array_walk_recursive($data, 'apply_dumb');
$data2 = $data;
diff --git a/ext/standard/tests/array/bug43495.phpt b/ext/standard/tests/array/bug43495.phpt
index 8b8f3a6edb..522ff1903b 100644
--- a/ext/standard/tests/array/bug43495.phpt
+++ b/ext/standard/tests/array/bug43495.phpt
@@ -8,7 +8,7 @@ $a["key1"]["key2"]["key3"]=&$a;
$b=array("key1"=>array("key2"=>array()));
$b["key1"]["key2"]["key3"]=&$b;
-array_merge_recursive($a,$b);
+array_merge_recursive($a,$b);
/* Break recursion */
$a["key1"]["key2"]["key3"] = null;
diff --git a/ext/standard/tests/array/bug48484.phpt b/ext/standard/tests/array/bug48484.phpt
index 0b4afe277a..5688c0cad8 100644
--- a/ext/standard/tests/array/bug48484.phpt
+++ b/ext/standard/tests/array/bug48484.phpt
@@ -4,5 +4,5 @@ Bug 48484 (array_product() always returns 0 for an empty array)
<?php
var_dump(array_product(array()));
?>
---EXPECT--
+--EXPECT--
int(1)
diff --git a/ext/standard/tests/array/bug50006_1.phpt b/ext/standard/tests/array/bug50006_1.phpt
index 9db2c7796f..aac0e2a535 100644
--- a/ext/standard/tests/array/bug50006_1.phpt
+++ b/ext/standard/tests/array/bug50006_1.phpt
@@ -5,7 +5,7 @@ Bug #50006 (Segfault caused by uksort()) - usort variant
$data = array(
'bar-bazbazbaz.',
- 'bar-bazbazbaz-',
+ 'bar-bazbazbaz-',
'foo'
);
usort($data, 'magic_sort_cmp');
diff --git a/ext/standard/tests/array/bug50006_2.phpt b/ext/standard/tests/array/bug50006_2.phpt
index a501986981..70b602256b 100644
--- a/ext/standard/tests/array/bug50006_2.phpt
+++ b/ext/standard/tests/array/bug50006_2.phpt
@@ -5,7 +5,7 @@ Bug #50006 (Segfault caused by uksort()) - uasort variant
$data = array(
'bar-bazbazbaz.',
- 'bar-bazbazbaz-',
+ 'bar-bazbazbaz-',
'foo'
);
uasort($data, 'magic_sort_cmp');
diff --git a/ext/standard/tests/array/bug61058.phpt b/ext/standard/tests/array/bug61058.phpt
index 1f0f6fe630..f5e06a4a02 100644
--- a/ext/standard/tests/array/bug61058.phpt
+++ b/ext/standard/tests/array/bug61058.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #61058 (array_fill leaks if start index is PHP_INT_MAX)
--FILE--
-<?php
+<?php
array_fill(PHP_INT_MAX, 2, '*');
?>
--EXPECTF--
diff --git a/ext/standard/tests/array/bug65304.phpt b/ext/standard/tests/array/bug65304.phpt
index e5c9dfc5e6..8ed4c5081b 100644
--- a/ext/standard/tests/array/bug65304.phpt
+++ b/ext/standard/tests/array/bug65304.phpt
@@ -5,6 +5,6 @@ Bug #65304 (Use of max int in array_sum)
var_dump(array_sum(array(PHP_INT_MAX, 1)));
var_dump(PHP_INT_MAX + 1);
?>
---EXPECTF--
+--EXPECTF--
float(%s)
float(%s)
diff --git a/ext/standard/tests/array/bug70713.phpt b/ext/standard/tests/array/bug70713.phpt
index 4e2792ab4b..7cd0a0f113 100644
--- a/ext/standard/tests/array/bug70713.phpt
+++ b/ext/standard/tests/array/bug70713.phpt
@@ -8,12 +8,12 @@ class obj
function __tostring()
{
global $arr;
-
+
$arr = 1;
for ($i = 0; $i < 5; $i++) {
$v[$i] = 'hi'.$i;
}
-
+
return 'hi';
}
}
diff --git a/ext/standard/tests/array/bug71220.phpt b/ext/standard/tests/array/bug71220.phpt
index 28b5c08a8a..49e5bb7719 100644
--- a/ext/standard/tests/array/bug71220.phpt
+++ b/ext/standard/tests/array/bug71220.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #71220 (Null pointer deref (segfault) in compact via ob_start)
--FILE--
-<?php
+<?php
ob_start("compact");
ob_end_clean();
?>
diff --git a/ext/standard/tests/array/compact_error.phpt b/ext/standard/tests/array/compact_error.phpt
index a7ef54597e..77a78009bd 100644
--- a/ext/standard/tests/array/compact_error.phpt
+++ b/ext/standard/tests/array/compact_error.phpt
@@ -5,7 +5,7 @@ Test compact() function : error conditions
/* Prototype : proto array compact(mixed var_names [, mixed ...])
* Description: Creates a hash containing variables and their values
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/array/count_basic.phpt b/ext/standard/tests/array/count_basic.phpt
index 010d6cdf3c..273e27683c 100644
--- a/ext/standard/tests/array/count_basic.phpt
+++ b/ext/standard/tests/array/count_basic.phpt
@@ -3,7 +3,7 @@ Test count() function : basic functionality
--FILE--
<?php
/* Prototype : int count(mixed $var [, int $mode])
- * Description: Count the number of elements in a variable (usually an array)
+ * Description: Count the number of elements in a variable (usually an array)
* Source code: ext/standard/array.c
*/
diff --git a/ext/standard/tests/array/count_error.phpt b/ext/standard/tests/array/count_error.phpt
index 76f7213645..32d15edc6f 100644
--- a/ext/standard/tests/array/count_error.phpt
+++ b/ext/standard/tests/array/count_error.phpt
@@ -3,7 +3,7 @@ Test count() function : error conditions - pass incorrect number of args
--FILE--
<?php
/* Prototype : int count(mixed var [, int mode])
- * Description: Count the number of elements in a variable (usually an array)
+ * Description: Count the number of elements in a variable (usually an array)
* Source code: ext/standard/array.c
*/
diff --git a/ext/standard/tests/array/count_variation1.phpt b/ext/standard/tests/array/count_variation1.phpt
index a58473c219..5152f65445 100644
--- a/ext/standard/tests/array/count_variation1.phpt
+++ b/ext/standard/tests/array/count_variation1.phpt
@@ -3,7 +3,7 @@ Test count() function : usage variations - Pass different data types as $var arg
--FILE--
<?php
/* Prototype : int count(mixed $var [, int $mode])
- * Description: Count the number of elements in a variable (usually an array)
+ * Description: Count the number of elements in a variable (usually an array)
* Source code: ext/standard/array.c
*/
@@ -58,7 +58,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -67,7 +67,7 @@ $inputs = array(
/*18*/ "string",
'string',
$heredoc,
-
+
// object data
/*21*/ new classA(),
diff --git a/ext/standard/tests/array/count_variation2.phpt b/ext/standard/tests/array/count_variation2.phpt
index 86a2b0108f..0a654be183 100644
--- a/ext/standard/tests/array/count_variation2.phpt
+++ b/ext/standard/tests/array/count_variation2.phpt
@@ -5,7 +5,7 @@ Test count() function : usage variations - Pass different data types as $mode ar
--FILE--
<?php
/* Prototype : int count(mixed $var [, int $mode])
- * Description: Count the number of elements in a variable (usually an array)
+ * Description: Count the number of elements in a variable (usually an array)
* Source code: ext/standard/array.c
*/
@@ -63,7 +63,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -72,7 +72,7 @@ $inputs = array(
/*18*/ "string",
'string',
$heredoc,
-
+
// object data
/*21*/ new classA(),
diff --git a/ext/standard/tests/array/count_variation3.phpt b/ext/standard/tests/array/count_variation3.phpt
index 9c89bcd16b..30cae18964 100644
--- a/ext/standard/tests/array/count_variation3.phpt
+++ b/ext/standard/tests/array/count_variation3.phpt
@@ -3,7 +3,7 @@ Test count() function : usage variations - Infinitely recursive array
--FILE--
<?php
/* Prototype : int count(mixed $var [, int $mode])
- * Description: Count the number of elements in a variable (usually an array)
+ * Description: Count the number of elements in a variable (usually an array)
* Source code: ext/standard/array.c
*/
diff --git a/ext/standard/tests/array/current_variation1.phpt b/ext/standard/tests/array/current_variation1.phpt
index 2cc78fc624..c6c66f43c9 100644
--- a/ext/standard/tests/array/current_variation1.phpt
+++ b/ext/standard/tests/array/current_variation1.phpt
@@ -60,7 +60,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -69,7 +69,7 @@ $inputs = array(
/*18*/ "string",
'string',
$heredoc,
-
+
// object data
/*21*/ new classA(),
diff --git a/ext/standard/tests/array/current_variation2.phpt b/ext/standard/tests/array/current_variation2.phpt
index 49769cea3f..d839370962 100644
--- a/ext/standard/tests/array/current_variation2.phpt
+++ b/ext/standard/tests/array/current_variation2.phpt
@@ -67,13 +67,13 @@ $inputs = array(
TRUE,
FALSE,
),
-
+
// empty data
/*5*/ 'empty string' => array(
"",
'',
),
-
+
/*6*/ 'empty array' => array(
),
@@ -83,7 +83,7 @@ $inputs = array(
'string',
$heredoc,
),
-
+
// object data
/*8*/ 'object' => array(
new classA(),
diff --git a/ext/standard/tests/array/each_basic.phpt b/ext/standard/tests/array/each_basic.phpt
index b12b4c19f7..d061ec65b7 100644
--- a/ext/standard/tests/array/each_basic.phpt
+++ b/ext/standard/tests/array/each_basic.phpt
@@ -9,7 +9,7 @@ Test each() function : basic functionality
*/
/*
- * Test basic functionality of each()
+ * Test basic functionality of each()
*/
echo "*** Testing each() : basic functionality ***\n";
diff --git a/ext/standard/tests/array/each_variation1.phpt b/ext/standard/tests/array/each_variation1.phpt
index becdfc4545..ddb196f77e 100644
--- a/ext/standard/tests/array/each_variation1.phpt
+++ b/ext/standard/tests/array/each_variation1.phpt
@@ -59,7 +59,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -69,7 +69,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/each_variation2.phpt b/ext/standard/tests/array/each_variation2.phpt
index 73b1ba2746..879bc124d9 100644
--- a/ext/standard/tests/array/each_variation2.phpt
+++ b/ext/standard/tests/array/each_variation2.phpt
@@ -67,13 +67,13 @@ $inputs = array(
TRUE,
FALSE,
),
-
+
// empty data
/*5*/ 'empty string' => array(
"",
'',
),
-
+
/*6*/ 'empty array' => array(
),
@@ -83,7 +83,7 @@ $inputs = array(
'string',
$heredoc,
),
-
+
// object data
/*8*/ 'object' => array(
new classA(),
diff --git a/ext/standard/tests/array/each_variation3.phpt b/ext/standard/tests/array/each_variation3.phpt
index 375615643f..63d4ded13a 100644
--- a/ext/standard/tests/array/each_variation3.phpt
+++ b/ext/standard/tests/array/each_variation3.phpt
@@ -40,7 +40,7 @@ $inputs = array(
-10.5 => 'negative',
.5 => 'half',
),
-
+
/*3*/ 'extreme floats' => array(
12.3456789000e6 => 'large',
12.3456789000E-10 => 'small',
@@ -50,7 +50,7 @@ $inputs = array(
/*4*/ 'null uppercase' => array(
NULL => 'null 1',
),
-
+
/*5*/ 'null lowercase' => array(
null => 'null 2',
),
@@ -60,17 +60,17 @@ $inputs = array(
true => 'lowert',
false => 'lowerf',
),
-
+
/*7*/ 'bool uppercase' => array(
TRUE => 'uppert',
FALSE => 'upperf',
),
-
+
// empty data
/*8*/ 'empty double quotes' => array(
"" => 'emptyd',
),
-
+
/*9*/ 'empty single quotes' => array(
'' => 'emptys',
),
diff --git a/ext/standard/tests/array/end.phpt b/ext/standard/tests/array/end.phpt
index 3dfe1e821e..adf9fcecdc 100644
--- a/ext/standard/tests/array/end.phpt
+++ b/ext/standard/tests/array/end.phpt
@@ -29,14 +29,14 @@ $arrays = array (
array(0x7FFFFFFF, -0x80000000, 017777777777, -020000000000 ),
array(-.6700000E+3, -4.10003E+3, 1e-5, -1E+5, 000002.00 )
);
-/* loop through $arrays to print the last element of each sub-array */
+/* loop through $arrays to print the last element of each sub-array */
echo "*** Testing end() on different arrays ***\n";
$counter = 1;
foreach ($arrays as $sub_array){
echo "-- Iteration $counter --\n";
var_dump( end($sub_array) );
/* ensure that internal pointer is moved to last element */
- var_dump( current($sub_array) );
+ var_dump( current($sub_array) );
$counter++;
}
@@ -55,14 +55,14 @@ echo "\n-- Remove first element from array --\n";
unset($array_test[0]);
var_dump( end($array_test) );
-// remove last element from array, rewind and check end()
+// remove last element from array, rewind and check end()
echo "\n-- Remove last element from array --\n";
unset($array_test['-.008']);
var_dump( end($array_test) );
reset( $array_test );
var_dump( end($array_test) );
-// remove any element !first, !last, rewind and check end()
+// remove any element !first, !last, rewind and check end()
echo "\n-- Remove any element from array apart from first and last element --\n";
unset($array_test[7]);
var_dump( end($array_test) );
diff --git a/ext/standard/tests/array/end_64bit.phpt b/ext/standard/tests/array/end_64bit.phpt
index fbda85ea01..cbb5e0332a 100644
--- a/ext/standard/tests/array/end_64bit.phpt
+++ b/ext/standard/tests/array/end_64bit.phpt
@@ -29,14 +29,14 @@ $arrays = array (
array(0x7FFFFFFF, -0x80000000, 017777777777, -020000000000 ),
array(-.6700000E+3, -4.10003E+3, 1e-5, -1E+5, 000002.00 )
);
-/* loop through $arrays to print the last element of each sub-array */
+/* loop through $arrays to print the last element of each sub-array */
echo "*** Testing end() on different arrays ***\n";
$counter = 1;
foreach ($arrays as $sub_array){
echo "-- Iteration $counter --\n";
var_dump( end($sub_array) );
/* ensure that internal pointer is moved to last element */
- var_dump( current($sub_array) );
+ var_dump( current($sub_array) );
$counter++;
}
@@ -55,14 +55,14 @@ echo "\n-- Remove first element from array --\n";
unset($array_test[0]);
var_dump( end($array_test) );
-// remove last element from array, rewind and check end()
+// remove last element from array, rewind and check end()
echo "\n-- Remove last element from array --\n";
unset($array_test['-.008']);
var_dump( end($array_test) );
reset( $array_test );
var_dump( end($array_test) );
-// remove any element !first, !last, rewind and check end()
+// remove any element !first, !last, rewind and check end()
echo "\n-- Remove any element from array apart from first and last element --\n";
unset($array_test[7]);
var_dump( end($array_test) );
diff --git a/ext/standard/tests/array/end_variation1.phpt b/ext/standard/tests/array/end_variation1.phpt
index a6f5ac1d1b..259c55b747 100644
--- a/ext/standard/tests/array/end_variation1.phpt
+++ b/ext/standard/tests/array/end_variation1.phpt
@@ -59,7 +59,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -69,7 +69,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/extract_error.phpt b/ext/standard/tests/array/extract_error.phpt
index d7e5fd7ac5..46b71a1466 100644
--- a/ext/standard/tests/array/extract_error.phpt
+++ b/ext/standard/tests/array/extract_error.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test extract() function (error conditions)
+Test extract() function (error conditions)
--FILE--
<?php
diff --git a/ext/standard/tests/array/extract_variation1.phpt b/ext/standard/tests/array/extract_variation1.phpt
index 0e66c0e091..0560e9e9c9 100644
--- a/ext/standard/tests/array/extract_variation1.phpt
+++ b/ext/standard/tests/array/extract_variation1.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test extract() function (variation 1)
+Test extract() function (variation 1)
--FILE--
<?php
diff --git a/ext/standard/tests/array/extract_variation2.phpt b/ext/standard/tests/array/extract_variation2.phpt
index 5483fa0c9d..72ce83e675 100644
--- a/ext/standard/tests/array/extract_variation2.phpt
+++ b/ext/standard/tests/array/extract_variation2.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test extract() function (variation 2)
+Test extract() function (variation 2)
--FILE--
<?php
diff --git a/ext/standard/tests/array/extract_variation3.phpt b/ext/standard/tests/array/extract_variation3.phpt
index 1a6a088646..17f2370947 100644
--- a/ext/standard/tests/array/extract_variation3.phpt
+++ b/ext/standard/tests/array/extract_variation3.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test extract() function (variation 3)
+Test extract() function (variation 3)
--FILE--
<?php
diff --git a/ext/standard/tests/array/extract_variation4.phpt b/ext/standard/tests/array/extract_variation4.phpt
index 31adb6e814..5066193810 100644
--- a/ext/standard/tests/array/extract_variation4.phpt
+++ b/ext/standard/tests/array/extract_variation4.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test extract() function (variation 4)
+Test extract() function (variation 4)
--FILE--
<?php
diff --git a/ext/standard/tests/array/extract_variation5.phpt b/ext/standard/tests/array/extract_variation5.phpt
index f4455e9e57..d9bee0f276 100644
--- a/ext/standard/tests/array/extract_variation5.phpt
+++ b/ext/standard/tests/array/extract_variation5.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test extract() function (variation 5)
+Test extract() function (variation 5)
--FILE--
<?php
diff --git a/ext/standard/tests/array/extract_variation6.phpt b/ext/standard/tests/array/extract_variation6.phpt
index 0c2243949a..fba1e97b83 100644
--- a/ext/standard/tests/array/extract_variation6.phpt
+++ b/ext/standard/tests/array/extract_variation6.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test extract() function (variation 6)
+Test extract() function (variation 6)
--FILE--
<?php
diff --git a/ext/standard/tests/array/extract_variation7.phpt b/ext/standard/tests/array/extract_variation7.phpt
index 8104450df2..1502a52380 100644
--- a/ext/standard/tests/array/extract_variation7.phpt
+++ b/ext/standard/tests/array/extract_variation7.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test extract() function (variation 7)
+Test extract() function (variation 7)
--FILE--
<?php
diff --git a/ext/standard/tests/array/extract_variation8.phpt b/ext/standard/tests/array/extract_variation8.phpt
index de9271a1cb..a5e3a00eb6 100644
--- a/ext/standard/tests/array/extract_variation8.phpt
+++ b/ext/standard/tests/array/extract_variation8.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test extract() function (variation 8)
+Test extract() function (variation 8)
--FILE--
<?php
diff --git a/ext/standard/tests/array/extract_variation9.phpt b/ext/standard/tests/array/extract_variation9.phpt
index 4d42a69762..1d4518bdf4 100644
--- a/ext/standard/tests/array/extract_variation9.phpt
+++ b/ext/standard/tests/array/extract_variation9.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test extract() function (variation 9)
+Test extract() function (variation 9)
--FILE--
<?php
/* Using Class and objects */
diff --git a/ext/standard/tests/array/in_array_variation1.phpt b/ext/standard/tests/array/in_array_variation1.phpt
index 45f18d0a10..317d153625 100644
--- a/ext/standard/tests/array/in_array_variation1.phpt
+++ b/ext/standard/tests/array/in_array_variation1.phpt
@@ -20,7 +20,7 @@ $arrays = array (
array(TRUE, FALSE),
array("", array()),
array("abcd\x00abcd\x00abcd"),
- array("abcd\tabcd\nabcd\rabcd\0abcdefghij")
+ array("abcd\tabcd\nabcd\rabcd\0abcdefghij")
);
$array_compare = array (
@@ -50,15 +50,15 @@ foreach($arrays as $array) {
foreach($array_compare as $compare) {
echo "-- Iteration $counter --\n";
//strict option OFF
- var_dump(in_array($compare,$array));
+ var_dump(in_array($compare,$array));
//strict option ON
- var_dump(in_array($compare,$array,TRUE));
+ var_dump(in_array($compare,$array,TRUE));
//strict option OFF
- var_dump(in_array($compare,$array,FALSE));
+ var_dump(in_array($compare,$array,FALSE));
$counter++;
}
}
-
+
echo "Done\n";
?>
--EXPECT--
diff --git a/ext/standard/tests/array/in_array_variation2.phpt b/ext/standard/tests/array/in_array_variation2.phpt
index 1f42bb3f07..d32df1c748 100644
--- a/ext/standard/tests/array/in_array_variation2.phpt
+++ b/ext/standard/tests/array/in_array_variation2.phpt
@@ -16,10 +16,10 @@ $misc_array = array (
'a',
'key' =>'d',
3,
- ".001" =>-67,
+ ".001" =>-67,
"-.051" =>"k",
0.091 =>"-.08",
- "e" =>"5",
+ "e" =>"5",
"y" =>NULL,
NULL =>"",
0,
@@ -39,11 +39,11 @@ $counter = 1;
foreach($array_type as $type) {
echo "-- Iteration $counter --\n";
//loose type checking
- var_dump( in_array($type,$misc_array ) );
+ var_dump( in_array($type,$misc_array ) );
//strict type checking
- var_dump( in_array($type,$misc_array,true) );
+ var_dump( in_array($type,$misc_array,true) );
//loose type checking
- var_dump( in_array($type,$misc_array,false) );
+ var_dump( in_array($type,$misc_array,false) );
$counter++;
}
diff --git a/ext/standard/tests/array/in_array_variation3.phpt b/ext/standard/tests/array/in_array_variation3.phpt
index c8b6445cd1..9ecd334b9b 100644
--- a/ext/standard/tests/array/in_array_variation3.phpt
+++ b/ext/standard/tests/array/in_array_variation3.phpt
@@ -14,7 +14,7 @@ Test in_array() function : usage variations - haystack as sub-array/object
/* checking for sub-arrays with in_array() */
echo "*** Testing sub-arrays with in_array() ***\n";
$sub_array = array (
- "one",
+ "one",
array(1, 2 => "two", "three" => 3),
4 => "four",
"five" => 5,
@@ -22,7 +22,7 @@ $sub_array = array (
);
var_dump( in_array("four", $sub_array) );
//checking for element in a sub-array
-var_dump( in_array(3, $sub_array[1]) );
+var_dump( in_array(3, $sub_array[1]) );
var_dump( in_array(array('','i'), $sub_array) );
/* checking for objects in in_array() */
@@ -36,11 +36,11 @@ class in_array_check {
$in_array_obj = new in_array_check(); //creating new object
//error: as wrong datatype for second argument
-var_dump( in_array("array_var", $in_array_obj) );
+var_dump( in_array("array_var", $in_array_obj) );
//error: as wrong datatype for second argument
-var_dump( in_array("foo", $in_array_obj) );
+var_dump( in_array("foo", $in_array_obj) );
//element found as "one" exists in array $array_var
-var_dump( in_array("one", $in_array_obj->array_var) );
+var_dump( in_array("one", $in_array_obj->array_var) );
echo "Done\n";
?>
diff --git a/ext/standard/tests/array/in_array_variation4.phpt b/ext/standard/tests/array/in_array_variation4.phpt
index 8301571940..eeebee978d 100644
--- a/ext/standard/tests/array/in_array_variation4.phpt
+++ b/ext/standard/tests/array/in_array_variation4.phpt
@@ -23,37 +23,37 @@ $dir_handle = opendir( dirname(__FILE__) );
$resources = array($file_handle, $dir_handle);
// search for resouce type in the resource array
-var_dump( in_array($file_handle, $resources, true) );
+var_dump( in_array($file_handle, $resources, true) );
//checking for (int) type resource
-var_dump( in_array((int)$dir_handle, $resources, true) );
+var_dump( in_array((int)$dir_handle, $resources, true) );
/* Miscellenous input check */
echo "\n*** Testing miscelleneos inputs with in_array() ***\n";
//matching "Good" in array(0,"hello"), result:true in loose type check
-var_dump( in_array("Good", array(0,"hello")) );
+var_dump( in_array("Good", array(0,"hello")) );
//false in strict mode
-var_dump( in_array("Good", array(0,"hello"), TRUE) );
+var_dump( in_array("Good", array(0,"hello"), TRUE) );
//matching integer 0 in array("this"), result:true in loose type check
-var_dump( in_array(0, array("this")) );
+var_dump( in_array(0, array("this")) );
// false in strict mode
-var_dump( in_array(0, array("this")),TRUE );
+var_dump( in_array(0, array("this")),TRUE );
//matching string "this" in array(0), result:true in loose type check
-var_dump( in_array("this", array(0)) );
+var_dump( in_array("this", array(0)) );
// false in stric mode
-var_dump( in_array("this", array(0), TRUE) );
+var_dump( in_array("this", array(0), TRUE) );
//checking for type FALSE in multidimensional array with loose checking, result:false in loose type check
var_dump( in_array(FALSE,
array("a"=> TRUE, "b"=> TRUE,
- array("c"=> TRUE, "d"=>TRUE)
- )
- )
- );
+ array("c"=> TRUE, "d"=>TRUE)
+ )
+ )
+ );
//matching string having integer in beginning, result:true in loose type check
-var_dump( in_array('123abc', array(123)) );
+var_dump( in_array('123abc', array(123)) );
var_dump( in_array('123abc', array(123), TRUE) ); // false in strict mode
echo "Done\n";
diff --git a/ext/standard/tests/array/key_exists_basic.phpt b/ext/standard/tests/array/key_exists_basic.phpt
index ebb5c25dd2..510ec09dcc 100644
--- a/ext/standard/tests/array/key_exists_basic.phpt
+++ b/ext/standard/tests/array/key_exists_basic.phpt
@@ -6,7 +6,7 @@ Francesco Fullone ff@ideato.it
--FILE--
<?php
echo "*** test key_exists() by calling it with its expected arguments ***\n";
-$a = array('bar' => 1);
+$a = array('bar' => 1);
var_dump(key_exists('bar', $a));
var_dump(key_exists('foo', $a));
--EXPECT--
diff --git a/ext/standard/tests/array/key_exists_error.phpt b/ext/standard/tests/array/key_exists_error.phpt
index 1bbd41e20e..a1af3910ba 100644
--- a/ext/standard/tests/array/key_exists_error.phpt
+++ b/ext/standard/tests/array/key_exists_error.phpt
@@ -8,7 +8,7 @@ Francesco Fullone ff@ideato.it
echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
-$a = array('bar' => 1);
+$a = array('bar' => 1);
var_dump(key_exists());
var_dump(key_exists('foo', $a, 'baz'));
diff --git a/ext/standard/tests/array/key_exists_variation1.phpt b/ext/standard/tests/array/key_exists_variation1.phpt
index 65031f8240..490d564246 100644
--- a/ext/standard/tests/array/key_exists_variation1.phpt
+++ b/ext/standard/tests/array/key_exists_variation1.phpt
@@ -6,7 +6,7 @@ Francesco Fullone ff@ideato.it
--FILE--
<?php
echo "*** test key_exists() by calling it with its expected arguments ***\n";
-$a = array('bar' => 1, 'foo' => array('bar' => 2, 'baz' => 3));
+$a = array('bar' => 1, 'foo' => array('bar' => 2, 'baz' => 3));
var_dump(key_exists('baz', $a));
var_dump(key_exists('baz', $a['foo']));
--EXPECT--
diff --git a/ext/standard/tests/array/key_exists_variation2.phpt b/ext/standard/tests/array/key_exists_variation2.phpt
index 3409f36455..a6f82181d3 100644
--- a/ext/standard/tests/array/key_exists_variation2.phpt
+++ b/ext/standard/tests/array/key_exists_variation2.phpt
@@ -8,25 +8,25 @@ Francesco Fullone ff@ideato.it
echo "*** test key_exists() by using mixed type of arrays ***\n";
// there is not a index = 0 element
-$a = array(1 => 'bar', 'foo' => 'baz');
+$a = array(1 => 'bar', 'foo' => 'baz');
var_dump(key_exists(0, $a));
echo "integer\n";
// 1 has index = 0
-$b = array(1, 'foo' => 'baz');
+$b = array(1, 'foo' => 'baz');
var_dump(key_exists(0, $b));
// 42 has index = 0, netherless its position is the latest
-$c = array('foo' => 'baz', 42);
+$c = array('foo' => 'baz', 42);
var_dump(key_exists(0, $c));
echo "string\n";
// 'bar' has index = 0, netherless it is a string
-$d = array('bar', 'foo' => 'baz');
+$d = array('bar', 'foo' => 'baz');
var_dump(key_exists(0, $d));
// 'baz' has index = 0, netherless its position is the latest
-$e = array('foo' => 'baz', 'baz');
+$e = array('foo' => 'baz', 'baz');
var_dump(key_exists(0, $e));
echo "obj\n";
@@ -38,21 +38,21 @@ class ObjectA
$obj = new ObjectA();
// object has index = 0, netherless its position is the latest
-$f = array('foo' => 'baz', $obj);
+$f = array('foo' => 'baz', $obj);
var_dump(key_exists(0, $f));
// object has index = 0, netherless its position is the first
-$g = array($obj, 'foo' => 'baz');
+$g = array($obj, 'foo' => 'baz');
var_dump(key_exists(0, $g));
echo "stream resource\n";
// stream resource has index = 0, netherless its position is the first
$st = fopen('php://memory', '+r');
-$h = array($st, 'foo' => 'baz');
+$h = array($st, 'foo' => 'baz');
var_dump(key_exists(0, $h));
// stream resource has index = 0, netherless its position is the latest
-$i = array('foo' => 'baz', $st);
+$i = array('foo' => 'baz', $st);
var_dump(key_exists(0, $i));
--EXPECT--
diff --git a/ext/standard/tests/array/key_variation1.phpt b/ext/standard/tests/array/key_variation1.phpt
index 9beb03e76b..148c4d8400 100644
--- a/ext/standard/tests/array/key_variation1.phpt
+++ b/ext/standard/tests/array/key_variation1.phpt
@@ -59,7 +59,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -69,7 +69,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/key_variation2.phpt b/ext/standard/tests/array/key_variation2.phpt
index 912f9a69cb..c34a1154c7 100644
--- a/ext/standard/tests/array/key_variation2.phpt
+++ b/ext/standard/tests/array/key_variation2.phpt
@@ -39,7 +39,7 @@ $inputs = array(
-10.5 => 'negative',
.5 => 'half',
),
-
+
/*3*/ 'extreme floats' => array(
12.3456789000e6 => 'large',
12.3456789000E-10 => 'small',
@@ -49,7 +49,7 @@ $inputs = array(
/*4*/ 'null uppercase' => array(
NULL => 'null 1',
),
-
+
/*5*/ 'null lowercase' => array(
null => 'null 2',
),
@@ -59,17 +59,17 @@ $inputs = array(
true => 'lowert',
false => 'lowerf',
),
-
+
/*7*/ 'bool uppercase' => array(
TRUE => 'uppert',
FALSE => 'upperf',
),
-
+
// empty data
/*8*/ 'empty double quotes' => array(
"" => 'emptyd',
),
-
+
/*9*/ 'empty single quotes' => array(
'' => 'emptys',
),
diff --git a/ext/standard/tests/array/krsort_basic.phpt b/ext/standard/tests/array/krsort_basic.phpt
index 6a3a40e3ad..ad7b3b9787 100644
--- a/ext/standard/tests/array/krsort_basic.phpt
+++ b/ext/standard/tests/array/krsort_basic.phpt
@@ -19,7 +19,7 @@ Test krsort() function : basic functionality
echo "*** Testing krsort() : basic functionality ***\n";
// an array containing unsorted string values with indices
-$unsorted_strings = array( "lemon" => "l", "orange" => "o", "banana" => "b" );
+$unsorted_strings = array( "lemon" => "l", "orange" => "o", "banana" => "b" );
$unsorted_strings = array(
"l" => "lemon", "o" => "orange",
"O" => "Orange", "O1" => "Orange1", "o2" => "orange2", "O3" => "Orange3", "o20" => "orange20",
diff --git a/ext/standard/tests/array/krsort_error.phpt b/ext/standard/tests/array/krsort_error.phpt
index 1bca5f928d..b28d44c057 100644
--- a/ext/standard/tests/array/krsort_error.phpt
+++ b/ext/standard/tests/array/krsort_error.phpt
@@ -28,7 +28,7 @@ foreach($flags as $key => $flag){
echo "\n- Sort flag = $key -\n";
$temp_array = $array_arg;
var_dump( krsort($temp_array,$flag, $extra_arg) );
- var_dump($temp_array);
+ var_dump($temp_array);
}
echo "Done";
diff --git a/ext/standard/tests/array/krsort_object.phpt b/ext/standard/tests/array/krsort_object.phpt
index 6236595796..a1ddd8de29 100644
--- a/ext/standard/tests/array/krsort_object.phpt
+++ b/ext/standard/tests/array/krsort_object.phpt
@@ -41,14 +41,14 @@ class StringObject
}
// array of integer objects with different key values
-$unsorted_int_obj = array (
+$unsorted_int_obj = array (
10 => new IntegerObject(11), 20 => new IntegerObject(66),
3 => new IntegerObject(23), 4 => new IntegerObject(-5),
50 => new IntegerObject(0.001), 6 => new IntegerObject(0)
);
// array of string objects with different key values
-$unsorted_str_obj = array (
+$unsorted_str_obj = array (
"axx" => new StringObject("axx"), "t" => new StringObject("t"),
"w" => new StringObject("w"), "py" => new StringObject("py"),
"apple" => new StringObject("apple"), "Orange" => new StringObject("Orange"),
diff --git a/ext/standard/tests/array/krsort_variation1.phpt b/ext/standard/tests/array/krsort_variation1.phpt
index 86d6a3eacb..8b44de314e 100644
--- a/ext/standard/tests/array/krsort_variation1.phpt
+++ b/ext/standard/tests/array/krsort_variation1.phpt
@@ -74,7 +74,7 @@ $unexpected_values = array (
// loop though each element of the array and check the working of krsort()
// when $array argument is supplied with different values from $unexpected_values
echo "\n-- Testing krsort() by supplying different unexpected values for 'array' argument --\n";
-echo "\n-- Flag values are defualt, SORT_REGULAR, SORT_NUMERIC, SORT_STRING --\n";
+echo "\n-- Flag values are defualt, SORT_REGULAR, SORT_NUMERIC, SORT_STRING --\n";
$counter = 1;
for($index = 0; $index < count($unexpected_values); $index ++) {
diff --git a/ext/standard/tests/array/krsort_variation10.phpt b/ext/standard/tests/array/krsort_variation10.phpt
index 467fb88e4d..102e6fd1f7 100644
--- a/ext/standard/tests/array/krsort_variation10.phpt
+++ b/ext/standard/tests/array/krsort_variation10.phpt
@@ -32,7 +32,7 @@ Test this!!!
EOT;
$array = array (
- $simple_heredoc1 => "Heredoc",
+ $simple_heredoc1 => "Heredoc",
$simple_heredoc2 => "HEREDOC",
$multiline_heredoc => "heredoc string\twith!@# and 123\nTest this!!!"
);
diff --git a/ext/standard/tests/array/krsort_variation2.phpt b/ext/standard/tests/array/krsort_variation2.phpt
index fc113ff30a..ee97794bd5 100644
--- a/ext/standard/tests/array/krsort_variation2.phpt
+++ b/ext/standard/tests/array/krsort_variation2.phpt
@@ -77,7 +77,7 @@ for($index = 0; $index < count($unexpected_values); $index ++) {
echo "-- Iteration $counter --\n";
$value = $unexpected_values [$index];
$temp_array = $unsorted_values;
- var_dump( krsort($temp_array, $value) );
+ var_dump( krsort($temp_array, $value) );
var_dump($temp_array);
$counter++;
}
diff --git a/ext/standard/tests/array/krsort_variation3.phpt b/ext/standard/tests/array/krsort_variation3.phpt
index 0707c610cb..cc3eabf1e7 100644
--- a/ext/standard/tests/array/krsort_variation3.phpt
+++ b/ext/standard/tests/array/krsort_variation3.phpt
@@ -40,20 +40,20 @@ echo "\n-- Testing krsort() by supplying various integer/float arrays --\n";
foreach ($various_arrays as $array) {
echo "\n-- Iteration $count --\n";
- echo "- With defualt sort flag -\n";
- $temp_array = $array;
+ echo "- With defualt sort flag -\n";
+ $temp_array = $array;
var_dump(krsort($temp_array) );
var_dump($temp_array);
// loop through $flags array and call krsort() with all possible sort flag values
foreach($flags as $key => $flag){
echo "- Sort flag = $key -\n";
- $temp_array = $array;
+ $temp_array = $array;
var_dump(krsort($temp_array, $flag) );
var_dump($temp_array);
- }
+ }
$count++;
-}
+}
echo "Done\n";
?>
diff --git a/ext/standard/tests/array/krsort_variation5.phpt b/ext/standard/tests/array/krsort_variation5.phpt
index 2fa16c6e73..3af411135c 100644
--- a/ext/standard/tests/array/krsort_variation5.phpt
+++ b/ext/standard/tests/array/krsort_variation5.phpt
@@ -24,13 +24,13 @@ echo "*** Testing krsort() : usage variations ***\n";
$various_arrays = array (
// diff. escape sequence chars with key values
- array ( null => null, NULL => NULL, "\a" => "\a", "\cx" => "\cx", "\e" => "\e",
- "\f" => "\f", "\n" =>"\n", "\r" => "\r", "\t" => "\t", "\xhh" => "\xhh",
+ array ( null => null, NULL => NULL, "\a" => "\a", "\cx" => "\cx", "\e" => "\e",
+ "\f" => "\f", "\n" =>"\n", "\r" => "\r", "\t" => "\t", "\xhh" => "\xhh",
"\ddd" => "\ddd", "\v" => "\v"
),
// array containing different strings with key values
- array ( 'Lemon' => "lemoN", 'o' => "Orange", 'B' => "banana", 'Apple' => "apple", 'te' => "Test",
+ array ( 'Lemon' => "lemoN", 'o' => "Orange", 'B' => "banana", 'Apple' => "apple", 'te' => "Test",
't' => "TTTT", 'T' => "ttt", 'W' => "ww", 'X' => "x", 'x' => "X", 'O' => "oraNGe",
'B' => "BANANA"
)
diff --git a/ext/standard/tests/array/krsort_variation6.phpt b/ext/standard/tests/array/krsort_variation6.phpt
index 72f4e41720..da5b047e24 100644
--- a/ext/standard/tests/array/krsort_variation6.phpt
+++ b/ext/standard/tests/array/krsort_variation6.phpt
@@ -18,7 +18,7 @@ Test krsort() function : usage variations - sort hexadecimal values
echo "*** Testing krsort() : usage variations ***\n";
// an array containing unsorted hexadecimal values with keys
-$unsorted_hex_array = array (
+$unsorted_hex_array = array (
0x1AB => 0x1AB, 0xFFF => 0xFFF, 0xF => 0xF, 0xFF => 0xFF, 0x2AA => 0x2AA, 0xBB => 0xBB,
0x1ab => 0x1ab, 0xff => 0xff, -0xff => -0xFF, 0 => 0, -0x2aa => -0x2aa
);
diff --git a/ext/standard/tests/array/krsort_variation7.phpt b/ext/standard/tests/array/krsort_variation7.phpt
index b0512935dc..b12f017eb8 100644
--- a/ext/standard/tests/array/krsort_variation7.phpt
+++ b/ext/standard/tests/array/krsort_variation7.phpt
@@ -38,8 +38,8 @@ echo "\n-- Testing krsort() by supplying various arrays containing sub arrays --
// loop through to test krsort() with different arrays
foreach ($various_arrays as $array) {
-
- echo "\n-- Iteration $count --\n";
+
+ echo "\n-- Iteration $count --\n";
echo "- With defualt sort flag -\n";
$temp_array = $array;
var_dump( krsort($temp_array) );
diff --git a/ext/standard/tests/array/ksort_object.phpt b/ext/standard/tests/array/ksort_object.phpt
index 2d76026aa4..4678b5dda8 100644
--- a/ext/standard/tests/array/ksort_object.phpt
+++ b/ext/standard/tests/array/ksort_object.phpt
@@ -42,14 +42,14 @@ class StringObject
}
// array of integer objects
-$unsorted_int_obj = array (
+$unsorted_int_obj = array (
11 => new IntegerObject(11), 66 => new IntegerObject(66),
23 => new IntegerObject(23), -5 => new IntegerObject(-5),
1 => new IntegerObject(0.001), 0 => new IntegerObject(0)
);
// array of string objects
-$unsorted_str_obj = array (
+$unsorted_str_obj = array (
"axx" => new StringObject("axx"), "t" => new StringObject("t"),
"w" => new StringObject("w"), "py" => new StringObject("py"),
"apple" => new StringObject("apple"), "Orange" => new StringObject("Orange"),
diff --git a/ext/standard/tests/array/ksort_variation1.phpt b/ext/standard/tests/array/ksort_variation1.phpt
index d11c9a5290..185fac760c 100644
--- a/ext/standard/tests/array/ksort_variation1.phpt
+++ b/ext/standard/tests/array/ksort_variation1.phpt
@@ -74,7 +74,7 @@ $unexpected_values = array (
// loop though each element of the array and check the working of ksort()
// when $array argument is supplied with different values from $unexpected_values
echo "\n-- Testing ksort() by supplying different unexpected values for 'array' argument --\n";
-echo "\n-- Flag values are defualt, SORT_REGULAR, SORT_NUMERIC, SORT_STRING --\n";
+echo "\n-- Flag values are defualt, SORT_REGULAR, SORT_NUMERIC, SORT_STRING --\n";
$counter = 1;
for($index = 0; $index < count($unexpected_values); $index ++) {
diff --git a/ext/standard/tests/array/ksort_variation10.phpt b/ext/standard/tests/array/ksort_variation10.phpt
index 844685b36a..2e08991d79 100644
--- a/ext/standard/tests/array/ksort_variation10.phpt
+++ b/ext/standard/tests/array/ksort_variation10.phpt
@@ -17,8 +17,8 @@ Test ksort() function : usage variations - sort octal values
echo "*** Testing ksort() : usage variations ***\n";
// an array containing unsorted octal values
-$unsorted_oct_array = array (
- 01235 => 01, 0321 => 02, 0345 => 03, 066 => 04, 0772 => 05,
+$unsorted_oct_array = array (
+ 01235 => 01, 0321 => 02, 0345 => 03, 066 => 04, 0772 => 05,
077 => 06, -066 => -01, -0345 => -02, 0 => 0
);
diff --git a/ext/standard/tests/array/ksort_variation11.phpt b/ext/standard/tests/array/ksort_variation11.phpt
index 758821303b..243e3b171f 100644
--- a/ext/standard/tests/array/ksort_variation11.phpt
+++ b/ext/standard/tests/array/ksort_variation11.phpt
@@ -32,7 +32,7 @@ Test this!!!
EOT;
$array = array (
- $simple_heredoc1 => "Heredoc",
+ $simple_heredoc1 => "Heredoc",
$simple_heredoc2 => "HEREDOC",
$multiline_heredoc => "heredoc string\twith!@# and 123\nTest this!!!"
);
diff --git a/ext/standard/tests/array/ksort_variation2.phpt b/ext/standard/tests/array/ksort_variation2.phpt
index fb1371a985..57975d8c28 100644
--- a/ext/standard/tests/array/ksort_variation2.phpt
+++ b/ext/standard/tests/array/ksort_variation2.phpt
@@ -77,7 +77,7 @@ for($index = 0; $index < count($unexpected_values); $index ++) {
echo "-- Iteration $counter --\n";
$value = $unexpected_values [$index];
$temp_array = $unsorted_values;
- var_dump( ksort($temp_array, $value) );
+ var_dump( ksort($temp_array, $value) );
var_dump($temp_array);
$counter++;
}
diff --git a/ext/standard/tests/array/ksort_variation3.phpt b/ext/standard/tests/array/ksort_variation3.phpt
index 691672f780..e51ad0a85f 100644
--- a/ext/standard/tests/array/ksort_variation3.phpt
+++ b/ext/standard/tests/array/ksort_variation3.phpt
@@ -26,7 +26,7 @@ $various_arrays = array(
array(1.0 => 10.5, 0.2 => -10.5, 3.1 => 10.5e2, 4 => 10.6E-2, .5 => .5, 6 => .0001, -7 => -.1),
// mixed value array with different types of keys
- array(1 => .0001, 2 => .0021, -3 => -.01, 4 => -1, 5 => 0, 6 => .09, 7 => 2, -8 => -.9,
+ array(1 => .0001, 2 => .0021, -3 => -.01, 4 => -1, 5 => 0, 6 => .09, 7 => 2, -8 => -.9,
9 => 10.6E-2, -10 => -10.6E-2, 11 => 33)
);
@@ -40,20 +40,20 @@ echo "\n-- Testing ksort() by supplying various integer/float arrays --\n";
foreach ($various_arrays as $array) {
echo "\n-- Iteration $count --\n";
- echo "- With defualt sort flag -\n";
- $temp_array = $array;
+ echo "- With defualt sort flag -\n";
+ $temp_array = $array;
var_dump(ksort($temp_array) );
var_dump($temp_array);
// loop through $flags array and call ksort() with all possible sort flag values
foreach($flags as $key => $flag){
echo "- Sort flag = $key -\n";
- $temp_array = $array;
+ $temp_array = $array;
var_dump(ksort($temp_array, $flag) );
var_dump($temp_array);
- }
+ }
$count++;
-}
+}
echo "Done\n";
?>
diff --git a/ext/standard/tests/array/ksort_variation5.phpt b/ext/standard/tests/array/ksort_variation5.phpt
index bc0c4be3b8..7951c45eb5 100644
--- a/ext/standard/tests/array/ksort_variation5.phpt
+++ b/ext/standard/tests/array/ksort_variation5.phpt
@@ -24,13 +24,13 @@ echo "*** Testing ksort() : usage variations ***\n";
$various_arrays = array (
// diff. escape sequence chars with key values
- array ( null => null, NULL => NULL, "\a" => "\a", "\cx" => "\cx", "\e" => "\e",
- "\f" => "\f", "\n" =>"\n", "\r" => "\r", "\t" => "\t", "\xhh" => "\xhh",
+ array ( null => null, NULL => NULL, "\a" => "\a", "\cx" => "\cx", "\e" => "\e",
+ "\f" => "\f", "\n" =>"\n", "\r" => "\r", "\t" => "\t", "\xhh" => "\xhh",
"\ddd" => "\ddd", "\v" => "\v"
),
// array containing different strings with key values
- array ( 'Lemon' => "lemoN", 'o' => "Orange", 'B' => "banana", 'Apple' => "apple", 'te' => "Test",
+ array ( 'Lemon' => "lemoN", 'o' => "Orange", 'B' => "banana", 'Apple' => "apple", 'te' => "Test",
't' => "TTTT", 'T' => "ttt", 'W' => "ww", 'X' => "x", 'x' => "X", 'O' => "oraNGe",
'B' => "BANANA"
)
diff --git a/ext/standard/tests/array/ksort_variation6.phpt b/ext/standard/tests/array/ksort_variation6.phpt
index 32fd973d8f..48218b2eda 100644
--- a/ext/standard/tests/array/ksort_variation6.phpt
+++ b/ext/standard/tests/array/ksort_variation6.phpt
@@ -18,7 +18,7 @@ echo "*** Testing ksort() : usage variations ***\n";
// an array containng unsorted hexadecimal values with keys
// There are multiple keys which are duplicate and the later should be picked
-$unsorted_hex_array = array (
+$unsorted_hex_array = array (
0x1AB => 0x1AB, 0xFFF => 0xFFF, 0xF => 0xF, 0xFF => 0xFF, 0x2AA => 0x2AA, 0xBB => 0xBB,
0x1ab => 0x1ab, 0xff => 0xff, -0xff => -0xFF, 0 => 0, -0x2aa => -0x2aa
);
diff --git a/ext/standard/tests/array/ksort_variation7.phpt b/ext/standard/tests/array/ksort_variation7.phpt
index 18dc3a03ab..6c7f3b870e 100644
--- a/ext/standard/tests/array/ksort_variation7.phpt
+++ b/ext/standard/tests/array/ksort_variation7.phpt
@@ -38,8 +38,8 @@ echo "\n-- Testing ksort() by supplying various arrays containing sub arrays --\
// loop through to test ksort() with different arrays
foreach ($various_arrays as $array) {
-
- echo "\n-- Iteration $count --\n";
+
+ echo "\n-- Iteration $count --\n";
echo "- With defualt sort flag -\n";
$temp_array = $array;
var_dump( ksort($temp_array) );
diff --git a/ext/standard/tests/array/max.phpt b/ext/standard/tests/array/max.phpt
index 555d2d04c8..ae4f304eae 100644
--- a/ext/standard/tests/array/max.phpt
+++ b/ext/standard/tests/array/max.phpt
@@ -19,7 +19,7 @@ var_dump(max(0, true, false, true));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: max() expects at least 1 parameter, 0 given in %s on line 3
NULL
diff --git a/ext/standard/tests/array/max_basic.phpt b/ext/standard/tests/array/max_basic.phpt
index f304212293..c880810cb3 100644
--- a/ext/standard/tests/array/max_basic.phpt
+++ b/ext/standard/tests/array/max_basic.phpt
@@ -2,10 +2,10 @@
Test return type and value for expected input max()
--FILE--
<?php
-/*
+/*
* proto mixed max(mixed arg1 [, mixed arg2 [, mixed ...]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "\n*** Testing sequences of numbers ***\n";
diff --git a/ext/standard/tests/array/max_basiclong_64bit.phpt b/ext/standard/tests/array/max_basiclong_64bit.phpt
index 1eb7e31cdc..95116b16c2 100644
--- a/ext/standard/tests/array/max_basiclong_64bit.phpt
+++ b/ext/standard/tests/array/max_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -MAX_64Bit - 1);
@@ -25,8 +25,8 @@ $longVals = array(
);
var_dump(max($arrayVals));
- var_dump(max($longVals));
-
+ var_dump(max($longVals));
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/array/max_error.phpt b/ext/standard/tests/array/max_error.phpt
index b20a3c08f6..a8736a3d88 100644
--- a/ext/standard/tests/array/max_error.phpt
+++ b/ext/standard/tests/array/max_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for min()
--FILE--
<?php
-/*
+/*
* proto mixed min(mixed arg1 [, mixed arg2 [, mixed ...]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "\n*** Testing Error Conditions ***\n";
diff --git a/ext/standard/tests/array/max_variation1.phpt b/ext/standard/tests/array/max_variation1.phpt
index a32ceb8fc2..44fa010c31 100644
--- a/ext/standard/tests/array/max_variation1.phpt
+++ b/ext/standard/tests/array/max_variation1.phpt
@@ -2,10 +2,10 @@
Test variations in usage of max()
--FILE--
<?php
-/*
+/*
* proto mixed max(mixed arg1 [, mixed arg2 [, mixed ...]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "\n*** Testing boundary conditions ***\n";
var_dump(max(2147483645, 2147483646) );
diff --git a/ext/standard/tests/array/max_variation2.phpt b/ext/standard/tests/array/max_variation2.phpt
index 9abcda53c3..a020d5e422 100644
--- a/ext/standard/tests/array/max_variation2.phpt
+++ b/ext/standard/tests/array/max_variation2.phpt
@@ -2,10 +2,10 @@
Test variations in usage of max()
--FILE--
<?php
-/*
+/*
* proto mixed max(mixed arg1 [, mixed arg2 [, mixed ...]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "\n*** Testing arrays ***\n";
diff --git a/ext/standard/tests/array/min.phpt b/ext/standard/tests/array/min.phpt
index 3a77ee8a0d..cb8c7cfdca 100644
--- a/ext/standard/tests/array/min.phpt
+++ b/ext/standard/tests/array/min.phpt
@@ -19,7 +19,7 @@ var_dump(min(0, true, false, true));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: min() expects at least 1 parameter, 0 given in %s on line 3
NULL
diff --git a/ext/standard/tests/array/min_basic.phpt b/ext/standard/tests/array/min_basic.phpt
index 34f853fedb..f76770f40d 100644
--- a/ext/standard/tests/array/min_basic.phpt
+++ b/ext/standard/tests/array/min_basic.phpt
@@ -2,10 +2,10 @@
Test return type and value for expected input min()
--FILE--
<?php
-/*
+/*
* proto mixed min(mixed arg1 [, mixed arg2 [, mixed ...]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "\n*** Testing sequences of numbers ***\n";
diff --git a/ext/standard/tests/array/min_basiclong_64bit.phpt b/ext/standard/tests/array/min_basiclong_64bit.phpt
index 52f63f3916..526d77a27a 100644
--- a/ext/standard/tests/array/min_basiclong_64bit.phpt
+++ b/ext/standard/tests/array/min_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -MAX_64Bit - 1);
@@ -25,8 +25,8 @@ $longVals = array(
);
var_dump(min($arrayVals));
- var_dump(min($longVals));
-
+ var_dump(min($longVals));
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/array/min_error.phpt b/ext/standard/tests/array/min_error.phpt
index dc472bc258..deb84f276d 100644
--- a/ext/standard/tests/array/min_error.phpt
+++ b/ext/standard/tests/array/min_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for min()
--FILE--
<?php
-/*
+/*
* proto mixed min(mixed arg1 [, mixed arg2 [, mixed ...]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "\n*** Testing Error Conditions ***\n";
diff --git a/ext/standard/tests/array/min_variation1.phpt b/ext/standard/tests/array/min_variation1.phpt
index 9e24bd66a1..a9c31f615f 100644
--- a/ext/standard/tests/array/min_variation1.phpt
+++ b/ext/standard/tests/array/min_variation1.phpt
@@ -2,10 +2,10 @@
Test variations in usage of min()
--FILE--
<?php
-/*
+/*
* proto mixed min(mixed arg1 [, mixed arg2 [, mixed ...]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "\n*** Testing boundary conditions ***\n";
var_dump(min(2147483645, 2147483646) );
diff --git a/ext/standard/tests/array/min_variation2.phpt b/ext/standard/tests/array/min_variation2.phpt
index a8b215209f..eff810e869 100644
--- a/ext/standard/tests/array/min_variation2.phpt
+++ b/ext/standard/tests/array/min_variation2.phpt
@@ -2,10 +2,10 @@
Test variations in usage of min()
--FILE--
<?php
-/*
+/*
* proto mixed min(mixed arg1 [, mixed arg2 [, mixed ...]])
* Function is implemented in ext/standard/array.c
-*/
+*/
echo "\n*** Testing arrays ***\n";
diff --git a/ext/standard/tests/array/natcasesort_object1.phpt b/ext/standard/tests/array/natcasesort_object1.phpt
index aab98a45d8..ec733adaf9 100644
--- a/ext/standard/tests/array/natcasesort_object1.phpt
+++ b/ext/standard/tests/array/natcasesort_object1.phpt
@@ -32,7 +32,7 @@ class for_string_natcasesort
// array of string objects
-$unsorted_str_obj = array (
+$unsorted_str_obj = array (
new for_string_natcasesort("axx"), new for_string_natcasesort("t"),
new for_string_natcasesort("w"), new for_string_natcasesort("py"),
new for_string_natcasesort("apple"), new for_string_natcasesort("Orange"),
diff --git a/ext/standard/tests/array/natcasesort_variation1.phpt b/ext/standard/tests/array/natcasesort_variation1.phpt
index 1537550f4c..778d265b85 100644
--- a/ext/standard/tests/array/natcasesort_variation1.phpt
+++ b/ext/standard/tests/array/natcasesort_variation1.phpt
@@ -58,7 +58,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -68,7 +68,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/natcasesort_variation11.phpt b/ext/standard/tests/array/natcasesort_variation11.phpt
index ac19cb3950..1f836df3c2 100644
--- a/ext/standard/tests/array/natcasesort_variation11.phpt
+++ b/ext/standard/tests/array/natcasesort_variation11.phpt
@@ -39,7 +39,7 @@ $inputs = array(
-10.5 => 'negative',
.5 => 'half',
),
-
+
/*3*/ 'extreme floats' => array(
12.3456789000e6 => 'large',
12.3456789000E-10 => 'small',
@@ -49,7 +49,7 @@ $inputs = array(
/*4*/ 'null uppercase' => array(
NULL => 'null 1',
),
-
+
/*5*/ 'null lowercase' => array(
null => 'null 2',
),
@@ -59,17 +59,17 @@ $inputs = array(
true => 'lowert',
false => 'lowerf',
),
-
+
/*7*/ 'bool uppercase' => array(
TRUE => 'uppert',
FALSE => 'upperf',
),
-
+
// empty data
/*8*/ 'empty double quotes' => array(
"" => 'emptyd',
),
-
+
/*9*/ 'empty single quotes' => array(
'' => 'emptys',
),
@@ -90,14 +90,14 @@ $inputs = array(
/*12*/ 'unset' => array(
@$unset_var => 'unset',
),
-
+
// duplicate values
/*13*/ 'duplicate' => array(
'foo' => 'bar',
'baz' => 'bar',
'hello' => 'world'
),
-
+
);
// loop through each element of $inputs to check the behavior of natcasesort()
diff --git a/ext/standard/tests/array/natcasesort_variation2.phpt b/ext/standard/tests/array/natcasesort_variation2.phpt
index 8a05c12f93..a38dbedfe4 100644
--- a/ext/standard/tests/array/natcasesort_variation2.phpt
+++ b/ext/standard/tests/array/natcasesort_variation2.phpt
@@ -67,13 +67,13 @@ $inputs = array(
TRUE,
FALSE,
),
-
+
// empty data
/*5*/ 'empty string' => array(
"",
'',
),
-
+
/*6*/ 'empty array' => array(
),
@@ -83,7 +83,7 @@ $inputs = array(
'string',
$heredoc,
),
-
+
// object data
/*8*/ 'object' => array(
new classA(),
diff --git a/ext/standard/tests/array/natcasesort_variation3.phpt b/ext/standard/tests/array/natcasesort_variation3.phpt
index be7495418d..6376524d5b 100644
--- a/ext/standard/tests/array/natcasesort_variation3.phpt
+++ b/ext/standard/tests/array/natcasesort_variation3.phpt
@@ -27,7 +27,7 @@ $inputs = array (
// mixed value array
array(.0001, .0021, -.01, -1, 0, .09, 2, -.9, 10.6E-2, -10.6E-2, 33),
-
+
// array values contains minimum and maximum ranges
array(2147483647, 2147483648, -2147483647, -2147483648, -0, 0, -2147483649)
);
diff --git a/ext/standard/tests/array/next_variation1.phpt b/ext/standard/tests/array/next_variation1.phpt
index 027a521471..e5ce177375 100644
--- a/ext/standard/tests/array/next_variation1.phpt
+++ b/ext/standard/tests/array/next_variation1.phpt
@@ -58,7 +58,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -68,7 +68,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/prev_variation1.phpt b/ext/standard/tests/array/prev_variation1.phpt
index 257206b410..1ac902b1f4 100644
--- a/ext/standard/tests/array/prev_variation1.phpt
+++ b/ext/standard/tests/array/prev_variation1.phpt
@@ -58,7 +58,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -68,7 +68,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/range.phpt b/ext/standard/tests/array/range.phpt
index ebb496c74a..562335d099 100644
--- a/ext/standard/tests/array/range.phpt
+++ b/ext/standard/tests/array/range.phpt
@@ -13,13 +13,13 @@ var_dump( range(1, 10) );
echo "\n-- An array of elements from high to low --\n";
var_dump( range(10, 1) );
-echo "\n-- Numeric Strings as Low and High --\n";
+echo "\n-- Numeric Strings as Low and High --\n";
echo "-- An array of elements from low to high --\n";
var_dump( range("1", "10") );
echo "\n-- An array of elements from high to low --\n";
var_dump( range("10", "1") );
-echo "\n-- Chars as Low and High --\n";
+echo "\n-- Chars as Low and High --\n";
echo "-- An array of elements from low to high --\n";
var_dump( range("a", "z") );
echo "\n-- An array of elements from high to low --\n";
@@ -29,19 +29,19 @@ echo "\n-- Low and High are equal --\n";
var_dump( range(5, 5) );
var_dump( range("q", "q") );
-echo "\n-- floats as Low and High --\n";
+echo "\n-- floats as Low and High --\n";
var_dump( range(5.1, 10.1) );
var_dump( range(10.1, 5.1) );
var_dump( range("5.1", "10.1") );
var_dump( range("10.1", "5.1") );
-echo "\n-- Passing step with Low and High --\n";
+echo "\n-- Passing step with Low and High --\n";
var_dump( range(1, 2, 0.1) );
var_dump( range(2, 1, 0.1) );
var_dump( range(1, 2, "0.1") );
-var_dump( range("1", "2", 0.1) );
+var_dump( range("1", "2", 0.1) );
echo "\n-- Testing basic string with step --\n";
var_dump( range("abcd", "mnop", 2) );
diff --git a/ext/standard/tests/array/range_errors.phpt b/ext/standard/tests/array/range_errors.phpt
index 45c30f5acf..b63e9874bf 100644
--- a/ext/standard/tests/array/range_errors.phpt
+++ b/ext/standard/tests/array/range_errors.phpt
@@ -7,7 +7,7 @@ precision=14
echo "\n*** Testing error conditions ***\n";
-echo "\n-- Testing ( (low < high) && (step = 0) ) --";
+echo "\n-- Testing ( (low < high) && (step = 0) ) --";
var_dump( range(1, 2, 0) );
var_dump( range("a", "b", 0) );
@@ -21,11 +21,11 @@ var_dump( range(1.0, 7.0, 6.5) );
echo "\n\n-- Testing ( (low > high) && (low-high < step) ) --";
var_dump( range(7.0, 1.0, 6.5) );
-echo "\n-- Testing Invalid number of arguments --";
+echo "\n-- Testing Invalid number of arguments --";
var_dump( range() ); // No.of args = 0
var_dump( range(1) ); // No.of args < expected
var_dump( range(1,2,3,4) ); // No.of args > expected
-var_dump( range(-1, -2, 2) );
+var_dump( range(-1, -2, 2) );
var_dump( range("a", "j", "z") );
var_dump( range(0, 1, "140962482048819216326.24") );
var_dump( range(0, 1, "140962482048819216326.24.") );
diff --git a/ext/standard/tests/array/reset_variation1.phpt b/ext/standard/tests/array/reset_variation1.phpt
index 6181bd4177..ccdff248bf 100644
--- a/ext/standard/tests/array/reset_variation1.phpt
+++ b/ext/standard/tests/array/reset_variation1.phpt
@@ -58,7 +58,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -68,7 +68,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/rsort_basic.phpt b/ext/standard/tests/array/rsort_basic.phpt
index 724aa2d3a8..0d13a48dda 100644
--- a/ext/standard/tests/array/rsort_basic.phpt
+++ b/ext/standard/tests/array/rsort_basic.phpt
@@ -19,7 +19,7 @@ $unsorted_strings = array(
"O" => "Orange", "O1" => "Orange1", "o2" => "orange2", "O3" => "Orange3", "o20" => "orange20",
"b" => "banana",
);
-
+
// array with default keys containing unsorted numeric values
$unsorted_numerics = array( 100, 33, 555, 22 );
diff --git a/ext/standard/tests/array/rsort_object1.phpt b/ext/standard/tests/array/rsort_object1.phpt
index 98f7cfec16..2c0b571136 100644
--- a/ext/standard/tests/array/rsort_object1.phpt
+++ b/ext/standard/tests/array/rsort_object1.phpt
@@ -41,14 +41,14 @@ class for_string_rsort
}
// array of integer objects
-$unsorted_int_obj = array(
+$unsorted_int_obj = array(
new for_integer_rsort(11), new for_integer_rsort(66),
new for_integer_rsort(23), new for_integer_rsort(-5),
new for_integer_rsort(0.001), new for_integer_rsort(0)
);
// array of string objects
-$unsorted_str_obj = array (
+$unsorted_str_obj = array (
new for_string_rsort("axx"), new for_string_rsort("t"),
new for_string_rsort("w"), new for_string_rsort("py"),
new for_string_rsort("apple"), new for_string_rsort("Orange"),
diff --git a/ext/standard/tests/array/rsort_object2.phpt b/ext/standard/tests/array/rsort_object2.phpt
index 57acdc61fe..f3eecb7fef 100644
--- a/ext/standard/tests/array/rsort_object2.phpt
+++ b/ext/standard/tests/array/rsort_object2.phpt
@@ -51,7 +51,7 @@ class for_string_rsort
// array of integer objects
-$unsorted_int_obj = array(
+$unsorted_int_obj = array(
new for_integer_rsort(11,33,30),
new for_integer_rsort(66,44,4),
new for_integer_rsort(-88,-5,5),
@@ -59,7 +59,7 @@ $unsorted_int_obj = array(
);
// array of string objects
-$unsorted_str_obj = array (
+$unsorted_str_obj = array (
new for_string_rsort("axx","AXX","ass"),
new for_string_rsort("t","eee","abb"),
new for_string_rsort("w","W", "c"),
diff --git a/ext/standard/tests/array/rsort_variation1.phpt b/ext/standard/tests/array/rsort_variation1.phpt
index ab05a250c6..87e8977487 100644
--- a/ext/standard/tests/array/rsort_variation1.phpt
+++ b/ext/standard/tests/array/rsort_variation1.phpt
@@ -58,7 +58,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -67,7 +67,7 @@ $inputs = array(
/*18*/ "string",
'string',
$heredoc,
-
+
// object data
/*21*/ new classA(),
diff --git a/ext/standard/tests/array/rsort_variation2.phpt b/ext/standard/tests/array/rsort_variation2.phpt
index 8b4a5074e4..b6e423111c 100644
--- a/ext/standard/tests/array/rsort_variation2.phpt
+++ b/ext/standard/tests/array/rsort_variation2.phpt
@@ -64,7 +64,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -73,7 +73,7 @@ $inputs = array(
/*18*/ "SORT_NUMERIC",
'SORT_NUMERIC',
$heredoc,
-
+
// object data
/*21*/ new classA(),
@@ -91,14 +91,14 @@ $inputs = array(
$iterator = 1;
foreach($inputs as $input) {
echo "\n-- Iteration $iterator --\n";
-
+
//create temporary array in case rsort() works
$temp = $array_arg;
-
+
var_dump( rsort($temp, $input) );
var_dump($temp);
$iterator++;
-
+
$temp = null;
};
diff --git a/ext/standard/tests/array/rsort_variation3.phpt b/ext/standard/tests/array/rsort_variation3.phpt
index 6f92407587..ee740fd2a6 100644
--- a/ext/standard/tests/array/rsort_variation3.phpt
+++ b/ext/standard/tests/array/rsort_variation3.phpt
@@ -42,20 +42,20 @@ $count = 1;
foreach ($various_arrays as $array) {
echo "\n-- Iteration $count --\n";
- echo "- With Defualt sort flag -\n";
- $temp_array = $array;
+ echo "- With Defualt sort flag -\n";
+ $temp_array = $array;
var_dump(rsort($temp_array) );
var_dump($temp_array);
// loop through $flag_value array and setting all possible flag values
foreach($flag_value as $key => $flag){
echo "- Sort flag = $key -\n";
- $temp_array = $array;
+ $temp_array = $array;
var_dump(rsort($temp_array, $flag) );
var_dump($temp_array);
- }
+ }
$count++;
-}
+}
echo "Done";
?>
diff --git a/ext/standard/tests/array/rsort_variation5.phpt b/ext/standard/tests/array/rsort_variation5.phpt
index 62e9f10aef..a8555ed0d9 100644
--- a/ext/standard/tests/array/rsort_variation5.phpt
+++ b/ext/standard/tests/array/rsort_variation5.phpt
@@ -41,7 +41,7 @@ foreach ($various_arrays as $array) {
// loop through $flags array and setting all possible flag values
foreach($flags as $key => $flag){
echo "- Sort flag = $key -\n";
-
+
$temp_array = $array;
var_dump(rsort($temp_array, $flag) );
var_dump($temp_array);
diff --git a/ext/standard/tests/array/rsort_variation8.phpt b/ext/standard/tests/array/rsort_variation8.phpt
index 28bfe2c5a5..49b600699e 100644
--- a/ext/standard/tests/array/rsort_variation8.phpt
+++ b/ext/standard/tests/array/rsort_variation8.phpt
@@ -33,14 +33,14 @@ $count = 1;
// loop through to test rsort() with different arrays
foreach ($various_arrays as $array) {
-
- echo "\n-- Iteration $count --\n";
-
+
+ echo "\n-- Iteration $count --\n";
+
echo "\n-- 'flag' value is default --\n";
$temp_array = $array;
var_dump(rsort($temp_array) );
var_dump($temp_array);
-
+
echo "\n-- 'flag' value is SORT_REGULAR --\n";
$temp_array = $array;
var_dump(rsort($temp_array, SORT_REGULAR) );
diff --git a/ext/standard/tests/array/shuffle_variation2.phpt b/ext/standard/tests/array/shuffle_variation2.phpt
index a0cb6b632e..b43572d05a 100644
--- a/ext/standard/tests/array/shuffle_variation2.phpt
+++ b/ext/standard/tests/array/shuffle_variation2.phpt
@@ -37,9 +37,9 @@ echo "\n*** Testing shuffle() with arrays having different types of values ***\n
$counter = 1;
for($i=0; $i<=6; $i++) {
echo "\n-- Iteration $counter --\n";
- var_dump( shuffle($array_arg[$i]) );
+ var_dump( shuffle($array_arg[$i]) );
echo "\nThe output array is:\n";
- var_dump( $array_arg[$i] );
+ var_dump( $array_arg[$i] );
$counter++;
}
diff --git a/ext/standard/tests/array/shuffle_variation3.phpt b/ext/standard/tests/array/shuffle_variation3.phpt
index 1cb4e4d1eb..6e456459d6 100644
--- a/ext/standard/tests/array/shuffle_variation3.phpt
+++ b/ext/standard/tests/array/shuffle_variation3.phpt
@@ -53,9 +53,9 @@ echo "\n*** Testing shuffle() with arrays having different types of values ***\n
$counter = 1;
foreach($array_arg as $arr) {
echo "\n-- Iteration $counter --\n";
- var_dump( shuffle($arr) );
+ var_dump( shuffle($arr) );
echo "\nThe output array is:\n";
- var_dump( $arr );
+ var_dump( $arr );
$counter++;
}
diff --git a/ext/standard/tests/array/shuffle_variation4.phpt b/ext/standard/tests/array/shuffle_variation4.phpt
index 399197c19b..72c6487af5 100644
--- a/ext/standard/tests/array/shuffle_variation4.phpt
+++ b/ext/standard/tests/array/shuffle_variation4.phpt
@@ -56,9 +56,9 @@ echo "\n*** Testing shuffle() with arrays having different types of values ***\n
$counter = 1;
foreach($array_arg as $arr) {
echo "\n-- Iteration $counter --\n";
- var_dump( shuffle($arr) );
+ var_dump( shuffle($arr) );
echo "\nThe output array is:\n";
- var_dump( $arr );
+ var_dump( $arr );
$counter++;
}
diff --git a/ext/standard/tests/array/shuffle_variation5.phpt b/ext/standard/tests/array/shuffle_variation5.phpt
index ca2c1ac90e..0479a8f817 100644
--- a/ext/standard/tests/array/shuffle_variation5.phpt
+++ b/ext/standard/tests/array/shuffle_variation5.phpt
@@ -64,15 +64,15 @@ $heredoc_asso_array = array(
// test shuffle() with array containing heredoc strings as values
echo "\n-- with array of heredoc strings --\n";
-var_dump( shuffle($heredoc_array) );
+var_dump( shuffle($heredoc_array) );
echo "\nThe output array is:\n";
-var_dump( $heredoc_array );
+var_dump( $heredoc_array );
// test shuffle() with array containing heredoc strings as its keys
echo "\n-- with array having heredoc strings as keys --\n";
-var_dump( shuffle($heredoc_asso_array) );
+var_dump( shuffle($heredoc_asso_array) );
echo "\nThe output array is:\n";
-var_dump( $heredoc_asso_array );
+var_dump( $heredoc_asso_array );
echo "Done";
?>
diff --git a/ext/standard/tests/array/sizeof_basic1.phpt b/ext/standard/tests/array/sizeof_basic1.phpt
index ac86cbf8d7..e7fa988373 100644
--- a/ext/standard/tests/array/sizeof_basic1.phpt
+++ b/ext/standard/tests/array/sizeof_basic1.phpt
@@ -11,7 +11,7 @@ Test sizeof() function : basic functionality - for scalar types
/* Testing the sizeof() for some of the scalar types(integer, float) values
* in default, COUNT_NORMAL and COUNT_RECURSIVE modes.
- */
+ */
echo "*** Testing sizeof() : basic functionality ***\n";
diff --git a/ext/standard/tests/array/sizeof_basic2.phpt b/ext/standard/tests/array/sizeof_basic2.phpt
index bbcbe11091..6b96863ab4 100644
--- a/ext/standard/tests/array/sizeof_basic2.phpt
+++ b/ext/standard/tests/array/sizeof_basic2.phpt
@@ -13,7 +13,7 @@ Test sizeof() function : basic functionality - for non-scalar type(array)
* in default, COUNT_NORMAL and COUNT_RECURSIVE modes.
* Sizeof() has been tested for simple integer, string,
* indexed and mixed arrays.
- */
+ */
echo "*** Testing sizeof() : basic functionality ***\n";
diff --git a/ext/standard/tests/array/sizeof_object2.phpt b/ext/standard/tests/array/sizeof_object2.phpt
index 404443ae59..1976c78c1d 100644
--- a/ext/standard/tests/array/sizeof_object2.phpt
+++ b/ext/standard/tests/array/sizeof_object2.phpt
@@ -15,7 +15,7 @@ echo "--- Testing sizeof() with objects which doesn't implement Countable interf
// class without member
class test
-{
+{
// no members
}
@@ -53,7 +53,7 @@ abstract class abstract_class
{
public $member1;
private $member2;
-
+
abstract protected function display();
}
@@ -83,7 +83,7 @@ for($i = 0; $i < count($objects); $i++)
echo "Default Mode: ";
var_dump( sizeof($var) );
echo "\n";
-
+
echo "COUNT_NORMAL Mode: ";
var_dump( sizeof($var, COUNT_NORMAL) );
echo "\n";
@@ -91,7 +91,7 @@ for($i = 0; $i < count($objects); $i++)
echo "COUNT_RECURSIVE Mode: ";
var_dump( sizeof($var, COUNT_RECURSIVE) );
echo "\n";
-
+
$counter++;
}
diff --git a/ext/standard/tests/array/sizeof_variation1.phpt b/ext/standard/tests/array/sizeof_variation1.phpt
index 5917a798e1..4f394c2fdc 100644
--- a/ext/standard/tests/array/sizeof_variation1.phpt
+++ b/ext/standard/tests/array/sizeof_variation1.phpt
@@ -27,7 +27,7 @@ $values = array (
12.3456789000e10,
12.3456789000E-10,
/* 7 */ .5,
-
+
// NULL values
/* 8 */ NULL,
null,
@@ -40,7 +40,7 @@ $values = array (
// string data
/* 14 */ "",
- '',
+ '',
"string",
/* 17 */ 'string',
@@ -56,8 +56,8 @@ $counter = 1;
for($i = 0; $i < count($values); $i++)
{
echo "-- Iteration $counter --\n";
-
- $var = $values[$i];
+
+ $var = $values[$i];
echo "Default Mode: ";
var_dump( sizeof($var) );
diff --git a/ext/standard/tests/array/sizeof_variation2.phpt b/ext/standard/tests/array/sizeof_variation2.phpt
index 8bd74a0207..1fd024ec2e 100644
--- a/ext/standard/tests/array/sizeof_variation2.phpt
+++ b/ext/standard/tests/array/sizeof_variation2.phpt
@@ -32,7 +32,7 @@ $values = array (
array(false => 'red', true => 'pen' ),
array('color' => "red", "item" => 'pen', 1 => "Hi", "" => "Hello" ),
/* 14 */ array($fp, "resource1" => $fp, 'resource2' => $fp, array( $fp, 'type' => $fp) )
-);
+);
// loop through each element of the values array for 'var' argument
// check the working of sizeof()
@@ -42,10 +42,10 @@ for($i = 0; $i < count($values); $i++)
echo "-- Iteration $counter --\n";
$var = $values[$i];
- echo "Default Mode: ";
+ echo "Default Mode: ";
var_dump( sizeof($var) );
echo "\n";
-
+
echo "COUNT_NORMAL Mode: ";
var_dump( sizeof($var, COUNT_NORMAL) );
echo "\n";
@@ -56,7 +56,7 @@ for($i = 0; $i < count($values); $i++)
$counter++;
}
-
+
echo "Done";
?>
--EXPECT--
diff --git a/ext/standard/tests/array/sizeof_variation4.phpt b/ext/standard/tests/array/sizeof_variation4.phpt
index 63fc05bd46..983be5bb56 100644
--- a/ext/standard/tests/array/sizeof_variation4.phpt
+++ b/ext/standard/tests/array/sizeof_variation4.phpt
@@ -15,7 +15,7 @@ echo "--- Testing sizeof() for all kinds of unset variables in default, Normal a
// class declaration
class test
-{
+{
public $member1;
}
@@ -60,7 +60,7 @@ $counter = 1;
foreach($values as $value)
{
echo "-- Iteration $counter --\n";
-
+
// unset the variable
unset($value);
@@ -68,7 +68,7 @@ foreach($values as $value)
echo "Default Mode: ";
var_dump( sizeof($value) );
echo "\n";
-
+
echo "COUNT_NORMAL Mode: ";
var_dump( sizeof($value, COUNT_NORMAL) );
echo "\n";
diff --git a/ext/standard/tests/array/sizeof_variation5.phpt b/ext/standard/tests/array/sizeof_variation5.phpt
index d608dbbe1b..89fce6631c 100644
--- a/ext/standard/tests/array/sizeof_variation5.phpt
+++ b/ext/standard/tests/array/sizeof_variation5.phpt
@@ -52,7 +52,7 @@ $mode_values = array (
new test(),
/* 22 */ $fp
);
-
+
// loop through the each element of $modes_array for 'mode' argument
// and check the working of sizeof()
$counter = 1;
@@ -60,7 +60,7 @@ for($i = 0; $i < count($mode_values); $i++)
{
echo "-- Iteration $counter --\n";
$mode = $mode_values[$i];
-
+
var_dump( sizeof($array1, $mode) );
$counter++;
diff --git a/ext/standard/tests/array/sort_basic.phpt b/ext/standard/tests/array/sort_basic.phpt
index df37b2d1d5..fe5796c37f 100644
--- a/ext/standard/tests/array/sort_basic.phpt
+++ b/ext/standard/tests/array/sort_basic.phpt
@@ -25,7 +25,7 @@ $unsorted_strings = array(
"O" => "Orange", "O1" => "Orange1", "o2" => "orange2", "O3" => "Orange3", "o20" => "orange20",
"b" => "banana",
);
-
+
// array with default keys containing unsorted numeric values
$unsorted_numerics = array( 100, 33, 555, 22 );
diff --git a/ext/standard/tests/array/sort_error.phpt b/ext/standard/tests/array/sort_error.phpt
index 4864ef33df..5337388b17 100644
--- a/ext/standard/tests/array/sort_error.phpt
+++ b/ext/standard/tests/array/sort_error.phpt
@@ -27,7 +27,7 @@ $extra_arg = 10;
foreach($flag_value as $key => $flag){
echo "\nSort flag = $key\n";
var_dump( sort($array_arg,$flag, $extra_arg) );
-
+
// dump the input array to ensure that it wasn't changed
var_dump($array_arg);
}
diff --git a/ext/standard/tests/array/sort_object1.phpt b/ext/standard/tests/array/sort_object1.phpt
index caa9c8dbb6..7c0be40607 100644
--- a/ext/standard/tests/array/sort_object1.phpt
+++ b/ext/standard/tests/array/sort_object1.phpt
@@ -41,14 +41,14 @@ class for_string_sort
}
// array of integer objects
-$unsorted_int_obj = array(
+$unsorted_int_obj = array(
new for_integer_sort(11), new for_integer_sort(66),
new for_integer_sort(23), new for_integer_sort(-5),
new for_integer_sort(0.001), new for_integer_sort(0)
);
// array of string objects
-$unsorted_str_obj = array (
+$unsorted_str_obj = array (
new for_string_sort("axx"), new for_string_sort("t"),
new for_string_sort("w"), new for_string_sort("py"),
new for_string_sort("apple"), new for_string_sort("Orange"),
diff --git a/ext/standard/tests/array/sort_object2.phpt b/ext/standard/tests/array/sort_object2.phpt
index 93b0fa2e8b..026c45b852 100644
--- a/ext/standard/tests/array/sort_object2.phpt
+++ b/ext/standard/tests/array/sort_object2.phpt
@@ -19,13 +19,13 @@ class for_integer_sort
{
public $public_class_value;
private $private_class_value;
- protected $protected_class_value;
+ protected $protected_class_value;
// initializing object member value
function __construct($value1, $value2,$value3){
$this->public_class_value = $value1;
$this->private_class_value = $value2;
- $this->protected_class_value = $value3;
+ $this->protected_class_value = $value3;
}
}
@@ -50,7 +50,7 @@ class for_string_sort
}
// array of integer objects
-$unsorted_int_obj = array(
+$unsorted_int_obj = array(
new for_integer_sort(11,33,30),
new for_integer_sort(66,44,4),
new for_integer_sort(-88,-5,5),
@@ -58,7 +58,7 @@ $unsorted_int_obj = array(
);
// array of string objects
-$unsorted_str_obj = array (
+$unsorted_str_obj = array (
new for_string_sort("axx","AXX","ass"),
new for_string_sort("t","eee","abb"),
new for_string_sort("w","W", "c"),
diff --git a/ext/standard/tests/array/sort_variation1.phpt b/ext/standard/tests/array/sort_variation1.phpt
index f778b81907..5bcb95d860 100644
--- a/ext/standard/tests/array/sort_variation1.phpt
+++ b/ext/standard/tests/array/sort_variation1.phpt
@@ -75,7 +75,7 @@ $unexpected_values = array (
// loop though each element of the array and check the working of sort()
// when $array argument is supplied with different values from $unexpected_values
echo "\n-- Testing sort() by supplying different unexpected values for 'array' argument --\n";
-echo "\n-- Flag values are defualt, SORT_REGULAR, SORT_NUMERIC, SORT_STRING --\n";
+echo "\n-- Flag values are defualt, SORT_REGULAR, SORT_NUMERIC, SORT_STRING --\n";
$counter = 1;
for($index = 0; $index < count($unexpected_values); $index ++) {
diff --git a/ext/standard/tests/array/sort_variation2.phpt b/ext/standard/tests/array/sort_variation2.phpt
index 3ee1784edc..0fb5612333 100644
--- a/ext/standard/tests/array/sort_variation2.phpt
+++ b/ext/standard/tests/array/sort_variation2.phpt
@@ -79,8 +79,8 @@ for($index = 0; $index < count($unexpected_values); $index ++) {
// sort the array, retain a temp. copy of input array for next iteration
$value = $unexpected_values [$index];
$temp_array = $unsorted_values;
- var_dump( sort($temp_array, $value) );
-
+ var_dump( sort($temp_array, $value) );
+
//dump the sorted array
var_dump($temp_array);
$counter++;
diff --git a/ext/standard/tests/array/sort_variation3.phpt b/ext/standard/tests/array/sort_variation3.phpt
index 1ad058d4e9..4515390b20 100644
--- a/ext/standard/tests/array/sort_variation3.phpt
+++ b/ext/standard/tests/array/sort_variation3.phpt
@@ -29,7 +29,7 @@ $various_arrays = array (
// mixed value array
array(.0001, .0021, -.01, -1, 0, .09, 2, -.9, 10.6E-2, -10.6E-2, 33),
-
+
// array values contains minimum and maximum ranges
array(2147483647, 2147483648, -2147483647, -2147483648, -0, 0, -2147483649)
);
@@ -44,20 +44,20 @@ echo "\n-- Testing sort() by supplying various integer/float arrays --\n";
foreach ($various_arrays as $array) {
echo "\n-- Iteration $count --\n";
- echo "- With Defualt sort flag -\n";
- $temp_array = $array;
+ echo "- With Defualt sort flag -\n";
+ $temp_array = $array;
var_dump(sort($temp_array) );
var_dump($temp_array);
// loop through $flag_value array and setting all possible flag values
foreach($flag_value as $key => $flag){
echo "- Sort flag = $key -\n";
- $temp_array = $array;
+ $temp_array = $array;
var_dump(sort($temp_array, $flag) );
var_dump($temp_array);
- }
+ }
$count++;
-}
+}
echo "Done\n";
?>
diff --git a/ext/standard/tests/array/sort_variation8.phpt b/ext/standard/tests/array/sort_variation8.phpt
index 17228f28ac..9e8cda117e 100644
--- a/ext/standard/tests/array/sort_variation8.phpt
+++ b/ext/standard/tests/array/sort_variation8.phpt
@@ -37,8 +37,8 @@ echo "\n-- Testing sort() by supplying various arrays containing sub arrays --\n
// loop through to test sort() with different arrays
foreach ($various_arrays as $array) {
-
- echo "\n-- Iteration $count --\n";
+
+ echo "\n-- Iteration $count --\n";
// testing sort() function by supplying different arrays, flag value is defualt
echo "- With Defualt sort flag -\n";
$temp_array = $array;
diff --git a/ext/standard/tests/array/uasort_object1.phpt b/ext/standard/tests/array/uasort_object1.phpt
index 020b0d3c0b..5c981fe038 100644
--- a/ext/standard/tests/array/uasort_object1.phpt
+++ b/ext/standard/tests/array/uasort_object1.phpt
@@ -49,7 +49,7 @@ function multiple_cmp($value1, $value2)
class SimpleClass1
{
private $int_value;
-
+
public function __construct($value) {
$this->int_value = $value;
}
@@ -68,7 +68,7 @@ class SimpleClass2
}
public function getValue() {
return $this->int_value;
- }
+ }
}
// array of SimpleClass objects with only one member
diff --git a/ext/standard/tests/array/uasort_object2.phpt b/ext/standard/tests/array/uasort_object2.phpt
index b6862b7588..37ba620a5d 100644
--- a/ext/standard/tests/array/uasort_object2.phpt
+++ b/ext/standard/tests/array/uasort_object2.phpt
@@ -43,11 +43,11 @@ function cmp_function($value1, $value2)
class SimpleClass
{
private $int_value;
-
+
public function __construct($value) {
$this->int_value = $value;
}
-
+
}
// Class without any member
diff --git a/ext/standard/tests/array/uasort_variation1.phpt b/ext/standard/tests/array/uasort_variation1.phpt
index c8475f9112..1e5d9ad6e1 100644
--- a/ext/standard/tests/array/uasort_variation1.phpt
+++ b/ext/standard/tests/array/uasort_variation1.phpt
@@ -60,7 +60,7 @@ $input_values = array(
// null data
/*10*/ NULL,
null,
-
+
// boolean data
/*12*/ true,
false,
@@ -80,7 +80,7 @@ $input_values = array(
// undefined data
@$undefined_var,
-
+
// unset data
/*22*/ @$unset_var,
);
diff --git a/ext/standard/tests/array/uasort_variation10.phpt b/ext/standard/tests/array/uasort_variation10.phpt
index 15b62930c3..ab54a11094 100644
--- a/ext/standard/tests/array/uasort_variation10.phpt
+++ b/ext/standard/tests/array/uasort_variation10.phpt
@@ -35,7 +35,7 @@ function cmp_function($value1, $value2)
echo "*** Testing uasort() : 'array_arg' with elements as reference ***\n";
// different variables which are used as elements of 'array_arg'
-$value1 = -5;
+$value1 = -5;
$value2 = 100;
$value3 = 0;
$value4 = &$value1;
diff --git a/ext/standard/tests/array/uasort_variation5.phpt b/ext/standard/tests/array/uasort_variation5.phpt
index e6996a55fe..4b353dfccf 100644
--- a/ext/standard/tests/array/uasort_variation5.phpt
+++ b/ext/standard/tests/array/uasort_variation5.phpt
@@ -64,7 +64,7 @@ var_dump($single_quoted_values);
// Double quoted strings
$double_quoted_values = array(
- 0 => " ", 1 => "test", 3 => "Hello", 4 => "HELLO",
+ 0 => " ", 1 => "test", 3 => "Hello", 4 => "HELLO",
5 => "", 6 => "\t", 7 => "0", 8 => "123Hello", 9 => "\"", 10 => "@#$%"
);
echo "-- Sorting Double Quoted String values --\n";
diff --git a/ext/standard/tests/array/uksort_error.phpt b/ext/standard/tests/array/uksort_error.phpt
index 241ed2f828..366a640c02 100644
--- a/ext/standard/tests/array/uksort_error.phpt
+++ b/ext/standard/tests/array/uksort_error.phpt
@@ -5,7 +5,7 @@ Test uksort() function : error conditions
/* Prototype : bool uksort(array array_arg, string cmp_function)
* Description: Sort an array by keys using a user-defined comparison function
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing uksort() : error conditions ***\n";
diff --git a/ext/standard/tests/array/uksort_variation1.phpt b/ext/standard/tests/array/uksort_variation1.phpt
index b2214a5880..079cbd6d77 100644
--- a/ext/standard/tests/array/uksort_variation1.phpt
+++ b/ext/standard/tests/array/uksort_variation1.phpt
@@ -5,7 +5,7 @@ Test uksort() function : usage variation
/* Prototype : bool uksort(array array_arg, string cmp_function)
* Description: Sort an array by keys using a user-defined comparison function
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing uksort() : usage variation ***\n";
diff --git a/ext/standard/tests/array/uksort_variation2.phpt b/ext/standard/tests/array/uksort_variation2.phpt
index 2f5b8b5d89..610fa73d06 100644
--- a/ext/standard/tests/array/uksort_variation2.phpt
+++ b/ext/standard/tests/array/uksort_variation2.phpt
@@ -5,7 +5,7 @@ Test uksort() function : usage variation
/* Prototype : bool uksort(array array_arg, string cmp_function)
* Description: Sort an array by keys using a user-defined comparison function
* Source code: ext/standard/array.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing uksort() : usage variation ***\n";
diff --git a/ext/standard/tests/array/unexpected_array_mod_bug.phpt b/ext/standard/tests/array/unexpected_array_mod_bug.phpt
index 2762ebd830..08774c09a4 100644
--- a/ext/standard/tests/array/unexpected_array_mod_bug.phpt
+++ b/ext/standard/tests/array/unexpected_array_mod_bug.phpt
@@ -3,7 +3,7 @@ Crash when function parameter modified via reference
--FILE--
<?php
function usercompare($a,$b) {
- unset($GLOBALS['my_var'][2]);
+ unset($GLOBALS['my_var'][2]);
return $a <=> $b;
}
$my_var = array(1 => "entry_1",
diff --git a/ext/standard/tests/array/usort_variation1.phpt b/ext/standard/tests/array/usort_variation1.phpt
index 761efbca39..b66a957bc2 100644
--- a/ext/standard/tests/array/usort_variation1.phpt
+++ b/ext/standard/tests/array/usort_variation1.phpt
@@ -72,7 +72,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -82,7 +82,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/array/usort_variation10.phpt b/ext/standard/tests/array/usort_variation10.phpt
index 0aeed40292..cc88e334d6 100644
--- a/ext/standard/tests/array/usort_variation10.phpt
+++ b/ext/standard/tests/array/usort_variation10.phpt
@@ -26,8 +26,8 @@ function cmp($value1, $value2)
}
// Array with duplicate string and integer keys and values
-$array_arg = array(0 => 2, "a" => 8, "d" => 9,
- 3 => 3, 5 => 2, "o" => 6,
+$array_arg = array(0 => 2, "a" => 8, "d" => 9,
+ 3 => 3, 5 => 2, "o" => 6,
"z" => -99, 0 => 1, "z" => 3);
echo "\n-- Array with duplicate keys --\n";
diff --git a/ext/standard/tests/array/usort_variation3.phpt b/ext/standard/tests/array/usort_variation3.phpt
index 5d21776060..bd7666744d 100644
--- a/ext/standard/tests/array/usort_variation3.phpt
+++ b/ext/standard/tests/array/usort_variation3.phpt
@@ -27,22 +27,22 @@ function cmp_function($value1, $value2)
}
// different heredoc strings
-
+
// single line heredoc string
$simple_heredoc = <<<EOT2
simple
EOT2;
-
+
// multiline heredoc string
$multiline_heredoc = <<<EOT3
multiline heredoc with 123
and speci@! ch@r..\ncheck\talso
EOT3;
-
+
$array_arg = array(
// numeric keys
-2 => 9,
- 8.9 => 8,
+ 8.9 => 8,
012 => 7,
0x34 => 6,
@@ -50,9 +50,9 @@ $array_arg = array(
'key' => 5, //single quoted key
"two" => 4, //double quoted key
" " => 0, // space as key
-
+
// bool keys
- TRUE => 100,
+ TRUE => 100,
FALSE => 25,
// null keys
@@ -65,7 +65,7 @@ $array_arg = array(
//heredoc keys
$simple_heredoc => 75,
$multiline_heredoc => 200,
-
+
// default key
1,
);
diff --git a/ext/standard/tests/array/usort_variation4.phpt b/ext/standard/tests/array/usort_variation4.phpt
index a5d14daab2..b358be46d9 100644
--- a/ext/standard/tests/array/usort_variation4.phpt
+++ b/ext/standard/tests/array/usort_variation4.phpt
@@ -27,16 +27,16 @@ function cmp_function($value1, $value2)
}
// Int array
-$int_values = array(0 => 3, 1 => 2, 3 => 100,
- 4 => 150, 5 => 25, 6 => 350,
+$int_values = array(0 => 3, 1 => 2, 3 => 100,
+ 4 => 150, 5 => 25, 6 => 350,
7 => 0, 8 => -3, 9 => -1200);
-
+
echo "\n-- Sorting Integer array --\n";
var_dump( usort($int_values, 'cmp_function') );
var_dump($int_values);
// Octal array
-$octal_values = array(0 => 056, 1 => 023, 2 => 00,
+$octal_values = array(0 => 056, 1 => 023, 2 => 00,
3 => 015, 4 => -045, 5 => 01, 6 => -07);
echo "\n-- Sorting Octal array --\n";
@@ -44,17 +44,17 @@ var_dump( usort($octal_values, 'cmp_function') );
var_dump($octal_values);
// Hexadecimal array
-$hex_values = array(0 => 0xAE, 1 => 0x2B, 2 => 0X10,
+$hex_values = array(0 => 0xAE, 1 => 0x2B, 2 => 0X10,
3 => -0xCF, 4 => 0X12, 5 => -0XF2);
-
+
echo "\n-- Sorting Hex array --\n";
var_dump( usort($hex_values, 'cmp_function') );
var_dump($hex_values);
// Float array
-$float_values = array( 0 => 10.2, 1 => 2.4, 2 => -3.4,
+$float_values = array( 0 => 10.2, 1 => 2.4, 2 => -3.4,
3 => 0, 4 => 0.5, 5 => 7.3e3, 6 => -9.34E-2);
-
+
echo "\n-- Sorting Float array --\n";
var_dump( usort($float_values, 'cmp_function') );
var_dump($float_values);
diff --git a/ext/standard/tests/array/usort_variation5.phpt b/ext/standard/tests/array/usort_variation5.phpt
index 922321c237..cb9efcdccc 100644
--- a/ext/standard/tests/array/usort_variation5.phpt
+++ b/ext/standard/tests/array/usort_variation5.phpt
@@ -46,7 +46,7 @@ EOT;
// Single quoted strings
$single_quoted_values = array(
0 => ' ', 1 => 'test', 3 => 'Hello', 4 => 'HELLO',
- 5 => '', 6 => '\t', 7 => '0', 8 => '123Hello',
+ 5 => '', 6 => '\t', 7 => '0', 8 => '123Hello',
9 => '\'', 10 => '@#$%'
);
@@ -56,8 +56,8 @@ var_dump($single_quoted_values);
// Double quoted strings
$double_quoted_values = array(
- 0 => " ", 1 => "test", 3 => "Hello", 4 => "HELLO",
- 5 => "", 6 => "\t", 7 => "0", 8 => "123Hello",
+ 0 => " ", 1 => "test", 3 => "Hello", 4 => "HELLO",
+ 5 => "", 6 => "\t", 7 => "0", 8 => "123Hello",
9 => "\"", 10 => "@#$%"
);
@@ -66,7 +66,7 @@ var_dump( usort($double_quoted_values, 'cmp_function') );
var_dump($double_quoted_values);
// Heredoc strings
-$heredoc_values = array(0 => $empty_heredoc, 1 => $simple_heredoc1,
+$heredoc_values = array(0 => $empty_heredoc, 1 => $simple_heredoc1,
2 => $simple_heredoc2, 3 => $multiline_heredoc);
echo "\n-- Sorting Heredoc String values --\n";
diff --git a/ext/standard/tests/array/usort_variation8.phpt b/ext/standard/tests/array/usort_variation8.phpt
index 87107f8009..2820d50d2b 100644
--- a/ext/standard/tests/array/usort_variation8.phpt
+++ b/ext/standard/tests/array/usort_variation8.phpt
@@ -16,7 +16,7 @@ Test usort() function : usage variations - use built in functions as $cmp_functi
echo "*** Testing usort() : usage variation ***\n";
// Initializing variables
-$array_arg = array("b" => "Banana", "m" => "Mango", "a" => "apple",
+$array_arg = array("b" => "Banana", "m" => "Mango", "a" => "apple",
"p" => "Pineapple", "o" => "orange");
// Testing library functions as comparison function
diff --git a/ext/standard/tests/array/usort_variation9.phpt b/ext/standard/tests/array/usort_variation9.phpt
index 977c709149..9060480209 100644
--- a/ext/standard/tests/array/usort_variation9.phpt
+++ b/ext/standard/tests/array/usort_variation9.phpt
@@ -27,7 +27,7 @@ function cmp_function($value1, $value2)
}
// different variables which are used as elements of $array_arg
-$value1 = -5;
+$value1 = -5;
$value2 = 100;
$value3 = 0;
$value4 = &$value1;
diff --git a/ext/standard/tests/assert/assert.phpt b/ext/standard/tests/assert/assert.phpt
index 44fb6091db..3f8a0003c7 100644
--- a/ext/standard/tests/assert/assert.phpt
+++ b/ext/standard/tests/assert/assert.phpt
@@ -10,7 +10,7 @@ assert.quiet_eval = 0
--FILE--
<?php
function a($file,$line,$myev)
-{
+{
echo "assertion failed $line,\"$myev\"\n";
}
diff --git a/ext/standard/tests/assert/assert03.phpt b/ext/standard/tests/assert/assert03.phpt
index 74cdb6eda7..50c69e8ffd 100644
--- a/ext/standard/tests/assert/assert03.phpt
+++ b/ext/standard/tests/assert/assert03.phpt
@@ -9,24 +9,24 @@ assert.quiet_eval = 1
--FILE--
<?php
function a($file,$line,$myev)
-{
+{
echo "assertion failed - a - $line,\"$myev\"\n";
}
-
+
function b($file,$line,$myev)
-{
+{
echo "assertion failed - b - $line,\"$myev\"\n";
}
-
+
assert_options(ASSERT_ACTIVE,1);
assert_options(ASSERT_QUIET_EVAL,1);
assert_options(ASSERT_WARNING,0);
-
+
$a = 0;
-
+
assert_options(ASSERT_CALLBACK,"a");
assert('$a != 0');
-
+
/* Modify call back using ini_set() */
ini_set("assert.callback", "b");
assert('$a != 0');
diff --git a/ext/standard/tests/assert/assert04.phpt b/ext/standard/tests/assert/assert04.phpt
index a057ee4380..c8f58d310e 100644
--- a/ext/standard/tests/assert/assert04.phpt
+++ b/ext/standard/tests/assert/assert04.phpt
@@ -11,29 +11,29 @@ assert.quiet_eval = 0
/* Assert not active */
assert_options(ASSERT_ACTIVE, 0);
assert(1);
-
-
+
+
/* Wrong parameter count in assert */
assert_options(ASSERT_ACTIVE, 1);
assert(2, "failure", 3);
-
+
/* Wrong parameter count in assert_options */
assert_options(ASSERT_ACTIVE, 0, 2);
-
+
/* Wrong parameter name in assert_options */
$test="ASSERT_FRED";
assert_options($test, 1);
-
+
/* Assert false */
assert(0);
-
-
+
+
/* Assert false and bail*/
assert_options(ASSERT_BAIL, 1);
assert(0);
-
+
echo "not reached\n";
-
+
?>
--EXPECTF--
Warning: assert() expects at most 2 parameters, 3 given in %s on line %d
diff --git a/ext/standard/tests/assert/assert_basic.phpt b/ext/standard/tests/assert/assert_basic.phpt
index 7db2a13b19..7d92ee31bc 100644
--- a/ext/standard/tests/assert/assert_basic.phpt
+++ b/ext/standard/tests/assert/assert_basic.phpt
@@ -8,7 +8,7 @@ assert.bail = 0
assert.quiet_eval = 0
--FILE--
<?php
-function f1()
+function f1()
{
echo "f1 called\n";
}
diff --git a/ext/standard/tests/assert/assert_basic1.phpt b/ext/standard/tests/assert/assert_basic1.phpt
index e803bb0ccc..4ba67dc9dd 100644
--- a/ext/standard/tests/assert/assert_basic1.phpt
+++ b/ext/standard/tests/assert/assert_basic1.phpt
@@ -8,7 +8,7 @@ assert.bail = 0
assert.quiet_eval = 0
--FILE--
<?php
-function f1()
+function f1()
{
echo "f1 called\n";
}
diff --git a/ext/standard/tests/assert/assert_basic2.phpt b/ext/standard/tests/assert/assert_basic2.phpt
index 42c59b1b9a..d6c150d0d0 100644
--- a/ext/standard/tests/assert/assert_basic2.phpt
+++ b/ext/standard/tests/assert/assert_basic2.phpt
@@ -8,19 +8,19 @@ assert.bail = 0
assert.quiet_eval = 0
--FILE--
<?php
-function f2()
+function f2()
{
echo "f2 called\n";
}
-function f1()
+function f1()
{
echo "f1 called\n";
}
-
+
var_dump($o = assert_options(ASSERT_CALLBACK));
assert(0);
-
+
var_dump($o= assert_options(ASSERT_CALLBACK, "f2"));
var_dump($n= assert_options(ASSERT_CALLBACK));
assert(0);
diff --git a/ext/standard/tests/assert/assert_basic3.phpt b/ext/standard/tests/assert/assert_basic3.phpt
index 044356c312..a7fd990cbe 100644
--- a/ext/standard/tests/assert/assert_basic3.phpt
+++ b/ext/standard/tests/assert/assert_basic3.phpt
@@ -8,7 +8,7 @@ assert.quiet_eval = 1
assert.bail = 0
--FILE--
<?php
-function f1()
+function f1()
{
echo "f1 called\n";
}
diff --git a/ext/standard/tests/assert/assert_basic5.phpt b/ext/standard/tests/assert/assert_basic5.phpt
index ac84a158f9..f4943cdf16 100644
--- a/ext/standard/tests/assert/assert_basic5.phpt
+++ b/ext/standard/tests/assert/assert_basic5.phpt
@@ -8,7 +8,7 @@ assert.bail = 0
assert.quiet_eval = 0
--FILE--
<?php
-function f1()
+function f1()
{
echo "f1 called\n";
}
diff --git a/ext/standard/tests/assert/assert_basic6.phpt b/ext/standard/tests/assert/assert_basic6.phpt
index e9b3f04b04..eb817db69b 100644
--- a/ext/standard/tests/assert/assert_basic6.phpt
+++ b/ext/standard/tests/assert/assert_basic6.phpt
@@ -8,7 +8,7 @@ assert.quiet_eval = 1
assert.bail = 0
--FILE--
<?php
-function f1($message)
+function f1($message)
{
echo "f1 called\n";
}
diff --git a/ext/standard/tests/assert/assert_error.phpt b/ext/standard/tests/assert/assert_error.phpt
index 5e2519ab37..6e04060765 100644
--- a/ext/standard/tests/assert/assert_error.phpt
+++ b/ext/standard/tests/assert/assert_error.phpt
@@ -8,7 +8,7 @@ assert.bail = 0
assert.quiet_eval = 0
--FILE--
<?php
-function f1()
+function f1()
{
echo "f1 called\n";
}
diff --git a/ext/standard/tests/assert/assert_error1.phpt b/ext/standard/tests/assert/assert_error1.phpt
index ae59afb40b..7c19c784d4 100644
--- a/ext/standard/tests/assert/assert_error1.phpt
+++ b/ext/standard/tests/assert/assert_error1.phpt
@@ -8,7 +8,7 @@ assert.quiet_eval = 1
assert.bail = 0
--FILE--
<?php
-function f1()
+function f1()
{
echo "f1 called\n";
}
diff --git a/ext/standard/tests/assert/assert_error2.phpt b/ext/standard/tests/assert/assert_error2.phpt
index aea86f5726..d1b6f1745f 100644
--- a/ext/standard/tests/assert/assert_error2.phpt
+++ b/ext/standard/tests/assert/assert_error2.phpt
@@ -10,7 +10,7 @@ error_reporting = -1
display_errors = 1
--FILE--
<?php
-function f1($script, $line, $message, $user_message)
+function f1($script, $line, $message, $user_message)
{
echo "f1 called\n";
}
diff --git a/ext/standard/tests/assert/assert_variation.phpt b/ext/standard/tests/assert/assert_variation.phpt
index a23d468f7b..8c63d43192 100644
--- a/ext/standard/tests/assert/assert_variation.phpt
+++ b/ext/standard/tests/assert/assert_variation.phpt
@@ -8,15 +8,15 @@ assert.bail = 0
assert.quiet_eval = 0
--FILE--
<?php
-function f1()
+function f1()
{
echo "f1 called\n";
}
-function f2()
+function f2()
{
echo "f2 called\n";
}
-function f3()
+function f3()
{
echo "f3 called\n";
}
diff --git a/ext/standard/tests/bug75220.phpt b/ext/standard/tests/bug75220.phpt
index f5820a12dd..0fdc6aa79a 100644
--- a/ext/standard/tests/bug75220.phpt
+++ b/ext/standard/tests/bug75220.phpt
@@ -15,7 +15,7 @@ class A extends B
var_dump(is_callable('parent::foo'));
var_dump(is_callable(array('parent', 'foo')));
}
-
+
function __call($func, $args)
{
}
diff --git a/ext/standard/tests/class_object/class_exists_basic_001.phpt b/ext/standard/tests/class_object/class_exists_basic_001.phpt
index 6d24ef979f..b092f496c2 100644
--- a/ext/standard/tests/class_object/class_exists_basic_001.phpt
+++ b/ext/standard/tests/class_object/class_exists_basic_001.phpt
@@ -5,7 +5,7 @@ Test class_exists() function : basic functionality
/* Prototype : proto bool class_exists(string classname [, bool autoload])
* Description: Checks if the class exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing class_exists() : basic functionality ***\n";
diff --git a/ext/standard/tests/class_object/class_exists_error_001.phpt b/ext/standard/tests/class_object/class_exists_error_001.phpt
index 99c0b89b3c..4386a76202 100644
--- a/ext/standard/tests/class_object/class_exists_error_001.phpt
+++ b/ext/standard/tests/class_object/class_exists_error_001.phpt
@@ -5,7 +5,7 @@ Test class_exists() function : error conditions (wrong number of arguments)
/* Prototype : proto bool class_exists(string classname [, bool autoload])
* Description: Checks if the class exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
/**
diff --git a/ext/standard/tests/class_object/class_exists_variation_001.phpt b/ext/standard/tests/class_object/class_exists_variation_001.phpt
index b847c0285c..1d9cadd125 100644
--- a/ext/standard/tests/class_object/class_exists_variation_001.phpt
+++ b/ext/standard/tests/class_object/class_exists_variation_001.phpt
@@ -5,7 +5,7 @@ Test class_exists() function : usage variations - unexpected types for argument
/* Prototype : proto bool class_exists(string classname [, bool autoload])
* Description: Checks if the class exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
spl_autoload_register(function ($className) {
diff --git a/ext/standard/tests/class_object/class_exists_variation_002.phpt b/ext/standard/tests/class_object/class_exists_variation_002.phpt
index 4b89921759..1be10387d4 100644
--- a/ext/standard/tests/class_object/class_exists_variation_002.phpt
+++ b/ext/standard/tests/class_object/class_exists_variation_002.phpt
@@ -5,7 +5,7 @@ Test class_exists() function : usage variations - unexpected types for argument
/* Prototype : proto bool class_exists(string classname [, bool autoload])
* Description: Checks if the class exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
spl_autoload_register(function ($className) {
diff --git a/ext/standard/tests/class_object/class_exists_variation_003.phpt b/ext/standard/tests/class_object/class_exists_variation_003.phpt
index 72182c8cbb..ea2b3a354a 100644
--- a/ext/standard/tests/class_object/class_exists_variation_003.phpt
+++ b/ext/standard/tests/class_object/class_exists_variation_003.phpt
@@ -5,7 +5,7 @@ Test class_exists() function : usage variations - case sensitivity
/* Prototype : proto bool class_exists(string classname [, bool autoload])
* Description: Checks if the class exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
class caseSensitivityTest {}
diff --git a/ext/standard/tests/class_object/get_class_error_001.phpt b/ext/standard/tests/class_object/get_class_error_001.phpt
index 555099502d..d808c8441d 100644
--- a/ext/standard/tests/class_object/get_class_error_001.phpt
+++ b/ext/standard/tests/class_object/get_class_error_001.phpt
@@ -5,7 +5,7 @@ Test get_class() function : error conditions - wrong number of arguments.
/* Prototype : proto string get_class([object object])
* Description: Retrieves the class name
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_class() : error conditions ***\n";
diff --git a/ext/standard/tests/class_object/get_class_methods_basic_001.phpt b/ext/standard/tests/class_object/get_class_methods_basic_001.phpt
index 7d2151c9de..e214e0f4e5 100644
--- a/ext/standard/tests/class_object/get_class_methods_basic_001.phpt
+++ b/ext/standard/tests/class_object/get_class_methods_basic_001.phpt
@@ -5,7 +5,7 @@ Test get_class_methods() function : basic functionality
/* Prototype : proto array get_class_methods(mixed class)
* Description: Returns an array of method names for class or class instance.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
@@ -18,7 +18,7 @@ class C {
function f() {}
function g() {}
function h() {}
-}
+}
echo "Argument is class name:\n";
var_dump( get_class_methods("C") );
diff --git a/ext/standard/tests/class_object/get_class_methods_basic_002.phpt b/ext/standard/tests/class_object/get_class_methods_basic_002.phpt
index 387cfd88fc..faed0d4c7f 100644
--- a/ext/standard/tests/class_object/get_class_methods_basic_002.phpt
+++ b/ext/standard/tests/class_object/get_class_methods_basic_002.phpt
@@ -5,7 +5,7 @@ Test get_class_methods() function : basic functionality
/* Prototype : proto array get_class_methods(mixed class)
* Description: Returns an array of method names for class or class instance.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
@@ -16,7 +16,7 @@ class C {
private function privC() {}
protected function protC() {}
public function pubC() {}
-
+
public static function testFromC() {
echo "Accessing C from C:\n";
var_dump(get_class_methods("C"));
@@ -31,7 +31,7 @@ class D extends C {
private function privD() {}
protected function protD() {}
public function pubD() {}
-
+
public static function testFromD() {
echo "Accessing C from D:\n";
var_dump(get_class_methods("C"));
@@ -46,7 +46,7 @@ class X {
private function privX() {}
protected function protX() {}
public function pubX() {}
-
+
public static function testFromX() {
echo "Accessing C from X:\n";
var_dump(get_class_methods("C"));
diff --git a/ext/standard/tests/class_object/get_class_methods_basic_003.phpt b/ext/standard/tests/class_object/get_class_methods_basic_003.phpt
index c74acccdc2..b86a0afc03 100644
--- a/ext/standard/tests/class_object/get_class_methods_basic_003.phpt
+++ b/ext/standard/tests/class_object/get_class_methods_basic_003.phpt
@@ -5,7 +5,7 @@ Test get_class_methods() function : basic functionality
/* Prototype : proto array get_class_methods(mixed class)
* Description: Returns an array of method names for class or class instance.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
@@ -23,10 +23,10 @@ class C implements I {
private function privC() {}
protected function protC() {}
public function pubC() {}
-
+
public static function testFromC() {
echo "Accessing I from C:\n";
- var_dump(get_class_methods("I"));
+ var_dump(get_class_methods("I"));
echo "Accessing C from C:\n";
var_dump(get_class_methods("C"));
}
diff --git a/ext/standard/tests/class_object/get_class_methods_error_001.phpt b/ext/standard/tests/class_object/get_class_methods_error_001.phpt
index e606ab6937..b053d6cc69 100644
--- a/ext/standard/tests/class_object/get_class_methods_error_001.phpt
+++ b/ext/standard/tests/class_object/get_class_methods_error_001.phpt
@@ -5,7 +5,7 @@ Test get_class_methods() function : error conditions
/* Prototype : proto array get_class_methods(mixed class)
* Description: Returns an array of method names for class or class instance.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/class_object/get_class_methods_variation_001.phpt b/ext/standard/tests/class_object/get_class_methods_variation_001.phpt
index 8cdef12a7b..37f9bf3ba5 100644
--- a/ext/standard/tests/class_object/get_class_methods_variation_001.phpt
+++ b/ext/standard/tests/class_object/get_class_methods_variation_001.phpt
@@ -5,7 +5,7 @@ Test get_class_methods() function : usage variations - unexpected types
/* Prototype : proto array get_class_methods(mixed class)
* Description: Returns an array of method names for class or class instance.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
diff --git a/ext/standard/tests/class_object/get_class_methods_variation_002.phpt b/ext/standard/tests/class_object/get_class_methods_variation_002.phpt
index 7dee5140a3..204398141f 100644
--- a/ext/standard/tests/class_object/get_class_methods_variation_002.phpt
+++ b/ext/standard/tests/class_object/get_class_methods_variation_002.phpt
@@ -5,7 +5,7 @@ Test get_class_methods() function : usage variations - case sensitivity
/* Prototype : proto array get_class_methods(mixed class)
* Description: Returns an array of method names for class or class instance.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_class_methods() : usage variations ***\n";
diff --git a/ext/standard/tests/class_object/get_class_variation_002.phpt b/ext/standard/tests/class_object/get_class_variation_002.phpt
index 640bbb7f88..9770eeb099 100644
--- a/ext/standard/tests/class_object/get_class_variation_002.phpt
+++ b/ext/standard/tests/class_object/get_class_variation_002.phpt
@@ -5,7 +5,7 @@ Test get_class() function : usage variations - ensure class name case is preser
/* Prototype : proto string get_class([object object])
* Description: Retrieves the class name
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
class caseSensitivityTest {}
diff --git a/ext/standard/tests/class_object/get_class_vars_variation1.phpt b/ext/standard/tests/class_object/get_class_vars_variation1.phpt
index 649e9ae5af..4aaeb78d61 100644
--- a/ext/standard/tests/class_object/get_class_vars_variation1.phpt
+++ b/ext/standard/tests/class_object/get_class_vars_variation1.phpt
@@ -5,7 +5,7 @@ Test get_class_vars() function : usage variation
/* Prototype : array get_class_vars(string class_name)
* Description: Returns an array of default properties of the class.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_class_vars() : usage variation ***\n";
diff --git a/ext/standard/tests/class_object/get_class_vars_variation2.phpt b/ext/standard/tests/class_object/get_class_vars_variation2.phpt
index 726bb53ea1..fdf5b48545 100644
--- a/ext/standard/tests/class_object/get_class_vars_variation2.phpt
+++ b/ext/standard/tests/class_object/get_class_vars_variation2.phpt
@@ -5,14 +5,14 @@ Test get_class_vars() function : testing visibility
/* Prototype : array get_class_vars(string class_name)
* Description: Returns an array of default properties of the class.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
class Ancestor {
function test() {
var_dump(get_class_vars("Tester"));
}
-
+
static function testStatic() {
var_dump(get_class_vars("Tester"));
}
@@ -22,15 +22,15 @@ class Tester extends Ancestor {
public $pub = "public var";
protected $prot = "protected var";
private $priv = "private var";
-
+
static public $pubs = "public static var";
static protected $prots = "protected static var";
static private $privs = "private static var";
-
+
function test() {
var_dump(get_class_vars("Tester"));
}
-
+
static function testStatic() {
var_dump(get_class_vars("Tester"));
}
@@ -40,7 +40,7 @@ class Child extends Tester {
function test() {
var_dump(get_class_vars("Tester"));
}
-
+
static function testStatic() {
var_dump(get_class_vars("Tester"));
}
diff --git a/ext/standard/tests/class_object/get_declared_classes_basic_001.phpt b/ext/standard/tests/class_object/get_declared_classes_basic_001.phpt
index 123e9772cc..4b89f2971b 100644
--- a/ext/standard/tests/class_object/get_declared_classes_basic_001.phpt
+++ b/ext/standard/tests/class_object/get_declared_classes_basic_001.phpt
@@ -5,7 +5,7 @@ Test get_declared_classes() function : basic functionality
/* Prototype : proto array get_declared_classes()
* Description: Returns an array of all declared classes.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
@@ -17,7 +17,7 @@ var_dump(get_declared_classes());
foreach (get_declared_classes() as $class) {
if (!class_exists($class)) {
- echo "Error: $class is not a valid class.\n";
+ echo "Error: $class is not a valid class.\n";
}
}
diff --git a/ext/standard/tests/class_object/get_declared_classes_error_001.phpt b/ext/standard/tests/class_object/get_declared_classes_error_001.phpt
index ff01feb360..4262d34490 100644
--- a/ext/standard/tests/class_object/get_declared_classes_error_001.phpt
+++ b/ext/standard/tests/class_object/get_declared_classes_error_001.phpt
@@ -5,7 +5,7 @@ Test get_declared_classes() function : error conditions
/* Prototype : proto array get_declared_classes()
* Description: Returns an array of all declared classes.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_declared_classes() : error conditions ***\n";
diff --git a/ext/standard/tests/class_object/get_declared_classes_variation1.phpt b/ext/standard/tests/class_object/get_declared_classes_variation1.phpt
index 60a46c37d0..4e9517b660 100644
--- a/ext/standard/tests/class_object/get_declared_classes_variation1.phpt
+++ b/ext/standard/tests/class_object/get_declared_classes_variation1.phpt
@@ -5,7 +5,7 @@ Test get_declared_classes() function : testing autoloaded classes
/* Prototype : proto array get_declared_classes()
* Description: Returns an array of all declared classes.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
diff --git a/ext/standard/tests/class_object/get_declared_interfaces_basic_001.phpt b/ext/standard/tests/class_object/get_declared_interfaces_basic_001.phpt
index a0ec715187..1d3f503da1 100644
--- a/ext/standard/tests/class_object/get_declared_interfaces_basic_001.phpt
+++ b/ext/standard/tests/class_object/get_declared_interfaces_basic_001.phpt
@@ -5,7 +5,7 @@ Test get_declared_interfaces() function : basic functionality
/* Prototype : proto array get_declared_interfaces()
* Description: Returns an array of all declared interfaces.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
@@ -17,7 +17,7 @@ var_dump(get_declared_interfaces());
foreach (get_declared_interfaces() as $interface) {
if (!interface_exists($interface)) {
- echo "Error: $interface is not a valid interface.\n";
+ echo "Error: $interface is not a valid interface.\n";
}
}
diff --git a/ext/standard/tests/class_object/get_declared_interfaces_error_001.phpt b/ext/standard/tests/class_object/get_declared_interfaces_error_001.phpt
index 63b02b85c3..6de6a42be2 100644
--- a/ext/standard/tests/class_object/get_declared_interfaces_error_001.phpt
+++ b/ext/standard/tests/class_object/get_declared_interfaces_error_001.phpt
@@ -5,7 +5,7 @@ Test get_declared_interfaces() function : error conditions
/* Prototype : proto array get_declared_interfaces()
* Description: Returns an array of all declared interfaces.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_declared_interfaces() : error conditions ***\n";
diff --git a/ext/standard/tests/class_object/get_declared_interfaces_variation1.phpt b/ext/standard/tests/class_object/get_declared_interfaces_variation1.phpt
index 219dde98ac..fa2204b02a 100644
--- a/ext/standard/tests/class_object/get_declared_interfaces_variation1.phpt
+++ b/ext/standard/tests/class_object/get_declared_interfaces_variation1.phpt
@@ -5,7 +5,7 @@ Test get_declared_interfaces() function : autoloading of interfaces
/* Prototype : proto array get_declared_interfaces()
* Description: Returns an array of all declared interfaces.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
diff --git a/ext/standard/tests/class_object/get_declared_traits_basic_001.phpt b/ext/standard/tests/class_object/get_declared_traits_basic_001.phpt
index 69d8de9c31..989bb094f0 100644
--- a/ext/standard/tests/class_object/get_declared_traits_basic_001.phpt
+++ b/ext/standard/tests/class_object/get_declared_traits_basic_001.phpt
@@ -5,7 +5,7 @@ Test get_declared_traits() function : basic functionality
/* Prototype : proto array get_declared_traits()
* Description: Returns an array of all declared traits.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
@@ -19,7 +19,7 @@ var_dump(get_declared_traits());
foreach (get_declared_traits() as $trait) {
if (!trait_exists($trait)) {
- echo "Error: $trait is not a valid trait.\n";
+ echo "Error: $trait is not a valid trait.\n";
}
}
diff --git a/ext/standard/tests/class_object/get_declared_traits_error_001.phpt b/ext/standard/tests/class_object/get_declared_traits_error_001.phpt
index 0d35fa6d13..3a5624aa25 100644
--- a/ext/standard/tests/class_object/get_declared_traits_error_001.phpt
+++ b/ext/standard/tests/class_object/get_declared_traits_error_001.phpt
@@ -5,7 +5,7 @@ Test get_declared_traits() function : error conditions
/* Prototype : proto array get_declared_traits()
* Description: Returns an array of all declared traits.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_declared_traits() : error conditions ***\n";
diff --git a/ext/standard/tests/class_object/get_declared_traits_variation1.phpt b/ext/standard/tests/class_object/get_declared_traits_variation1.phpt
index 4cb848d398..e9291e6295 100644
--- a/ext/standard/tests/class_object/get_declared_traits_variation1.phpt
+++ b/ext/standard/tests/class_object/get_declared_traits_variation1.phpt
@@ -5,7 +5,7 @@ Test get_declared_traits() function : testing autoloaded traits
/* Prototype : proto array get_declared_traits()
* Description: Returns an array of all declared traits.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
diff --git a/ext/standard/tests/class_object/get_object_vars_basic_001.phpt b/ext/standard/tests/class_object/get_object_vars_basic_001.phpt
index dde26e1a21..aff6357031 100644
--- a/ext/standard/tests/class_object/get_object_vars_basic_001.phpt
+++ b/ext/standard/tests/class_object/get_object_vars_basic_001.phpt
@@ -5,44 +5,44 @@ get_object_vars(): visibility from static methods (target object passed as arg)
/* Prototype : proto array get_object_vars(object obj)
* Description: Returns an array of object properties
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
Class A {
private $hiddenPriv = 'A::hiddenPriv';
public static function test($b) {
- echo __METHOD__ . "\n";
+ echo __METHOD__ . "\n";
var_dump(get_object_vars($b));
}
}
Class B extends A {
- private $hiddenPriv = 'B::hiddenPriv';
+ private $hiddenPriv = 'B::hiddenPriv';
private $priv = 'B::priv';
protected $prot = 'B::prot';
public $pub = 'B::pub';
public static function test($b) {
- echo __METHOD__ . "\n";
+ echo __METHOD__ . "\n";
var_dump(get_object_vars($b));
- }
+ }
}
Class C extends B {
private $hiddenPriv = 'C::hiddenPriv';
-
+
public static function test($b) {
- echo __METHOD__ . "\n";
+ echo __METHOD__ . "\n";
var_dump(get_object_vars($b));
- }
+ }
}
Class X {
public static function test($b) {
- echo __METHOD__ . "\n";
+ echo __METHOD__ . "\n";
var_dump(get_object_vars($b));
- }
+ }
}
diff --git a/ext/standard/tests/class_object/get_object_vars_basic_002.phpt b/ext/standard/tests/class_object/get_object_vars_basic_002.phpt
index 8d7c45958e..176b149e75 100644
--- a/ext/standard/tests/class_object/get_object_vars_basic_002.phpt
+++ b/ext/standard/tests/class_object/get_object_vars_basic_002.phpt
@@ -5,28 +5,28 @@ get_object_vars(): visibility from non static methods (target object passed as a
/* Prototype : proto array get_object_vars(object obj)
* Description: Returns an array of object properties
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
Class A {
private $hiddenPriv = 'A::hiddenPriv';
public function testA($b) {
- echo __METHOD__ . "\n";
+ echo __METHOD__ . "\n";
var_dump(get_object_vars($b));
- }
+ }
}
Class B extends A {
- private $hiddenPriv = 'B::hiddenPriv';
+ private $hiddenPriv = 'B::hiddenPriv';
private $priv = 'B::priv';
protected $prot = 'B::prot';
public $pub = 'B::pub';
public function testB($b) {
- echo __METHOD__ . "\n";
+ echo __METHOD__ . "\n";
var_dump(get_object_vars($b));
- }
+ }
}
diff --git a/ext/standard/tests/class_object/get_object_vars_error_001.phpt b/ext/standard/tests/class_object/get_object_vars_error_001.phpt
index 2cb37f4a91..48c89ba8fa 100644
--- a/ext/standard/tests/class_object/get_object_vars_error_001.phpt
+++ b/ext/standard/tests/class_object/get_object_vars_error_001.phpt
@@ -5,7 +5,7 @@ Test get_object_vars() function : error conditions - wrong number of args
/* Prototype : proto array get_object_vars(object obj)
* Description: Returns an array of object properties
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_object_vars() : error conditions ***\n";
diff --git a/ext/standard/tests/class_object/get_object_vars_variation_001.phpt b/ext/standard/tests/class_object/get_object_vars_variation_001.phpt
index d0bf806763..2fe1d60f6f 100644
--- a/ext/standard/tests/class_object/get_object_vars_variation_001.phpt
+++ b/ext/standard/tests/class_object/get_object_vars_variation_001.phpt
@@ -5,7 +5,7 @@ get_object_vars() - ensure statics are not shown
/* Prototype : proto array get_object_vars(object obj)
* Description: Returns an array of object properties
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
Class A {
diff --git a/ext/standard/tests/class_object/get_object_vars_variation_002.phpt b/ext/standard/tests/class_object/get_object_vars_variation_002.phpt
index ef227cd8a2..7c3ad7b0e1 100644
--- a/ext/standard/tests/class_object/get_object_vars_variation_002.phpt
+++ b/ext/standard/tests/class_object/get_object_vars_variation_002.phpt
@@ -5,7 +5,7 @@ get_object_vars() - ensure references are preserved
/* Prototype : proto array get_object_vars(object obj)
* Description: Returns an array of object properties
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
$obj = new stdClass;
diff --git a/ext/standard/tests/class_object/get_object_vars_variation_003.phpt b/ext/standard/tests/class_object/get_object_vars_variation_003.phpt
index 7351995b6d..e42d359038 100644
--- a/ext/standard/tests/class_object/get_object_vars_variation_003.phpt
+++ b/ext/standard/tests/class_object/get_object_vars_variation_003.phpt
@@ -5,7 +5,7 @@ Test get_object_vars() function : usage variations - unexpected types for argum
/* Prototype : proto array get_object_vars(object obj)
* Description: Returns an array of object properties
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_object_vars() : usage variations ***\n";
diff --git a/ext/standard/tests/class_object/get_parent_class_error_001.phpt b/ext/standard/tests/class_object/get_parent_class_error_001.phpt
index 40c3dba279..68fe170390 100644
--- a/ext/standard/tests/class_object/get_parent_class_error_001.phpt
+++ b/ext/standard/tests/class_object/get_parent_class_error_001.phpt
@@ -5,7 +5,7 @@ Test get_parent_class() function : error conditions - wrong number of args.
/* Prototype : proto string get_parent_class([mixed object])
* Description: Retrieves the parent class name for object or class or current scope.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_parent_class() : error conditions ***\n";
diff --git a/ext/standard/tests/class_object/get_parent_class_variation_001.phpt b/ext/standard/tests/class_object/get_parent_class_variation_001.phpt
index 7ffff750b2..52020edc19 100644
--- a/ext/standard/tests/class_object/get_parent_class_variation_001.phpt
+++ b/ext/standard/tests/class_object/get_parent_class_variation_001.phpt
@@ -5,7 +5,7 @@ Test get_parent_class() function : variation - case sensitivity
/* Prototype : proto string get_parent_class([mixed object])
* Description: Retrieves the parent class name for object or class or current scope.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
// Note: basic use cases in Zend/tests/010.phpt
diff --git a/ext/standard/tests/class_object/get_parent_class_variation_002.phpt b/ext/standard/tests/class_object/get_parent_class_variation_002.phpt
index 97f848168d..a64398b2eb 100644
--- a/ext/standard/tests/class_object/get_parent_class_variation_002.phpt
+++ b/ext/standard/tests/class_object/get_parent_class_variation_002.phpt
@@ -5,7 +5,7 @@ Test get_parent_class() function : usage variations - unexpected argument type.
/* Prototype : proto string get_parent_class([mixed object])
* Description: Retrieves the parent class name for object or class or current scope.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
spl_autoload_register(function ($className) {
diff --git a/ext/standard/tests/class_object/interface_exists_error.phpt b/ext/standard/tests/class_object/interface_exists_error.phpt
index bf95a43050..f57405d5dc 100644
--- a/ext/standard/tests/class_object/interface_exists_error.phpt
+++ b/ext/standard/tests/class_object/interface_exists_error.phpt
@@ -5,7 +5,7 @@ Test interface_exists() function : error conditions
/* Prototype : bool interface_exists(string classname [, bool autoload])
* Description: Checks if the class exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing interface_exists() : error conditions ***\n";
diff --git a/ext/standard/tests/class_object/interface_exists_variation1.phpt b/ext/standard/tests/class_object/interface_exists_variation1.phpt
index 34d0e1e6b0..4bdde8ba97 100644
--- a/ext/standard/tests/class_object/interface_exists_variation1.phpt
+++ b/ext/standard/tests/class_object/interface_exists_variation1.phpt
@@ -5,7 +5,7 @@ Test interface_exists() function : usage variation
/* Prototype : bool interface_exists(string classname [, bool autoload])
* Description: Checks if the class exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing interface_exists() : usage variation ***\n";
diff --git a/ext/standard/tests/class_object/interface_exists_variation2.phpt b/ext/standard/tests/class_object/interface_exists_variation2.phpt
index de13c101ce..ecd90e9199 100644
--- a/ext/standard/tests/class_object/interface_exists_variation2.phpt
+++ b/ext/standard/tests/class_object/interface_exists_variation2.phpt
@@ -5,7 +5,7 @@ Test interface_exists() function : usage variation
/* Prototype : bool interface_exists(string classname [, bool autoload])
* Description: Checks if the class exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing interface_exists() : usage variation ***\n";
diff --git a/ext/standard/tests/class_object/interface_exists_variation3.phpt b/ext/standard/tests/class_object/interface_exists_variation3.phpt
index f6ec16d63d..86d10de887 100644
--- a/ext/standard/tests/class_object/interface_exists_variation3.phpt
+++ b/ext/standard/tests/class_object/interface_exists_variation3.phpt
@@ -5,7 +5,7 @@ Test interface_exists() function : autoloaded interface
/* Prototype : bool interface_exists(string classname [, bool autoload])
* Description: Checks if the class exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing interface_exists() : autoloaded interface ***\n";
diff --git a/ext/standard/tests/class_object/interface_exists_variation4.phpt b/ext/standard/tests/class_object/interface_exists_variation4.phpt
index 4b61269664..95059f8247 100644
--- a/ext/standard/tests/class_object/interface_exists_variation4.phpt
+++ b/ext/standard/tests/class_object/interface_exists_variation4.phpt
@@ -5,7 +5,7 @@ Test interface_exists() function : test autoload default value
/* Prototype : bool interface_exists(string classname [, bool autoload])
* Description: Checks if the class exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing interface_exists() : test autoload default value ***\n";
diff --git a/ext/standard/tests/class_object/is_a.phpt b/ext/standard/tests/class_object/is_a.phpt
index 644df705c7..92d289ba18 100644
--- a/ext/standard/tests/class_object/is_a.phpt
+++ b/ext/standard/tests/class_object/is_a.phpt
@@ -6,22 +6,22 @@ is_a and is_subclass_of behaviour (with and without autoload)
interface if_a {
function f_a();
}
-
+
interface if_b extends if_a {
function f_b();
}
class base {
function _is_a($sub) {
-
+
echo "\n>>> With Defined class\n";
echo str_pad('is_a( OBJECT:'.get_class($this).', '.$sub.') = ', 60) . (is_a($this, $sub) ? 'yes' : 'no')."\n";
echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_a(get_class($this), $sub) ? 'yes' : 'no')."\n";
- echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.', true) = ', 60). (is_a(get_class($this), $sub, true) ? 'yes' : 'no')."\n";
+ echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.', true) = ', 60). (is_a(get_class($this), $sub, true) ? 'yes' : 'no')."\n";
echo str_pad('is_subclass_of( OBJECT:'.get_class($this).', '.$sub.') = ', 60). (is_subclass_of($this, $sub) ? 'yes' : 'no')."\n";
echo str_pad('is_subclass_of( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_subclass_of(get_class($this), $sub) ? 'yes' : 'no')."\n";
echo str_pad('is_subclass_of( STRING:'.get_class($this).', '.$sub.',false) = ', 60). (is_subclass_of(get_class($this), $sub , false) ? 'yes' : 'no')."\n";
-
+
// with autoload options..
echo ">>> With Undefined\n";
echo str_pad('is_a( STRING:undefB, '.$sub.',true) = ', 60). (is_a('undefB', $sub, true) ? 'yes' : 'no')."\n";
@@ -31,8 +31,8 @@ class base {
}
function test() {
echo $this->_is_a('base');
- echo $this->_is_a('derived_a');
- echo $this->_is_a('if_a');
+ echo $this->_is_a('derived_a');
+ echo $this->_is_a('if_a');
echo $this->_is_a('undefA');
echo "\n";
}
@@ -75,7 +75,7 @@ $t->test();
$t = new derived_b();
$t->test();
-
+
diff --git a/ext/standard/tests/class_object/is_a_error_001.phpt b/ext/standard/tests/class_object/is_a_error_001.phpt
index 0c106ee4f4..d41d37b44b 100644
--- a/ext/standard/tests/class_object/is_a_error_001.phpt
+++ b/ext/standard/tests/class_object/is_a_error_001.phpt
@@ -5,7 +5,7 @@ Test is_a() function : error conditions - wrong number of args
/* Prototype : proto bool is_a(object object, string class_name, bool allow_string)
* Description: Returns true if the object is of this class or has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing is_a() : error conditions ***\n";
diff --git a/ext/standard/tests/class_object/is_a_variation_001.phpt b/ext/standard/tests/class_object/is_a_variation_001.phpt
index 228141a8de..9bd1023c52 100644
--- a/ext/standard/tests/class_object/is_a_variation_001.phpt
+++ b/ext/standard/tests/class_object/is_a_variation_001.phpt
@@ -5,7 +5,7 @@ Test is_a() function : usage variations - wrong type for arg 1
/* Prototype : proto bool is_a(object object, string class_name)
* Description: Returns true if the object is of this class or has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
// Note: basic use cases in Zend/tests/is_a.phpt
echo "*** Testing is_a() : usage variations ***\n";
@@ -57,7 +57,7 @@ $values = array(
// string data
"string",
'String',
-
+
// undefined data
$undefined_var,
diff --git a/ext/standard/tests/class_object/is_a_variation_002.phpt b/ext/standard/tests/class_object/is_a_variation_002.phpt
index 00a7e3e3ca..5ba2c80bcc 100644
--- a/ext/standard/tests/class_object/is_a_variation_002.phpt
+++ b/ext/standard/tests/class_object/is_a_variation_002.phpt
@@ -5,7 +5,7 @@ Test is_a() function : usage variations - wrong type for arg 2
/* Prototype : proto bool is_a(object object, string class_name)
* Description: Returns true if the object is of this class or has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
class C {
diff --git a/ext/standard/tests/class_object/is_a_variation_003.phpt b/ext/standard/tests/class_object/is_a_variation_003.phpt
index 5cf33ebdd2..1ee193a7c8 100644
--- a/ext/standard/tests/class_object/is_a_variation_003.phpt
+++ b/ext/standard/tests/class_object/is_a_variation_003.phpt
@@ -5,7 +5,7 @@ Test is_a() function : usage variations - case sensitivity
/* Prototype : proto bool is_a(object object, string class_name)
* Description: Returns true if the object is of this class or has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing is_a() : usage variations ***\n";
diff --git a/ext/standard/tests/class_object/is_subclass_of_error_001.phpt b/ext/standard/tests/class_object/is_subclass_of_error_001.phpt
index 62ccf6d342..3224e56e9e 100644
--- a/ext/standard/tests/class_object/is_subclass_of_error_001.phpt
+++ b/ext/standard/tests/class_object/is_subclass_of_error_001.phpt
@@ -5,7 +5,7 @@ Test is_subclass_of() function : wrong number of args
/* Prototype : proto bool is_subclass_of(object object, string class_name)
* Description: Returns true if the object has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing is_subclass_of() : error conditions ***\n";
diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt
index b1cb553abd..d2f8f0745b 100644
--- a/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt
+++ b/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt
@@ -5,7 +5,7 @@ Test is_subclass_of() function : usage variations - unexpected type for arg 1
/* Prototype : proto bool is_subclass_of(object object, string class_name)
* Description: Returns true if the object has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
// Note: basic use cases in Zend/tests/is_a.phpt
spl_autoload_register(function ($className) {
diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_002.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_002.phpt
index 85f697654d..150ea3da9c 100644
--- a/ext/standard/tests/class_object/is_subclass_of_variation_002.phpt
+++ b/ext/standard/tests/class_object/is_subclass_of_variation_002.phpt
@@ -5,7 +5,7 @@ Test is_subclass_of() function : usage variations - unexpected type for arg 2
/* Prototype : proto bool is_subclass_of(object object, string class_name)
* Description: Returns true if the object has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
spl_autoload_register(function ($className) {
diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_003.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_003.phpt
index 3497ecc1f8..e77de23a1e 100644
--- a/ext/standard/tests/class_object/is_subclass_of_variation_003.phpt
+++ b/ext/standard/tests/class_object/is_subclass_of_variation_003.phpt
@@ -5,7 +5,7 @@ Test is_subclass_of() function : usage variations - case sensitivity
/* Prototype : proto bool is_subclass_of(object object, string class_name)
* Description: Returns true if the object has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing is_subclass_of() : usage variations ***\n";
diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt
index adecd5003d..4d2bef3cb3 100644
--- a/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt
+++ b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt
@@ -5,7 +5,7 @@ Test is_subclass_of() function : usage variations - unexpected type for arg 1 w
/* Prototype : proto bool is_subclass_of(object object, string class_name)
* Description: Returns true if the object has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
// Note: basic use cases in Zend/tests/is_a.phpt
spl_autoload_register(function ($className) {
diff --git a/ext/standard/tests/class_object/method_exists_basic_001.phpt b/ext/standard/tests/class_object/method_exists_basic_001.phpt
index 44eaefbf56..282ca4a4f6 100644
--- a/ext/standard/tests/class_object/method_exists_basic_001.phpt
+++ b/ext/standard/tests/class_object/method_exists_basic_001.phpt
@@ -5,7 +5,7 @@ method_exists() on userspace classes; static & non-static methods with various v
/* Prototype : proto bool is_subclass_of(object object, string class_name)
* Description: Returns true if the object has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
Class B {
@@ -14,7 +14,7 @@ Class B {
private function inherit_priv() {}
static public function inherit_static_pub() {}
static protected function inherit_static_prot() {}
- static private function inherit_static_priv() {}
+ static private function inherit_static_priv() {}
}
Class C extends B {
diff --git a/ext/standard/tests/class_object/method_exists_basic_002.phpt b/ext/standard/tests/class_object/method_exists_basic_002.phpt
index 6a17786b32..fc64ee49a9 100644
--- a/ext/standard/tests/class_object/method_exists_basic_002.phpt
+++ b/ext/standard/tests/class_object/method_exists_basic_002.phpt
@@ -5,7 +5,7 @@ method_exists() on internal classes
/* Prototype : proto bool is_subclass_of(object object, string class_name)
* Description: Returns true if the object has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo " ---(Internal classes, using string class name)---\n";
diff --git a/ext/standard/tests/class_object/method_exists_basic_003.phpt b/ext/standard/tests/class_object/method_exists_basic_003.phpt
index c10763267c..7714341c87 100644
--- a/ext/standard/tests/class_object/method_exists_basic_003.phpt
+++ b/ext/standard/tests/class_object/method_exists_basic_003.phpt
@@ -5,11 +5,11 @@ method_exists() on non-existent class, with __autoload().
/* Prototype : proto bool is_subclass_of(object object, string class_name)
* Description: Returns true if the object has this class as one of its parents
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
spl_autoload_register(function ($name) {
- echo "In autoload($name)\n";
+ echo "In autoload($name)\n";
});
var_dump(method_exists('UndefC', 'func'));
diff --git a/ext/standard/tests/class_object/method_exists_error_001.phpt b/ext/standard/tests/class_object/method_exists_error_001.phpt
index 929d84a76f..1f645d6717 100644
--- a/ext/standard/tests/class_object/method_exists_error_001.phpt
+++ b/ext/standard/tests/class_object/method_exists_error_001.phpt
@@ -5,7 +5,7 @@ Test method_exists() function : error conditions - wrong number of args
/* Prototype : proto bool method_exists(object object, string method)
* Description: Checks if the class method exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing method_exists() : error conditions ***\n";
diff --git a/ext/standard/tests/class_object/method_exists_variation_001.phpt b/ext/standard/tests/class_object/method_exists_variation_001.phpt
index b41a1a11ae..aa7e1be429 100644
--- a/ext/standard/tests/class_object/method_exists_variation_001.phpt
+++ b/ext/standard/tests/class_object/method_exists_variation_001.phpt
@@ -5,7 +5,7 @@ Test method_exists() function : usage variations - unexpected type for arg 1
/* Prototype : proto bool method_exists(object object, string method)
* Description: Checks if the class method exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
spl_autoload_register(function ($className) {
diff --git a/ext/standard/tests/class_object/method_exists_variation_002.phpt b/ext/standard/tests/class_object/method_exists_variation_002.phpt
index 5c924bdc5a..e78181375c 100644
--- a/ext/standard/tests/class_object/method_exists_variation_002.phpt
+++ b/ext/standard/tests/class_object/method_exists_variation_002.phpt
@@ -5,7 +5,7 @@ Test method_exists() function : usage variations - unexpected type for arg 2
/* Prototype : proto bool method_exists(object object, string method)
* Description: Checks if the class method exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
spl_autoload_register(function ($className) {
diff --git a/ext/standard/tests/class_object/method_exists_variation_003.phpt b/ext/standard/tests/class_object/method_exists_variation_003.phpt
index f82dc01b9c..cb0e0026d6 100644
--- a/ext/standard/tests/class_object/method_exists_variation_003.phpt
+++ b/ext/standard/tests/class_object/method_exists_variation_003.phpt
@@ -5,7 +5,7 @@ Test method_exists() function : variation - Case sensitivity
/* Prototype : proto bool method_exists(object object, string method)
* Description: Checks if the class method exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing method_exists() : variation ***\n";
diff --git a/ext/standard/tests/class_object/property_exists_error.phpt b/ext/standard/tests/class_object/property_exists_error.phpt
index e40e08b32a..4d51a64507 100644
--- a/ext/standard/tests/class_object/property_exists_error.phpt
+++ b/ext/standard/tests/class_object/property_exists_error.phpt
@@ -5,7 +5,7 @@ Test property_exists() function : error conditions
/* Prototype : bool property_exists(mixed object_or_class, string property_name)
* Description: Checks if the object or class has a property
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing property_exists() : error conditions ***\n";
diff --git a/ext/standard/tests/class_object/property_exists_variation1.phpt b/ext/standard/tests/class_object/property_exists_variation1.phpt
index 1a9ff32659..7a88449222 100644
--- a/ext/standard/tests/class_object/property_exists_variation1.phpt
+++ b/ext/standard/tests/class_object/property_exists_variation1.phpt
@@ -5,7 +5,7 @@ Test property_exists() function : class auto loading
/* Prototype : bool property_exists(mixed object_or_class, string property_name)
* Description: Checks if the object or class has a property
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing property_exists() : class auto loading ***\n";
diff --git a/ext/standard/tests/class_object/trait_class_exists_variation_003.phpt b/ext/standard/tests/class_object/trait_class_exists_variation_003.phpt
index 6548c32687..c865705b14 100644
--- a/ext/standard/tests/class_object/trait_class_exists_variation_003.phpt
+++ b/ext/standard/tests/class_object/trait_class_exists_variation_003.phpt
@@ -5,7 +5,7 @@ Test trait_exists() function : usage variations - case sensitivity
/* Prototype : proto bool trait_exists(string traitname [, bool autoload])
* Description: Checks if the trait exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
trait caseSensitivityTest {}
diff --git a/ext/standard/tests/class_object/trait_exists_basic_001.phpt b/ext/standard/tests/class_object/trait_exists_basic_001.phpt
index d587ec7d78..d47ba7ad46 100644
--- a/ext/standard/tests/class_object/trait_exists_basic_001.phpt
+++ b/ext/standard/tests/class_object/trait_exists_basic_001.phpt
@@ -5,7 +5,7 @@ Test trait_exists() function : basic functionality
/* Prototype : proto bool trait_exists(string traitname [, bool autoload])
* Description: Checks if the trait exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing trait_exists() : basic functionality ***\n";
diff --git a/ext/standard/tests/class_object/trait_exists_error_001.phpt b/ext/standard/tests/class_object/trait_exists_error_001.phpt
index b80f06ed2a..a60788b53d 100644
--- a/ext/standard/tests/class_object/trait_exists_error_001.phpt
+++ b/ext/standard/tests/class_object/trait_exists_error_001.phpt
@@ -5,7 +5,7 @@ Test trait_exists() function : error conditions (wrong number of arguments)
/* Prototype : proto bool trait_exists(string traitname [, bool autoload])
* Description: Checks if the trait exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
/**
diff --git a/ext/standard/tests/class_object/trait_exists_variation_001.phpt b/ext/standard/tests/class_object/trait_exists_variation_001.phpt
index 4fd2b8d5af..39a843a167 100644
--- a/ext/standard/tests/class_object/trait_exists_variation_001.phpt
+++ b/ext/standard/tests/class_object/trait_exists_variation_001.phpt
@@ -5,7 +5,7 @@ Test trait_exists() function : usage variations - unexpected types for argument
/* Prototype : proto bool trait_exists(string traitname [, bool autoload])
* Description: Checks if the trait exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
spl_autoload_register(function ($traitName) {
diff --git a/ext/standard/tests/class_object/trait_exists_variation_002.phpt b/ext/standard/tests/class_object/trait_exists_variation_002.phpt
index fdd2da2dbb..bdf1e2cb82 100644
--- a/ext/standard/tests/class_object/trait_exists_variation_002.phpt
+++ b/ext/standard/tests/class_object/trait_exists_variation_002.phpt
@@ -5,7 +5,7 @@ Test trait_exists() function : usage variations - unexpected types for argument
/* Prototype : proto bool trait_exists(string traitname [, bool autoload])
* Description: Checks if the trait exists
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
spl_autoload_register(function ($traitName) {
diff --git a/ext/standard/tests/dir/chdir_variation1-win32-mb.phpt b/ext/standard/tests/dir/chdir_variation1-win32-mb.phpt
index 90402f4c49..0383410cb7 100644
--- a/ext/standard/tests/dir/chdir_variation1-win32-mb.phpt
+++ b/ext/standard/tests/dir/chdir_variation1-win32-mb.phpt
@@ -31,11 +31,11 @@ unset ($unset_var);
// get a class
class classA {
var $dir_path;
-
+
function __construct($dir) {
$this->dir_path = $dir;
}
-
+
public function __toString() {
return "$this->dir_path";
}
@@ -74,7 +74,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -84,7 +84,7 @@ $inputs = array(
/*19*/ "$dir_path",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA($dir_path),
diff --git a/ext/standard/tests/dir/chdir_variation1.phpt b/ext/standard/tests/dir/chdir_variation1.phpt
index c4c0431ccc..bad543fa6e 100644
--- a/ext/standard/tests/dir/chdir_variation1.phpt
+++ b/ext/standard/tests/dir/chdir_variation1.phpt
@@ -25,11 +25,11 @@ unset ($unset_var);
// get a class
class classA {
var $dir_path;
-
+
function __construct($dir) {
$this->dir_path = $dir;
}
-
+
public function __toString() {
return "$this->dir_path";
}
@@ -68,7 +68,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -78,7 +78,7 @@ $inputs = array(
/*19*/ "$dir_path",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA($dir_path),
diff --git a/ext/standard/tests/dir/closedir_variation1.phpt b/ext/standard/tests/dir/closedir_variation1.phpt
index 1f917b2ab5..9e46f114fd 100644
--- a/ext/standard/tests/dir/closedir_variation1.phpt
+++ b/ext/standard/tests/dir/closedir_variation1.phpt
@@ -56,7 +56,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -66,7 +66,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/dir/dir_basic-win32-mb.phpt b/ext/standard/tests/dir/dir_basic-win32-mb.phpt
index d562c0b7e3..d6c8ebca8f 100644
--- a/ext/standard/tests/dir/dir_basic-win32-mb.phpt
+++ b/ext/standard/tests/dir/dir_basic-win32-mb.phpt
@@ -8,7 +8,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
?>
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
diff --git a/ext/standard/tests/dir/dir_basic.phpt b/ext/standard/tests/dir/dir_basic.phpt
index da364b9b60..68ac552a6f 100644
--- a/ext/standard/tests/dir/dir_basic.phpt
+++ b/ext/standard/tests/dir/dir_basic.phpt
@@ -2,7 +2,7 @@
Test dir() function : basic functionality
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
diff --git a/ext/standard/tests/dir/dir_error.phpt b/ext/standard/tests/dir/dir_error.phpt
index f2ef25cc87..6f14188e8b 100644
--- a/ext/standard/tests/dir/dir_error.phpt
+++ b/ext/standard/tests/dir/dir_error.phpt
@@ -2,7 +2,7 @@
Test dir() function : error conditions
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
diff --git a/ext/standard/tests/dir/dir_variation2-win32-mb.phpt b/ext/standard/tests/dir/dir_variation2-win32-mb.phpt
index 33d692c320..f538b92f87 100644
--- a/ext/standard/tests/dir/dir_variation2-win32-mb.phpt
+++ b/ext/standard/tests/dir/dir_variation2-win32-mb.phpt
@@ -8,7 +8,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
?>
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
diff --git a/ext/standard/tests/dir/dir_variation2.phpt b/ext/standard/tests/dir/dir_variation2.phpt
index 765417c62c..df6320c00a 100644
--- a/ext/standard/tests/dir/dir_variation2.phpt
+++ b/ext/standard/tests/dir/dir_variation2.phpt
@@ -2,7 +2,7 @@
Test dir() function : usage variations - unexpected value for 'context' argument
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
diff --git a/ext/standard/tests/dir/dir_variation3.phpt b/ext/standard/tests/dir/dir_variation3.phpt
index f8d325874e..b6cc96ddbb 100644
--- a/ext/standard/tests/dir/dir_variation3.phpt
+++ b/ext/standard/tests/dir/dir_variation3.phpt
@@ -17,7 +17,7 @@ unlink($filename);
?>
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
diff --git a/ext/standard/tests/dir/dir_variation4-win32-mb.phpt b/ext/standard/tests/dir/dir_variation4-win32-mb.phpt
index 156b836562..71fe0b2979 100644
--- a/ext/standard/tests/dir/dir_variation4-win32-mb.phpt
+++ b/ext/standard/tests/dir/dir_variation4-win32-mb.phpt
@@ -8,7 +8,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
?>
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
diff --git a/ext/standard/tests/dir/dir_variation4.phpt b/ext/standard/tests/dir/dir_variation4.phpt
index 62b10b2a86..ae57413754 100644
--- a/ext/standard/tests/dir/dir_variation4.phpt
+++ b/ext/standard/tests/dir/dir_variation4.phpt
@@ -2,7 +2,7 @@
Test dir() function : usage variations - operate on previously opened directory
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
diff --git a/ext/standard/tests/dir/dir_variation5.phpt b/ext/standard/tests/dir/dir_variation5.phpt
index c7450eafc0..e26b925311 100644
--- a/ext/standard/tests/dir/dir_variation5.phpt
+++ b/ext/standard/tests/dir/dir_variation5.phpt
@@ -8,7 +8,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
?>
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
diff --git a/ext/standard/tests/dir/dir_variation6.phpt b/ext/standard/tests/dir/dir_variation6.phpt
index 71cbf1fa17..3fdfc789e2 100644
--- a/ext/standard/tests/dir/dir_variation6.phpt
+++ b/ext/standard/tests/dir/dir_variation6.phpt
@@ -8,7 +8,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
?>
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
diff --git a/ext/standard/tests/dir/dir_variation7.phpt b/ext/standard/tests/dir/dir_variation7.phpt
index ca168f90aa..ebf4a9ac24 100644
--- a/ext/standard/tests/dir/dir_variation7.phpt
+++ b/ext/standard/tests/dir/dir_variation7.phpt
@@ -17,13 +17,13 @@ unlink($filename);
?>
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
*/
-/*
+/*
* remove the execute permission from the parent dir and test dir() on child dir
* 1) remove write & execute permission from the 1st parent and test dir()
* 2) remove execute permission from 2nd parent and test dir()
diff --git a/ext/standard/tests/dir/dir_variation8.phpt b/ext/standard/tests/dir/dir_variation8.phpt
index 5ecf449923..9d24e4ac1a 100644
--- a/ext/standard/tests/dir/dir_variation8.phpt
+++ b/ext/standard/tests/dir/dir_variation8.phpt
@@ -8,13 +8,13 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
?>
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
*/
-/*
+/*
* Create more than one temporary directory & subdirectory and check if dir() function can open
* those directories when wildcard characters are used to refer to them.
*/
@@ -31,7 +31,7 @@ $sub_dir_path = $dir_path."/sub_dir1";
/* with different wildcard characters */
-echo "-- wildcard = '*' --\n";
+echo "-- wildcard = '*' --\n";
var_dump( dir($file_path."/dir_var*") );
var_dump( dir($file_path."/*") );
diff --git a/ext/standard/tests/dir/dir_variation9.phpt b/ext/standard/tests/dir/dir_variation9.phpt
index 458d0b896f..3756ffd42d 100644
--- a/ext/standard/tests/dir/dir_variation9.phpt
+++ b/ext/standard/tests/dir/dir_variation9.phpt
@@ -8,13 +8,13 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
?>
--FILE--
<?php
-/*
+/*
* Prototype : object dir(string $directory[, resource $context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Source code: ext/standard/dir.c
*/
-/*
+/*
* Checking the behavior of dir() function by passing directories which
* have valid and invalid relative path.
*/
diff --git a/ext/standard/tests/dir/opendir_variation2-win32-mb.phpt b/ext/standard/tests/dir/opendir_variation2-win32-mb.phpt
index 5d43962378..d3aeec213f 100644
--- a/ext/standard/tests/dir/opendir_variation2-win32-mb.phpt
+++ b/ext/standard/tests/dir/opendir_variation2-win32-mb.phpt
@@ -33,7 +33,7 @@ unset ($unset_var);
// get a class
class classA
{
- public function __toString()
+ public function __toString()
{
return "Class A object";
}
@@ -72,7 +72,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -82,7 +82,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/dir/opendir_variation2.phpt b/ext/standard/tests/dir/opendir_variation2.phpt
index ea9cac504d..ea75955035 100644
--- a/ext/standard/tests/dir/opendir_variation2.phpt
+++ b/ext/standard/tests/dir/opendir_variation2.phpt
@@ -27,7 +27,7 @@ unset ($unset_var);
// get a class
class classA
{
- public function __toString()
+ public function __toString()
{
return "Class A object";
}
@@ -66,7 +66,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -76,7 +76,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/dir/opendir_variation6-win32.phpt b/ext/standard/tests/dir/opendir_variation6-win32.phpt
index f54a2ad4ae..df9fcbb75b 100644
--- a/ext/standard/tests/dir/opendir_variation6-win32.phpt
+++ b/ext/standard/tests/dir/opendir_variation6-win32.phpt
@@ -28,7 +28,7 @@ mkdir($sub_dir_path);
// with different wildcard characters
-echo "\n-- Wildcard = '*' --\n";
+echo "\n-- Wildcard = '*' --\n";
var_dump( opendir($file_path . "/opendir_var*") );
var_dump( opendir($file_path . "/*") );
diff --git a/ext/standard/tests/dir/opendir_variation6.phpt b/ext/standard/tests/dir/opendir_variation6.phpt
index f3fc0bd6df..4494772dcc 100644
--- a/ext/standard/tests/dir/opendir_variation6.phpt
+++ b/ext/standard/tests/dir/opendir_variation6.phpt
@@ -28,7 +28,7 @@ mkdir($sub_dir_path);
// with different wildcard characters
-echo "\n-- Wildcard = '*' --\n";
+echo "\n-- Wildcard = '*' --\n";
var_dump( opendir($file_path . "/opendir_var*") );
var_dump( opendir($file_path . "/*") );
diff --git a/ext/standard/tests/dir/opendir_variation7.phpt b/ext/standard/tests/dir/opendir_variation7.phpt
index 2ad41b1d31..c16da417e2 100644
--- a/ext/standard/tests/dir/opendir_variation7.phpt
+++ b/ext/standard/tests/dir/opendir_variation7.phpt
@@ -68,7 +68,7 @@ foreach ($permission_values as $perm) {
var_dump( chmod($dir_path, $perm) );
var_dump($dh = opendir($dir_path));
-
+
if (is_resource($dh)) {
closedir($dh);
}
diff --git a/ext/standard/tests/dir/readdir_error-win32-mb.phpt b/ext/standard/tests/dir/readdir_error-win32-mb.phpt
index 1388987259..9938c71f22 100644
--- a/ext/standard/tests/dir/readdir_error-win32-mb.phpt
+++ b/ext/standard/tests/dir/readdir_error-win32-mb.phpt
@@ -38,7 +38,7 @@ closedir($dir_handle);
<?php
$path = dirname(__FILE__) . "/私はガラスを食べられますreaddir_error";
rmdir($path);
-?>
+?>
--EXPECTF--
*** Testing readdir() : error conditions ***
diff --git a/ext/standard/tests/dir/readdir_error.phpt b/ext/standard/tests/dir/readdir_error.phpt
index 23ba3dfa63..88cfb7a9fa 100644
--- a/ext/standard/tests/dir/readdir_error.phpt
+++ b/ext/standard/tests/dir/readdir_error.phpt
@@ -32,7 +32,7 @@ closedir($dir_handle);
<?php
$path = dirname(__FILE__) . "/readdir_error";
rmdir($path);
-?>
+?>
--EXPECTF--
*** Testing readdir() : error conditions ***
diff --git a/ext/standard/tests/dir/readdir_variation1.phpt b/ext/standard/tests/dir/readdir_variation1.phpt
index 7b282dbb9e..25efaf10bd 100644
--- a/ext/standard/tests/dir/readdir_variation1.phpt
+++ b/ext/standard/tests/dir/readdir_variation1.phpt
@@ -55,7 +55,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -65,7 +65,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/dir/readdir_variation3-win32-mb.phpt b/ext/standard/tests/dir/readdir_variation3-win32-mb.phpt
index 2d1e6a6fba..5be20d93c2 100644
--- a/ext/standard/tests/dir/readdir_variation3-win32-mb.phpt
+++ b/ext/standard/tests/dir/readdir_variation3-win32-mb.phpt
@@ -34,7 +34,7 @@ create_files($path_sub, 2);
$dir_handle = opendir($path_top);
while(FALSE !== ($file = readdir($dir_handle))) {
-
+
// different OS order files differently so will
// store file names into an array so can use sorted in expected output
$contents[] = $file;
diff --git a/ext/standard/tests/dir/readdir_variation3.phpt b/ext/standard/tests/dir/readdir_variation3.phpt
index 8925b20ab4..eb6c31d6ce 100644
--- a/ext/standard/tests/dir/readdir_variation3.phpt
+++ b/ext/standard/tests/dir/readdir_variation3.phpt
@@ -28,7 +28,7 @@ create_files($path_sub, 2);
$dir_handle = opendir($path_top);
while(FALSE !== ($file = readdir($dir_handle))) {
-
+
// different OS order files differently so will
// store file names into an array so can use sorted in expected output
$contents[] = $file;
diff --git a/ext/standard/tests/dir/readdir_variation4-win32-mb.phpt b/ext/standard/tests/dir/readdir_variation4-win32-mb.phpt
index 6540d8e571..61116ab9c2 100644
--- a/ext/standard/tests/dir/readdir_variation4-win32-mb.phpt
+++ b/ext/standard/tests/dir/readdir_variation4-win32-mb.phpt
@@ -42,7 +42,7 @@ $inputs = array(
12.3456789000e10,
12.3456789000E-10,
.5,
-
+
// empty data
/*10*/ "",
array(),
@@ -66,11 +66,11 @@ foreach($inputs as $key => $input) {
echo "\n-- Call to readdir() --\n";
$dir_handle = opendir($dir_path);
while(FALSE !== ($file = readdir($dir_handle))){
-
+
// different OS order files differently so will
// store file names into an array so can use sorted in expected output
$contents[] = $file;
-
+
// remove files while going through directory
@unlink($dir_path . $file);
}
diff --git a/ext/standard/tests/dir/readdir_variation4.phpt b/ext/standard/tests/dir/readdir_variation4.phpt
index 9b04a986a6..d831394e8a 100644
--- a/ext/standard/tests/dir/readdir_variation4.phpt
+++ b/ext/standard/tests/dir/readdir_variation4.phpt
@@ -36,7 +36,7 @@ $inputs = array(
12.3456789000e10,
12.3456789000E-10,
.5,
-
+
// empty data
/*10*/ "",
array(),
@@ -60,11 +60,11 @@ foreach($inputs as $key => $input) {
echo "\n-- Call to readdir() --\n";
$dir_handle = opendir($dir_path);
while(FALSE !== ($file = readdir($dir_handle))){
-
+
// different OS order files differently so will
// store file names into an array so can use sorted in expected output
$contents[] = $file;
-
+
// remove files while going through directory
@unlink($dir_path . $file);
}
diff --git a/ext/standard/tests/dir/readdir_variation5.phpt b/ext/standard/tests/dir/readdir_variation5.phpt
index 8c12f13dfb..81b54139a8 100644
--- a/ext/standard/tests/dir/readdir_variation5.phpt
+++ b/ext/standard/tests/dir/readdir_variation5.phpt
@@ -55,7 +55,7 @@ $permission_values = array(
$iterator = 1;
foreach($permission_values as $perm) {
echo "\n-- Iteration $iterator --\n";
-
+
if (is_dir($dir_path)) {
chmod ($dir_path, 0777); // change dir permission to allow all operation
rmdir ($dir_path);
diff --git a/ext/standard/tests/dir/rewinddir_variation1.phpt b/ext/standard/tests/dir/rewinddir_variation1.phpt
index f99e84231d..833da1c5c5 100644
--- a/ext/standard/tests/dir/rewinddir_variation1.phpt
+++ b/ext/standard/tests/dir/rewinddir_variation1.phpt
@@ -56,7 +56,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -66,7 +66,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/dir/scandir_variation1.phpt b/ext/standard/tests/dir/scandir_variation1.phpt
index ccd5bb967a..dfdd0509cd 100644
--- a/ext/standard/tests/dir/scandir_variation1.phpt
+++ b/ext/standard/tests/dir/scandir_variation1.phpt
@@ -64,7 +64,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -74,7 +74,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/dir/scandir_variation2-mb.phpt b/ext/standard/tests/dir/scandir_variation2-mb.phpt
index 7ee58ad450..439d53a4df 100644
--- a/ext/standard/tests/dir/scandir_variation2-mb.phpt
+++ b/ext/standard/tests/dir/scandir_variation2-mb.phpt
@@ -64,7 +64,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -74,7 +74,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/dir/scandir_variation2.phpt b/ext/standard/tests/dir/scandir_variation2.phpt
index a3ee88a3be..95200649ed 100644
--- a/ext/standard/tests/dir/scandir_variation2.phpt
+++ b/ext/standard/tests/dir/scandir_variation2.phpt
@@ -64,7 +64,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -74,7 +74,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/dir/scandir_variation3-win32-mb.phpt b/ext/standard/tests/dir/scandir_variation3-win32-mb.phpt
index 4a81d209e5..3a5391011d 100644
--- a/ext/standard/tests/dir/scandir_variation3-win32-mb.phpt
+++ b/ext/standard/tests/dir/scandir_variation3-win32-mb.phpt
@@ -69,7 +69,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -79,7 +79,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/dir/scandir_variation3.phpt b/ext/standard/tests/dir/scandir_variation3.phpt
index a75396aecd..9630373b76 100644
--- a/ext/standard/tests/dir/scandir_variation3.phpt
+++ b/ext/standard/tests/dir/scandir_variation3.phpt
@@ -63,7 +63,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -73,7 +73,7 @@ $inputs = array(
/*19*/ "string",
'string',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/dir/scandir_variation5.phpt b/ext/standard/tests/dir/scandir_variation5.phpt
index d6d3c79e40..0835af0713 100644
--- a/ext/standard/tests/dir/scandir_variation5.phpt
+++ b/ext/standard/tests/dir/scandir_variation5.phpt
@@ -30,7 +30,7 @@ unlink($filename);
echo "*** Testing scandir() : usage variations ***\n";
-/*
+/*
* create the temporary directory :
* scandir_variation5 ( parent )
* |-> sub_dir ( sub parent )
diff --git a/ext/standard/tests/dir/scandir_variation6.phpt b/ext/standard/tests/dir/scandir_variation6.phpt
index 754c615290..0a528466a4 100644
--- a/ext/standard/tests/dir/scandir_variation6.phpt
+++ b/ext/standard/tests/dir/scandir_variation6.phpt
@@ -29,7 +29,7 @@ mkdir($sub_dir_path);
// with different wildcard characters
-echo "\n-- Wildcard = '*' --\n";
+echo "\n-- Wildcard = '*' --\n";
var_dump( scandir($file_path . "/scandir_var*") );
var_dump( scandir($file_path . "/*") );
diff --git a/ext/standard/tests/dir/scandir_variation7.phpt b/ext/standard/tests/dir/scandir_variation7.phpt
index 6ef4b67ce9..63fbdbf423 100644
--- a/ext/standard/tests/dir/scandir_variation7.phpt
+++ b/ext/standard/tests/dir/scandir_variation7.phpt
@@ -53,7 +53,7 @@ $permission_values = array(
$iterator = 1;
foreach ($permission_values as $perm) {
echo "\n-- Iteration $iterator --\n";
-
+
// Remove the directory if already exists
if (is_dir($dir_path)){
chmod ($dir_path, 0777); // change dir permission to allow all operation
@@ -63,7 +63,7 @@ foreach ($permission_values as $perm) {
// change the dir permisson to test dir on it
var_dump( chmod($dir_path, $perm) );
-
+
var_dump(scandir($dir_path));
$iterator++;
}
diff --git a/ext/standard/tests/dir/scandir_variation8-win32-mb.phpt b/ext/standard/tests/dir/scandir_variation8-win32-mb.phpt
index f30645da45..ab6cb11036 100644
--- a/ext/standard/tests/dir/scandir_variation8-win32-mb.phpt
+++ b/ext/standard/tests/dir/scandir_variation8-win32-mb.phpt
@@ -42,7 +42,7 @@ $inputs = array(
12.3456789000e10,
12.3456789000E-10,
.5,
-
+
// empty data
/*10*/ "",
array(),
diff --git a/ext/standard/tests/dir/scandir_variation8.phpt b/ext/standard/tests/dir/scandir_variation8.phpt
index 4e96e04a4e..73aa60f11f 100644
--- a/ext/standard/tests/dir/scandir_variation8.phpt
+++ b/ext/standard/tests/dir/scandir_variation8.phpt
@@ -36,7 +36,7 @@ $inputs = array(
12.3456789000e10,
12.3456789000E-10,
.5,
-
+
// empty data
/*10*/ "",
array(),
diff --git a/ext/standard/tests/directory/DirectoryClass_basic_001.phpt b/ext/standard/tests/directory/DirectoryClass_basic_001.phpt
index 0accb2c85f..73aac5b43c 100644
--- a/ext/standard/tests/directory/DirectoryClass_basic_001.phpt
+++ b/ext/standard/tests/directory/DirectoryClass_basic_001.phpt
@@ -2,7 +2,7 @@
Directory class behaviour.
--FILE--
<?php
-/*
+/*
* Prototype: object dir(string directory[, resource context])
* Description: Directory class with properties, handle and class and methods read, rewind and close
* Class is defined in ext/standard/dir.c
diff --git a/ext/standard/tests/directory/bug74589_utf8.phpt b/ext/standard/tests/directory/bug74589_utf8.phpt
index 686e005b8a..deba03c582 100644
--- a/ext/standard/tests/directory/bug74589_utf8.phpt
+++ b/ext/standard/tests/directory/bug74589_utf8.phpt
@@ -33,7 +33,7 @@ echo shell_exec("$php -n $test_file");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
string(%d) "%sbug74589_新建文件夹"
string(%d) "%sbug74589_新建文件夹%etest.php"
bool(true)
diff --git a/ext/standard/tests/file/004.phpt b/ext/standard/tests/file/004.phpt
index f1fab47ac3..3fead8b215 100644
--- a/ext/standard/tests/file/004.phpt
+++ b/ext/standard/tests/file/004.phpt
@@ -20,7 +20,7 @@ file_put_contents() test
echo 'FAIL';
}
echo "\n";
-
+
$old_int = $int = time() / 1000;
$ret = file_put_contents("TEST3", $int);
echo "Float Test: ";
@@ -30,7 +30,7 @@ file_put_contents() test
echo 'FAIL';
}
echo "\n";
-
+
$ret = file_put_contents("TEST4", __FILE__);
echo "Bool Test: ";
if ($ret !== FALSE && md5(__FILE__) == md5_file("TEST4")) {
@@ -39,7 +39,7 @@ file_put_contents() test
echo 'FAIL';
}
echo "\n";
-
+
$ret = @file_put_contents("TEST5", $_SERVER);
echo "Array Test: ";
if ($ret !== FALSE && @md5(implode('', $_SERVER)) == md5_file("TEST5")) {
diff --git a/ext/standard/tests/file/005_basic.phpt b/ext/standard/tests/file/005_basic.phpt
index 5ed1118902..329fd15773 100644
--- a/ext/standard/tests/file/005_basic.phpt
+++ b/ext/standard/tests/file/005_basic.phpt
@@ -39,7 +39,7 @@ echo "\n*** Done ***\n";
unlink(dirname(__FILE__)."/005_basic.tmp");
unlink(dirname(__FILE__)."/005_basic");
?>
---EXPECTF--
+--EXPECTF--
*** Testing the basic functionality with file ***
%d:%s:%s:%d:%d:%d
%d:%s:%s:%d:%d:%d
diff --git a/ext/standard/tests/file/005_error.phpt b/ext/standard/tests/file/005_error.phpt
index 20ba3a7fc0..d8bf6c5ee9 100644
--- a/ext/standard/tests/file/005_error.phpt
+++ b/ext/standard/tests/file/005_error.phpt
@@ -56,7 +56,7 @@ var_dump( touch(__FILE__, 10, 100, 123) );
echo "\nDone";
?>
---EXPECTF--
+--EXPECTF--
*** Testing error conditions ***
-- Testing with Non-existing files --
diff --git a/ext/standard/tests/file/005_variation-win32.phpt b/ext/standard/tests/file/005_variation-win32.phpt
index ffcdc33cd6..30c627abf1 100644
--- a/ext/standard/tests/file/005_variation-win32.phpt
+++ b/ext/standard/tests/file/005_variation-win32.phpt
@@ -31,13 +31,13 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
Description: Prints access, modification and change times of a file
*/
function stat_fn( $filename ) {
- echo "-- File access time is => ";
+ echo "-- File access time is => ";
print( @date( 'Y:M:D:H:i:s', fileatime($filename) ) )."\n";
clearstatcache();
- echo "-- File modification time is => ";
+ echo "-- File modification time is => ";
print( @date( 'Y:M:D:H:i:s', filemtime($filename) ) )."\n";
clearstatcache();
- echo "-- inode change time is => ";
+ echo "-- inode change time is => ";
print( @date( 'Y:M:D:H:i:s', filectime($filename) ) )."\n";
clearstatcache();
@@ -120,7 +120,7 @@ stat_fn($file_name2);
sleep(2);
/* set to access(creation time of the file) time */
-var_dump( touch($file_name2, @date(fileatime($file_name2))) );
+var_dump( touch($file_name2, @date(fileatime($file_name2))) );
stat_fn($file_name2);
sleep(2);
@@ -134,8 +134,8 @@ var_dump( touch($file_name2, 10) );
stat_fn($file_name2);
var_dump( touch($file_name2, 10, 20) );
stat_fn($file_name2);
-
-/* touch() after renaming the file */
+
+/* touch() after renaming the file */
rename($file_name2, "$file_path/005_variation_touch_new.tmp");
stat_fn("$file_path/005_variation_touch_new.tmp");
diff --git a/ext/standard/tests/file/005_variation.phpt b/ext/standard/tests/file/005_variation.phpt
index 7e5eedc2b1..510560772e 100644
--- a/ext/standard/tests/file/005_variation.phpt
+++ b/ext/standard/tests/file/005_variation.phpt
@@ -34,13 +34,13 @@ if (getenv("SKIP_SLOW_TESTS")) {
Description: Prints access, modification and change times of a file
*/
function stat_fn( $filename ) {
- echo "-- File access time is => ";
+ echo "-- File access time is => ";
print( @date( 'Y:M:D:H:i:s', fileatime($filename) ) )."\n";
clearstatcache();
- echo "-- File modification time is => ";
+ echo "-- File modification time is => ";
print( @date( 'Y:M:D:H:i:s', filemtime($filename) ) )."\n";
clearstatcache();
- echo "-- inode change time is => ";
+ echo "-- inode change time is => ";
print( @date( 'Y:M:D:H:i:s', filectime($filename) ) )."\n";
clearstatcache();
@@ -135,7 +135,7 @@ stat_fn($file_name2);
sleep(2);
/* set to access(creation time of the file) time */
-var_dump( touch($file_name2, @date(fileatime($file_name2))) );
+var_dump( touch($file_name2, @date(fileatime($file_name2))) );
stat_fn($file_name2);
sleep(2);
@@ -149,8 +149,8 @@ var_dump( touch($file_name2, 10) );
stat_fn($file_name2);
var_dump( touch($file_name2, 10, 20) );
stat_fn($file_name2);
-
-/* touch() after renaming the file */
+
+/* touch() after renaming the file */
rename($file_name2, "$file_path/005_variation_touch_new.tmp");
stat_fn("$file_path/005_variation_touch_new.tmp");
diff --git a/ext/standard/tests/file/005_variation2-win32.phpt b/ext/standard/tests/file/005_variation2-win32.phpt
index 8508ecf7fb..000765ccce 100644
--- a/ext/standard/tests/file/005_variation2-win32.phpt
+++ b/ext/standard/tests/file/005_variation2-win32.phpt
@@ -34,16 +34,16 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
*/
function stat_fn( $filename ) {
echo "\n-- File '$filename' --\n";
- echo "-- File access time is => ";
+ echo "-- File access time is => ";
echo fileatime($filename)."\n";
clearstatcache();
- echo "-- File modification time is => ";
+ echo "-- File modification time is => ";
echo filemtime($filename)."\n";
clearstatcache();
- echo "-- inode change time is => ";
+ echo "-- inode change time is => ";
echo filectime($filename)."\n";
clearstatcache();
-
+
}
diff --git a/ext/standard/tests/file/005_variation2.phpt b/ext/standard/tests/file/005_variation2.phpt
index 6d4ca5e83d..1a7160a77a 100644
--- a/ext/standard/tests/file/005_variation2.phpt
+++ b/ext/standard/tests/file/005_variation2.phpt
@@ -34,16 +34,16 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
*/
function stat_fn( $filename ) {
echo "\n-- File '$filename' --\n";
- echo "-- File access time is => ";
+ echo "-- File access time is => ";
echo fileatime($filename)."\n";
clearstatcache();
- echo "-- File modification time is => ";
+ echo "-- File modification time is => ";
echo filemtime($filename)."\n";
clearstatcache();
- echo "-- inode change time is => ";
+ echo "-- inode change time is => ";
echo filectime($filename)."\n";
clearstatcache();
-
+
}
diff --git a/ext/standard/tests/file/006_basic.phpt b/ext/standard/tests/file/006_basic.phpt
index 73a70e358f..e8b36c2c0d 100644
--- a/ext/standard/tests/file/006_basic.phpt
+++ b/ext/standard/tests/file/006_basic.phpt
@@ -29,7 +29,7 @@ unlink($filename);
*/
$path = dirname(__FILE__);
-echo "*** Testing fileperms(), chmod() with files and dirs ***\n";
+echo "*** Testing fileperms(), chmod() with files and dirs ***\n";
fopen($path."/perm.tmp", "w");
var_dump( chmod($path."/perm.tmp", 0755 ) );
printf("%o", fileperms($path."/perm.tmp") );
diff --git a/ext/standard/tests/file/006_variation1.phpt b/ext/standard/tests/file/006_variation1.phpt
index 7ede7b8bbc..ba29a17509 100644
--- a/ext/standard/tests/file/006_variation1.phpt
+++ b/ext/standard/tests/file/006_variation1.phpt
@@ -19,7 +19,7 @@ unlink($filename);
?>
--FILE--
<?php
-/*
+/*
Prototype: int fileperms ( string $filename );
Description: Returns the permissions on the file, or FALSE in case of an error
@@ -40,7 +40,7 @@ $count = 1;
echo "-- Testing all permission from octal 0000 to octal 0777 on file and dir --\n";
for($mode = 0000; $mode <= 0777; $mode++) {
echo "-- Iteration $count --\n";
- var_dump( chmod($file_name, $mode) );
+ var_dump( chmod($file_name, $mode) );
printf("%o", fileperms($file_name) );
echo "\n";
clearstatcache();
@@ -61,7 +61,7 @@ chmod(dirname(__FILE__)."/006_variation1", 0777);
unlink(dirname(__FILE__)."/006_variation1.tmp");
rmdir(dirname(__FILE__)."/006_variation1");
?>
---EXPECT--
+--EXPECT--
*** Testing fileperms() & chmod() : usage variations ***
-- Testing all permission from octal 0000 to octal 0777 on file and dir --
-- Iteration 1 --
diff --git a/ext/standard/tests/file/006_variation2.phpt b/ext/standard/tests/file/006_variation2.phpt
index f40932645b..c4649cd4a0 100644
--- a/ext/standard/tests/file/006_variation2.phpt
+++ b/ext/standard/tests/file/006_variation2.phpt
@@ -19,7 +19,7 @@ unlink($filename);
?>
--FILE--
<?php
-/*
+/*
Prototype: int fileperms ( string $filename );
Description: Returns the permissions on the file, or FALSE in case of an error
@@ -72,7 +72,7 @@ foreach($perms_array as $permission) {
printf("%o", fileperms($file_name) );
echo "\n";
clearstatcache();
-
+
var_dump( chmod($dir_name, $permission) );
printf("%o", fileperms($dir_name) );
echo "\n";
@@ -88,7 +88,7 @@ chmod(dirname(__FILE__)."/006_variation2", 0777);
unlink(dirname(__FILE__)."/006_variation2.tmp");
rmdir(dirname(__FILE__)."/006_variation2");
?>
---EXPECTF--
+--EXPECTF--
*** Testing fileperms() & chmod() : usage variations ***
*** Testing fileperms(), chmod() with miscellaneous permissions ***
diff --git a/ext/standard/tests/file/007_basic.phpt b/ext/standard/tests/file/007_basic.phpt
index ceb9b29943..38461df97a 100644
--- a/ext/standard/tests/file/007_basic.phpt
+++ b/ext/standard/tests/file/007_basic.phpt
@@ -2,7 +2,7 @@
Test fopen(), fclose() & feof() functions: basic functionality
--FILE--
<?php
-/*
+/*
Prototype: resource fopen(string $filename, string $mode
[, bool $use_include_path [, resource $context]] );
Description: Opens file or URL.
diff --git a/ext/standard/tests/file/007_variation1.phpt b/ext/standard/tests/file/007_variation1.phpt
index 6cba146655..cdbcb0bf3a 100644
--- a/ext/standard/tests/file/007_variation1.phpt
+++ b/ext/standard/tests/file/007_variation1.phpt
@@ -35,7 +35,7 @@ var_dump( fread($file_handle, 100) ); //Check for read operation
var_dump( fwrite($file_handle, $string) ); //Check for write operation; fails; expected: 0 bytes
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation1.tmp");
diff --git a/ext/standard/tests/file/007_variation10.phpt b/ext/standard/tests/file/007_variation10.phpt
index 2981ef7d4c..f75208e2f2 100644
--- a/ext/standard/tests/file/007_variation10.phpt
+++ b/ext/standard/tests/file/007_variation10.phpt
@@ -37,7 +37,7 @@ var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes;
var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the end of the file
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation10.tmp");
diff --git a/ext/standard/tests/file/007_variation11-win32-mb.phpt b/ext/standard/tests/file/007_variation11-win32-mb.phpt
index 68a0e8ccd0..b8ff42424b 100644
--- a/ext/standard/tests/file/007_variation11-win32-mb.phpt
+++ b/ext/standard/tests/file/007_variation11-win32-mb.phpt
@@ -54,7 +54,7 @@ clearstatcache();
unlink($file); //Deleting the file
fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
$file_path = dirname(__FILE__);
diff --git a/ext/standard/tests/file/007_variation11-win32.phpt b/ext/standard/tests/file/007_variation11-win32.phpt
index a567b72b03..21ec9f9347 100644
--- a/ext/standard/tests/file/007_variation11-win32.phpt
+++ b/ext/standard/tests/file/007_variation11-win32.phpt
@@ -54,7 +54,7 @@ clearstatcache();
unlink($file); //Deleting the file
fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation11.tmp");
diff --git a/ext/standard/tests/file/007_variation11.phpt b/ext/standard/tests/file/007_variation11.phpt
index c884f47f42..fe299325be 100644
--- a/ext/standard/tests/file/007_variation11.phpt
+++ b/ext/standard/tests/file/007_variation11.phpt
@@ -54,7 +54,7 @@ clearstatcache();
unlink($file); //Deleting the file
fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation11.tmp");
diff --git a/ext/standard/tests/file/007_variation12-win32.phpt b/ext/standard/tests/file/007_variation12-win32.phpt
index d3d26e2996..c4ae4b9bff 100644
--- a/ext/standard/tests/file/007_variation12-win32.phpt
+++ b/ext/standard/tests/file/007_variation12-win32.phpt
@@ -54,7 +54,7 @@ clearstatcache();
unlink($file); //Deleting the file
fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation12.tmp");
diff --git a/ext/standard/tests/file/007_variation12.phpt b/ext/standard/tests/file/007_variation12.phpt
index c56605ac62..8c0c690f92 100644
--- a/ext/standard/tests/file/007_variation12.phpt
+++ b/ext/standard/tests/file/007_variation12.phpt
@@ -54,7 +54,7 @@ clearstatcache();
unlink($file); //Deleting the file
fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation12.tmp");
diff --git a/ext/standard/tests/file/007_variation13-win32.phpt b/ext/standard/tests/file/007_variation13-win32.phpt
index fabcde90cc..828a86a6ae 100644
--- a/ext/standard/tests/file/007_variation13-win32.phpt
+++ b/ext/standard/tests/file/007_variation13-win32.phpt
@@ -46,7 +46,7 @@ var_dump( filesize($file) ); //Check that data hasn't over written; Expected: Si
unlink($file); //Deleting the file
fclose( fopen($file, "at") ); //Opening the non-existing file in "at" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation13.tmp");
diff --git a/ext/standard/tests/file/007_variation13.phpt b/ext/standard/tests/file/007_variation13.phpt
index 9d3e6265b5..c5ab431fe9 100644
--- a/ext/standard/tests/file/007_variation13.phpt
+++ b/ext/standard/tests/file/007_variation13.phpt
@@ -46,7 +46,7 @@ var_dump( filesize($file) ); //Check that data hasn't over written; Expected: Si
unlink($file); //Deleting the file
fclose( fopen($file, "at") ); //Opening the non-existing file in "at" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation13.tmp");
diff --git a/ext/standard/tests/file/007_variation14.phpt b/ext/standard/tests/file/007_variation14.phpt
index ebcad6d830..1e23976d05 100644
--- a/ext/standard/tests/file/007_variation14.phpt
+++ b/ext/standard/tests/file/007_variation14.phpt
@@ -40,7 +40,7 @@ var_dump( get_resource_type($file_handle) ); //Check whether resource is lost a
unlink($file); //Deleting the file
fclose( fopen($file, "a+t") ); //Opening the non-existing file in "a+t" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation14.tmp");
diff --git a/ext/standard/tests/file/007_variation15.phpt b/ext/standard/tests/file/007_variation15.phpt
index fb5d6ae441..f9751cb0c8 100644
--- a/ext/standard/tests/file/007_variation15.phpt
+++ b/ext/standard/tests/file/007_variation15.phpt
@@ -37,7 +37,7 @@ var_dump( ftell($file_handle) ); //File pointer position after read operation,
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
$file_handle = fopen($file, "xt"); //Opening the existing data file in 'xt' mode to check for the warning message
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation15.tmp");
diff --git a/ext/standard/tests/file/007_variation16.phpt b/ext/standard/tests/file/007_variation16.phpt
index 633299dedf..dcafc4a4d2 100644
--- a/ext/standard/tests/file/007_variation16.phpt
+++ b/ext/standard/tests/file/007_variation16.phpt
@@ -37,7 +37,7 @@ var_dump( ftell($file_handle) ); //File pointer position after read operation,
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
$file_handle = fopen($file, "x+t"); //Opening the existing data file in "x+t" mode to check for the warning message
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation16.tmp");
diff --git a/ext/standard/tests/file/007_variation17.phpt b/ext/standard/tests/file/007_variation17.phpt
index d3408e9dbb..d9149676e9 100644
--- a/ext/standard/tests/file/007_variation17.phpt
+++ b/ext/standard/tests/file/007_variation17.phpt
@@ -35,7 +35,7 @@ var_dump( fread($file_handle, 100) ); //Check for read operation
var_dump( fwrite($file_handle, $string) ); //Check for write operation; fails; expected: 0 bytes
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation17.tmp");
diff --git a/ext/standard/tests/file/007_variation18.phpt b/ext/standard/tests/file/007_variation18.phpt
index 88350b8426..879190c399 100644
--- a/ext/standard/tests/file/007_variation18.phpt
+++ b/ext/standard/tests/file/007_variation18.phpt
@@ -37,7 +37,7 @@ var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes;
var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the end of the file
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation18.tmp");
diff --git a/ext/standard/tests/file/007_variation19.phpt b/ext/standard/tests/file/007_variation19.phpt
index 0731d454bb..188b178f22 100644
--- a/ext/standard/tests/file/007_variation19.phpt
+++ b/ext/standard/tests/file/007_variation19.phpt
@@ -49,7 +49,7 @@ clearstatcache();
unlink($file); //Deleting the file
fclose( fopen($file, "wb") ); //Opening the non-existing file in "wb" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation19.tmp");
diff --git a/ext/standard/tests/file/007_variation2.phpt b/ext/standard/tests/file/007_variation2.phpt
index deb51266ee..8c9c38cf7c 100644
--- a/ext/standard/tests/file/007_variation2.phpt
+++ b/ext/standard/tests/file/007_variation2.phpt
@@ -37,7 +37,7 @@ var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes;
var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the end of the file
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation2.tmp");
diff --git a/ext/standard/tests/file/007_variation20.phpt b/ext/standard/tests/file/007_variation20.phpt
index 3eddec4258..fbe4dd8bb2 100644
--- a/ext/standard/tests/file/007_variation20.phpt
+++ b/ext/standard/tests/file/007_variation20.phpt
@@ -49,7 +49,7 @@ clearstatcache();
unlink($file); //Deleting the file
fclose( fopen($file, "w+b") ); //Opening the non-existing file in "w+b" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation20.tmp");
diff --git a/ext/standard/tests/file/007_variation21.phpt b/ext/standard/tests/file/007_variation21.phpt
index c70aaad784..91acbf298a 100644
--- a/ext/standard/tests/file/007_variation21.phpt
+++ b/ext/standard/tests/file/007_variation21.phpt
@@ -41,7 +41,7 @@ var_dump( filesize($file) ); //Check that data hasn't over written; Expected: Si
unlink($file); //Deleting the file
fclose( fopen($file, "ab") ); //Opening the non-existing file in "ab" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation21.tmp");
diff --git a/ext/standard/tests/file/007_variation22.phpt b/ext/standard/tests/file/007_variation22.phpt
index 63deee4f84..b81d13f257 100644
--- a/ext/standard/tests/file/007_variation22.phpt
+++ b/ext/standard/tests/file/007_variation22.phpt
@@ -40,7 +40,7 @@ var_dump( get_resource_type($file_handle) ); //Check whether resource is lost a
unlink($file); //Deleting the file
fclose( fopen($file, "a+b") ); //Opening the non-existing file in "a+b" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation22.tmp");
diff --git a/ext/standard/tests/file/007_variation23.phpt b/ext/standard/tests/file/007_variation23.phpt
index cfff815084..892666b895 100644
--- a/ext/standard/tests/file/007_variation23.phpt
+++ b/ext/standard/tests/file/007_variation23.phpt
@@ -37,7 +37,7 @@ var_dump( ftell($file_handle) ); //File pointer position after read operation,
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
$file_handle = fopen($file, "xb"); //Opening the existing data file in 'xb' mode to check for the warning message
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation23.tmp");
diff --git a/ext/standard/tests/file/007_variation24.phpt b/ext/standard/tests/file/007_variation24.phpt
index d898ba7b52..200a9575a8 100644
--- a/ext/standard/tests/file/007_variation24.phpt
+++ b/ext/standard/tests/file/007_variation24.phpt
@@ -37,7 +37,7 @@ var_dump( ftell($file_handle) ); //File pointer position after read operation,
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
$file_handle = fopen($file, "x+b"); //Opening the existing data file in "x+b" mode to check for the warning message
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation24.tmp");
diff --git a/ext/standard/tests/file/007_variation3.phpt b/ext/standard/tests/file/007_variation3.phpt
index f4ae03658f..aa27db85c0 100644
--- a/ext/standard/tests/file/007_variation3.phpt
+++ b/ext/standard/tests/file/007_variation3.phpt
@@ -49,7 +49,7 @@ clearstatcache();
unlink($file); //Deleting the file
fclose( fopen($file, "w") ); //Opening the non-existing file in "w" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation3.tmp");
diff --git a/ext/standard/tests/file/007_variation4.phpt b/ext/standard/tests/file/007_variation4.phpt
index 0dabc5b9ad..106890c034 100644
--- a/ext/standard/tests/file/007_variation4.phpt
+++ b/ext/standard/tests/file/007_variation4.phpt
@@ -49,7 +49,7 @@ clearstatcache();
unlink($file); //Deleting the file
fclose( fopen($file, "w+") ); //Opening the non-existing file in "w+" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation4.tmp");
diff --git a/ext/standard/tests/file/007_variation5.phpt b/ext/standard/tests/file/007_variation5.phpt
index 51e366d291..4c84f020b7 100644
--- a/ext/standard/tests/file/007_variation5.phpt
+++ b/ext/standard/tests/file/007_variation5.phpt
@@ -41,7 +41,7 @@ var_dump( filesize($file) ); //Check that data hasn't over written; Expected: Si
unlink($file); //Deleting the file
fclose( fopen($file, "a") ); //Opening the non-existing file in "a" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation5.tmp");
diff --git a/ext/standard/tests/file/007_variation6.phpt b/ext/standard/tests/file/007_variation6.phpt
index 92c0171751..cc01af149e 100644
--- a/ext/standard/tests/file/007_variation6.phpt
+++ b/ext/standard/tests/file/007_variation6.phpt
@@ -40,7 +40,7 @@ var_dump( get_resource_type($file_handle) ); //Check whether resource is lost a
unlink($file); //Deleting the file
fclose( fopen($file, "a+") ); //Opening the non-existing file in "a+" mode, which will be created
var_dump( file_exists($file) ); //Check for the existence of file
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation6.tmp");
diff --git a/ext/standard/tests/file/007_variation7.phpt b/ext/standard/tests/file/007_variation7.phpt
index b1b15c81c5..e2d97704ad 100644
--- a/ext/standard/tests/file/007_variation7.phpt
+++ b/ext/standard/tests/file/007_variation7.phpt
@@ -37,7 +37,7 @@ var_dump( ftell($file_handle) ); //File pointer position after read operation,
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
$file_handle = fopen($file, "x"); //Opening the existing data file in 'x' mode to check for the warning message
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation7.tmp");
diff --git a/ext/standard/tests/file/007_variation8.phpt b/ext/standard/tests/file/007_variation8.phpt
index fae6932048..df97596757 100644
--- a/ext/standard/tests/file/007_variation8.phpt
+++ b/ext/standard/tests/file/007_variation8.phpt
@@ -37,7 +37,7 @@ var_dump( ftell($file_handle) ); //File pointer position after read operation,
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
$file_handle = fopen($file, "x+"); //Opening the existing data file in "x+" mode to check for the warning message
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation8.tmp");
diff --git a/ext/standard/tests/file/007_variation9.phpt b/ext/standard/tests/file/007_variation9.phpt
index ab5f1ca01d..017f4a0c5f 100644
--- a/ext/standard/tests/file/007_variation9.phpt
+++ b/ext/standard/tests/file/007_variation9.phpt
@@ -35,7 +35,7 @@ var_dump( fread($file_handle, 100) ); //Check for read operation
var_dump( fwrite($file_handle, $string) ); //Check for write operation; fails; expected: 0 bytes
var_dump( fclose($file_handle) ); //Check for close operation on the file handle
var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
-echo "*** Done ***\n";
+echo "*** Done ***\n";
--CLEAN--
<?php
unlink(dirname(__FILE__)."/007_variation9.tmp");
diff --git a/ext/standard/tests/file/basename-win32.phpt b/ext/standard/tests/file/basename-win32.phpt
index 5fd0f9659f..429030ecde 100644
--- a/ext/standard/tests/file/basename-win32.phpt
+++ b/ext/standard/tests/file/basename-win32.phpt
@@ -10,10 +10,10 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
?>
--FILE--
<?php
-/*
+/*
* proto string basename(string path [, string suffix])
* Function is implemented in ext/standard/string.c
- */
+ */
$file_paths = array (
/* simple paths */
array("bar"),
@@ -41,7 +41,7 @@ $file_paths = array (
array("\\foo\\bar.zip\\", ".zip"),
array("foo\\bar.zip\\", ".zip"),
array("\\bar.zip\\", ".zip"),
-
+
/* paths with basename only suffix, with suffix removal*/
array("\\.zip", ".zip"),
array(".zip", ".zip"),
@@ -90,7 +90,7 @@ $file_path_variations = array (
/* path with spaces */
array(" "),
array(' '),
-
+
/* empty paths */
array(""),
array(''),
@@ -104,8 +104,8 @@ function check_basename( $path_arrays ) {
if( 1 == count($path) ) { // no suffix provided
var_dump( basename($path[0]) );
} else { // path as well as suffix provided,
- var_dump( basename($path[0], $path[1]) );
- }
+ var_dump( basename($path[0], $path[1]) );
+ }
}
}
diff --git a/ext/standard/tests/file/basename_basic-win32.phpt b/ext/standard/tests/file/basename_basic-win32.phpt
index f575c5aa69..ceccf9eef7 100644
--- a/ext/standard/tests/file/basename_basic-win32.phpt
+++ b/ext/standard/tests/file/basename_basic-win32.phpt
@@ -52,7 +52,7 @@ $file_paths = array (
/* path with spaces */
" ",
' ',
-
+
/* empty paths */
"",
'',
diff --git a/ext/standard/tests/file/basename_basic.phpt b/ext/standard/tests/file/basename_basic.phpt
index 68aefb2a3a..6354b2acd7 100644
--- a/ext/standard/tests/file/basename_basic.phpt
+++ b/ext/standard/tests/file/basename_basic.phpt
@@ -52,7 +52,7 @@ $file_paths = array (
/* path with spaces */
" ",
' ',
-
+
/* empty paths */
"",
'',
diff --git a/ext/standard/tests/file/basename_error.phpt b/ext/standard/tests/file/basename_error.phpt
index 53c53cf8b9..18984f0451 100644
--- a/ext/standard/tests/file/basename_error.phpt
+++ b/ext/standard/tests/file/basename_error.phpt
@@ -5,7 +5,7 @@ Test basename() function : error conditions
/* Prototype : string basename(string path [, string suffix])
* Description: Returns the filename component of the path
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing basename() : error conditions ***\n";
diff --git a/ext/standard/tests/file/basename_variation1-win32.phpt b/ext/standard/tests/file/basename_variation1-win32.phpt
index 0f4293e0b0..eb2a4ff497 100644
--- a/ext/standard/tests/file/basename_variation1-win32.phpt
+++ b/ext/standard/tests/file/basename_variation1-win32.phpt
@@ -10,7 +10,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
<?php
$prefixes = array (
-
+
// drive letters
"A:/",
"Z:/",
@@ -31,7 +31,7 @@ $paths = array (
"foo",
"foo/",
- "foo\\",
+ "foo\\",
"foo.bar",
"foo.bar/",
"foo.bar\\",
diff --git a/ext/standard/tests/file/basename_variation1.phpt b/ext/standard/tests/file/basename_variation1.phpt
index 93582389d4..ea7cdfe8b7 100644
--- a/ext/standard/tests/file/basename_variation1.phpt
+++ b/ext/standard/tests/file/basename_variation1.phpt
@@ -10,7 +10,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
<?php
$prefixes = array (
-
+
// drive letters
"A:/",
"Z:/",
@@ -31,7 +31,7 @@ $paths = array (
"foo",
"foo/",
- "foo\\",
+ "foo\\",
"foo.bar",
"foo.bar/",
"foo.bar\\",
diff --git a/ext/standard/tests/file/basename_variation2-win32.phpt b/ext/standard/tests/file/basename_variation2-win32.phpt
index 5e9961b98f..771a160cd2 100644
--- a/ext/standard/tests/file/basename_variation2-win32.phpt
+++ b/ext/standard/tests/file/basename_variation2-win32.phpt
@@ -13,7 +13,7 @@ $paths = array (
"foo",
"foo/",
- "foo\\",
+ "foo\\",
"foo.bar",
"foo.bar/",
"foo.bar\\",
@@ -41,7 +41,7 @@ $suffixes = array (
foreach ($paths as $path) {
foreach ($suffixes as $suffix) {
echo "basename for path $path, supplying suffix $suffix is:\n";
- var_dump(basename($path, $suffix));
+ var_dump(basename($path, $suffix));
}
}
diff --git a/ext/standard/tests/file/basename_variation2.phpt b/ext/standard/tests/file/basename_variation2.phpt
index 96cfd65057..fd41d89be0 100644
--- a/ext/standard/tests/file/basename_variation2.phpt
+++ b/ext/standard/tests/file/basename_variation2.phpt
@@ -13,7 +13,7 @@ $paths = array (
"foo",
"foo/",
- "foo\\",
+ "foo\\",
"foo.bar",
"foo.bar/",
"foo.bar\\",
@@ -41,7 +41,7 @@ $suffixes = array (
foreach ($paths as $path) {
foreach ($suffixes as $suffix) {
echo "basename for path $path, supplying suffix $suffix is:\n";
- var_dump(basename($path, $suffix));
+ var_dump(basename($path, $suffix));
}
}
diff --git a/ext/standard/tests/file/basename_variation3.phpt b/ext/standard/tests/file/basename_variation3.phpt
index f01f550a7d..cce732554e 100644
--- a/ext/standard/tests/file/basename_variation3.phpt
+++ b/ext/standard/tests/file/basename_variation3.phpt
@@ -5,7 +5,7 @@ Test basename() function : first parameter type variations
/* Prototype : string basename(string path [, string suffix])
* Description: Returns the filename component of the path
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing basename() : usage variation ***\n";
diff --git a/ext/standard/tests/file/basename_variation4.phpt b/ext/standard/tests/file/basename_variation4.phpt
index 88ce61a93d..487c2274f1 100644
--- a/ext/standard/tests/file/basename_variation4.phpt
+++ b/ext/standard/tests/file/basename_variation4.phpt
@@ -5,7 +5,7 @@ Test basename() function : second parameter type variation
/* Prototype : string basename(string path [, string suffix])
* Description: Returns the filename component of the path
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing basename() : usage variation ***\n";
diff --git a/ext/standard/tests/file/bug22414.phpt b/ext/standard/tests/file/bug22414.phpt
index fcd85489f3..abc6e47585 100644
--- a/ext/standard/tests/file/bug22414.phpt
+++ b/ext/standard/tests/file/bug22414.phpt
@@ -8,14 +8,14 @@ output_handler=
$php = getenv('TEST_PHP_EXECUTABLE');
$tmpfile = tempnam(__DIR__, 'phpt');
$args = ' -n -dsafe_mode=off ';
-
+
/* Regular Data Test */
passthru($php . $args . ' -r " echo \"HELLO\"; "');
echo "\n";
/* Binary Data Test */
-
+
if (substr(PHP_OS, 0, 3) != 'WIN') {
$cmd = $php . $args . ' -r \"readfile(@getenv(\'TEST_PHP_EXECUTABLE\')); \"';
$cmd = $php . $args . ' -r \' passthru("'.$cmd.'"); \' > '.$tmpfile ;
@@ -30,7 +30,7 @@ output_handler=
} else {
echo "Does not work\n";
}
-
+
@unlink($tmpfile);
?>
--EXPECT--
diff --git a/ext/standard/tests/file/bug24482.phpt b/ext/standard/tests/file/bug24482.phpt
index 9d0568af33..9fe4d2d9ee 100644
--- a/ext/standard/tests/file/bug24482.phpt
+++ b/ext/standard/tests/file/bug24482.phpt
@@ -26,13 +26,13 @@ closedir($dh);
if (count($dirs) != count($globdirs)) {
echo "Directory count mismatch\n";
-
+
echo "glob found:\n";
- sort($globdirs);
+ sort($globdirs);
var_dump($globdirs);
-
+
echo "opendir/readdir/isdir found:\n";
- sort($dirs);
+ sort($dirs);
var_dump($dirs);
} else {
echo "OK\n";
diff --git a/ext/standard/tests/file/bug27508.phpt b/ext/standard/tests/file/bug27508.phpt
index 26959ec511..e342a17348 100644
--- a/ext/standard/tests/file/bug27508.phpt
+++ b/ext/standard/tests/file/bug27508.phpt
@@ -4,8 +4,8 @@ Bug #27508 (userspace wrappers have bogus eof indicator)
<?php # vim:ft=php
class FileStream {
public $fp;
-
- function stream_open($path, $mode, $options, &$opened_path)
+
+ function stream_open($path, $mode, $options, &$opened_path)
{
$url = urldecode(substr($path, 9));
$this->fp = fopen($url, $mode);
@@ -13,22 +13,22 @@ class FileStream {
return true;
}
- function stream_read($count)
+ function stream_read($count)
{
return fread($this->fp, $count);
}
- function stream_write($data)
+ function stream_write($data)
{
return fwrite($this->fp, $data);
}
- function stream_tell()
+ function stream_tell()
{
return ftell($this->fp);
}
- function stream_eof()
+ function stream_eof()
{
if (!$this->fp) {
return true;
@@ -36,7 +36,7 @@ class FileStream {
return feof($this->fp);
}
- function stream_seek($offset, $whence)
+ function stream_seek($offset, $whence)
{
return fseek($this->fp, $offset, $whence) == 0 ? true : false;
}
diff --git a/ext/standard/tests/file/bug30362.phpt b/ext/standard/tests/file/bug30362.phpt
index 1c2b4be979..59fe02ad06 100644
--- a/ext/standard/tests/file/bug30362.phpt
+++ b/ext/standard/tests/file/bug30362.phpt
@@ -11,7 +11,7 @@ for ($i = 0; ($i < 10) && !feof($resource); ++$i ) {
echo $line . "\n";
}
fclose($resource);
-
+
?>
--EXPECT--
111
diff --git a/ext/standard/tests/file/bug35740.phpt b/ext/standard/tests/file/bug35740.phpt
index 3526b24973..184dff264f 100644
--- a/ext/standard/tests/file/bug35740.phpt
+++ b/ext/standard/tests/file/bug35740.phpt
@@ -7,7 +7,7 @@ include (dirname(__FILE__));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: include(%s): failed to open stream: %s in %s on line %d
Warning: include(): Failed opening '%s' for inclusion (include_path='%s') in %s on line %d
diff --git a/ext/standard/tests/file/bug35781.phpt b/ext/standard/tests/file/bug35781.phpt
index cc3ae14e4c..226277b20f 100644
--- a/ext/standard/tests/file/bug35781.phpt
+++ b/ext/standard/tests/file/bug35781.phpt
@@ -4,7 +4,7 @@ Bug #35781 (stream_filter_append() causes segfault)
<?php
$filename = dirname(__FILE__)."/bug35781.txt";
-
+
$fp = fopen($filename, "w");
stream_filter_append($fp, "string.rot13", -49);
fwrite($fp, "This is a test\n");
@@ -18,7 +18,7 @@ var_dump(file_get_contents($filename));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
string(15) "Guvf vf n grfg
"
Done
diff --git a/ext/standard/tests/file/bug37158.phpt b/ext/standard/tests/file/bug37158.phpt
index 783bf2227c..673b4c6f3c 100644
--- a/ext/standard/tests/file/bug37158.phpt
+++ b/ext/standard/tests/file/bug37158.phpt
@@ -4,8 +4,8 @@ Bug #37158 (if userspace stream is present, fread() reads in 8192 max, otherwise
<?php
class VariableStream {
-
- function stream_open($path, $mode, $options, &$opened_path)
+
+ function stream_open($path, $mode, $options, &$opened_path)
{
return true;
}
@@ -32,7 +32,7 @@ unlink($file);
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
string(26) "size of contents 1 = 20000"
string(26) "size of contents 2 = 40960"
Done
diff --git a/ext/standard/tests/file/bug38086.phpt b/ext/standard/tests/file/bug38086.phpt
index d92289ef6e..0544e06692 100644
--- a/ext/standard/tests/file/bug38086.phpt
+++ b/ext/standard/tests/file/bug38086.phpt
@@ -37,7 +37,7 @@ unlink($new_file);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(%d)
string(134) "Nabgure qnl
Jura gur cnvaf bs yvsr jba'g one zl jnl
diff --git a/ext/standard/tests/file/bug38450.phpt b/ext/standard/tests/file/bug38450.phpt
index 1de5d7f89b..eae86cf9a0 100644
--- a/ext/standard/tests/file/bug38450.phpt
+++ b/ext/standard/tests/file/bug38450.phpt
@@ -101,7 +101,7 @@ var_dump($myvar);
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
string(12) "constructor!"
line1
line2
diff --git a/ext/standard/tests/file/bug38450_1.phpt b/ext/standard/tests/file/bug38450_1.phpt
index e4f1af68f8..9cc383171b 100644
--- a/ext/standard/tests/file/bug38450_1.phpt
+++ b/ext/standard/tests/file/bug38450_1.phpt
@@ -101,7 +101,7 @@ var_dump($myvar);
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
string(12) "constructor!"
line1
line2
diff --git a/ext/standard/tests/file/bug38450_2.phpt b/ext/standard/tests/file/bug38450_2.phpt
index 64c9f8d94a..318a2a3eb9 100644
--- a/ext/standard/tests/file/bug38450_2.phpt
+++ b/ext/standard/tests/file/bug38450_2.phpt
@@ -101,7 +101,7 @@ var_dump($myvar);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: fopen(var://myvar): failed to open stream: "VariableStream::stream_open" call failed in %s on line %d
diff --git a/ext/standard/tests/file/bug38450_3.phpt b/ext/standard/tests/file/bug38450_3.phpt
index a72a00310d..0bcaeb2a89 100644
--- a/ext/standard/tests/file/bug38450_3.phpt
+++ b/ext/standard/tests/file/bug38450_3.phpt
@@ -101,7 +101,7 @@ var_dump($myvar);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: fopen(var://myvar): failed to open stream: "VariableStream::stream_open" call failed in %sbug38450_3.php on line %d
Fatal error: Uncaught ArgumentCountError: Too few arguments to function VariableStream::__construct(), 0 passed and exactly 1 expected in %sbug38450_3.php:7
diff --git a/ext/standard/tests/file/bug39551.phpt b/ext/standard/tests/file/bug39551.phpt
index e03a2bf931..2877c4951f 100644
--- a/ext/standard/tests/file/bug39551.phpt
+++ b/ext/standard/tests/file/bug39551.phpt
@@ -20,5 +20,5 @@ stream_get_contents($s);
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
Done
diff --git a/ext/standard/tests/file/bug39673.phpt b/ext/standard/tests/file/bug39673.phpt
index 820664184f..71484578d0 100644
--- a/ext/standard/tests/file/bug39673.phpt
+++ b/ext/standard/tests/file/bug39673.phpt
@@ -28,7 +28,7 @@ foreach ($offsets as $offset) {
@unlink($filename);
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
int(1)
int(13824)
int(0)
diff --git a/ext/standard/tests/file/bug40374.phpt b/ext/standard/tests/file/bug40374.phpt
index 327289eba2..c1f1bc5796 100644
--- a/ext/standard/tests/file/bug40374.phpt
+++ b/ext/standard/tests/file/bug40374.phpt
@@ -1,5 +1,5 @@
--TEST--
-Bug #40374 (php_shutdown_temporary_directory() tries to free local value)
+Bug #40374 (php_shutdown_temporary_directory() tries to free local value)
--FILE--
<?php
@@ -12,6 +12,6 @@ unlink($file);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
string(%d) "%s"
Done
diff --git a/ext/standard/tests/file/bug41693.phpt b/ext/standard/tests/file/bug41693.phpt
index 6c7ff5bf4b..ea074fa4fd 100644
--- a/ext/standard/tests/file/bug41693.phpt
+++ b/ext/standard/tests/file/bug41693.phpt
@@ -1,5 +1,5 @@
--TEST--
-Bug #41693 (scandir() allows empty directory names)
+Bug #41693 (scandir() allows empty directory names)
--FILE--
<?php
@@ -7,7 +7,7 @@ var_dump(scandir(''));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: scandir(): Directory name cannot be empty in %s on line %d
bool(false)
Done
diff --git a/ext/standard/tests/file/bug41815.phpt b/ext/standard/tests/file/bug41815.phpt
index 5dbafac225..040754b131 100644
--- a/ext/standard/tests/file/bug41815.phpt
+++ b/ext/standard/tests/file/bug41815.phpt
@@ -22,6 +22,6 @@ fclose($reader);
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
OK
Done
diff --git a/ext/standard/tests/file/bug66509.phpt b/ext/standard/tests/file/bug66509.phpt
index 0e414f2321..ff49a554a4 100644
--- a/ext/standard/tests/file/bug66509.phpt
+++ b/ext/standard/tests/file/bug66509.phpt
@@ -4,9 +4,9 @@ Bug #66509 (copy() showing $context parameter as required)
<?php
$r = new \ReflectionFunction('copy');
-
+
foreach($r->getParameters() as $p) {
- var_dump($p->isOptional());
+ var_dump($p->isOptional());
}
?>
--EXPECT--
diff --git a/ext/standard/tests/file/bug72035.phpt b/ext/standard/tests/file/bug72035.phpt
index a2abbb7f35..feb4eb9acd 100644
--- a/ext/standard/tests/file/bug72035.phpt
+++ b/ext/standard/tests/file/bug72035.phpt
@@ -24,7 +24,7 @@ $cmd = "$cgi -n -C $fl";
$desc = array(0 => array("pipe", "r"));
$proc = proc_open($cmd, $desc, $pipes, getcwd(), array());
if (is_resource($proc)) {
- echo stream_get_contents($pipes[0]);
+ echo stream_get_contents($pipes[0]);
proc_close($proc);
}
diff --git a/ext/standard/tests/file/chmod_error.phpt b/ext/standard/tests/file/chmod_error.phpt
index f4cae3b5cf..03535b070a 100644
--- a/ext/standard/tests/file/chmod_error.phpt
+++ b/ext/standard/tests/file/chmod_error.phpt
@@ -5,7 +5,7 @@ Test chmod() function : error conditions
/* Prototype : bool chmod(string filename, int mode)
* Description: Change file mode
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing chmod() : error conditions ***\n";
diff --git a/ext/standard/tests/file/chmod_variation2-win32-mb.phpt b/ext/standard/tests/file/chmod_variation2-win32-mb.phpt
index f990b5b56b..525052b9d9 100644
--- a/ext/standard/tests/file/chmod_variation2-win32-mb.phpt
+++ b/ext/standard/tests/file/chmod_variation2-win32-mb.phpt
@@ -32,7 +32,7 @@ var_dump(chmod($filepath, 0777));
var_dump(chmod("./$test_dirname/bad_dir/../../$filename", 0755));
clearstatcache();
printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
-
+
echo "\nchmod() on a relative path from a different working directory\n";
chdir($test_dirname);
var_dump(chmod("../$filename", 0777));
diff --git a/ext/standard/tests/file/chmod_variation2-win32.phpt b/ext/standard/tests/file/chmod_variation2-win32.phpt
index 9689852f51..1e6f3286f9 100644
--- a/ext/standard/tests/file/chmod_variation2-win32.phpt
+++ b/ext/standard/tests/file/chmod_variation2-win32.phpt
@@ -32,7 +32,7 @@ var_dump(chmod($filepath, 0777));
var_dump(chmod("./$test_dirname/bad_dir/../../$filename", 0755));
clearstatcache();
printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
-
+
echo "\nchmod() on a relative path from a different working directory\n";
chdir($test_dirname);
var_dump(chmod("../$filename", 0777));
diff --git a/ext/standard/tests/file/chmod_variation2.phpt b/ext/standard/tests/file/chmod_variation2.phpt
index b193acfaf7..c7a3db0fe7 100644
--- a/ext/standard/tests/file/chmod_variation2.phpt
+++ b/ext/standard/tests/file/chmod_variation2.phpt
@@ -32,7 +32,7 @@ var_dump(chmod($filepath, 0777));
var_dump(chmod("./$test_dirname/bad_dir/../../$filename", 0755));
clearstatcache();
printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
-
+
echo "\nchmod() on a linked file\n";
$linkname = "somelink";
var_dump(symlink($filepath, $linkname));
diff --git a/ext/standard/tests/file/chmod_variation3.phpt b/ext/standard/tests/file/chmod_variation3.phpt
index 7c637b8560..9f3ae0bae7 100644
--- a/ext/standard/tests/file/chmod_variation3.phpt
+++ b/ext/standard/tests/file/chmod_variation3.phpt
@@ -5,7 +5,7 @@ Test chmod() function : first parameter variation
/* Prototype : bool chmod(string filename, int mode)
* Description: Change file mode
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing chmod() : usage variation ***\n";
diff --git a/ext/standard/tests/file/chmod_variation4.phpt b/ext/standard/tests/file/chmod_variation4.phpt
index d5a691fa37..2cd4b8c9d7 100644
--- a/ext/standard/tests/file/chmod_variation4.phpt
+++ b/ext/standard/tests/file/chmod_variation4.phpt
@@ -7,7 +7,7 @@ Test chmod() function : second parameter variation
/* Prototype : bool chmod(string filename, int mode)
* Description: Change file mode
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing chmod() : usage variation ***\n";
diff --git a/ext/standard/tests/file/copy_basic.phpt b/ext/standard/tests/file/copy_basic.phpt
index 32788f9f74..d23a27839a 100644
--- a/ext/standard/tests/file/copy_basic.phpt
+++ b/ext/standard/tests/file/copy_basic.phpt
@@ -7,7 +7,7 @@ Test copy() function: basic functionality
* Returns TRUE on success or FALSE on failure.
*/
-echo "*** Testing copy() function: to copy file from source to destination --\n";
+echo "*** Testing copy() function: to copy file from source to destination --\n";
var_dump( file_exists(__FILE__) );
diff --git a/ext/standard/tests/file/copy_error.phpt b/ext/standard/tests/file/copy_error.phpt
index 96072ebfba..ad723370e4 100644
--- a/ext/standard/tests/file/copy_error.phpt
+++ b/ext/standard/tests/file/copy_error.phpt
@@ -7,7 +7,7 @@ Test copy() function: error conditions
* Returns TRUE on success or FALSE on failure.
*/
-echo "*** Testing copy() function: error conditions --\n";
+echo "*** Testing copy() function: error conditions --\n";
/* Invalid args */
var_dump( copy("/no/file", "file") );
diff --git a/ext/standard/tests/file/copy_variation10.phpt b/ext/standard/tests/file/copy_variation10.phpt
index b4aa19d1c2..7d44d94ec4 100644
--- a/ext/standard/tests/file/copy_variation10.phpt
+++ b/ext/standard/tests/file/copy_variation10.phpt
@@ -17,8 +17,8 @@ $file_handle = fopen($file, "w");
fwrite($file_handle, str_repeat("Hello2world...\n", 100));
fclose($file_handle);
-var_dump( copy($file, $file) );
-var_dump( file_exists($file) );
+var_dump( copy($file, $file) );
+var_dump( file_exists($file) );
var_dump( filesize($file) );
echo "*** Done ***\n";
diff --git a/ext/standard/tests/file/copy_variation11.phpt b/ext/standard/tests/file/copy_variation11.phpt
index b01dab0890..aabaa4cd4e 100644
--- a/ext/standard/tests/file/copy_variation11.phpt
+++ b/ext/standard/tests/file/copy_variation11.phpt
@@ -28,7 +28,7 @@ var_dump( filesize($dir) ); //size of destination before copy
clearstatcache();
echo "\n-- Now applying copy() operation --\n";
-var_dump( copy($file, $dir) ); //expected: bool(false)
+var_dump( copy($file, $dir) ); //expected: bool(false)
var_dump( file_exists($file) ); //expected: bool(true)
var_dump( file_exists($dir) ); //expected: bool(true)
diff --git a/ext/standard/tests/file/copy_variation15.phpt b/ext/standard/tests/file/copy_variation15.phpt
index fdc84e989a..546cbbb2f2 100644
--- a/ext/standard/tests/file/copy_variation15.phpt
+++ b/ext/standard/tests/file/copy_variation15.phpt
@@ -40,7 +40,7 @@ chmod($dir, 0555); //dir without write permissions
$dest = $dir."/copy_copy_variation15.tmp";
-var_dump( copy($file, $dir."/copy_copy_variation15.tmp") );
+var_dump( copy($file, $dir."/copy_copy_variation15.tmp") );
var_dump( file_exists($dir."/copy_copy_variation15_dir.tmp") );
var_dump( filesize($file) ); //size of source
diff --git a/ext/standard/tests/file/copy_variation17.phpt b/ext/standard/tests/file/copy_variation17.phpt
index 2dfe94c6e9..9e7ee25d3b 100644
--- a/ext/standard/tests/file/copy_variation17.phpt
+++ b/ext/standard/tests/file/copy_variation17.phpt
@@ -32,7 +32,7 @@ $dest_file_name = $dir."/copy_copy_variation17.tmp";
$count = 1;
foreach($src_file_names as $src_file_name) {
- var_dump( copy($src_file_name, $dest_file_name) );
+ var_dump( copy($src_file_name, $dest_file_name) );
var_dump( file_exists($dest_file_name) );
if( file_exists($dest_file_name) ) {
diff --git a/ext/standard/tests/file/copy_variation18.phpt b/ext/standard/tests/file/copy_variation18.phpt
index 564b34bf0c..66208082c6 100644
--- a/ext/standard/tests/file/copy_variation18.phpt
+++ b/ext/standard/tests/file/copy_variation18.phpt
@@ -27,13 +27,13 @@ $stat_before_copy = stat($src_file_name);
clearstatcache();
echo "Copy operation => ";
-var_dump( copy($src_file_name, $dest_file_name) );
+var_dump( copy($src_file_name, $dest_file_name) );
$stat_after_copy = stat($src_file_name);
clearstatcache();
// compare all stat fields except access time
-$stat_keys_to_compare = array("dev", "ino", "mode", "nlink", "uid", "gid",
+$stat_keys_to_compare = array("dev", "ino", "mode", "nlink", "uid", "gid",
"rdev", "size", "mtime", "ctime",
"blksize", "blocks");
diff --git a/ext/standard/tests/file/copy_variation2-win32-mb.phpt b/ext/standard/tests/file/copy_variation2-win32-mb.phpt
index 95688c97c5..cb7c96fa0b 100644
--- a/ext/standard/tests/file/copy_variation2-win32-mb.phpt
+++ b/ext/standard/tests/file/copy_variation2-win32-mb.phpt
@@ -18,7 +18,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
echo "*** Test copy() function: destination file names containing special characters ***\n";
$file_path = dirname(__FILE__);
-$src_file_name = $file_path."/copy_variation2私はガラスを食べられます.tmp";
+$src_file_name = $file_path."/copy_variation2私はガラスを食べられます.tmp";
$file_handle = fopen($src_file_name, "w");
fwrite( $file_handle, str_repeat("Hello2World...\n", 100) );
fclose($file_handle);
@@ -27,7 +27,7 @@ fclose($file_handle);
$dest_files = array(
/* File names containing special(non-alpha numeric) characters */
- "_copy_variation2.tmp",
+ "_copy_variation2.tmp",
"@copy_variation2.tmp",
"#copy_variation2.tmp",
"+copy_variation2.tmp",
diff --git a/ext/standard/tests/file/copy_variation2-win32.phpt b/ext/standard/tests/file/copy_variation2-win32.phpt
index 82235ba814..029c6c5f8e 100644
--- a/ext/standard/tests/file/copy_variation2-win32.phpt
+++ b/ext/standard/tests/file/copy_variation2-win32.phpt
@@ -18,7 +18,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
echo "*** Test copy() function: destination file names containing special characters ***\n";
$file_path = dirname(__FILE__);
-$src_file_name = $file_path."/copy_variation2.tmp";
+$src_file_name = $file_path."/copy_variation2.tmp";
$file_handle = fopen($src_file_name, "w");
fwrite( $file_handle, str_repeat("Hello2World...\n", 100) );
fclose($file_handle);
@@ -27,7 +27,7 @@ fclose($file_handle);
$dest_files = array(
/* File names containing special(non-alpha numeric) characters */
- "_copy_variation2.tmp",
+ "_copy_variation2.tmp",
"@copy_variation2.tmp",
"#copy_variation2.tmp",
"+copy_variation2.tmp",
diff --git a/ext/standard/tests/file/copy_variation2.phpt b/ext/standard/tests/file/copy_variation2.phpt
index a9b36803d9..681a00750c 100644
--- a/ext/standard/tests/file/copy_variation2.phpt
+++ b/ext/standard/tests/file/copy_variation2.phpt
@@ -18,7 +18,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
echo "*** Test copy() function: destination file names containing special characters ***\n";
$file_path = dirname(__FILE__);
-$src_file_name = $file_path."/copy_variation2.tmp";
+$src_file_name = $file_path."/copy_variation2.tmp";
$file_handle = fopen($src_file_name, "w");
fwrite( $file_handle, str_repeat("Hello2World...\n", 100) );
fclose($file_handle);
@@ -27,7 +27,7 @@ fclose($file_handle);
$dest_files = array(
/* File names containing special(non-alpha numeric) characters */
- "_copy_variation2.tmp",
+ "_copy_variation2.tmp",
"@copy_variation2.tmp",
"#copy_variation2.tmp",
"+copy_variation2.tmp",
diff --git a/ext/standard/tests/file/copy_variation3-win32.phpt b/ext/standard/tests/file/copy_variation3-win32.phpt
index 5055c297f6..28f86532c9 100644
--- a/ext/standard/tests/file/copy_variation3-win32.phpt
+++ b/ext/standard/tests/file/copy_variation3-win32.phpt
@@ -43,9 +43,9 @@ foreach($dest_files as $dest_file) {
echo "\n-- Iteration $count --\n";
$dest_file_name = $dest_file;
-
+
echo "Copy operation => ";
- var_dump( copy($src_file_name, $dest_file_name) );
+ var_dump( copy($src_file_name, $dest_file_name) );
echo "Existence of destination file => ";
var_dump( file_exists($dest_file_name) );
diff --git a/ext/standard/tests/file/copy_variation3.phpt b/ext/standard/tests/file/copy_variation3.phpt
index 181da9a5f9..2d81751272 100644
--- a/ext/standard/tests/file/copy_variation3.phpt
+++ b/ext/standard/tests/file/copy_variation3.phpt
@@ -43,9 +43,9 @@ foreach($dest_files as $dest_file) {
echo "\n-- Iteration $count --\n";
$dest_file_name = $dest_file;
-
+
echo "Copy operation => ";
- var_dump( copy($src_file_name, $dest_file_name) );
+ var_dump( copy($src_file_name, $dest_file_name) );
echo "Existence of destination file => ";
var_dump( file_exists($dest_file_name) );
diff --git a/ext/standard/tests/file/copy_variation5-win32.phpt b/ext/standard/tests/file/copy_variation5-win32.phpt
index 48e85eaf02..b860332b06 100644
--- a/ext/standard/tests/file/copy_variation5-win32.phpt
+++ b/ext/standard/tests/file/copy_variation5-win32.phpt
@@ -27,7 +27,7 @@ fclose($file_handle);
$dest_files = array(
/* Checking case sensitiveness */
- "COPY.tmp",
+ "COPY.tmp",
"COPY.TMP",
"CopY.TMP"
);
diff --git a/ext/standard/tests/file/dirname_basic-win32.phpt b/ext/standard/tests/file/dirname_basic-win32.phpt
index f3b3902b0d..3463fcfe68 100644
--- a/ext/standard/tests/file/dirname_basic-win32.phpt
+++ b/ext/standard/tests/file/dirname_basic-win32.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : string dirname(string path)
* Description: Returns the directory name component of the path
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing dirname() : basic functionality ***\n";
diff --git a/ext/standard/tests/file/dirname_basic.phpt b/ext/standard/tests/file/dirname_basic.phpt
index ba131d1662..9b24389976 100644
--- a/ext/standard/tests/file/dirname_basic.phpt
+++ b/ext/standard/tests/file/dirname_basic.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : string dirname(string path)
* Description: Returns the directory name component of the path
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing dirname() : basic functionality ***\n";
diff --git a/ext/standard/tests/file/dirname_error.phpt b/ext/standard/tests/file/dirname_error.phpt
index 515a3988d5..9c41241c45 100644
--- a/ext/standard/tests/file/dirname_error.phpt
+++ b/ext/standard/tests/file/dirname_error.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : string dirname(string path)
* Description: Returns the directory name component of the path
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing dirname() : error conditions ***\n";
diff --git a/ext/standard/tests/file/dirname_no_path_normalization-win32.phpt b/ext/standard/tests/file/dirname_no_path_normalization-win32.phpt
index 283834e8ce..2bb227b5c2 100644
--- a/ext/standard/tests/file/dirname_no_path_normalization-win32.phpt
+++ b/ext/standard/tests/file/dirname_no_path_normalization-win32.phpt
@@ -19,7 +19,7 @@ if (strlen($s) >= 10000) {
print "ERROR: " . PHP_EOL;
var_dump(dirname($s));
var_dump(strlen($s));
-}
+}
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/file/dirname_variation1.phpt b/ext/standard/tests/file/dirname_variation1.phpt
index 15041ffd53..7c603be92e 100644
--- a/ext/standard/tests/file/dirname_variation1.phpt
+++ b/ext/standard/tests/file/dirname_variation1.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : string dirname(string path)
* Description: Returns the directory name component of the path
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing dirname() : usage variation ***\n";
diff --git a/ext/standard/tests/file/disk.phpt b/ext/standard/tests/file/disk.phpt
index 6eef4b4a77..a048af6ccb 100644
--- a/ext/standard/tests/file/disk.phpt
+++ b/ext/standard/tests/file/disk.phpt
@@ -25,7 +25,7 @@ var_dump(disk_total_space("/some/path/here"));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: disk_free_space() expects exactly 1 parameter, 0 given in %s on line %d
NULL
diff --git a/ext/standard/tests/file/disk_free_space_basic.phpt b/ext/standard/tests/file/disk_free_space_basic.phpt
index 57446b6ee0..4cfacc6ab0 100644
--- a/ext/standard/tests/file/disk_free_space_basic.phpt
+++ b/ext/standard/tests/file/disk_free_space_basic.phpt
@@ -18,15 +18,15 @@ memory_limit=32M
$file_path = dirname(__FILE__);
echo "*** Testing with existing directory ***\n";
-var_dump( disk_free_space($file_path) );
-var_dump( diskfreespace($file_path) );
+var_dump( disk_free_space($file_path) );
+var_dump( diskfreespace($file_path) );
echo "*** Testing with newly created directory ***\n";
$dir = "/disk_free_space";
mkdir($file_path.$dir);
echo" \n Free Space before writing to a file\n";
-$space1 = disk_free_space($file_path.$dir);
-var_dump( $space1 );
+$space1 = disk_free_space($file_path.$dir);
+var_dump( $space1 );
$fh = fopen($file_path.$dir."/disk_free_space.tmp", "a");
$data = str_repeat("x", 0xffff);
@@ -34,8 +34,8 @@ fwrite($fh, $data);
fclose($fh);
echo "\n Free Space after writing to a file\n";
-$space2 = disk_free_space($file_path.$dir);
-var_dump( $space2 );
+$space2 = disk_free_space($file_path.$dir);
+var_dump( $space2 );
if($space1 > $space2 )
echo "\n Free Space Value Is Correct\n";
@@ -45,7 +45,7 @@ else {
}
echo "*** Testing with Binary Input ***\n";
-var_dump( disk_free_space(b"$file_path") );
+var_dump( disk_free_space(b"$file_path") );
echo"\n--- Done ---";
?>
diff --git a/ext/standard/tests/file/disk_free_space_variation.phpt b/ext/standard/tests/file/disk_free_space_variation.phpt
index adb1acaf82..05c2153f70 100644
--- a/ext/standard/tests/file/disk_free_space_variation.phpt
+++ b/ext/standard/tests/file/disk_free_space_variation.phpt
@@ -12,11 +12,11 @@ Test disk_free_space and its alias diskfreespace() functions : Usage Variations
$file_path = dirname(__FILE__);
echo "*** Testing with a directory ***\n";
-var_dump( disk_free_space($file_path."/..") );
-var_dump( diskfreespace($file_path."/..") );
+var_dump( disk_free_space($file_path."/..") );
+var_dump( diskfreespace($file_path."/..") );
echo "\nTesting for the return type ***\n";
-$return_value = disk_free_space($file_path);
+$return_value = disk_free_space($file_path);
var_dump( is_float($return_value) );
echo "\n*** Testing with different directory combinations ***";
diff --git a/ext/standard/tests/file/disk_total_space_variation.phpt b/ext/standard/tests/file/disk_total_space_variation.phpt
index ba2ceb2d1b..5c2a2c612e 100644
--- a/ext/standard/tests/file/disk_total_space_variation.phpt
+++ b/ext/standard/tests/file/disk_total_space_variation.phpt
@@ -12,10 +12,10 @@ Testing disk_total_space() functions : Usage Variations.
$file_path = dirname(__FILE__);
echo "*** Testing with a directory ***\n";
-var_dump( disk_total_space($file_path."/..") );
+var_dump( disk_total_space($file_path."/..") );
echo "\nTesting for the return type ***\n";
-$return_value = disk_total_space($file_path);
+$return_value = disk_total_space($file_path);
var_dump( is_float($return_value) );
echo "\n*** Testing with different directory combinations ***";
@@ -54,7 +54,7 @@ foreach($dirs_arr as $dir1) {
}
echo "*** Testing with Binary Input ***\n";
-var_dump( disk_total_space(b"$file_path") );
+var_dump( disk_total_space(b"$file_path") );
echo"\n--- Done ---";
?>
diff --git a/ext/standard/tests/file/fflush_error.phpt b/ext/standard/tests/file/fflush_error.phpt
index 79a5bc1ca5..8882f227ea 100644
--- a/ext/standard/tests/file/fflush_error.phpt
+++ b/ext/standard/tests/file/fflush_error.phpt
@@ -21,7 +21,7 @@ $filename = "$file_path/fflush_error.tmp";
$file_handle = fopen($filename, "w");
if($file_handle == false)
exit("Error:failed to open file $filename");
-
+
var_dump( fflush($file_handle, $file_handle) );
fclose($file_handle);
diff --git a/ext/standard/tests/file/fflush_variation1-win32-mb.phpt b/ext/standard/tests/file/fflush_variation1-win32-mb.phpt
index 12c34cb2f5..9679f4dd00 100644
--- a/ext/standard/tests/file/fflush_variation1-win32-mb.phpt
+++ b/ext/standard/tests/file/fflush_variation1-win32-mb.phpt
@@ -23,7 +23,7 @@ $file_modes = array("w", "wb", "wt", "w+", "w+b", "w+t",
"a", "ab", "at", "a+","a+b", "a+t",
"x", "xb", "xt", "x+", "x+b", "x+t");
-$file_name = "$file_path/fflush_variation私はガラスを食べられます1.tmp";
+$file_name = "$file_path/fflush_variation私はガラスを食べられます1.tmp";
$count = 1;
@@ -31,26 +31,26 @@ foreach( $file_types as $type ) {
echo "-- Iteration $count with file containing $type Data--\n";
foreach( $file_modes as $mode ) {
echo "-- File opened in $mode mode --\n";
-
+
// creating the file except for x mode
if( substr($mode, 0, 1) != "x" ) {
$file_handle = fopen($file_name, "w");
if($file_handle == false)
exit("Error:failed to open file $file_name");
-
+
// filling the file some data if mode is append mode
- if( substr($mode, 0, 1) == "a")
+ if( substr($mode, 0, 1) == "a")
fill_file($file_handle, $type, 10);
fclose($file_handle);
- }
-
+ }
+
// opening the file in different modes
$file_handle = fopen($file_name, $mode);
- if($file_handle == false)
+ if($file_handle == false)
exit("Error:failed to open file $file_name");
-
+
// writing data to the file
- var_dump( fill_file($file_handle, $type, 50) );
+ var_dump( fill_file($file_handle, $type, 50) );
var_dump( fflush($file_handle) );
fclose($file_handle);
diff --git a/ext/standard/tests/file/fflush_variation1-win32.phpt b/ext/standard/tests/file/fflush_variation1-win32.phpt
index 109e531b95..5716a56560 100644
--- a/ext/standard/tests/file/fflush_variation1-win32.phpt
+++ b/ext/standard/tests/file/fflush_variation1-win32.phpt
@@ -23,7 +23,7 @@ $file_modes = array("w", "wb", "wt", "w+", "w+b", "w+t",
"a", "ab", "at", "a+","a+b", "a+t",
"x", "xb", "xt", "x+", "x+b", "x+t");
-$file_name = "$file_path/fflush_variation1.tmp";
+$file_name = "$file_path/fflush_variation1.tmp";
$count = 1;
@@ -31,26 +31,26 @@ foreach( $file_types as $type ) {
echo "-- Iteration $count with file containing $type Data--\n";
foreach( $file_modes as $mode ) {
echo "-- File opened in $mode mode --\n";
-
+
// creating the file except for x mode
if( substr($mode, 0, 1) != "x" ) {
$file_handle = fopen($file_name, "w");
if($file_handle == false)
exit("Error:failed to open file $file_name");
-
+
// filling the file some data if mode is append mode
- if( substr($mode, 0, 1) == "a")
+ if( substr($mode, 0, 1) == "a")
fill_file($file_handle, $type, 10);
fclose($file_handle);
- }
-
+ }
+
// opening the file in different modes
$file_handle = fopen($file_name, $mode);
- if($file_handle == false)
+ if($file_handle == false)
exit("Error:failed to open file $file_name");
-
+
// writing data to the file
- var_dump( fill_file($file_handle, $type, 50) );
+ var_dump( fill_file($file_handle, $type, 50) );
var_dump( fflush($file_handle) );
fclose($file_handle);
diff --git a/ext/standard/tests/file/fflush_variation1.phpt b/ext/standard/tests/file/fflush_variation1.phpt
index 4b77195a0e..d23afd8984 100644
--- a/ext/standard/tests/file/fflush_variation1.phpt
+++ b/ext/standard/tests/file/fflush_variation1.phpt
@@ -23,7 +23,7 @@ $file_modes = array("w", "wb", "wt", "w+", "w+b", "w+t",
"a", "ab", "at", "a+","a+b", "a+t",
"x", "xb", "xt", "x+", "x+b", "x+t");
-$file_name = "$file_path/fflush_variation1.tmp";
+$file_name = "$file_path/fflush_variation1.tmp";
$count = 1;
@@ -31,7 +31,7 @@ foreach( $file_types as $type ) {
echo "-- Iteration $count with file containing $type Data--\n";
foreach( $file_modes as $mode ) {
echo "-- File opened in $mode mode --\n";
-
+
// creating the file except for x mode
if( substr($mode, 0, 1) != "x" ) {
$file_handle = fopen($file_name, "w");
@@ -39,19 +39,19 @@ foreach( $file_types as $type ) {
exit("Error:failed to open file $file_name");
// filling the file with some data if mode is append mode
- if( substr($mode, 0, 1) == "a")
+ if( substr($mode, 0, 1) == "a")
fill_file($file_handle, $type, 10);
fclose($file_handle);
- }
-
+ }
+
// opening the file in different modes
$file_handle = fopen($file_name, $mode);
- if($file_handle == false)
+ if($file_handle == false)
exit("Error:failed to open file $file_name");
-
+
// writing data to the file
- var_dump( fill_file($file_handle, $type, 50) );
+ var_dump( fill_file($file_handle, $type, 50) );
var_dump( fflush($file_handle) );
fclose($file_handle);
diff --git a/ext/standard/tests/file/fflush_variation2.phpt b/ext/standard/tests/file/fflush_variation2.phpt
index 9dfa17c43c..09670e875b 100644
--- a/ext/standard/tests/file/fflush_variation2.phpt
+++ b/ext/standard/tests/file/fflush_variation2.phpt
@@ -35,14 +35,14 @@ foreach( $file_types as $type ) {
$file_handle = fopen($file_name, "w");
if($file_handle == false)
exit("Error:failed to open file $file_name");
-
+
//fill the file with some data if mode is append mode
- if( substr($mode, 0, 1) == "a" )
- fill_file($file_handle, $type, 10);
-
+ if( substr($mode, 0, 1) == "a" )
+ fill_file($file_handle, $type, 10);
+
//close the file
fclose($file_handle);
-
+
// creating the sym link
var_dump( symlink($file_name, $symlink_name) );
$file_handle = fopen($symlink_name, $mode);
@@ -50,10 +50,10 @@ foreach( $file_types as $type ) {
exit("Error:failed to open link $symlink_name");
// filling data into the file
- var_dump( fill_file($file_handle, $type, 50) );
+ var_dump( fill_file($file_handle, $type, 50) );
var_dump( fflush($file_handle) );
fclose($file_handle);
-
+
// reading the data from the file
var_dump( readfile($symlink_name) );
diff --git a/ext/standard/tests/file/fflush_variation3.phpt b/ext/standard/tests/file/fflush_variation3.phpt
index 0f27413930..80bbaf54f3 100644
--- a/ext/standard/tests/file/fflush_variation3.phpt
+++ b/ext/standard/tests/file/fflush_variation3.phpt
@@ -29,28 +29,28 @@ $count = 1;
foreach( $file_types as $type ) {
echo "-- Iteration $count with file containing $type data --\n";
foreach( $file_modes as $mode ) {
-
+
// creating the file
$file_handle = fopen($file_name, "w");
if($file_handle == false)
exit("Error:failed to open file $file_name");
// fill the fill with some data if mode is append mode
- if( substr($mode, 0, 1) == "a" )
- fill_file($file_handle, $type, 10);
+ if( substr($mode, 0, 1) == "a" )
+ fill_file($file_handle, $type, 10);
// fclose($file_handle);
-
+
// creating hard link to the file
var_dump( link($file_name, $link_name) );
-
+
// opening the file in different modes
$file_handle = fopen($link_name, $mode);
if($file_handle == false)
exit("Error:failed to open link $link_name");
-
+
// writing data to the file
- var_dump( fill_file($file_handle, $type, 50) );
+ var_dump( fill_file($file_handle, $type, 50) );
var_dump( fflush($file_handle) );
fclose($file_handle);
diff --git a/ext/standard/tests/file/fflush_variation4.phpt b/ext/standard/tests/file/fflush_variation4.phpt
index ce6536ae2f..574a798e29 100644
--- a/ext/standard/tests/file/fflush_variation4.phpt
+++ b/ext/standard/tests/file/fflush_variation4.phpt
@@ -14,7 +14,7 @@ require $file_path.'/file.inc';
echo "*** Testing fflush(): with file handles of files opened in various read modes ***\n";
$file_modes = array("r", "rb", "rt");
-$file_name = "$file_path/fflush_variation4.tmp";
+$file_name = "$file_path/fflush_variation4.tmp";
$count = 1;
@@ -26,14 +26,14 @@ foreach( $file_modes as $mode ) {
if($file_handle == false)
exit("Error:failed to open file $file_name");
fclose($file_handle);
-
+
// opening the file in different read modes
$file_handle = fopen($file_name, $mode);
- if($file_handle == false)
+ if($file_handle == false)
exit("Error:failed to open file $file_name");
var_dump( fflush($file_handle) );
fclose($file_handle);
-
+
unlink($file_name);
$count++;
}
diff --git a/ext/standard/tests/file/fgetc_basic.phpt b/ext/standard/tests/file/fgetc_basic.phpt
index 7851e432f3..4c6daa4e7f 100644
--- a/ext/standard/tests/file/fgetc_basic.phpt
+++ b/ext/standard/tests/file/fgetc_basic.phpt
@@ -22,7 +22,7 @@ for($outerloop_counter = 0; $outerloop_counter < count($file_content_types); $ou
echo " ---\n";
// create file file
create_files(dirname(__FILE__), 1, $file_content_types[$outerloop_counter], 0755, 1, "w", "fgetc_basic", 1);
-
+
//open the file in different modes and check the working of fgetc
for($innerloop_counter = 0; $innerloop_counter < count($file_modes); $innerloop_counter++) {
echo "-- Innerloop iteration ";
@@ -30,7 +30,7 @@ for($outerloop_counter = 0; $outerloop_counter < count($file_content_types); $ou
echo " of Outerloop Iteration ";
echo $outerloop_counter + 1;
echo " --\n";
-
+
// open the file using the $file_modes
$filename = dirname(__FILE__)."/fgetc_basic1.tmp"; // file name that is created by create_files
echo "-- Testing fgetc() : file opened using $file_modes[$innerloop_counter] mode --\n";
@@ -48,12 +48,12 @@ for($outerloop_counter = 0; $outerloop_counter < count($file_content_types); $ou
var_dump( feof($file_handle) ); // is it eof()
var_dump($file_handle); // dump the $file_handle to see if any thing got modifed
} // end of for
-
+
// close the file
fclose ( $file_handle);
} // end of innerloop for
-
+
// delete the file
delete_files(dirname(__FILE__), 1, "fgetc_basic", 1, ".tmp");
diff --git a/ext/standard/tests/file/fgetc_variation2.phpt b/ext/standard/tests/file/fgetc_variation2.phpt
index 169f00ac2c..982433f956 100644
--- a/ext/standard/tests/file/fgetc_variation2.phpt
+++ b/ext/standard/tests/file/fgetc_variation2.phpt
@@ -11,7 +11,7 @@ Test fgetc() function : usage variations - closed handle
- closed file handle
- unset file handle
*/
-
+
// include the header for common test function
include ("file.inc");
diff --git a/ext/standard/tests/file/fgetc_variation3.phpt b/ext/standard/tests/file/fgetc_variation3.phpt
index fcea7f0d86..db4ea6fc21 100644
--- a/ext/standard/tests/file/fgetc_variation3.phpt
+++ b/ext/standard/tests/file/fgetc_variation3.phpt
@@ -31,8 +31,8 @@ foreach ($file_modes as $file_mode ) {
fwrite($file_handle, $data);
// rewind the file pointer to beginning of the file
- var_dump( rewind($file_handle) );
- var_dump( ftell($file_handle) );
+ var_dump( rewind($file_handle) );
+ var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
// read from file
@@ -44,7 +44,7 @@ foreach ($file_modes as $file_mode ) {
fclose($file_handle);
// delete the file
- unlink($filename);
+ unlink($filename);
}
echo "Done\n";
diff --git a/ext/standard/tests/file/fgetc_variation4.phpt b/ext/standard/tests/file/fgetc_variation4.phpt
index 7c4ea4fa0f..8f3fcabee1 100644
--- a/ext/standard/tests/file/fgetc_variation4.phpt
+++ b/ext/standard/tests/file/fgetc_variation4.phpt
@@ -13,8 +13,8 @@ Test fgetc() function : usage variations - different read modes
echo "*** Testing fgetc() : usage variations ***\n";
echo "-- Testing fgetc() with files opened with different read modes --\n";
-$file_modes = array( "a+", "a+b", "a+t",
- "x+", "x+b", "x+t",
+$file_modes = array( "a+", "a+b", "a+t",
+ "x+", "x+b", "x+t",
"w+", "w+b", "w+t" );
$filename = dirname(__FILE__)."/fgetc_variation4.tmp";
@@ -30,8 +30,8 @@ foreach ($file_modes as $file_mode ) {
fwrite($file_handle, $data);
// rewind the file pointer to beginning of the file
- var_dump( rewind($file_handle) );
- var_dump( ftell($file_handle) );
+ var_dump( rewind($file_handle) );
+ var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
// read from file, at least 7 chars
@@ -45,7 +45,7 @@ foreach ($file_modes as $file_mode ) {
fclose($file_handle);
// delete the file
- unlink($filename);
+ unlink($filename);
}
echo "Done\n";
diff --git a/ext/standard/tests/file/fgetcsv_variation1.phpt b/ext/standard/tests/file/fgetcsv_variation1.phpt
index 969c9c0348..e9f029e767 100644
--- a/ext/standard/tests/file/fgetcsv_variation1.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation1.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with all parameters specified
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -32,7 +32,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation1.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -50,7 +50,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
fwrite($file_handle, $csv_field . "\n");
// write another line of text and a blank line
// this will be used to test, if the fgetcsv() read more than a line and its
@@ -67,17 +67,17 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
-
+
// use the right delimiter and enclosure with max length
var_dump( fgetcsv($file_handle, 1024, $delimiter, $enclosure) );
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation10.phpt b/ext/standard/tests/file/fgetcsv_variation10.phpt
index 60a401bb86..93c81640d5 100644
--- a/ext/standard/tests/file/fgetcsv_variation10.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation10.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - file pointer pointing to EOF
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -32,7 +32,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation10.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -62,17 +62,17 @@ foreach ($csv_lists as $csv_list) {
if ( strstr($file_modes[$mode_counter], "r" ) ) {
fclose($file_handle);
$file_handle = fopen($filename, $file_modes[$mode_counter]);
- }
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+ }
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// set the file pointer to EOF
- var_dump( fseek($file_handle, 0, SEEK_END) );
+ var_dump( fseek($file_handle, 0, SEEK_END) );
// call fgetcsv() to parse csv fields
// now file pointer should point to end of the file, try reading again
var_dump( feof($file_handle) );
- var_dump( fgetcsv($file_handle, 1024, $delimiter, $enclosure) );
+ var_dump( fgetcsv($file_handle, 1024, $delimiter, $enclosure) );
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
@@ -80,7 +80,7 @@ foreach ($csv_lists as $csv_list) {
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation11.phpt b/ext/standard/tests/file/fgetcsv_variation11.phpt
index d5741248fb..719cbe5708 100644
--- a/ext/standard/tests/file/fgetcsv_variation11.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation11.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with different enclosure but same delimiter
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -33,7 +33,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation11.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -67,8 +67,8 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
diff --git a/ext/standard/tests/file/fgetcsv_variation12.phpt b/ext/standard/tests/file/fgetcsv_variation12.phpt
index 3168684468..9802e92120 100644
--- a/ext/standard/tests/file/fgetcsv_variation12.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation12.phpt
@@ -1,8 +1,8 @@
--TEST--
-Test fgetcsv() : usage variations - two chars as enclosure & delimiter (various read and append modes)
+Test fgetcsv() : usage variations - two chars as enclosure & delimiter (various read and append modes)
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -49,7 +49,7 @@ foreach ($csv_lists as $csv_list) {
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
fwrite($file_handle, $csv_field . "\n");
-
+
// write another line of text and a blank line
// this will be used to test, if the fgetcsv() read more than a line and its
// working when only a blank line is read
@@ -65,8 +65,8 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
@@ -78,7 +78,7 @@ foreach ($csv_lists as $csv_list) {
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation13.phpt b/ext/standard/tests/file/fgetcsv_variation13.phpt
index f191a26379..d640244b89 100644
--- a/ext/standard/tests/file/fgetcsv_variation13.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation13.phpt
@@ -3,7 +3,7 @@ Test fgetcsv() : usage variations - with line without any csv fields
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -19,7 +19,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation13.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
@@ -45,10 +45,10 @@ $loop_counter = 1;
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
-
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+
// read the line which is without csv fields, provide delimiter and see the working of fgetcsv
$fp_pos = ftell($file_handle);
var_dump( fgetcsv($file_handle) );
diff --git a/ext/standard/tests/file/fgetcsv_variation14.phpt b/ext/standard/tests/file/fgetcsv_variation14.phpt
index 14c72a24b1..b1b588e552 100644
--- a/ext/standard/tests/file/fgetcsv_variation14.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation14.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - reading the blank line
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -18,7 +18,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation14.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
@@ -44,8 +44,8 @@ $loop_counter = 1;
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
diff --git a/ext/standard/tests/file/fgetcsv_variation15.phpt b/ext/standard/tests/file/fgetcsv_variation15.phpt
index c6859497ee..9ccb247b31 100644
--- a/ext/standard/tests/file/fgetcsv_variation15.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation15.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with default enclosure
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -28,7 +28,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation15.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -61,8 +61,8 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
diff --git a/ext/standard/tests/file/fgetcsv_variation16.phpt b/ext/standard/tests/file/fgetcsv_variation16.phpt
index 9cfdd72460..8cd27eccc6 100644
--- a/ext/standard/tests/file/fgetcsv_variation16.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation16.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with default enclosure & length as 0
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -30,7 +30,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation16.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -63,14 +63,14 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
// use length as 0
fseek($file_handle, 0, SEEK_SET);
- var_dump( fgetcsv($file_handle, 0, $delimiter) );
+ var_dump( fgetcsv($file_handle, 0, $delimiter) );
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
diff --git a/ext/standard/tests/file/fgetcsv_variation17.phpt b/ext/standard/tests/file/fgetcsv_variation17.phpt
index b8d918659f..61759e0a94 100644
--- a/ext/standard/tests/file/fgetcsv_variation17.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation17.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with default enclosure & length less than line size
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -30,7 +30,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation17.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -63,8 +63,8 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
@@ -80,7 +80,7 @@ foreach ($csv_lists as $csv_list) {
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation18.phpt b/ext/standard/tests/file/fgetcsv_variation18.phpt
index f0ebcb7fae..932858bc98 100644
--- a/ext/standard/tests/file/fgetcsv_variation18.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation18.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with default enclosure and different delimiter
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -30,7 +30,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation18.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -63,11 +63,11 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
-
+
// use different delimiter than existing in file
fseek($file_handle, 0, SEEK_SET);
$del = "+";
@@ -75,7 +75,7 @@ foreach ($csv_lists as $csv_list) {
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation19.phpt b/ext/standard/tests/file/fgetcsv_variation19.phpt
index cb510099bd..7278b503aa 100644
--- a/ext/standard/tests/file/fgetcsv_variation19.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation19.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with default enclosure & delimiter of two chars
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -31,7 +31,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation19.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -64,11 +64,11 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
-
+
// use delimiter & enclosure char of two chars
fseek($file_handle, 0, SEEK_SET);
$del = "++";
@@ -76,7 +76,7 @@ foreach ($csv_lists as $csv_list) {
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation2.phpt b/ext/standard/tests/file/fgetcsv_variation2.phpt
index d1e446d1f9..b696170036 100644
--- a/ext/standard/tests/file/fgetcsv_variation2.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation2.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with length as 0
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -32,7 +32,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation2.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -67,11 +67,11 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
-
+
// use length as 0
fseek($file_handle, 0, SEEK_SET);
var_dump( fgetcsv($file_handle, 0, $delimiter, $enclosure) );
diff --git a/ext/standard/tests/file/fgetcsv_variation20.phpt b/ext/standard/tests/file/fgetcsv_variation20.phpt
index 70bd8acbb0..49a32d92df 100644
--- a/ext/standard/tests/file/fgetcsv_variation20.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation20.phpt
@@ -2,16 +2,16 @@
Test fgetcsv() : usage variations - with default enclosure, line without any csv fields
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
-/*
+/*
Testing fgetcsv() to read a line without any csv fields from a file
when provided with default enclosure value
*/
-
+
echo "*** Testing fgetcsv() : with default enclosure, line without any csv fields ***\n";
$filename = dirname(__FILE__) . '/fgetcsv_variation20.tmp';
@@ -20,7 +20,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation20.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
@@ -46,11 +46,11 @@ $loop_counter = 1;
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
-
+
// read the line which is without csv fields, provide delimiter and see the working of fgetcsv
$fp_pos = ftell($file_handle);
var_dump( fgetcsv($file_handle, 1024) );
diff --git a/ext/standard/tests/file/fgetcsv_variation21.phpt b/ext/standard/tests/file/fgetcsv_variation21.phpt
index ae8c4f1ef6..dbfc2849d8 100644
--- a/ext/standard/tests/file/fgetcsv_variation21.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation21.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with default enclosure, blank line
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -20,7 +20,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation21.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
@@ -46,11 +46,11 @@ $loop_counter = 1;
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
-
+
// read the line which is a blank line to see the working of fgetcsv
$fp_pos = ftell($file_handle);
var_dump( fgetcsv($file_handle, 1024, '+') );
diff --git a/ext/standard/tests/file/fgetcsv_variation22.phpt b/ext/standard/tests/file/fgetcsv_variation22.phpt
index 9f35c1c1c3..5c3999b0d7 100644
--- a/ext/standard/tests/file/fgetcsv_variation22.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation22.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with default enclosure, file pointer pointing at end of file
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -31,7 +31,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation22.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -60,10 +60,10 @@ foreach ($csv_lists as $csv_list) {
if ( strstr($file_modes[$mode_counter], "r" ) ) {
fclose($file_handle);
$file_handle = fopen($filename, $file_modes[$mode_counter]);
- }
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
-
+ }
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
// set the file pointer to EOF
var_dump( fseek($file_handle, 0, SEEK_END) );
diff --git a/ext/standard/tests/file/fgetcsv_variation23.phpt b/ext/standard/tests/file/fgetcsv_variation23.phpt
index b766f1e062..84c0e0bc8b 100644
--- a/ext/standard/tests/file/fgetcsv_variation23.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation23.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - empty file
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
diff --git a/ext/standard/tests/file/fgetcsv_variation24.phpt b/ext/standard/tests/file/fgetcsv_variation24.phpt
index cdfadceb70..9ac3569b9e 100644
--- a/ext/standard/tests/file/fgetcsv_variation24.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation24.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - two chars as enclosure & delimiter (various write modes)
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -67,8 +67,8 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
@@ -80,7 +80,7 @@ foreach ($csv_lists as $csv_list) {
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation25.phpt b/ext/standard/tests/file/fgetcsv_variation25.phpt
index 52e830cb5b..6dcb6474eb 100644
--- a/ext/standard/tests/file/fgetcsv_variation25.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation25.phpt
@@ -2,16 +2,16 @@
Test fgetcsv() : usage variations - with negative length value along with enclosure and delimiter
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
-/*
+/*
Testing fgetcsv() to read from a file when provided with negative length argument
along with delimiter and enclosure arguments
*/
-
+
echo "*** Testing fgetcsv() : with negative length value ***\n";
/* the array is with three elements in it. Each element should be read as
@@ -35,7 +35,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation25.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -53,7 +53,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
fwrite($file_handle, $csv_field . "\n");
// write another line of text and a blank line
// this will be used to test, if the fgetcsv() read more than a line and its
@@ -70,17 +70,17 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
-
+
// use the right delimiter and enclosure with negative length
var_dump( fgetcsv($file_handle, -10, $delimiter, $enclosure) );
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation26.phpt b/ext/standard/tests/file/fgetcsv_variation26.phpt
index c042eb4931..7ec33e6f22 100644
--- a/ext/standard/tests/file/fgetcsv_variation26.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation26.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - reading files opened in write only mode (Bug #42036)
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -38,7 +38,7 @@ foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
// create the file and add the content with has csv fields
$file_handle = fopen($filename, $file_modes[$mode_counter] );
-
+
if ( !$file_handle ) {
echo "Error: failed to create file $filename!\n";
exit();
@@ -46,7 +46,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
fwrite($file_handle, $csv_field . "\n");
// write another line of text and a blank line
// this will be used to test, if the fgetcsv() read more than a line and its
@@ -56,17 +56,17 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
-
+
// use the right delimiter and enclosure with max length
var_dump( fgetcsv($file_handle, 1024, $delimiter, $enclosure) );
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation27.phpt b/ext/standard/tests/file/fgetcsv_variation27.phpt
index a215e90a3f..15133aa870 100644
--- a/ext/standard/tests/file/fgetcsv_variation27.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation27.phpt
@@ -2,16 +2,16 @@
Test fgetcsv() : usage variations - with negative length value along with delimiter and no enclosure
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
-/*
+/*
Testing fgetcsv() to read from a file when provided with negative length argument
along with delimiter and no enclosure arguments
*/
-
+
echo "*** Testing fgetcsv() : with negative length value ***\n";
/* the array is with three elements in it. Each element should be read as
@@ -35,7 +35,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation27.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -53,7 +53,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
fwrite($file_handle, $csv_field . "\n");
// write another line of text and a blank line
// this will be used to test, if the fgetcsv() read more than a line and its
@@ -70,17 +70,17 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
-
+
// use the right delimiter and enclosure with negative length
var_dump( fgetcsv($file_handle, -10, $delimiter) );
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation28.phpt b/ext/standard/tests/file/fgetcsv_variation28.phpt
index 4e6fed3171..1b1667325c 100644
--- a/ext/standard/tests/file/fgetcsv_variation28.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation28.phpt
@@ -2,16 +2,16 @@
Test fgetcsv() : usage variations - with negative length value along with neither enclosure and nor delimiter
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
-/*
+/*
Testing fgetcsv() to read from a file when provided with negative length argument
along with neither delimiter nor enclosure argument
*/
-
+
echo "*** Testing fgetcsv() : with negative length value ***\n";
/* the array is with three elements in it. Each element should be read as
@@ -35,7 +35,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation28.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -53,7 +53,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
fwrite($file_handle, $csv_field . "\n");
// write another line of text and a blank line
// this will be used to test, if the fgetcsv() read more than a line and its
@@ -70,17 +70,17 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
-
+
// use the right delimiter and enclosure with negative length
var_dump( fgetcsv($file_handle, -10) );
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation29.phpt b/ext/standard/tests/file/fgetcsv_variation29.phpt
index 0420860321..e2a40bffd1 100644
--- a/ext/standard/tests/file/fgetcsv_variation29.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation29.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with only file handle as argument, file pointer pointing at end of file
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -31,7 +31,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation29.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -61,9 +61,9 @@ foreach ($csv_lists as $csv_list) {
if ( strstr($file_modes[$mode_counter], "r" ) ) {
fclose($file_handle);
$file_handle = fopen($filename, $file_modes[$mode_counter]);
- }
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+ }
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// set the file pointer to EOF
var_dump( fseek($file_handle, 0, SEEK_END) );
@@ -72,7 +72,7 @@ foreach ($csv_lists as $csv_list) {
// now file pointer should point to end of the file, try reading again
var_dump( feof($file_handle) );
- var_dump( fgetcsv($file_handle) );
+ var_dump( fgetcsv($file_handle) );
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
diff --git a/ext/standard/tests/file/fgetcsv_variation3.phpt b/ext/standard/tests/file/fgetcsv_variation3.phpt
index 8cde39da20..ce60f32f00 100644
--- a/ext/standard/tests/file/fgetcsv_variation3.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation3.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with delimiter as NULL
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -32,7 +32,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation3.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -67,8 +67,8 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
diff --git a/ext/standard/tests/file/fgetcsv_variation30.phpt b/ext/standard/tests/file/fgetcsv_variation30.phpt
index e474b2d546..caedfba781 100644
--- a/ext/standard/tests/file/fgetcsv_variation30.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation30.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with file handle and length, file pointer pointing at end of file
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -31,7 +31,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation30.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -60,18 +60,18 @@ foreach ($csv_lists as $csv_list) {
if ( strstr($file_modes[$mode_counter], "r" ) ) {
fclose($file_handle);
$file_handle = fopen($filename, $file_modes[$mode_counter]);
- }
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+ }
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// set the file pointer to EOF
var_dump( fseek($file_handle, 0, SEEK_END) );
-
+
// call fgetcsv() to parse csv fields
// now file pointer should point to end of the file, try reading again
var_dump( feof($file_handle) );
- var_dump( fgetcsv($file_handle, 1024) );
+ var_dump( fgetcsv($file_handle, 1024) );
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
diff --git a/ext/standard/tests/file/fgetcsv_variation31.phpt b/ext/standard/tests/file/fgetcsv_variation31.phpt
index 7d1e90e1f9..3113880393 100644
--- a/ext/standard/tests/file/fgetcsv_variation31.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation31.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with length and enclosure, file pointer pointing at end of file
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -31,7 +31,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation31.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -61,13 +61,13 @@ foreach ($csv_lists as $csv_list) {
if ( strstr($file_modes[$mode_counter], "r" ) ) {
fclose($file_handle);
$file_handle = fopen($filename, $file_modes[$mode_counter]);
- }
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+ }
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// set the file pointer to EOF
var_dump( fseek($file_handle, 0, SEEK_END) );
-
+
// call fgetcsv() to parse csv fields
// now file pointer should point to end of the file, try reading again
diff --git a/ext/standard/tests/file/fgetcsv_variation4.phpt b/ext/standard/tests/file/fgetcsv_variation4.phpt
index da945daa70..7eac3ed017 100644
--- a/ext/standard/tests/file/fgetcsv_variation4.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation4.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with enclosure as NULL
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -32,7 +32,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation4.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -66,8 +66,8 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
diff --git a/ext/standard/tests/file/fgetcsv_variation5.phpt b/ext/standard/tests/file/fgetcsv_variation5.phpt
index d3564e4015..b73b7aa40e 100644
--- a/ext/standard/tests/file/fgetcsv_variation5.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation5.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with delimiter & enclosure as NULL
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -35,7 +35,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation5.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -69,8 +69,8 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
diff --git a/ext/standard/tests/file/fgetcsv_variation6.phpt b/ext/standard/tests/file/fgetcsv_variation6.phpt
index 844dd7c519..20f4a3b5cb 100644
--- a/ext/standard/tests/file/fgetcsv_variation6.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation6.phpt
@@ -2,12 +2,12 @@
Test fgetcsv() : usage variations - with length less than line size
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
-/*
+/*
Testing fgetcsv() to read from a file when provided with the length argument
value less than the line size
*/
@@ -35,7 +35,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation6.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -69,8 +69,8 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
diff --git a/ext/standard/tests/file/fgetcsv_variation7.phpt b/ext/standard/tests/file/fgetcsv_variation7.phpt
index 271a55b009..247d450cd3 100644
--- a/ext/standard/tests/file/fgetcsv_variation7.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation7.phpt
@@ -2,7 +2,7 @@
Test fgetcsv() : usage variations - with default arguments value
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
@@ -32,7 +32,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation7.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -66,8 +66,8 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
diff --git a/ext/standard/tests/file/fgetcsv_variation8.phpt b/ext/standard/tests/file/fgetcsv_variation8.phpt
index bf06d29b40..51b6fdb546 100644
--- a/ext/standard/tests/file/fgetcsv_variation8.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation8.phpt
@@ -2,12 +2,12 @@
Test fgetcsv() : usage variations - with different delimiter and enclosure
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
-/*
+/*
Testing fgetcsv() to read from a file when provided with values of delimiter and
enclosure that are not present in the line read by fgetcsv()
*/
@@ -35,7 +35,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation8.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -70,8 +70,8 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
@@ -83,7 +83,7 @@ foreach ($csv_lists as $csv_list) {
// check the file pointer position and if eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// close the file
fclose($file_handle);
//delete file
diff --git a/ext/standard/tests/file/fgetcsv_variation9.phpt b/ext/standard/tests/file/fgetcsv_variation9.phpt
index 294241e6cd..72d82c7988 100644
--- a/ext/standard/tests/file/fgetcsv_variation9.phpt
+++ b/ext/standard/tests/file/fgetcsv_variation9.phpt
@@ -2,12 +2,12 @@
Test fgetcsv() : usage variations - with different delimiter but same enclosure
--FILE--
<?php
-/*
+/*
Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] );
Description: Gets line from file pointer and parse for CSV fields
*/
-/*
+/*
Testing fgetcsv() to read from a file when the delimiter argument value is not
present in the line being read by the fgetcsv()
*/
@@ -35,7 +35,7 @@ $filename = dirname(__FILE__) . '/fgetcsv_variation9.tmp';
$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
@@ -69,11 +69,11 @@ foreach ($csv_lists as $csv_list) {
// rewind the file pointer to bof
rewind($file_handle);
}
-
- echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
+
+ echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n";
// call fgetcsv() to parse csv fields
-
+
// use different delimiter but same enclosure char
fseek($file_handle, 0, SEEK_SET);
$del = "+";
diff --git a/ext/standard/tests/file/fgets_error.phpt b/ext/standard/tests/file/fgets_error.phpt
index c84d562027..048278cf5b 100644
--- a/ext/standard/tests/file/fgets_error.phpt
+++ b/ext/standard/tests/file/fgets_error.phpt
@@ -19,11 +19,11 @@ var_dump( fgets($fp, 10, $fp) );
// invalid length argument
echo "-- Testing fgets() with invalid length arguments --\n";
-$len = 0;
+$len = 0;
var_dump( fgets($fp, $len) );
$len = -10;
var_dump( fgets($fp, $len) );
-$len = 1;
+$len = 1;
var_dump( fgets($fp, $len) ); // return length - 1 always, expect false
diff --git a/ext/standard/tests/file/fgets_variation1.phpt b/ext/standard/tests/file/fgets_variation1.phpt
index a51ca6c81c..b4a86250ba 100644
--- a/ext/standard/tests/file/fgets_variation1.phpt
+++ b/ext/standard/tests/file/fgets_variation1.phpt
@@ -30,8 +30,8 @@ foreach ($file_modes as $file_mode ) {
fwrite($file_handle, $data);
// rewind the file pointer to beginning of the file
- var_dump( rewind($file_handle) );
- var_dump( ftell($file_handle) );
+ var_dump( rewind($file_handle) );
+ var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
// read from file
@@ -43,7 +43,7 @@ foreach ($file_modes as $file_mode ) {
fclose($file_handle);
// delete the file
- unlink($filename);
+ unlink($filename);
}
echo "Done\n";
diff --git a/ext/standard/tests/file/fgets_variation2.phpt b/ext/standard/tests/file/fgets_variation2.phpt
index 201755b69c..4c0ba2894c 100644
--- a/ext/standard/tests/file/fgets_variation2.phpt
+++ b/ext/standard/tests/file/fgets_variation2.phpt
@@ -11,7 +11,7 @@ Test fgets() function : usage variations - closed handle
- closed file handle
- unset file handle
*/
-
+
// include the header for common test function
include ("file.inc");
diff --git a/ext/standard/tests/file/fgets_variation3.phpt b/ext/standard/tests/file/fgets_variation3.phpt
index 09b20fcb23..6288477fd4 100644
--- a/ext/standard/tests/file/fgets_variation3.phpt
+++ b/ext/standard/tests/file/fgets_variation3.phpt
@@ -12,7 +12,7 @@ include ("file.inc");
$file_modes = array("w+", "w+b", "w+t",
"a+", "a+b", "a+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$file_content_types = array("numeric", "text", "text_with_new_line", "alphanumeric");
@@ -29,7 +29,7 @@ foreach($file_modes as $file_mode) {
/* create files with $file_content_type */
$file_handle = fopen($filename, $file_mode);
$data = fill_file($file_handle, $file_content_type, 50);
-
+
if ( !$file_handle ) {
echo "Error: failed to open file $filename!";
exit();
diff --git a/ext/standard/tests/file/fgets_variation4-win32-mb.phpt b/ext/standard/tests/file/fgets_variation4-win32-mb.phpt
index 40223d3cdf..b5c3eaae8f 100644
--- a/ext/standard/tests/file/fgets_variation4-win32-mb.phpt
+++ b/ext/standard/tests/file/fgets_variation4-win32-mb.phpt
@@ -18,7 +18,7 @@ include ("file.inc");
$file_modes = array("w+", "w+b", "w+t",
"a+", "a+b", "a+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$file_content_types = array("numeric", "text", "text_with_new_line", "alphanumeric");
diff --git a/ext/standard/tests/file/fgets_variation4-win32.phpt b/ext/standard/tests/file/fgets_variation4-win32.phpt
index c95ca287bd..d5b2c5a53d 100644
--- a/ext/standard/tests/file/fgets_variation4-win32.phpt
+++ b/ext/standard/tests/file/fgets_variation4-win32.phpt
@@ -18,7 +18,7 @@ include ("file.inc");
$file_modes = array("w+", "w+b", "w+t",
"a+", "a+b", "a+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$file_content_types = array("numeric", "text", "text_with_new_line", "alphanumeric");
diff --git a/ext/standard/tests/file/fgets_variation4.phpt b/ext/standard/tests/file/fgets_variation4.phpt
index 1843c2e8b5..c858c8cb21 100644
--- a/ext/standard/tests/file/fgets_variation4.phpt
+++ b/ext/standard/tests/file/fgets_variation4.phpt
@@ -18,7 +18,7 @@ include ("file.inc");
$file_modes = array("w+", "w+b", "w+t",
"a+", "a+b", "a+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$file_content_types = array("numeric", "text", "text_with_new_line", "alphanumeric");
diff --git a/ext/standard/tests/file/fgets_variation5.phpt b/ext/standard/tests/file/fgets_variation5.phpt
index 1907f541e2..c2ededf198 100644
--- a/ext/standard/tests/file/fgets_variation5.phpt
+++ b/ext/standard/tests/file/fgets_variation5.phpt
@@ -12,7 +12,7 @@ include ("file.inc");
$file_modes = array("w+", "w+b", "w+t",
"a+", "a+b", "a+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$file_content_types = array("numeric", "text", "text_with_new_line", "alphanumeric");
diff --git a/ext/standard/tests/file/fgets_variation6-win32.phpt b/ext/standard/tests/file/fgets_variation6-win32.phpt
index fa01154bcf..a402cb1073 100644
--- a/ext/standard/tests/file/fgets_variation6-win32.phpt
+++ b/ext/standard/tests/file/fgets_variation6-win32.phpt
@@ -18,7 +18,7 @@ include ("file.inc");
$file_modes = array("w+", "w+b", "w+t",
"a+", "a+b", "a+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$file_content_types = array("numeric", "text", "text_with_new_line", "alphanumeric");
diff --git a/ext/standard/tests/file/fgets_variation6.phpt b/ext/standard/tests/file/fgets_variation6.phpt
index 52da7094dd..2bcec8a3bd 100644
--- a/ext/standard/tests/file/fgets_variation6.phpt
+++ b/ext/standard/tests/file/fgets_variation6.phpt
@@ -18,7 +18,7 @@ include ("file.inc");
$file_modes = array("w+", "w+b", "w+t",
"a+", "a+b", "a+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$file_content_types = array("numeric", "text", "text_with_new_line", "alphanumeric");
diff --git a/ext/standard/tests/file/fgetss.phpt b/ext/standard/tests/file/fgetss.phpt
index fc685113fc..41ac46dc92 100644
--- a/ext/standard/tests/file/fgetss.phpt
+++ b/ext/standard/tests/file/fgetss.phpt
@@ -38,7 +38,7 @@ var_dump(fgetss($fp, 0));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Deprecated: Function fgetss() is deprecated in %s on line %d
string(18) "askasdfasdfaaaaaa
"
diff --git a/ext/standard/tests/file/fgetss1.phpt b/ext/standard/tests/file/fgetss1.phpt
index 5054086d7d..0266371865 100644
--- a/ext/standard/tests/file/fgetss1.phpt
+++ b/ext/standard/tests/file/fgetss1.phpt
@@ -37,7 +37,7 @@ echo "Done\n";
$filename = dirname(__FILE__)."/fgetss1.html";
unlink($filename);
?>
---EXPECT--
+--EXPECT--
string(21) "askasdfasdf<b>aaaaaa
"
string(6) "dddddd"
diff --git a/ext/standard/tests/file/fgetss_basic1.phpt b/ext/standard/tests/file/fgetss_basic1.phpt
index 53ef38d4d8..788a2a5f37 100644
--- a/ext/standard/tests/file/fgetss_basic1.phpt
+++ b/ext/standard/tests/file/fgetss_basic1.phpt
@@ -34,32 +34,32 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "\n-- Testing fgetss() with file opened using $file_modes[$mode_counter] mode --\n";
/* create an empty file and write the strings with tags */
- $filename = dirname(__FILE__)."/fgetss_basic1.tmp";
+ $filename = dirname(__FILE__)."/fgetss_basic1.tmp";
create_file ($filename); //create an empty file
- file_put_contents($filename, $string_with_tags);
+ file_put_contents($filename, $string_with_tags);
$file_handle = fopen($filename, $file_modes[$mode_counter]);
if(!$file_handle) {
echo "Error: failed to open file $filename!\n";
exit();
}
-
- rewind($file_handle);
- /* read entire file and strip tags */
+
+ rewind($file_handle);
+ /* read entire file and strip tags */
echo "-- fgetss() with default length, file pointer at 0 --\n";
var_dump( fgetss($file_handle) ); // no length and allowable tags provided, reads entire file
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
rewind($file_handle);
/* read entire file and strip tags tags */
echo "-- fgets() with length = 30, file pointer at 0 --\n";
var_dump( fgetss($file_handle ,30) ); // length parameter given,not reading entire file
var_dump( ftell($file_handle) ); // checking file pointer position initially
var_dump( feof($file_handle) ); // confirm file pointer is not at eof
-
+
// close the file
fclose($file_handle);
-
+
// delete the file
delete_file($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/fgetss_basic2-win32-mb.phpt b/ext/standard/tests/file/fgetss_basic2-win32-mb.phpt
index c875024718..518e39d4c9 100644
--- a/ext/standard/tests/file/fgetss_basic2-win32-mb.phpt
+++ b/ext/standard/tests/file/fgetss_basic2-win32-mb.phpt
@@ -34,7 +34,7 @@ EOT;
if(substr(PHP_OS, 0, 3) == "WIN") {
$string_with_tags = str_replace("\r",'', $string_with_tags);
}
-$filename = dirname(__FILE__)."/fgetss_basic2私はガラスを食べられます.tmp";
+$filename = dirname(__FILE__)."/fgetss_basic2私はガラスを食べられます.tmp";
/* try reading the file opened in different modes of reading */
$file_modes = array("w+","w+b", "w+t","a+", "a+b", "a+t","x+","x+b","x+t");
@@ -49,7 +49,7 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "Error: failed to open file $filename!\n";
exit();
}
-
+
// rewind the file pointer to beginning of the file
var_dump( filesize($filename) );
var_dump( rewind($file_handle) );
@@ -68,10 +68,10 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( fgetss($file_handle ,30) ); // length parameter given,not reading entire file
var_dump( ftell($file_handle) ); // checking file pointer position initially
var_dump( feof($file_handle) ); // confirm file pointer is not at eof
-
+
// close the file
fclose($file_handle);
-
+
// delete the file
unlink($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/fgetss_basic2-win32.phpt b/ext/standard/tests/file/fgetss_basic2-win32.phpt
index c7f3aa4c06..c78fed27c1 100644
--- a/ext/standard/tests/file/fgetss_basic2-win32.phpt
+++ b/ext/standard/tests/file/fgetss_basic2-win32.phpt
@@ -34,7 +34,7 @@ EOT;
if(substr(PHP_OS, 0, 3) == "WIN") {
$string_with_tags = str_replace("\r",'', $string_with_tags);
}
-$filename = dirname(__FILE__)."/fgetss_basic2.tmp";
+$filename = dirname(__FILE__)."/fgetss_basic2.tmp";
/* try reading the file opened in different modes of reading */
$file_modes = array("w+","w+b", "w+t","a+", "a+b", "a+t","x+","x+b","x+t");
@@ -49,7 +49,7 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "Error: failed to open file $filename!\n";
exit();
}
-
+
// rewind the file pointer to beginning of the file
var_dump( filesize($filename) );
var_dump( rewind($file_handle) );
@@ -68,10 +68,10 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( fgetss($file_handle ,30) ); // length parameter given,not reading entire file
var_dump( ftell($file_handle) ); // checking file pointer position initially
var_dump( feof($file_handle) ); // confirm file pointer is not at eof
-
+
// close the file
fclose($file_handle);
-
+
// delete the file
unlink($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/fgetss_basic2.phpt b/ext/standard/tests/file/fgetss_basic2.phpt
index 771eabeaa1..4dc1fe3b45 100644
--- a/ext/standard/tests/file/fgetss_basic2.phpt
+++ b/ext/standard/tests/file/fgetss_basic2.phpt
@@ -32,7 +32,7 @@ is a heredoc string. <pg>ksklnm@@$$&$&^%&^%&^%&</pg>
<html> html </html> <?php echo "php"; ?>
EOT;
-$filename = dirname(__FILE__)."/fgetss_basic2.tmp";
+$filename = dirname(__FILE__)."/fgetss_basic2.tmp";
/* try reading the file opened in different modes of reading */
$file_modes = array("w+","w+b", "w+t","a+", "a+b", "a+t","x+","x+b","x+t");
@@ -47,7 +47,7 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "Error: failed to open file $filename!\n";
exit();
}
-
+
// rewind the file pointer to beginning of the file
var_dump( filesize($filename) );
var_dump( rewind($file_handle) );
@@ -66,10 +66,10 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( fgetss($file_handle ,30) ); // length parameter given,not reading entire file
var_dump( ftell($file_handle) ); // checking file pointer position initially
var_dump( feof($file_handle) ); // confirm file pointer is not at eof
-
+
// close the file
fclose($file_handle);
-
+
// delete the file
unlink($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/fgetss_error.phpt b/ext/standard/tests/file/fgetss_error.phpt
index 893aca221a..6dffe554b6 100644
--- a/ext/standard/tests/file/fgetss_error.phpt
+++ b/ext/standard/tests/file/fgetss_error.phpt
@@ -21,12 +21,12 @@ var_dump( fgetss($fp, 100, '<p><a>', $fp) );
// invalid length argument
echo "-- Testing fgetss() with invalid length arguments --\n";
-$len = 0;
+$len = 0;
$allowable_tags = '<p><a>';
var_dump( fgetss($fp, $len, $allowable_tags) );
$len = -10;
var_dump( fgetss($fp, $len, $allowable_tags) );
-$len = 1;
+$len = 1;
var_dump( fgetss($fp, $len, $allowable_tags) ); // return length - 1 always, expect false
// test invalid arguments : non-resources
diff --git a/ext/standard/tests/file/fgetss_variation1-win32.phpt b/ext/standard/tests/file/fgetss_variation1-win32.phpt
index 688f5e624a..f12127614a 100644
--- a/ext/standard/tests/file/fgetss_variation1-win32.phpt
+++ b/ext/standard/tests/file/fgetss_variation1-win32.phpt
@@ -57,22 +57,22 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "Error: failed to open file $filename!\n";
exit();
}
-
+
// rewind the file pointer to beginning of the file
var_dump( filesize($filename) );
var_dump( rewind($file_handle) );
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
- /* read entire file and strip tags */
+ /* read entire file and strip tags */
echo "-- fgetss() with default length, file pointer at 0 , expected : no character should be read --\n";
var_dump( fgetss($file_handle) ); // expected : no character should be read
var_dump( ftell($file_handle) ); //ensure that file pointer position is not changed
var_dump( feof($file_handle) ); // check if end of file pointer is set
-
+
// close the file
fclose($file_handle);
-
+
// delete the file
delete_file($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/fgetss_variation1.phpt b/ext/standard/tests/file/fgetss_variation1.phpt
index c716090541..9f9fa1a16d 100644
--- a/ext/standard/tests/file/fgetss_variation1.phpt
+++ b/ext/standard/tests/file/fgetss_variation1.phpt
@@ -53,22 +53,22 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "Error: failed to open file $filename!\n";
exit();
}
-
+
// rewind the file pointer to beginning of the file
var_dump( filesize($filename) );
var_dump( rewind($file_handle) );
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
- /* read entire file and strip tags */
+ /* read entire file and strip tags */
echo "-- fgetss() with default length, file pointer at 0 , expected : no character should be read --\n";
var_dump( fgetss($file_handle) ); // expected : no character should be read
var_dump( ftell($file_handle) ); //ensure that file pointer position is not changed
var_dump( feof($file_handle) ); // check if end of file pointer is set
-
+
// close the file
fclose($file_handle);
-
+
// delete the file
delete_file($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/fgetss_variation2.phpt b/ext/standard/tests/file/fgetss_variation2.phpt
index e8d168e46f..e9d19a7a26 100644
--- a/ext/standard/tests/file/fgetss_variation2.phpt
+++ b/ext/standard/tests/file/fgetss_variation2.phpt
@@ -29,7 +29,7 @@ this text contains some html tags <body> body </body> <br> br </br>
this is the line with \n character.
EOT;
-$filename = dirname(__FILE__)."/fgetss_variation2.tmp";
+$filename = dirname(__FILE__)."/fgetss_variation2.tmp";
/* try reading the file opened in different modes of reading */
$file_modes = array("r","rb", "rt","r+", "r+b", "r+t");
@@ -39,7 +39,7 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
/* create an empty file and write the strings with tags */
create_file ($filename); //create an empty file
- file_put_contents($filename, $string_with_tags);
+ file_put_contents($filename, $string_with_tags);
$file_handle = fopen($filename, $file_modes[$mode_counter]);
if(!$file_handle) {
echo "Error: failed to open file $filename!\n";
@@ -51,7 +51,7 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( rewind($file_handle) );
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
/* rewind the file and read the file line by line with allowable tags */
echo "-- Reading line by line with allowable tags: <test>, <html>, <?> --\n";
rewind($file_handle);
@@ -62,9 +62,9 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( ftell($file_handle) ); // check the file pointer position
var_dump( feof($file_handle) ); // check if eof reached
}
-
+
// close the file
- fclose($file_handle);
+ fclose($file_handle);
// delete the file
delete_file($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/fgetss_variation3-win32.phpt b/ext/standard/tests/file/fgetss_variation3-win32.phpt
index 19699b2fb3..9f61d23fc0 100644
--- a/ext/standard/tests/file/fgetss_variation3-win32.phpt
+++ b/ext/standard/tests/file/fgetss_variation3-win32.phpt
@@ -41,7 +41,7 @@ if(substr(PHP_OS, 0, 3) == "WIN") {
$string_with_tags = str_replace("\r",'', $string_with_tags);
}
-$filename = dirname(__FILE__)."/fgetss_variation3.tmp";
+$filename = dirname(__FILE__)."/fgetss_variation3.tmp";
/* try reading the file opened in different modes of reading */
$file_modes = array("w+","w+b", "w+t","a+", "a+b", "a+t","x+","x+b","x+t");
@@ -56,7 +56,7 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "Error: failed to open file $filename!\n";
exit();
}
-
+
// rewind the file pointer to beginning of the file
rewind($file_handle);
var_dump( ftell($file_handle) );
@@ -72,10 +72,10 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( ftell($file_handle) ); // check the file pointer position
var_dump( feof($file_handle) ); // check if eof reached
}
-
+
// close the file
fclose($file_handle);
-
+
// delete the file
unlink($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/fgetss_variation3.phpt b/ext/standard/tests/file/fgetss_variation3.phpt
index c87925cb8e..1d7183a9d7 100644
--- a/ext/standard/tests/file/fgetss_variation3.phpt
+++ b/ext/standard/tests/file/fgetss_variation3.phpt
@@ -37,7 +37,7 @@ this text contains some html tags <body> body </body> <br> br </br>
this is the line with \n character.
EOT;
-$filename = dirname(__FILE__)."/fgetss_variation3.tmp";
+$filename = dirname(__FILE__)."/fgetss_variation3.tmp";
/* try reading the file opened in different modes of reading */
$file_modes = array("w+","w+b", "w+t","a+", "a+b", "a+t","x+","x+b","x+t");
@@ -52,7 +52,7 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "Error: failed to open file $filename!\n";
exit();
}
-
+
// rewind the file pointer to beginning of the file
rewind($file_handle);
var_dump( ftell($file_handle) );
@@ -68,10 +68,10 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( ftell($file_handle) ); // check the file pointer position
var_dump( feof($file_handle) ); // check if eof reached
}
-
+
// close the file
fclose($file_handle);
-
+
// delete the file
unlink($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/fgetss_variation4.phpt b/ext/standard/tests/file/fgetss_variation4.phpt
index 60f7cdab63..cd87b8bc25 100644
--- a/ext/standard/tests/file/fgetss_variation4.phpt
+++ b/ext/standard/tests/file/fgetss_variation4.phpt
@@ -32,7 +32,7 @@ this text contains some html tags <body> body </body> <br> br </br>
this is the line with \n character.
EOT;
-$filename = dirname(__FILE__)."/fgetss_variation4.tmp";
+$filename = dirname(__FILE__)."/fgetss_variation4.tmp";
/* try reading the file opened in different modes of reading */
$file_modes = array("r","rb", "rt","r+", "r+b", "r+t");
@@ -42,7 +42,7 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
/* create an empty file and write the strings with tags */
create_file ($filename); //create an empty file
- file_put_contents($filename, $string_with_tags);
+ file_put_contents($filename, $string_with_tags);
$file_handle = fopen($filename, $file_modes[$mode_counter]);
if(!$file_handle) {
echo "Error: failed to open file $filename!\n";
@@ -54,7 +54,7 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( rewind($file_handle) );
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
echo "-- Reading when file pointer points to EOF --\n";
var_dump( fseek($file_handle,0,SEEK_END) ); // now file pointer at end
var_dump( ftell($file_handle) ); //ensure file pointer at end
@@ -66,9 +66,9 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( fgetss($file_handle, 80, "<test>, <html>, <?>") );
var_dump( ftell($file_handle) ); // find out file position
var_dump( feof($file_handle) ); // ensure that file pointer is at eof
-
+
// close the file
- fclose($file_handle);
+ fclose($file_handle);
// delete the file
delete_file($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/fgetss_variation5-win32.phpt b/ext/standard/tests/file/fgetss_variation5-win32.phpt
index 211c158ae2..77cf918749 100644
--- a/ext/standard/tests/file/fgetss_variation5-win32.phpt
+++ b/ext/standard/tests/file/fgetss_variation5-win32.phpt
@@ -39,7 +39,7 @@ if(substr(PHP_OS, 0, 3) == "WIN") {
$string_with_tags = str_replace("\r",'', $string_with_tags);
}
-$filename = dirname(__FILE__)."/fgetss_variation5.tmp";
+$filename = dirname(__FILE__)."/fgetss_variation5.tmp";
/* try reading the file opened in different modes of reading */
$file_modes = array("w+","w+b", "w+t","a+", "a+b", "a+t","x+","x+b","x+t");
@@ -72,10 +72,10 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( ftell($file_handle) ); // find out file position
var_dump( feof($file_handle) ); // ensure that file pointer is at eof
-
+
// close the file
fclose($file_handle);
-
+
// delete the file
unlink($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/fgetss_variation5.phpt b/ext/standard/tests/file/fgetss_variation5.phpt
index 17e0935e84..a2e3baf22c 100644
--- a/ext/standard/tests/file/fgetss_variation5.phpt
+++ b/ext/standard/tests/file/fgetss_variation5.phpt
@@ -36,7 +36,7 @@ this text contains some html tags <body> body </body> <br> br </br>
this is the line with \n character.
EOT;
-$filename = dirname(__FILE__)."/fgetss_variation5.tmp";
+$filename = dirname(__FILE__)."/fgetss_variation5.tmp";
/* try reading the file opened in different modes of reading */
$file_modes = array("w+","w+b", "w+t","a+", "a+b", "a+t","x+","x+b","x+t");
@@ -69,10 +69,10 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( ftell($file_handle) ); // find out file position
var_dump( feof($file_handle) ); // ensure that file pointer is at eof
-
+
// close the file
fclose($file_handle);
-
+
// delete the file
unlink($filename);
} // end of for - mode_counter
diff --git a/ext/standard/tests/file/file_basic.phpt b/ext/standard/tests/file/file_basic.phpt
index d271c216f6..d93f7f84ed 100644
--- a/ext/standard/tests/file/file_basic.phpt
+++ b/ext/standard/tests/file/file_basic.phpt
@@ -2,7 +2,7 @@
Test file() function : basic functionality
--FILE--
<?php
-/*
+/*
* Prototype: array file ( string filename [,int use-include_path [,resource context]] );
* Description: Reads entire file into an array
* Returns the file in an array
diff --git a/ext/standard/tests/file/file_error.phpt b/ext/standard/tests/file/file_error.phpt
index 1e7d51237a..dd9a468e57 100644
--- a/ext/standard/tests/file/file_error.phpt
+++ b/ext/standard/tests/file/file_error.phpt
@@ -2,7 +2,7 @@
Test file() function : error conditions
--FILE--
<?php
-/*
+/*
Prototype: array file ( string filename [,int use-include_path [,resource context]] );
Description: Reads entire file into an array
Returns the file in an array
diff --git a/ext/standard/tests/file/file_exists_error.phpt b/ext/standard/tests/file/file_exists_error.phpt
index b20b2fe3a0..fc7a7487c4 100644
--- a/ext/standard/tests/file/file_exists_error.phpt
+++ b/ext/standard/tests/file/file_exists_error.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : proto bool file_exists(string filename)
* Description: Returns true if filename exists
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_exists() : error conditions ***\n";
diff --git a/ext/standard/tests/file/file_exists_variation1.phpt b/ext/standard/tests/file/file_exists_variation1.phpt
index 2e8fd58d8e..9a3122fa07 100644
--- a/ext/standard/tests/file/file_exists_variation1.phpt
+++ b/ext/standard/tests/file/file_exists_variation1.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : proto bool file_exists(string filename)
* Description: Returns true if filename exists
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_exists() : usage variations ***\n";
diff --git a/ext/standard/tests/file/file_get_contents_error.phpt b/ext/standard/tests/file/file_get_contents_error.phpt
index 631a138a07..f06628f516 100644
--- a/ext/standard/tests/file/file_get_contents_error.phpt
+++ b/ext/standard/tests/file/file_get_contents_error.phpt
@@ -5,7 +5,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
--FILE--
<?php
/* Prototype: string file_get_contents( string $filename{, bool $use_include_path[,
- * resource $context[, int $offset[, int $maxlen]]]] )
+ * resource $context[, int $offset[, int $maxlen]]]] )
* Description: Reads entire file into a string
*/
@@ -28,7 +28,7 @@ print( file_get_contents($file_path."/file1.tmp", false, $file_handle, 1, 2, "ex
echo "\n-- Testing for invalid negative maxlen values --";
var_dump( file_get_contents($file_path."/file1.tmp", FALSE, $file_handle, 0, -5) );
-
+
delete_files($file_path, 1);
fclose($file_handle);
unlink($file_path."/file_put_contents_error.tmp");
diff --git a/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt b/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt
index 72fe121533..b2a09798e3 100644
--- a/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt
+++ b/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt
@@ -3,7 +3,7 @@ Test file-get_contents() and file_put_contents() functions : error conditions
--FILE--
<?php
/* Prototype: string file_get_contents( string $filename{, bool $use_include_path[,
- * resource $context[, int $offset[, int $maxlen]]]] )
+ * resource $context[, int $offset[, int $maxlen]]]] )
* Description: Reads entire file into a string
*/
@@ -31,7 +31,7 @@ print( file_get_contents("abc.tmp", false, $file_handle, 1, 2, "extra_argument")
echo "\n-- Testing for invalid negative maxlen values --";
file_put_contents($file_path."/file_put_contents1.tmp", "Garbage data in the file");
var_dump( file_get_contents($file_path."/file_put_contents1.tmp", FALSE, NULL, 0, -5) );
-
+
fclose($file_handle);
echo "\n*** Done ***\n";
diff --git a/ext/standard/tests/file/file_get_contents_variation1.phpt b/ext/standard/tests/file/file_get_contents_variation1.phpt
index ddc926180d..28a66067a3 100644
--- a/ext/standard/tests/file/file_get_contents_variation1.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation1.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : variation ***\n";
@@ -40,7 +40,7 @@ function runtest() {
fclose($h);
$line = file_get_contents($filename, true);
echo "$line\n";
- unlink($secondFile);
+ unlink($secondFile);
}
?>
diff --git a/ext/standard/tests/file/file_get_contents_variation2.phpt b/ext/standard/tests/file/file_get_contents_variation2.phpt
index 510ec12aed..6142386e63 100644
--- a/ext/standard/tests/file/file_get_contents_variation2.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation2.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : variation ***\n";
@@ -41,7 +41,7 @@ function runtest() {
fclose($h);
$line = file_get_contents($filename, true);
echo "$line\n";
- unlink($scriptLocFile);
+ unlink($scriptLocFile);
}
?>
diff --git a/ext/standard/tests/file/file_get_contents_variation3.phpt b/ext/standard/tests/file/file_get_contents_variation3.phpt
index 035ecd3d68..a6b99be1b3 100644
--- a/ext/standard/tests/file/file_get_contents_variation3.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation3.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : usage variation ***\n";
diff --git a/ext/standard/tests/file/file_get_contents_variation4.phpt b/ext/standard/tests/file/file_get_contents_variation4.phpt
index 6c7f5a132c..5272489ae1 100644
--- a/ext/standard/tests/file/file_get_contents_variation4.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation4.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : usage variation ***\n";
@@ -107,10 +107,10 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
//non context resource
'file resource' => $fileRes,
-
+
//valid stream context
'stream context' => $strContext,
);
diff --git a/ext/standard/tests/file/file_get_contents_variation5_32bit.phpt b/ext/standard/tests/file/file_get_contents_variation5_32bit.phpt
index e4d610c035..cd536f5617 100644
--- a/ext/standard/tests/file/file_get_contents_variation5_32bit.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation5_32bit.phpt
@@ -9,7 +9,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : usage variation ***\n";
diff --git a/ext/standard/tests/file/file_get_contents_variation5_64bit.phpt b/ext/standard/tests/file/file_get_contents_variation5_64bit.phpt
index 8e23c65791..7fc63b4d9e 100644
--- a/ext/standard/tests/file/file_get_contents_variation5_64bit.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation5_64bit.phpt
@@ -9,7 +9,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : usage variation ***\n";
diff --git a/ext/standard/tests/file/file_get_contents_variation6.phpt b/ext/standard/tests/file/file_get_contents_variation6.phpt
index f253957709..b131a4bf54 100644
--- a/ext/standard/tests/file/file_get_contents_variation6.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation6.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : usage variation ***\n";
diff --git a/ext/standard/tests/file/file_get_contents_variation7-win32-mb.phpt b/ext/standard/tests/file/file_get_contents_variation7-win32-mb.phpt
index cc8eb40f49..ad09ffb80f 100644
--- a/ext/standard/tests/file/file_get_contents_variation7-win32-mb.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation7-win32-mb.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : variation ***\n";
@@ -35,14 +35,14 @@ $allDirs = array(
"$absSubDir\\..\\..\\".$mainDir."\\.\\".$subDir,
"$absSubDir\\..\\\\\\".$subDir."\\\\..\\\\..\\".$subDir,
"$absSubDir\\BADDIR",
-
+
// relative paths
$mainDir."\\".$subDir,
$mainDir."\\\\".$subDir,
$mainDir."\\\\\\".$subDir,
".\\".$mainDir."\\..\\".$mainDir."\\".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
// unixifed path
$unixifiedDir,
);
diff --git a/ext/standard/tests/file/file_get_contents_variation7-win32.phpt b/ext/standard/tests/file/file_get_contents_variation7-win32.phpt
index d350b4b037..2217789f09 100644
--- a/ext/standard/tests/file/file_get_contents_variation7-win32.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation7-win32.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : variation ***\n";
@@ -35,14 +35,14 @@ $allDirs = array(
"$absSubDir\\..\\..\\".$mainDir."\\.\\".$subDir,
"$absSubDir\\..\\\\\\".$subDir."\\\\..\\\\..\\".$subDir,
"$absSubDir\\BADDIR",
-
+
// relative paths
$mainDir."\\".$subDir,
$mainDir."\\\\".$subDir,
$mainDir."\\\\\\".$subDir,
".\\".$mainDir."\\..\\".$mainDir."\\".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
// unixifed path
$unixifiedDir,
);
diff --git a/ext/standard/tests/file/file_get_contents_variation7.phpt b/ext/standard/tests/file/file_get_contents_variation7.phpt
index 17c55b6135..b762e16165 100644
--- a/ext/standard/tests/file/file_get_contents_variation7.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation7.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : variation ***\n";
@@ -29,14 +29,14 @@ $allDirs = array(
"$absSubDir/../../".$mainDir."/./".$subDir,
"$absSubDir/..///".$subDir."//..//../".$subDir,
"$absSubDir/BADDIR",
-
+
// relative paths
$mainDir."/".$subDir,
$mainDir."//".$subDir,
$mainDir."///".$subDir,
"./".$mainDir."/../".$mainDir."/".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
);
$filename = 'FileGetContentsVar7.tmp';
diff --git a/ext/standard/tests/file/file_get_contents_variation8-win32.phpt b/ext/standard/tests/file/file_get_contents_variation8-win32.phpt
index bb62eb47fb..8fa50a7b02 100644
--- a/ext/standard/tests/file/file_get_contents_variation8-win32.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation8-win32.phpt
@@ -13,12 +13,12 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : variation ***\n";
-/* An array of filenames */
+/* An array of filenames */
$names_arr = array(
/* Invalid args */
"-1" => -1,
@@ -30,8 +30,8 @@ $names_arr = array(
"\\0" => "\0",
"array()" => array(),
- /* prefix with path separator of a non existing directory*/
- "/no/such/file/dir" => "/no/such/file/dir",
+ /* prefix with path separator of a non existing directory*/
+ "/no/such/file/dir" => "/no/such/file/dir",
"php/php"=> "php/php"
);
diff --git a/ext/standard/tests/file/file_get_contents_variation8.phpt b/ext/standard/tests/file/file_get_contents_variation8.phpt
index 5b325b0e98..7034efa503 100644
--- a/ext/standard/tests/file/file_get_contents_variation8.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation8.phpt
@@ -13,13 +13,13 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : variation ***\n";
-/* An array of filenames */
+/* An array of filenames */
$names_arr = array(
- /* Invalid args */
+ /* Invalid args */
-1,
TRUE,
FALSE,
@@ -30,7 +30,7 @@ $names_arr = array(
array(),
/* prefix with path separator of a non existing directory*/
- "/no/such/file/dir",
+ "/no/such/file/dir",
"php/php"
);
diff --git a/ext/standard/tests/file/file_get_contents_variation9.phpt b/ext/standard/tests/file/file_get_contents_variation9.phpt
index 09d33f9f32..b49935a948 100644
--- a/ext/standard/tests/file/file_get_contents_variation9.phpt
+++ b/ext/standard/tests/file/file_get_contents_variation9.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
* Description: Read the entire file into a string
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_get_contents() : variation ***\n";
diff --git a/ext/standard/tests/file/file_put_contents.phpt b/ext/standard/tests/file/file_put_contents.phpt
index 4566c37567..1607ab1bde 100644
--- a/ext/standard/tests/file/file_put_contents.phpt
+++ b/ext/standard/tests/file/file_put_contents.phpt
@@ -21,7 +21,7 @@ var_dump(file_put_contents($file, "string", 0, $fp));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: file_put_contents(): supplied resource is not a valid stream resource in %s on line %d
bool(false)
bool(false)
diff --git a/ext/standard/tests/file/file_put_contents_variation1.phpt b/ext/standard/tests/file/file_put_contents_variation1.phpt
index a0d275ccc5..9091c34ded 100644
--- a/ext/standard/tests/file/file_put_contents_variation1.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation1.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
* Description: Write/Create a file with contents data and return the number of bytes written
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_put_contents() : variation ***\n";
@@ -28,7 +28,7 @@ echo filesize($filename)."\n";
readfile($filename);
echo "\n";
unlink($filename);
-
+
?>
===DONE===
diff --git a/ext/standard/tests/file/file_put_contents_variation2.phpt b/ext/standard/tests/file/file_put_contents_variation2.phpt
index 753e287504..846517d43f 100644
--- a/ext/standard/tests/file/file_put_contents_variation2.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation2.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
* Description: Write/Create a file with contents data and return the number of bytes written
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_put_contents() : usage variation ***\n";
diff --git a/ext/standard/tests/file/file_put_contents_variation3.phpt b/ext/standard/tests/file/file_put_contents_variation3.phpt
index 4a8daad29f..537ced2d91 100644
--- a/ext/standard/tests/file/file_put_contents_variation3.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation3.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
* Description: Write/Create a file with contents data and return the number of bytes written
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_put_contents() : usage variation ***\n";
@@ -106,10 +106,10 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
//non context resource
'file resource' => $fileRes,
-
+
//valid stream context
'stream context' => $strContext,
);
diff --git a/ext/standard/tests/file/file_put_contents_variation4.phpt b/ext/standard/tests/file/file_put_contents_variation4.phpt
index 62d814c9fd..7c3650764d 100644
--- a/ext/standard/tests/file/file_put_contents_variation4.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation4.phpt
@@ -7,13 +7,13 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
* Description: Write/Create a file with contents data and return the number of bytes written
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
require_once('fopen_include_path.inc');
-$thisTestDir = basename(__FILE__, ".php") . ".dir";
+$thisTestDir = basename(__FILE__, ".php") . ".dir";
mkdir($thisTestDir);
chdir($thisTestDir);
diff --git a/ext/standard/tests/file/file_put_contents_variation5.phpt b/ext/standard/tests/file/file_put_contents_variation5.phpt
index fe1961d16c..fed872f8a3 100644
--- a/ext/standard/tests/file/file_put_contents_variation5.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation5.phpt
@@ -10,7 +10,7 @@ $thisTestDir = dirname(__FILE__) . '/' .basename(__FILE__, ".php") . ".directory
mkdir($thisTestDir);
chdir($thisTestDir);
-$filename = basename(__FILE__, ".php") . ".tmp";
+$filename = basename(__FILE__, ".php") . ".tmp";
$scriptLocFile = dirname(__FILE__)."/".$filename;
$newpath = "rubbish";
@@ -35,9 +35,9 @@ function runtest() {
echo "Fail - this is PHP52 behaviour\n";
unlink($scriptLocFile);
}else {
- $line = file_get_contents($filename);
+ $line = file_get_contents($filename);
echo "$line\n";
- unlink($filename);
+ unlink($filename);
}
}
?>
diff --git a/ext/standard/tests/file/file_put_contents_variation6.phpt b/ext/standard/tests/file/file_put_contents_variation6.phpt
index a0977faff8..475981b3ef 100644
--- a/ext/standard/tests/file/file_put_contents_variation6.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation6.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
* Description: Write/Create a file with contents data and return the number of bytes written
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_put_contents() : variation ***\n";
@@ -41,10 +41,10 @@ function runtest() {
// in the include path. In this case it doesn't so the file should be written in the current dir.
file_put_contents($filename, "File in include path", FILE_USE_INCLUDE_PATH);
- file_put_contents($filename, ". This was appended", FILE_USE_INCLUDE_PATH | FILE_APPEND);
+ file_put_contents($filename, ". This was appended", FILE_USE_INCLUDE_PATH | FILE_APPEND);
$line = file_get_contents($filename);
echo "$line\n";
- unlink($filename);
+ unlink($filename);
}
?>
diff --git a/ext/standard/tests/file/file_put_contents_variation7-win32.phpt b/ext/standard/tests/file/file_put_contents_variation7-win32.phpt
index e1a94a2043..c42bf39a84 100644
--- a/ext/standard/tests/file/file_put_contents_variation7-win32.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation7-win32.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
* Description: Write/Create a file with contents data and return the number of bytes written
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_put_contents() : usage variation ***\n";
@@ -39,14 +39,14 @@ $allDirs = array(
"$absSubDir\\..\\..\\".$mainDir."\\.\\".$subDir,
"$absSubDir\\..\\\\\\".$subDir."\\\\..\\\\..\\".$subDir,
"$absSubDir\\BADDIR",
-
+
// relative paths
$mainDir."\\".$subDir,
$mainDir."\\\\".$subDir,
$mainDir."\\\\\\".$subDir,
".\\".$mainDir."\\..\\".$mainDir."\\".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
// unixifed path
$unixifiedDir,
);
@@ -73,7 +73,7 @@ for($i = 0; $i<count($allDirs); $i++) {
else {
echo "No data written\n";
}
-
+
}
chdir($old_dir_path);
diff --git a/ext/standard/tests/file/file_put_contents_variation7.phpt b/ext/standard/tests/file/file_put_contents_variation7.phpt
index b1b2face60..4f8f5232d5 100644
--- a/ext/standard/tests/file/file_put_contents_variation7.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation7.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
* Description: Write/Create a file with contents data and return the number of bytes written
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_put_contents() : usage variation ***\n";
@@ -33,14 +33,14 @@ $allDirs = array(
"$absSubDir/../../".$mainDir."/./".$subDir,
"$absSubDir/..///".$subDir."//..//../".$subDir,
"$absSubDir/BADDIR",
-
+
// relative paths
$mainDir."/".$subDir,
$mainDir."//".$subDir,
$mainDir."///".$subDir,
"./".$mainDir."/../".$mainDir."/".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
);
$filename = 'FileGetContentsVar7.tmp';
@@ -65,7 +65,7 @@ for($i = 0; $i<count($allDirs); $i++) {
else {
echo "No data written\n";
}
-
+
}
chdir($old_dir_path);
diff --git a/ext/standard/tests/file/file_put_contents_variation8-win32.phpt b/ext/standard/tests/file/file_put_contents_variation8-win32.phpt
index 92fe7b3d6a..96951a4419 100644
--- a/ext/standard/tests/file/file_put_contents_variation8-win32.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation8-win32.phpt
@@ -12,12 +12,12 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
* Description: Write/Create a file with contents data and return the number of bytes written
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_put_contents() : usage variation ***\n";
-/* An array of filenames */
+/* An array of filenames */
$names_arr = array(
"-1" => -1,
"TRUE" => TRUE,
@@ -28,8 +28,8 @@ $names_arr = array(
"\\0" => "\0",
"array()" => array(),
- /* prefix with path separator of a non existing directory*/
- "/no/such/file/dir" => "/no/such/file/dir",
+ /* prefix with path separator of a non existing directory*/
+ "/no/such/file/dir" => "/no/such/file/dir",
"php/php"=> "php/php"
);
@@ -42,7 +42,7 @@ foreach($names_arr as $key =>$value) {
unlink($value);
} else {
echo "Failed to write data to: $key\n";
- }
+ }
};
?>
diff --git a/ext/standard/tests/file/file_put_contents_variation9.phpt b/ext/standard/tests/file/file_put_contents_variation9.phpt
index 79a42fe9b1..5ed3ba34b1 100644
--- a/ext/standard/tests/file/file_put_contents_variation9.phpt
+++ b/ext/standard/tests/file/file_put_contents_variation9.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
* Description: Write/Create a file with contents data and return the number of bytes written
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file_put_contents() : usage variation ***\n";
@@ -34,7 +34,7 @@ run_test($softlink);
//can only create a hardlink if the file exists.
file_put_contents($filename,"");
-link($filename, $hardlink);
+link($filename, $hardlink);
run_test($hardlink);
unlink($chainlink);
diff --git a/ext/standard/tests/file/file_variation.phpt b/ext/standard/tests/file/file_variation.phpt
index 9629d37aa9..4eaffc330e 100644
--- a/ext/standard/tests/file/file_variation.phpt
+++ b/ext/standard/tests/file/file_variation.phpt
@@ -2,7 +2,7 @@
Test file() function : usage variations
--FILE--
<?php
-/*
+/*
* Prototype: array file ( string filename [,int use-include_path [,resource context]] );
* Description: Reads entire file into an array
Returns the file in an array
@@ -17,8 +17,8 @@ foreach( $data_array as $data ) {
echo "--Iteration $count --\n";
$fh = fopen($file_path."/file_variation.tmp", "w");
fwrite($fh, $data);
- var_dump( file($file_path."/file_variation.tmp", FILE_IGNORE_NEW_LINES) );
- var_dump( file($file_path."/file_variation.tmp", FILE_SKIP_EMPTY_LINES) );
+ var_dump( file($file_path."/file_variation.tmp", FILE_IGNORE_NEW_LINES) );
+ var_dump( file($file_path."/file_variation.tmp", FILE_SKIP_EMPTY_LINES) );
$count++;
fclose($fh);
}
diff --git a/ext/standard/tests/file/file_variation2.phpt b/ext/standard/tests/file/file_variation2.phpt
index ab37ea5c45..f1b22283fa 100644
--- a/ext/standard/tests/file/file_variation2.phpt
+++ b/ext/standard/tests/file/file_variation2.phpt
@@ -5,7 +5,7 @@ Test file() function : first parameter variation
/* Prototype : array file(string filename [, int flags[, resource context]])
* Description: Read entire file into an array
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file() : usage variation ***\n";
diff --git a/ext/standard/tests/file/file_variation3.phpt b/ext/standard/tests/file/file_variation3.phpt
index 250621ef73..395047567a 100644
--- a/ext/standard/tests/file/file_variation3.phpt
+++ b/ext/standard/tests/file/file_variation3.phpt
@@ -7,7 +7,7 @@ Test file() function : second parameter variation
/* Prototype : array file(string filename [, int flags[, resource context]])
* Description: Read entire file into an array
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file() : usage variation ***\n";
diff --git a/ext/standard/tests/file/file_variation4.phpt b/ext/standard/tests/file/file_variation4.phpt
index 9c92ae699f..c5c2342fcf 100644
--- a/ext/standard/tests/file/file_variation4.phpt
+++ b/ext/standard/tests/file/file_variation4.phpt
@@ -5,7 +5,7 @@ Test file() function : third parameter variation
/* Prototype : array file(string filename [, int flags[, resource context]])
* Description: Read entire file into an array
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file() : usage variation ***\n";
@@ -107,7 +107,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// file stream resource
'file stream resource' => $file_stream_resource,
);
diff --git a/ext/standard/tests/file/file_variation5.phpt b/ext/standard/tests/file/file_variation5.phpt
index 1f15491118..b8badd0e42 100644
--- a/ext/standard/tests/file/file_variation5.phpt
+++ b/ext/standard/tests/file/file_variation5.phpt
@@ -25,7 +25,7 @@ var_dump(file("./$test_dirname/../$filename"));
echo "\nfile() on a path containing .. with invalid directories\n";
var_dump(file("./$test_dirname/bad_dir/../../$filename"));
-
+
echo "\nfile() on a linked file\n";
$linkname = "somelink";
var_dump(symlink($filepath, $linkname));
diff --git a/ext/standard/tests/file/file_variation8-win32.phpt b/ext/standard/tests/file/file_variation8-win32.phpt
index ca3be36b56..1a189164f5 100644
--- a/ext/standard/tests/file/file_variation8-win32.phpt
+++ b/ext/standard/tests/file/file_variation8-win32.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : array file(string filename [, int flags[, resource context]])
* Description: Read entire file into an array
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file() : variation ***\n";
@@ -35,14 +35,14 @@ $allDirs = array(
"$absSubDir\\..\\..\\".$mainDir."\\.\\".$subDir,
"$absSubDir\\..\\\\\\".$subDir."\\\\..\\\\..\\".$subDir,
"$absSubDir\\BADDIR",
-
+
// relative paths
$mainDir."\\".$subDir,
$mainDir."\\\\".$subDir,
$mainDir."\\\\\\".$subDir,
".\\".$mainDir."\\..\\".$mainDir."\\".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
// unixifed path
$unixifiedDir,
);
diff --git a/ext/standard/tests/file/file_variation8.phpt b/ext/standard/tests/file/file_variation8.phpt
index be18fcb032..fd0d98f604 100644
--- a/ext/standard/tests/file/file_variation8.phpt
+++ b/ext/standard/tests/file/file_variation8.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : array file(string filename [, int flags[, resource context]])
* Description: Read entire file into an array
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file() : variation ***\n";
@@ -29,14 +29,14 @@ $allDirs = array(
"$absSubDir/../../".$mainDir."/./".$subDir,
"$absSubDir/..///".$subDir."//..//../".$subDir,
"$absSubDir/BADDIR",
-
+
// relative paths
$mainDir."/".$subDir,
$mainDir."//".$subDir,
$mainDir."///".$subDir,
"./".$mainDir."/../".$mainDir."/".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
);
$filename = 'FileGetContentsVar7.tmp';
diff --git a/ext/standard/tests/file/file_variation9.phpt b/ext/standard/tests/file/file_variation9.phpt
index 623fa56409..59e5cee8b5 100644
--- a/ext/standard/tests/file/file_variation9.phpt
+++ b/ext/standard/tests/file/file_variation9.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : array file(string filename [, int flags[, resource context]])
* Description: Read entire file into an array
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing file() : variation ***\n";
@@ -21,7 +21,7 @@ $contents = array(
"File has\r\nmultiple crlfs\n\r\n"
);
-@unlink($testfile);
+@unlink($testfile);
foreach ($contents as $content) {
$h = fopen($testfile, "w");
fwrite($h, $content);
diff --git a/ext/standard/tests/file/filegroup_basic.phpt b/ext/standard/tests/file/filegroup_basic.phpt
index 36333b21ba..2c8216a0ad 100644
--- a/ext/standard/tests/file/filegroup_basic.phpt
+++ b/ext/standard/tests/file/filegroup_basic.phpt
@@ -12,7 +12,7 @@ if( substr(PHP_OS, 0, 3) == 'WIN') {
* Description: Returns the group ID of the file, or FALSE in case of an error.
*/
-echo "*** Testing filegroup(): basic functionality ***\n";
+echo "*** Testing filegroup(): basic functionality ***\n";
echo "-- Testing with the file or directory created by owner --\n";
diff --git a/ext/standard/tests/file/filegroup_variation1.phpt b/ext/standard/tests/file/filegroup_variation1.phpt
index ee76477ac8..4b4a9aa00e 100644
--- a/ext/standard/tests/file/filegroup_variation1.phpt
+++ b/ext/standard/tests/file/filegroup_variation1.phpt
@@ -13,7 +13,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
* Description: Returns the group ID of the file, or FALSE in case of an error.
*/
-/* Creating soft and hard links to a file and applying filegroup() on links */
+/* Creating soft and hard links to a file and applying filegroup() on links */
$file_path = dirname(__FILE__);
fclose( fopen($file_path."/filegroup_variation1.tmp", "w") );
diff --git a/ext/standard/tests/file/filegroup_variation2.phpt b/ext/standard/tests/file/filegroup_variation2.phpt
index afac40c9ab..966a9f43b7 100644
--- a/ext/standard/tests/file/filegroup_variation2.phpt
+++ b/ext/standard/tests/file/filegroup_variation2.phpt
@@ -23,12 +23,12 @@ $filenames = array(
FALSE,
NULL,
$file_handle,
-
+
/* scalars */
1234,
0
);
-
+
/* loop through to test each element the above array */
foreach( $filenames as $filename ) {
var_dump( filegroup($filename) );
diff --git a/ext/standard/tests/file/filegroup_variation3.phpt b/ext/standard/tests/file/filegroup_variation3.phpt
index b275944f78..ebefeb7e3f 100644
--- a/ext/standard/tests/file/filegroup_variation3.phpt
+++ b/ext/standard/tests/file/filegroup_variation3.phpt
@@ -28,7 +28,7 @@ $files_arr = array(
"/filegroup_variation3//filegroup_variation3.tmp",
"//filegroup_variation3//filegroup_variation3.tmp",
"/filegroup_variation3/*.tmp",
- "filegroup_variation3/filegroup*.tmp",
+ "filegroup_variation3/filegroup*.tmp",
/* Testing Binary safe */
"/filegroup_variation3/filegroup_variation3.tmp".chr(0),
diff --git a/ext/standard/tests/file/fileinode_basic.phpt b/ext/standard/tests/file/fileinode_basic.phpt
index 98e5cf0836..c7fc77e7d5 100644
--- a/ext/standard/tests/file/fileinode_basic.phpt
+++ b/ext/standard/tests/file/fileinode_basic.phpt
@@ -2,7 +2,7 @@
Test fileinode() function: Basic functionality
--FILE--
<?php
-/*
+/*
Prototype: int fileinode ( string $filename );
Description: Returns the inode number of the file, or FALSE in case of an error.
*/
diff --git a/ext/standard/tests/file/fileinode_error.phpt b/ext/standard/tests/file/fileinode_error.phpt
index eb5d79e0c3..892121cc96 100644
--- a/ext/standard/tests/file/fileinode_error.phpt
+++ b/ext/standard/tests/file/fileinode_error.phpt
@@ -2,7 +2,7 @@
Test fileinode() function: Error conditions
--FILE--
<?php
-/*
+/*
Prototype: int fileinode ( string $filename );
Description: Returns the inode number of the file, or FALSE in case of an error.
*/
diff --git a/ext/standard/tests/file/fileinode_variation.phpt b/ext/standard/tests/file/fileinode_variation.phpt
index 1fac953098..9504766d9d 100644
--- a/ext/standard/tests/file/fileinode_variation.phpt
+++ b/ext/standard/tests/file/fileinode_variation.phpt
@@ -8,7 +8,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
?>
--FILE--
<?php
-/*
+/*
Prototype: int fileinode ( string $filename );
Description: Returns the inode number of the file, or FALSE in case of an error.
*/
diff --git a/ext/standard/tests/file/fileinode_variation1.phpt b/ext/standard/tests/file/fileinode_variation1.phpt
index d251cc3f85..4961db19a6 100644
--- a/ext/standard/tests/file/fileinode_variation1.phpt
+++ b/ext/standard/tests/file/fileinode_variation1.phpt
@@ -9,12 +9,12 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
}
--FILE--
<?php
-/*
+/*
Prototype: int fileinode ( string $filename );
Description: Returns the inode number of the file, or FALSE in case of an error.
*/
-/* Creating soft and hard links to a file and applying fileinode() on links */
+/* Creating soft and hard links to a file and applying fileinode() on links */
$file_path = dirname(__FILE__);
fclose( fopen($file_path."/fileinode_variation1.tmp", "w") );
diff --git a/ext/standard/tests/file/fileinode_variation2.phpt b/ext/standard/tests/file/fileinode_variation2.phpt
index e8e7af6a6e..447c189e04 100644
--- a/ext/standard/tests/file/fileinode_variation2.phpt
+++ b/ext/standard/tests/file/fileinode_variation2.phpt
@@ -4,7 +4,7 @@ Test fileinode() function: usage variations - invalid filenames
Dave Kelsey <d_kelsey@uk.ibm.com>
--FILE--
<?php
-/*
+/*
Prototype: int fileinode ( string $filename );
Description: Returns the inode number of the file, or FALSE in case of an error.
*/
@@ -24,12 +24,12 @@ $filenames = array(
FALSE,
NULL,
$file_handle,
-
+
/* scalars */
1234,
0
);
-
+
/* loop through to test each element the above array */
foreach( $filenames as $filename ) {
var_dump( fileinode($filename) );
diff --git a/ext/standard/tests/file/fileinode_variation3.phpt b/ext/standard/tests/file/fileinode_variation3.phpt
index ca84864b59..2f51e8f595 100644
--- a/ext/standard/tests/file/fileinode_variation3.phpt
+++ b/ext/standard/tests/file/fileinode_variation3.phpt
@@ -4,7 +4,7 @@ Test fileinode() function: usage variations - diff. path notations
Dave Kelsey <d_kelsey@uk.ibm.com>
--FILE--
<?php
-/*
+/*
Prototype: int fileinode ( string $filename );
Description: Returns the inode number of the file, or FALSE in case of an error.
*/
@@ -29,7 +29,7 @@ $files_arr = array(
"/fileinode_variation3//fileinode_variation3.tmp",
"//fileinode_variation3//fileinode_variation3.tmp",
"/fileinode_variation3/*.tmp",
- "fileinode_variation3/fileinode*.tmp",
+ "fileinode_variation3/fileinode*.tmp",
/* Testing Binary safe */
"/fileinode_variation3/fileinode_variation3.tmp".chr(0),
diff --git a/ext/standard/tests/file/fileowner_basic.phpt b/ext/standard/tests/file/fileowner_basic.phpt
index 5b5ff9a900..05e4c16ef8 100644
--- a/ext/standard/tests/file/fileowner_basic.phpt
+++ b/ext/standard/tests/file/fileowner_basic.phpt
@@ -7,7 +7,7 @@ Test fileowner() function: basic functionality
* FALSE in case of an error.
*/
-echo "*** Testing fileowner(): basic functionality ***\n";
+echo "*** Testing fileowner(): basic functionality ***\n";
echo "-- Testing with the file or directory created by owner --\n";
var_dump( fileowner(__FILE__) );
diff --git a/ext/standard/tests/file/fileowner_variation1.phpt b/ext/standard/tests/file/fileowner_variation1.phpt
index b70ac366d2..e40175d1bd 100644
--- a/ext/standard/tests/file/fileowner_variation1.phpt
+++ b/ext/standard/tests/file/fileowner_variation1.phpt
@@ -14,7 +14,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
* FALSE in case of an error.
*/
-/* Creating soft and hard links to a file and applying fileowner() on links */
+/* Creating soft and hard links to a file and applying fileowner() on links */
$file_path = dirname(__FILE__);
fclose( fopen($file_path."/fileowner_variation1.tmp", "w") );
diff --git a/ext/standard/tests/file/fileowner_variation2.phpt b/ext/standard/tests/file/fileowner_variation2.phpt
index feff767879..83eeb6d5c0 100644
--- a/ext/standard/tests/file/fileowner_variation2.phpt
+++ b/ext/standard/tests/file/fileowner_variation2.phpt
@@ -24,12 +24,12 @@ $filenames = array(
FALSE,
NULL,
$file_handle,
-
+
/* scalars */
1234,
0
);
-
+
/* loop through to test each element the above array */
foreach( $filenames as $filename ) {
var_dump( fileowner($filename) );
diff --git a/ext/standard/tests/file/fileowner_variation3.phpt b/ext/standard/tests/file/fileowner_variation3.phpt
index 6f91c31d11..5768f528f1 100644
--- a/ext/standard/tests/file/fileowner_variation3.phpt
+++ b/ext/standard/tests/file/fileowner_variation3.phpt
@@ -29,7 +29,7 @@ $files_arr = array(
"/fileowner_variation3//fileowner_variation3.tmp",
"//fileowner_variation3//fileowner_variation3.tmp",
"/fileowner_variation3/*.tmp",
- "fileowner_variation3/fileowner*.tmp",
+ "fileowner_variation3/fileowner*.tmp",
/* Testing Binary safe */
"/fileowner_variation3/fileowner_variation3.tmp".chr(0),
diff --git a/ext/standard/tests/file/fileperms_variation1.phpt b/ext/standard/tests/file/fileperms_variation1.phpt
index e90cf8784f..fdcedcac59 100644
--- a/ext/standard/tests/file/fileperms_variation1.phpt
+++ b/ext/standard/tests/file/fileperms_variation1.phpt
@@ -13,7 +13,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
* Description: Returns the group ID of the file, or FALSE in case of an error.
*/
-/* Creating soft and hard links to a file and applying fileperms() on links */
+/* Creating soft and hard links to a file and applying fileperms() on links */
$file_path = dirname(__FILE__);
fclose( fopen($file_path."/fileperms_variation1.tmp", "w") );
diff --git a/ext/standard/tests/file/fileperms_variation2.phpt b/ext/standard/tests/file/fileperms_variation2.phpt
index 47c0c6593a..f9b190bcf8 100644
--- a/ext/standard/tests/file/fileperms_variation2.phpt
+++ b/ext/standard/tests/file/fileperms_variation2.phpt
@@ -23,12 +23,12 @@ $filenames = array(
FALSE,
NULL,
$file_handle,
-
+
/* scalars */
1234,
0
);
-
+
/* loop through to test each element the above array */
foreach( $filenames as $filename ) {
var_dump( fileperms($filename) );
diff --git a/ext/standard/tests/file/fileperms_variation3.phpt b/ext/standard/tests/file/fileperms_variation3.phpt
index 575fe11a2f..6ae97d1601 100644
--- a/ext/standard/tests/file/fileperms_variation3.phpt
+++ b/ext/standard/tests/file/fileperms_variation3.phpt
@@ -28,7 +28,7 @@ $files_arr = array(
"/fileperms_variation3//fileperms_variation3.tmp",
"//fileperms_variation3//fileperms_variation3.tmp",
"/fileperms_variation3/*.tmp",
- "fileperms_variation3/fileperms*.tmp",
+ "fileperms_variation3/fileperms*.tmp",
/* Testing Binary safe */
"/fileperms_variation3/fileperms_variation3.tmp".chr(0),
diff --git a/ext/standard/tests/file/filesize_basic.phpt b/ext/standard/tests/file/filesize_basic.phpt
index 58041b95c3..63d1f45c2f 100644
--- a/ext/standard/tests/file/filesize_basic.phpt
+++ b/ext/standard/tests/file/filesize_basic.phpt
@@ -2,14 +2,14 @@
Test filesize() function: basic functionaity
--FILE--
<?php
-/*
+/*
* Prototype: int filesize ( string $filename );
* Description: Returns the size of the file in bytes, or FALSE
* (and generates an error of level E_WARNING) in case of an error.
*/
-echo "*** Testing size of files and directories with filesize() ***\n";
+echo "*** Testing size of files and directories with filesize() ***\n";
$file_path = dirname(__FILE__);
@@ -30,7 +30,7 @@ $file_path = dirname(__FILE__);
$file_name = $file_path."/filesize_basic.tmp";
unlink($file_name);
?>
---EXPECTF--
+--EXPECTF--
*** Testing size of files and directories with filesize() ***
int(%d)
int(%d)
diff --git a/ext/standard/tests/file/filesize_error.phpt b/ext/standard/tests/file/filesize_error.phpt
index 6d8cfa8693..3dda0c9250 100644
--- a/ext/standard/tests/file/filesize_error.phpt
+++ b/ext/standard/tests/file/filesize_error.phpt
@@ -2,7 +2,7 @@
Test filesize() function: error conditions
--FILE--
<?php
-/*
+/*
* Prototype : int filesize ( string $filename );
* Description : Returns the size of the file in bytes, or FALSE
* (and generates an error of level E_WARNING) in case of an error.
@@ -23,7 +23,7 @@ echo "\n";
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECTF--
*** Testing filesize(): error conditions ***
Warning: filesize(): stat failed for /no/such/file in %s on line %d
bool(false)
diff --git a/ext/standard/tests/file/filesize_variation1-win32-mb.phpt b/ext/standard/tests/file/filesize_variation1-win32-mb.phpt
index d4ec8e571e..07fa39bd9e 100644
--- a/ext/standard/tests/file/filesize_variation1-win32-mb.phpt
+++ b/ext/standard/tests/file/filesize_variation1-win32-mb.phpt
@@ -7,7 +7,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
}
--FILE--
<?php
-/*
+/*
Prototype : int filesize ( string $filename );
Description : Returns the size of the file in bytes, or FALSE
(and generates an error of level E_WARNING) in case of an error.
@@ -16,7 +16,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
$file_path = dirname(__FILE__);
require($file_path."/file.inc");
-echo "*** Testing filesize(): usage variations ***\n";
+echo "*** Testing filesize(): usage variations ***\n";
echo "*** Checking filesize() with different size of files ***\n";
for($size = 1; $size <10000; $size = $size+1000)
diff --git a/ext/standard/tests/file/filesize_variation1-win32.phpt b/ext/standard/tests/file/filesize_variation1-win32.phpt
index 3c2841afe0..07fccac11e 100644
--- a/ext/standard/tests/file/filesize_variation1-win32.phpt
+++ b/ext/standard/tests/file/filesize_variation1-win32.phpt
@@ -7,7 +7,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
}
--FILE--
<?php
-/*
+/*
Prototype : int filesize ( string $filename );
Description : Returns the size of the file in bytes, or FALSE
(and generates an error of level E_WARNING) in case of an error.
@@ -16,7 +16,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
$file_path = dirname(__FILE__);
require($file_path."/file.inc");
-echo "*** Testing filesize(): usage variations ***\n";
+echo "*** Testing filesize(): usage variations ***\n";
echo "*** Checking filesize() with different size of files ***\n";
for($size = 1; $size <10000; $size = $size+1000)
diff --git a/ext/standard/tests/file/filesize_variation1.phpt b/ext/standard/tests/file/filesize_variation1.phpt
index 0a490cd7e6..ef9ef34b5e 100644
--- a/ext/standard/tests/file/filesize_variation1.phpt
+++ b/ext/standard/tests/file/filesize_variation1.phpt
@@ -7,7 +7,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
}
--FILE--
<?php
-/*
+/*
Prototype : int filesize ( string $filename );
Description : Returns the size of the file in bytes, or FALSE
(and generates an error of level E_WARNING) in case of an error.
@@ -16,7 +16,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
$file_path = dirname(__FILE__);
require($file_path."/file.inc");
-echo "*** Testing filesize(): usage variations ***\n";
+echo "*** Testing filesize(): usage variations ***\n";
echo "*** Checking filesize() with different size of files ***\n";
for($size = 1; $size <10000; $size = $size+1000)
diff --git a/ext/standard/tests/file/filesize_variation2-win32.phpt b/ext/standard/tests/file/filesize_variation2-win32.phpt
index 7322b78aae..3b0d46a95b 100644
--- a/ext/standard/tests/file/filesize_variation2-win32.phpt
+++ b/ext/standard/tests/file/filesize_variation2-win32.phpt
@@ -7,7 +7,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
}
--FILE--
<?php
-/*
+/*
Prototype : int filesize ( string $filename );
Description : Returns the size of the file in bytes, or FALSE
(and generates an error of level E_WARNING) in case of an error.
@@ -16,7 +16,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
$file_path = dirname(__FILE__);
require($file_path."/file.inc");
-echo "*** Testing filesize(): usage variations ***\n";
+echo "*** Testing filesize(): usage variations ***\n";
echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n";
echo "-- Creating a base dir, and checking its size --\n";
@@ -24,7 +24,7 @@ mkdir( $file_path."/filesize_variation2");
var_dump( filesize( $file_path."/filesize_variation2"));
clearstatcache();
-echo "-- Creating a file inside base dir, and checking dir & file size --\n";
+echo "-- Creating a file inside base dir, and checking dir & file size --\n";
create_files($file_path."/filesize_variation2", 1, "numeric", 0755, 1, "w", "filesize_variation", 2);
var_dump( filesize( $file_path."/filesize_variation2"));
clearstatcache();
diff --git a/ext/standard/tests/file/filesize_variation2.phpt b/ext/standard/tests/file/filesize_variation2.phpt
index 8a7594ee79..d42a276f99 100644
--- a/ext/standard/tests/file/filesize_variation2.phpt
+++ b/ext/standard/tests/file/filesize_variation2.phpt
@@ -7,7 +7,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
}
--FILE--
<?php
-/*
+/*
Prototype : int filesize ( string $filename );
Description : Returns the size of the file in bytes, or FALSE
(and generates an error of level E_WARNING) in case of an error.
@@ -16,7 +16,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
$file_path = dirname(__FILE__);
require($file_path."/file.inc");
-echo "*** Testing filesize(): usage variations ***\n";
+echo "*** Testing filesize(): usage variations ***\n";
echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n";
echo "-- Creating a base dir, and checking its size --\n";
@@ -24,7 +24,7 @@ mkdir( $file_path."/filesize_variation2");
var_dump( filesize( $file_path."/filesize_variation2"));
clearstatcache();
-echo "-- Creating a file inside base dir, and checking dir & file size --\n";
+echo "-- Creating a file inside base dir, and checking dir & file size --\n";
create_files($file_path."/filesize_variation2", 1, "numeric", 0755, 1, "w", "filesize_variation");
var_dump( filesize( $file_path."/filesize_variation2"));
clearstatcache();
diff --git a/ext/standard/tests/file/filesize_variation3-win32.phpt b/ext/standard/tests/file/filesize_variation3-win32.phpt
index 94ba6f478a..8e7a0a1289 100644
--- a/ext/standard/tests/file/filesize_variation3-win32.phpt
+++ b/ext/standard/tests/file/filesize_variation3-win32.phpt
@@ -7,7 +7,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
}
--FILE--
<?php
-/*
+/*
Prototype : int filesize ( string $filename );
Description : Returns the size of the file in bytes, or FALSE
(and generates an error of level E_WARNING) in case of an error.
@@ -15,7 +15,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
$file_path = dirname(__FILE__);
-echo "*** Testing filesize(): usage variations ***\n";
+echo "*** Testing filesize(): usage variations ***\n";
$filename = $file_path."/filesize_variation3.tmp";
$file_handle = fopen($filename, "w");
fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes
diff --git a/ext/standard/tests/file/filesize_variation3.phpt b/ext/standard/tests/file/filesize_variation3.phpt
index 67d46998d2..f70b84e619 100644
--- a/ext/standard/tests/file/filesize_variation3.phpt
+++ b/ext/standard/tests/file/filesize_variation3.phpt
@@ -7,7 +7,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
}
--FILE--
<?php
-/*
+/*
Prototype : int filesize ( string $filename );
Description : Returns the size of the file in bytes, or FALSE
(and generates an error of level E_WARNING) in case of an error.
@@ -15,7 +15,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
$file_path = dirname(__FILE__);
-echo "*** Testing filesize(): usage variations ***\n";
+echo "*** Testing filesize(): usage variations ***\n";
$filename = $file_path."/filesize_variation3.tmp";
$file_handle = fopen($filename, "w");
fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes
diff --git a/ext/standard/tests/file/filesize_variation4-win32.phpt b/ext/standard/tests/file/filesize_variation4-win32.phpt
index 5b6aec9fe9..0893b81f2f 100644
--- a/ext/standard/tests/file/filesize_variation4-win32.phpt
+++ b/ext/standard/tests/file/filesize_variation4-win32.phpt
@@ -7,7 +7,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
}
--FILE--
<?php
-/*
+/*
Prototype : int filesize ( string $filename );
Description : Returns the size of the file in bytes, or FALSE
(and generates an error of level E_WARNING) in case of an error.
@@ -16,7 +16,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
$file_path = dirname(__FILE__);
require($file_path."/file.inc");
-echo "*** Testing filesize(): usage variations ***\n";
+echo "*** Testing filesize(): usage variations ***\n";
echo "\n*** Testing filesize() with data written using different file modes and by creating holes in file ***\n";
$filename = $file_path."/filesize_variation4.tmp";
diff --git a/ext/standard/tests/file/filesize_variation4.phpt b/ext/standard/tests/file/filesize_variation4.phpt
index ffea82c234..59f8df9b77 100644
--- a/ext/standard/tests/file/filesize_variation4.phpt
+++ b/ext/standard/tests/file/filesize_variation4.phpt
@@ -7,7 +7,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
}
--FILE--
<?php
-/*
+/*
Prototype : int filesize ( string $filename );
Description : Returns the size of the file in bytes, or FALSE
(and generates an error of level E_WARNING) in case of an error.
@@ -17,7 +17,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
$file_path = dirname(__FILE__);
-echo "*** Testing filesize(): usage variations ***\n";
+echo "*** Testing filesize(): usage variations ***\n";
echo "\n*** Testing filesize() with data written using different file modes and by creating holes in file ***\n";
$filename = $file_path."/filesize_variation4.tmp";
diff --git a/ext/standard/tests/file/filesize_variation5.phpt b/ext/standard/tests/file/filesize_variation5.phpt
index 638f8ba8ed..05c18a12ee 100644
--- a/ext/standard/tests/file/filesize_variation5.phpt
+++ b/ext/standard/tests/file/filesize_variation5.phpt
@@ -4,13 +4,13 @@ Test filesize() function: usage variations - size of files
Dave Kelsey <d_kelsey@uk.ibm.com>
--FILE--
<?php
-/*
+/*
* Prototype : int filesize ( string $filename );
* Description : Returns the size of the file in bytes, or FALSE
* (and generates an error of level E_WARNING) in case of an error.
*/
-echo "*** Testing filesize(): usage variations ***\n";
+echo "*** Testing filesize(): usage variations ***\n";
/* null, false, "", " " */
var_dump( filesize(NULL) );
@@ -20,7 +20,7 @@ var_dump( filesize(' ') );
var_dump( filesize('|') );
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECTF--
*** Testing filesize(): usage variations ***
bool(false)
bool(false)
diff --git a/ext/standard/tests/file/filestat.phpt b/ext/standard/tests/file/filestat.phpt
index d02f9f2a10..f6031219c7 100644
--- a/ext/standard/tests/file/filestat.phpt
+++ b/ext/standard/tests/file/filestat.phpt
@@ -29,7 +29,7 @@ var_dump(filectime("/no/such/file/or/dir"));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(%d)
int(%d)
int(%d)
diff --git a/ext/standard/tests/file/filetype_variation2.phpt b/ext/standard/tests/file/filetype_variation2.phpt
index b6a2961843..400a74dc4f 100644
--- a/ext/standard/tests/file/filetype_variation2.phpt
+++ b/ext/standard/tests/file/filetype_variation2.phpt
@@ -9,7 +9,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
}
if (!file_exists("/dev/null")) {
die('skip /dev/null not available');
-}
+}
?>
--FILE--
<?php
diff --git a/ext/standard/tests/file/flock.phpt b/ext/standard/tests/file/flock.phpt
index ab08de5256..2330270113 100644
--- a/ext/standard/tests/file/flock.phpt
+++ b/ext/standard/tests/file/flock.phpt
@@ -40,7 +40,7 @@ echo "Done\n";
$file = dirname(__FILE__)."/flock.dat";
unlink($file);
?>
---EXPECTF--
+--EXPECTF--
Warning: flock() expects at least 2 parameters, 0 given in %s on line %d
NULL
diff --git a/ext/standard/tests/file/flock_basic.phpt b/ext/standard/tests/file/flock_basic.phpt
index bb27cb439f..154b41e4cd 100644
--- a/ext/standard/tests/file/flock_basic.phpt
+++ b/ext/standard/tests/file/flock_basic.phpt
@@ -2,13 +2,13 @@
Test flock() function: Basic functionality
--FILE--
<?php
-/*
+/*
Prototype: bool flock(resource $handle, int $operation [, int &$wouldblock]);
Description: PHP supports a portable way of locking complete files
in an advisory way
*/
-echo "*** Testing flock() fun with file and dir ***\n";
+echo "*** Testing flock() fun with file and dir ***\n";
$file_path = dirname(__FILE__);
$file_handle = fopen("$file_path/lock.tmp", "w");
@@ -30,7 +30,7 @@ rmdir("$file_path/dir");
echo "\n*** Done ***\n";
?>
---EXPECT--
+--EXPECT--
*** Testing flock() fun with file and dir ***
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/flock_error.phpt b/ext/standard/tests/file/flock_error.phpt
index 216e70c246..952a4d9105 100644
--- a/ext/standard/tests/file/flock_error.phpt
+++ b/ext/standard/tests/file/flock_error.phpt
@@ -2,7 +2,7 @@
Test flock() function: Error conditions
--FILE--
<?php
-/*
+/*
Prototype: bool flock(resource $handle, int $operation [, int &$wouldblock]);
Description: PHP supports a portable way of locking complete files
in an advisory way
@@ -55,7 +55,7 @@ echo "\n*** Done ***\n";
$file = dirname(__FILE__)."/flock.tmp";
unlink($file);
?>
---EXPECTF--
+--EXPECTF--
*** Testing error conditions ***
--- Iteration 0 ---
diff --git a/ext/standard/tests/file/flock_variation.phpt b/ext/standard/tests/file/flock_variation.phpt
index 02cb0ff282..dfb442086e 100644
--- a/ext/standard/tests/file/flock_variation.phpt
+++ b/ext/standard/tests/file/flock_variation.phpt
@@ -2,7 +2,7 @@
Test flock() function: Variations
--FILE--
<?php
-/*
+/*
Prototype: bool flock(resource $handle, int $operation [, int &$wouldblock]);
Description: PHP supports a portable way of locking complete files
in an advisory way
@@ -21,7 +21,7 @@ $operations = array(
LOCK_EX|LOCK_NB,
LOCK_SH|LOCK_EX,
LOCK_UN,
- 1,
+ 1,
2,
2.234,
TRUE
@@ -64,7 +64,7 @@ fclose($fp);
echo "\n*** Done ***\n";
?>
---EXPECT--
+--EXPECT--
*** Testing flock() fun with the various operation and
wouldblock values ***
--- Outer iteration 0 ---
diff --git a/ext/standard/tests/file/fnmatch_variation.phpt b/ext/standard/tests/file/fnmatch_variation.phpt
index 6d28528c1c..cbc405eaea 100644
--- a/ext/standard/tests/file/fnmatch_variation.phpt
+++ b/ext/standard/tests/file/fnmatch_variation.phpt
@@ -43,7 +43,7 @@ $pattern_arr = array(
17 => "?match?",
18 => "match.tmp",
19 => "/match.tmp",
-20 => "/match.tmp/",
+20 => "/match.tmp/",
21 => 'match.tmp',
22 => 'match.tmp\0',
23 => "match.tmp\0",
diff --git a/ext/standard/tests/file/fopen_variation10-win32.phpt b/ext/standard/tests/file/fopen_variation10-win32.phpt
index 5f38cbba65..1d533a0b87 100644
--- a/ext/standard/tests/file/fopen_variation10-win32.phpt
+++ b/ext/standard/tests/file/fopen_variation10-win32.phpt
@@ -17,7 +17,7 @@ if (!is_writable('c:\\fopen_variation10.tmp')) {
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing fopen() : variation ***\n";
@@ -30,16 +30,16 @@ mkdir('c:\\'.$rootdir);
$unixifiedDir = '/'.substr(str_replace('\\','/',$testdir),3);
-$paths = array('c:\\',
- 'c:',
- 'c',
- '\\',
- '/',
+$paths = array('c:\\',
+ 'c:',
+ 'c',
+ '\\',
+ '/',
'c:'.$rootdir,
- 'c:adir',
- 'c:\\/',
+ 'c:adir',
+ 'c:\\/',
'c:\\'.$rootdir.'\\/',
- 'c:\\'.$rootdir.'\\',
+ 'c:\\'.$rootdir.'\\',
'c:\\'.$rootdir.'/',
$unixifiedDir,
'/sortout');
diff --git a/ext/standard/tests/file/fopen_variation11-win32.phpt b/ext/standard/tests/file/fopen_variation11-win32.phpt
index 85265063d1..b21b422166 100644
--- a/ext/standard/tests/file/fopen_variation11-win32.phpt
+++ b/ext/standard/tests/file/fopen_variation11-win32.phpt
@@ -16,7 +16,7 @@ if (!is_writable('c:\\fopen_variation10.tmp')) {
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing fopen() : variation ***\n";
@@ -29,16 +29,16 @@ mkdir('c:\\'.$rootdir);
$unixifiedDir = '/'.substr(str_replace('\\','/',$testdir),3);
-$paths = array('c:\\',
- 'c:',
- 'c',
- '\\',
- '/',
+$paths = array('c:\\',
+ 'c:',
+ 'c',
+ '\\',
+ '/',
'c:'.$rootdir,
- 'c:adir',
- 'c:\\/',
+ 'c:adir',
+ 'c:\\/',
'c:\\'.$rootdir.'\\/',
- 'c:\\'.$rootdir.'\\',
+ 'c:\\'.$rootdir.'\\',
'c:\\'.$rootdir.'/',
$unixifiedDir,
'/sortout');
diff --git a/ext/standard/tests/file/fopen_variation12.phpt b/ext/standard/tests/file/fopen_variation12.phpt
index c207ec1836..881fa77430 100644
--- a/ext/standard/tests/file/fopen_variation12.phpt
+++ b/ext/standard/tests/file/fopen_variation12.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
set_include_path("rubbish");
@@ -16,12 +16,12 @@ restore_include_path();
function testme() {
- $tmpfile = basename(__FILE__, ".php") . ".tmp";
+ $tmpfile = basename(__FILE__, ".php") . ".tmp";
$h = fopen($tmpfile, "w", true);
fwrite($h, "This is the test file");
fclose($h);
-
-
+
+
$h = @fopen($tmpfile, "r");
if ($h === false) {
echo "Not created in working dir\n";
@@ -31,9 +31,9 @@ function testme() {
fclose($h);
unlink($tmpfile);
}
-
- $scriptDirFile = dirname(__FILE__).'/'.$tmpfile;
+
+ $scriptDirFile = dirname(__FILE__).'/'.$tmpfile;
$h = @fopen($scriptDirFile, "r");
if ($h === false) {
echo "Not created in script dir\n";
@@ -41,7 +41,7 @@ function testme() {
else {
echo "created in script dir\n";
fclose($h);
- unlink($scriptDirFile);
+ unlink($scriptDirFile);
}
}
?>
diff --git a/ext/standard/tests/file/fopen_variation13.phpt b/ext/standard/tests/file/fopen_variation13.phpt
index d540d70006..94dea21250 100644
--- a/ext/standard/tests/file/fopen_variation13.phpt
+++ b/ext/standard/tests/file/fopen_variation13.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
require_once('fopen_include_path.inc');
@@ -28,13 +28,13 @@ function runtest() {
$tempDir = 'fopen_variation13.dir.tmp';
$tmpfile = 'fopen_variation13.tmp';
$absFile = getcwd().'/'.$tempDir.'/'.$tmpfile;
-
+
mkdir($tempDir);
$h = fopen($absFile, "w", true);
fwrite($h, "This is the test file");
fclose($h);
-
-
+
+
$h = fopen($absFile, "r");
if ($h === false) {
echo "Not created absolute location\n";
@@ -45,7 +45,7 @@ function runtest() {
}
unlink($absFile);
rmdir($tempDir);
-
+
}
?>
===DONE===
diff --git a/ext/standard/tests/file/fopen_variation14-win32.phpt b/ext/standard/tests/file/fopen_variation14-win32.phpt
index 554d8c6ded..73f00a4596 100644
--- a/ext/standard/tests/file/fopen_variation14-win32.phpt
+++ b/ext/standard/tests/file/fopen_variation14-win32.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing fopen() : variation ***\n";
@@ -53,15 +53,15 @@ function runtest($fileURIs) {
$iteration = 0;
foreach($fileURIs as $fileURI) {
echo "--- READ: $fileURI ---\n";
-
+
$readData = "read:$iteration";
$writeData = "write:$iteration";
-
+
// create the file and test read
$h = fopen($absFile, 'w');
fwrite($h, $readData);
fclose($h);
-
+
$h = fopen($fileURI, 'r');
if ($h !== false) {
if (fread($h, 4096) != $readData) {
@@ -73,14 +73,14 @@ function runtest($fileURIs) {
fclose($h);
}
unlink($absFile);
-
- echo "--- WRITE: $fileURI ---\n";
+
+ echo "--- WRITE: $fileURI ---\n";
// create the file to test write
$h = fopen($fileURI, 'w');
if ($h !== false) {
fwrite($h, $writeData);
fclose($h);
-
+
$h = fopen($absFile, 'r');
if ($h !== false) {
if (fread($h, 4096) != $writeData) {
diff --git a/ext/standard/tests/file/fopen_variation14.phpt b/ext/standard/tests/file/fopen_variation14.phpt
index aa4e05b892..465ddbcc86 100644
--- a/ext/standard/tests/file/fopen_variation14.phpt
+++ b/ext/standard/tests/file/fopen_variation14.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing fopen() : variation ***\n";
@@ -45,15 +45,15 @@ function runtest($fileURIs) {
$iteration = 0;
foreach($fileURIs as $fileURI) {
echo "--- READ: $fileURI ---\n";
-
+
$readData = "read:$iteration";
$writeData = "write:$iteration";
-
+
// create the file and test read
$h = fopen($absFile, 'w');
fwrite($h, $readData);
fclose($h);
-
+
$h = fopen($fileURI, 'r');
if ($h !== false) {
if (fread($h, 4096) != $readData) {
@@ -65,14 +65,14 @@ function runtest($fileURIs) {
fclose($h);
}
unlink($absFile);
-
- echo "--- WRITE: $fileURI ---\n";
+
+ echo "--- WRITE: $fileURI ---\n";
// create the file to test write
$h = fopen($fileURI, 'w');
if ($h !== false) {
fwrite($h, $writeData);
fclose($h);
-
+
$h = fopen($absFile, 'r');
if ($h !== false) {
if (fread($h, 4096) != $writeData) {
diff --git a/ext/standard/tests/file/fopen_variation15-win32.phpt b/ext/standard/tests/file/fopen_variation15-win32.phpt
index 8599306eda..88a450b735 100644
--- a/ext/standard/tests/file/fopen_variation15-win32.phpt
+++ b/ext/standard/tests/file/fopen_variation15-win32.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing fopen() : variation ***\n";
@@ -57,15 +57,15 @@ function runtest($fileURIs) {
$iteration = 0;
foreach($fileURIs as $fileURI) {
echo "--- READ: $fileURI ---\n";
-
+
$readData = "read:$iteration";
$writeData = "write:$iteration";
-
+
// create the file and test read
$h = fopen($absFile, 'w');
fwrite($h, $readData);
fclose($h);
-
+
$h = fopen($fileURI, 'r', true);
if ($h !== false) {
if (fread($h, 4096) != $readData) {
@@ -77,14 +77,14 @@ function runtest($fileURIs) {
fclose($h);
}
unlink($absFile);
-
- echo "--- WRITE: $fileURI ---\n";
+
+ echo "--- WRITE: $fileURI ---\n";
// create the file to test write
$h = fopen($fileURI, 'w', true);
if ($h !== false) {
fwrite($h, $writeData);
fclose($h);
-
+
$h = fopen($absFile, 'r');
if ($h !== false) {
if (fread($h, 4096) != $writeData) {
diff --git a/ext/standard/tests/file/fopen_variation15.phpt b/ext/standard/tests/file/fopen_variation15.phpt
index 24b01fbe8c..58184edb36 100644
--- a/ext/standard/tests/file/fopen_variation15.phpt
+++ b/ext/standard/tests/file/fopen_variation15.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing fopen() : variation ***\n";
@@ -49,15 +49,15 @@ function runtest($fileURIs) {
$iteration = 0;
foreach($fileURIs as $fileURI) {
echo "--- READ: $fileURI ---\n";
-
+
$readData = "read:$iteration";
$writeData = "write:$iteration";
-
+
// create the file and test read
$h = fopen($absFile, 'w');
fwrite($h, $readData);
fclose($h);
-
+
$h = fopen($fileURI, 'r', true);
if ($h !== false) {
if (fread($h, 4096) != $readData) {
@@ -69,14 +69,14 @@ function runtest($fileURIs) {
fclose($h);
}
unlink($absFile);
-
- echo "--- WRITE: $fileURI ---\n";
+
+ echo "--- WRITE: $fileURI ---\n";
// create the file to test write
$h = fopen($fileURI, 'w', true);
if ($h !== false) {
fwrite($h, $writeData);
fclose($h);
-
+
$h = fopen($absFile, 'r');
if ($h !== false) {
if (fread($h, 4096) != $writeData) {
diff --git a/ext/standard/tests/file/fopen_variation16.phpt b/ext/standard/tests/file/fopen_variation16.phpt
index 8b793f7858..82b259057a 100644
--- a/ext/standard/tests/file/fopen_variation16.phpt
+++ b/ext/standard/tests/file/fopen_variation16.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
require_once('fopen_include_path.inc');
@@ -31,18 +31,18 @@ rmdir($thisTestDir);
function runtest() {
global $dir1;
-
+
$extraDir = "extraDir16";
mkdir($dir1.'/'.$extraDir);
mkdir($extraDir);
-
+
$tmpfile = $extraDir.'/fopen_variation16.tmp';
$h = fopen($tmpfile, "w+", true);
fwrite($h, "This is the test file");
fclose($h);
-
+
$h = @fopen($dir1.'/'.$tmpfile, "r");
if ($h === false) {
echo "Not created in dir1\n";
@@ -60,10 +60,10 @@ function runtest() {
echo "found file - not in dir1\n";
fclose($h);
}
-
- unlink($tmpfile);
- rmdir($dir1.'/'.$extraDir);
- rmdir($extraDir);
+
+ unlink($tmpfile);
+ rmdir($dir1.'/'.$extraDir);
+ rmdir($extraDir);
}
?>
===DONE===
diff --git a/ext/standard/tests/file/fopen_variation17.phpt b/ext/standard/tests/file/fopen_variation17.phpt
index 461807d26f..b034523609 100644
--- a/ext/standard/tests/file/fopen_variation17.phpt
+++ b/ext/standard/tests/file/fopen_variation17.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test fopen() function : variation: use include path create and read a file (relative)
+Test fopen() function : variation: use include path create and read a file (relative)
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
--FILE--
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
require_once('fopen_include_path.inc');
@@ -31,17 +31,17 @@ rmdir($thisTestDir);
function runtest() {
global $dir1;
-
+
$extraDir = "extraDir17";
mkdir($dir1.'/'.$extraDir);
mkdir($extraDir);
-
+
$tmpfile = $extraDir . '/' . basename(__FILE__, ".php") . ".tmp";
$h = fopen($tmpfile, "w+", true);
fwrite($h, "This is the test file");
fclose($h);
-
+
$h = @fopen($dir1.'/'.$tmpfile, "r");
if ($h === false) {
echo "Not created in dir1\n";
@@ -59,10 +59,10 @@ function runtest() {
echo "found file for reading\n";
fclose($h);
}
-
- unlink($tmpfile);
- rmdir($dir1.'/'.$extraDir);
- rmdir($extraDir);
+
+ unlink($tmpfile);
+ rmdir($dir1.'/'.$extraDir);
+ rmdir($extraDir);
}
?>
===DONE===
diff --git a/ext/standard/tests/file/fopen_variation19.phpt b/ext/standard/tests/file/fopen_variation19.phpt
index 031ba45734..ad1bfb133c 100644
--- a/ext/standard/tests/file/fopen_variation19.phpt
+++ b/ext/standard/tests/file/fopen_variation19.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
$tmpDir = 'fopenVar19.Dir';
diff --git a/ext/standard/tests/file/fopen_variation3.phpt b/ext/standard/tests/file/fopen_variation3.phpt
index b4301743d4..6837c25ce2 100644
--- a/ext/standard/tests/file/fopen_variation3.phpt
+++ b/ext/standard/tests/file/fopen_variation3.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing fopen() : usage variation ***\n";
diff --git a/ext/standard/tests/file/fopen_variation4.phpt b/ext/standard/tests/file/fopen_variation4.phpt
index 7a92a0a29f..a2578a700d 100644
--- a/ext/standard/tests/file/fopen_variation4.phpt
+++ b/ext/standard/tests/file/fopen_variation4.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing fopen() : usage variation ***\n";
@@ -103,7 +103,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
//file resource
'file resource' => $fileresource
);
diff --git a/ext/standard/tests/file/fopen_variation5.phpt b/ext/standard/tests/file/fopen_variation5.phpt
index ecfac73007..7baac85e01 100644
--- a/ext/standard/tests/file/fopen_variation5.phpt
+++ b/ext/standard/tests/file/fopen_variation5.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
@@ -40,7 +40,7 @@ chdir($workingDir);
//define the files to go into these directories, create one in dir2
echo "\n--- testing include path ---\n";
-set_include_path($newIncludePath);
+set_include_path($newIncludePath);
$modes = array("r", "r+", "rt");
foreach($modes as $mode) {
test_fopen($mode);
@@ -60,7 +60,7 @@ rmdir($thisTestDir);
function test_fopen($mode) {
global $scriptFile, $secondFile, $firstFile, $filename;
-
+
// create a file in the middle directory
$h = fopen($secondFile, "w");
fwrite($h, "in dir2");
@@ -77,44 +77,44 @@ function test_fopen($mode) {
$h = fopen($firstFile, "w");
fwrite($h, "in dir1");
fclose($h);
-
+
//should now read dir1 file
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
// create a file in working directory
$h = fopen($filename, "w");
fwrite($h, "in working dir");
fclose($h);
-
+
//should still read dir1 file
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
unlink($firstFile);
unlink($secondFile);
-
+
//should read the file in working dir
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
// create a file in the script directory
$h = fopen($scriptFile, "w");
fwrite($h, "in script dir");
fclose($h);
-
+
//should read the file in script dir
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
//cleanup
unlink($filename);
unlink($scriptFile);
diff --git a/ext/standard/tests/file/fopen_variation6.phpt b/ext/standard/tests/file/fopen_variation6.phpt
index 258fa7f073..6c354c636d 100644
--- a/ext/standard/tests/file/fopen_variation6.phpt
+++ b/ext/standard/tests/file/fopen_variation6.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing fopen() : variation ***\n";
diff --git a/ext/standard/tests/file/fopen_variation7.phpt b/ext/standard/tests/file/fopen_variation7.phpt
index f5c1048c07..9a4335c410 100644
--- a/ext/standard/tests/file/fopen_variation7.phpt
+++ b/ext/standard/tests/file/fopen_variation7.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
require_once('fopen_include_path.inc');
@@ -34,8 +34,8 @@ function runtest() {
$h = fopen($tmpfile, "w", true);
fwrite($h, "This is the test file");
fclose($h);
-
-
+
+
$h = @fopen($tmpfile, "r");
if ($h === false) {
echo "Not created in working dir\n";
@@ -45,7 +45,7 @@ function runtest() {
fclose($h);
unlink($tmpfile);
}
-
+
$h = @fopen($dir1.'/'.$tmpfile, "r");
if ($h === false) {
echo "Not created in dir1\n";
@@ -53,7 +53,7 @@ function runtest() {
else {
echo "created in dir1\n";
fclose($h);
- unlink($dir1.'/'.$tmpfile);
+ unlink($dir1.'/'.$tmpfile);
}
}
?>
diff --git a/ext/standard/tests/file/fopen_variation8.phpt b/ext/standard/tests/file/fopen_variation8.phpt
index 02637c2106..692723dd9b 100644
--- a/ext/standard/tests/file/fopen_variation8.phpt
+++ b/ext/standard/tests/file/fopen_variation8.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
@@ -40,7 +40,7 @@ chdir($workingDir);
//define the files to go into these directories, create one in dir2
echo "\n--- testing include path ---\n";
-set_include_path($newIncludePath);
+set_include_path($newIncludePath);
$modes = array("r", "r+", "rt");
foreach($modes as $mode) {
test_fopen($mode);
@@ -59,7 +59,7 @@ rmdir($thisTestDir);
function test_fopen($mode) {
global $scriptFile, $secondFile, $firstFile, $filename;
-
+
// create a file in the middle directory
$h = fopen($secondFile, "w");
fwrite($h, "in dir2");
@@ -76,44 +76,44 @@ function test_fopen($mode) {
$h = fopen($firstFile, "w");
fwrite($h, "in dir1");
fclose($h);
-
+
//should now read dir1 file
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
// create a file in working directory
$h = fopen($filename, "w");
fwrite($h, "in working dir");
fclose($h);
-
+
//should read the dir1 file
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
unlink($firstFile);
unlink($secondFile);
-
+
//should read the working dir file
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
// create a file in the script directory
$h = fopen($scriptFile, "w");
fwrite($h, "in script dir");
fclose($h);
-
+
//should read the file in script dir
$h = fopen($filename, $mode, true);
fpassthru($h);
fclose($h);
echo "\n";
-
+
//cleanup
unlink($filename);
unlink($scriptFile);
diff --git a/ext/standard/tests/file/fopen_variation9.phpt b/ext/standard/tests/file/fopen_variation9.phpt
index 5d1ca139f4..db46ce008e 100644
--- a/ext/standard/tests/file/fopen_variation9.phpt
+++ b/ext/standard/tests/file/fopen_variation9.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource context]])
* Description: Open a file or a URL and return a file pointer
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
require_once('fopen_include_path.inc');
@@ -34,8 +34,8 @@ function runtest() {
$h = fopen($tmpfile, "w", true);
fwrite($h, "This is the test file");
fclose($h);
-
-
+
+
$h = @fopen($tmpfile, "r");
if ($h === false) {
echo "Not created in working dir\n";
@@ -45,7 +45,7 @@ function runtest() {
fclose($h);
unlink($tmpfile);
}
-
+
$h = @fopen('dir1/'.$tmpfile, "r");
if ($h === false) {
echo "Not created in dir1\n";
@@ -53,7 +53,7 @@ function runtest() {
else {
echo "created in dir1\n";
fclose($h);
- unlink('dir1/'.$tmpfile);
+ unlink('dir1/'.$tmpfile);
}
}
?>
diff --git a/ext/standard/tests/file/fopencookie.phpt b/ext/standard/tests/file/fopencookie.phpt
index cd6bed89cf..79922e31e1 100644
--- a/ext/standard/tests/file/fopencookie.phpt
+++ b/ext/standard/tests/file/fopencookie.phpt
@@ -20,12 +20,12 @@ fopencookie detected and working (or cast mechanism works)
class userstream {
public $position = 0;
public $data = "If you can read this, it worked";
-
+
function stream_open($path, $mode, $options, &$opened_path)
{
return true;
}
-
+
function stream_read($count)
{
$ret = substr($this->data, $this->position, $count);
diff --git a/ext/standard/tests/file/fpassthru_basic.phpt b/ext/standard/tests/file/fpassthru_basic.phpt
index 7389bd2105..162c6f77ec 100644
--- a/ext/standard/tests/file/fpassthru_basic.phpt
+++ b/ext/standard/tests/file/fpassthru_basic.phpt
@@ -2,7 +2,7 @@
Test fpassthru() function: Basic functionality
--FILE--
<?php
-/*
+/*
Prototype: int fpassthru ( resource $handle );
Description: Reads to EOF on the given file pointer from the current position
and writes the results to the output buffer.
diff --git a/ext/standard/tests/file/fpassthru_error.phpt b/ext/standard/tests/file/fpassthru_error.phpt
index f761d09482..4ff028de6f 100644
--- a/ext/standard/tests/file/fpassthru_error.phpt
+++ b/ext/standard/tests/file/fpassthru_error.phpt
@@ -2,7 +2,7 @@
Test fpassthru() function: Error conditions
--FILE--
<?php
-/*
+/*
Prototype: int fpassthru ( resource $handle );
Description: Reads to EOF on the given file pointer from the current position
and writes the results to the output buffer.
diff --git a/ext/standard/tests/file/fpassthru_variation.phpt b/ext/standard/tests/file/fpassthru_variation.phpt
index 2c9e6e6cd3..33b7d3ca4f 100644
--- a/ext/standard/tests/file/fpassthru_variation.phpt
+++ b/ext/standard/tests/file/fpassthru_variation.phpt
@@ -2,7 +2,7 @@
Test fpassthru() function: Variations
--FILE--
<?php
-/*
+/*
Prototype: int fpassthru ( resource $handle );
Description: Reads to EOF on the given file pointer from the current position
and writes the results to the output buffer.
@@ -22,7 +22,7 @@ $file_read = fopen($file_name, "r");
$offset_arr = array(
/* Positive offsets */
0,
- 1,
+ 1,
5,
10,
20,
@@ -32,8 +32,8 @@ $offset_arr = array(
70,
/* Negative offsets, the file pointer should be at the end of file
to get data */
- -1,
- -5,
+ -1,
+ -5,
-10,
-20,
-35,
@@ -48,12 +48,12 @@ for( $i=0; $i<count($offset_arr); $i++ ) {
var_dump(fpassthru($file_read) );
rewind( $file_read );
}else
- {
+ {
fseek($file_read, $offset_arr[$i], SEEK_END);
var_dump( fpassthru($file_read) );
rewind( $file_read );
- }
-}
+ }
+}
fclose($file_read); // closing the handle
diff --git a/ext/standard/tests/file/fputcsv_variation1.phpt b/ext/standard/tests/file/fputcsv_variation1.phpt
index 68df33c8ec..7bc9823fe2 100644
--- a/ext/standard/tests/file/fputcsv_variation1.phpt
+++ b/ext/standard/tests/file/fputcsv_variation1.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with all parameters specified
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -33,13 +33,13 @@ $filename = "$file_path/fputcsv_variation1.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -53,7 +53,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
var_dump( fputcsv($file_handle, $csv_field, $delimiter, $enclosure) );
// check the file pointer position and eof
@@ -61,7 +61,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation10.phpt b/ext/standard/tests/file/fputcsv_variation10.phpt
index 21d845ffa7..f509a27738 100644
--- a/ext/standard/tests/file/fputcsv_variation10.phpt
+++ b/ext/standard/tests/file/fputcsv_variation10.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with line without any csv fields
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -28,13 +28,13 @@ $filename = "$file_path/fputcsv_variation10.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($fields as $field) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -46,16 +46,16 @@ foreach ($fields as $field) {
exit();
}
$csv_field = $field;
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field) );
-
+
// check the file pointer position and eof
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation11.phpt b/ext/standard/tests/file/fputcsv_variation11.phpt
index 770b89b711..5369478971 100644
--- a/ext/standard/tests/file/fputcsv_variation11.phpt
+++ b/ext/standard/tests/file/fputcsv_variation11.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with default enclosure value
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -33,13 +33,13 @@ $filename = "$file_path/fputcsv_variation11.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -53,7 +53,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field, $delimiter) );
// check the file pointer position and eof
@@ -61,7 +61,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation12.phpt b/ext/standard/tests/file/fputcsv_variation12.phpt
index 24fe5c4658..d0b5c71c1f 100644
--- a/ext/standard/tests/file/fputcsv_variation12.phpt
+++ b/ext/standard/tests/file/fputcsv_variation12.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with default enclosure and different delimiter
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -34,13 +34,13 @@ $filename = "$file_path/fputcsv_variation12.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -54,7 +54,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field, '+') );
// check the file pointer position and eof
@@ -62,7 +62,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation13.phpt b/ext/standard/tests/file/fputcsv_variation13.phpt
index a8a350b222..6984614e49 100644
--- a/ext/standard/tests/file/fputcsv_variation13.phpt
+++ b/ext/standard/tests/file/fputcsv_variation13.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with default enclosure & delimiter of two chars
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -34,13 +34,13 @@ $filename = "$file_path/fputcsv_variation13.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -54,7 +54,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field, '++') );
// check the file pointer position and eof
@@ -62,7 +62,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation14.phpt b/ext/standard/tests/file/fputcsv_variation14.phpt
index 36a4975c12..9486b2f77f 100644
--- a/ext/standard/tests/file/fputcsv_variation14.phpt
+++ b/ext/standard/tests/file/fputcsv_variation14.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with enclosure & delimiter of two chars(read only modes)
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -51,8 +51,8 @@ foreach ($csv_lists as $csv_list) {
exit();
}
fclose($file_handle);
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// add the content with has csv fields
$file_handle = fopen($filename, $file_modes[$mode_counter] );
if ( !$file_handle ) {
@@ -62,7 +62,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field, '++', '%%') );
// check the file pointer position and eof
@@ -70,7 +70,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation2.phpt b/ext/standard/tests/file/fputcsv_variation2.phpt
index 3ec4e91f2a..60fabcac7e 100644
--- a/ext/standard/tests/file/fputcsv_variation2.phpt
+++ b/ext/standard/tests/file/fputcsv_variation2.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with delimiter as NULL
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -33,13 +33,13 @@ $filename = "$file_path/fputcsv_variation2.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -53,7 +53,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field, NULL, $enclosure) );
// check the file pointer position and eof
@@ -61,7 +61,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation3.phpt b/ext/standard/tests/file/fputcsv_variation3.phpt
index 14a2503eca..9712e8086c 100644
--- a/ext/standard/tests/file/fputcsv_variation3.phpt
+++ b/ext/standard/tests/file/fputcsv_variation3.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with enclosure as NULL
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -33,13 +33,13 @@ $filename = "$file_path/fputcsv_variation3.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -53,7 +53,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field, $delimiter, NULL) );
// check the file pointer position and eof
@@ -61,7 +61,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation4.phpt b/ext/standard/tests/file/fputcsv_variation4.phpt
index bc374ad397..7c8b44e93c 100644
--- a/ext/standard/tests/file/fputcsv_variation4.phpt
+++ b/ext/standard/tests/file/fputcsv_variation4.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with delimiter and enclosure as NULL
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -33,13 +33,13 @@ $filename = "$file_path/fputcsv_variation4.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -53,7 +53,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field, NULL, NULL) );
// check the file pointer position and eof
@@ -61,7 +61,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation5.phpt b/ext/standard/tests/file/fputcsv_variation5.phpt
index 9d78854d71..aa2a764a54 100644
--- a/ext/standard/tests/file/fputcsv_variation5.phpt
+++ b/ext/standard/tests/file/fputcsv_variation5.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with default arguments value
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -33,13 +33,13 @@ $filename = "$file_path/fputcsv_variation5.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -53,7 +53,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field) );
// check the file pointer position and eof
@@ -61,7 +61,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation6.phpt b/ext/standard/tests/file/fputcsv_variation6.phpt
index f30ce24f40..326aa08e9d 100644
--- a/ext/standard/tests/file/fputcsv_variation6.phpt
+++ b/ext/standard/tests/file/fputcsv_variation6.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with different delimiter and enclosure
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -36,13 +36,13 @@ $filename = "$file_path/fputcsv_variation6.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -56,7 +56,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field, '+', '%') );
// check the file pointer position and eof
@@ -64,7 +64,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation7.phpt b/ext/standard/tests/file/fputcsv_variation7.phpt
index 8329251d73..fa85f4f7e5 100644
--- a/ext/standard/tests/file/fputcsv_variation7.phpt
+++ b/ext/standard/tests/file/fputcsv_variation7.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with different delimiter and same enclosure
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -36,13 +36,13 @@ $filename = "$file_path/fputcsv_variation7.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -56,7 +56,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field, '+', $enclosure) );
// check the file pointer position and eof
@@ -64,7 +64,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation8.phpt b/ext/standard/tests/file/fputcsv_variation8.phpt
index 096f37908a..a2b975a540 100644
--- a/ext/standard/tests/file/fputcsv_variation8.phpt
+++ b/ext/standard/tests/file/fputcsv_variation8.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - with same delimiter and different enclosure
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -36,13 +36,13 @@ $filename = "$file_path/fputcsv_variation8.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -56,7 +56,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field, $delimiter, '+') );
// check the file pointer position and eof
@@ -64,7 +64,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fputcsv_variation9.phpt b/ext/standard/tests/file/fputcsv_variation9.phpt
index 386d7bd1e7..7852806a17 100644
--- a/ext/standard/tests/file/fputcsv_variation9.phpt
+++ b/ext/standard/tests/file/fputcsv_variation9.phpt
@@ -2,7 +2,7 @@
Test fputcsv() : usage variations - two chars as enclosure & delimiter
--FILE--
<?php
-/*
+/*
Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] );
Description: Format line as CSV and write to the file pointer
*/
@@ -34,13 +34,13 @@ $filename = "$file_path/fputcsv_variation9.tmp";
$file_modes = array ("r+", "r+b", "r+t",
"a+", "a+b", "a+t",
"w+", "w+b", "w+t",
- "x+", "x+b", "x+t");
+ "x+", "x+b", "x+t");
$loop_counter = 1;
foreach ($csv_lists as $csv_list) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
-
- echo "\n-- file opened in $file_modes[$mode_counter] --\n";
+
+ echo "\n-- file opened in $file_modes[$mode_counter] --\n";
// create the file and add the content with has csv fields
if ( strstr($file_modes[$mode_counter], "r") ) {
$file_handle = fopen($filename, "w");
@@ -54,7 +54,7 @@ foreach ($csv_lists as $csv_list) {
$delimiter = $csv_list[0];
$enclosure = $csv_list[1];
$csv_field = $csv_list[2];
-
+
// write to a file in csv format
var_dump( fputcsv($file_handle, $csv_field, '++', '%%'
) );
@@ -63,7 +63,7 @@ foreach ($csv_lists as $csv_list) {
var_dump( feof($file_handle) );
//close the file
fclose($file_handle);
-
+
// print the file contents
var_dump( file_get_contents($filename) );
diff --git a/ext/standard/tests/file/fread_basic.phpt b/ext/standard/tests/file/fread_basic.phpt
index 4cdeffb5ab..e4ca59b916 100644
--- a/ext/standard/tests/file/fread_basic.phpt
+++ b/ext/standard/tests/file/fread_basic.phpt
@@ -13,7 +13,7 @@ Test fread() function : basic functionality
// include the file.inc for common functions for test
include ("file.inc");
-/* Function : function check_size(string $data, int $expect_size)
+/* Function : function check_size(string $data, int $expect_size)
Description : Check the length of the data, and compare the size with $expect_size
$data : Text data.
$expect_size : Expected data length
@@ -29,7 +29,7 @@ function check_size($data, $expect_size) {
echo "*** Testing fread() basic operations ***\n";
-/*
+/*
test fread with file opened in "r" and "rb" mode only
Content with numeric and strings with it
*/
@@ -38,27 +38,27 @@ $file_content_types = array("numeric","text","text_with_new_line","alphanumeric"
foreach($file_content_types as $file_content_type) {
echo "\n-- Testing fread) with file having data of type ". $file_content_type ." --\n";
- /* create files with $file_content_type */
+ /* create files with $file_content_type */
create_files ( dirname(__FILE__), 1, $file_content_type, 0755, 1, "w", "fread_basic");
$filename = dirname(__FILE__)."/fread_basic1.tmp"; // this is name of the file created by create_files()
-
+
/* open the file using $files_modes and perform fread() on it */
- for($inner_loop_counter = 0;
- $inner_loop_counter < count($file_modes);
+ for($inner_loop_counter = 0;
+ $inner_loop_counter < count($file_modes);
$inner_loop_counter++) {
-
+
echo "-- File opened in mode ".$file_modes[$inner_loop_counter]." --\n";
$file_handle = fopen($filename, $file_modes[$inner_loop_counter]);
if (!$file_handle) {
echo "Error: failed to fopen() file: $filename!";
exit();
}
-
+
/* read file by giving the acutal length, check the length and content by calculating the
hash using md5() function
*/
/* Reading 1024 bytes from file, expecting 1024 bytes */ ;
-
+
var_dump(ftell($file_handle));
var_dump( feof($file_handle) );
echo "Reading 1024 bytes from file, expecting 1024 bytes ... ";
@@ -68,7 +68,7 @@ $file_content_types = array("numeric","text","text_with_new_line","alphanumeric"
var_dump( feof($file_handle) );
var_dump( md5($data_from_file) ); // calculate the hash and dump it
- /* read file by giving size more than its size */
+ /* read file by giving size more than its size */
var_dump(rewind($file_handle));
var_dump(ftell($file_handle));
var_dump( feof($file_handle) );
diff --git a/ext/standard/tests/file/fread_error.phpt b/ext/standard/tests/file/fread_error.phpt
index d500e6827a..44d2fc993c 100644
--- a/ext/standard/tests/file/fread_error.phpt
+++ b/ext/standard/tests/file/fread_error.phpt
@@ -11,7 +11,7 @@ Test fread() function : error conditions
*/
echo "*** Testing error conditions ***\n";
-$filename = __FILE__;
+$filename = __FILE__;
$file_handle = fopen($filename, "r");
// zero argument
@@ -24,7 +24,7 @@ var_dump( fread($file_handle, 10, $file_handle) );
// invalid length argument
echo "-- Testing fread() with invalid length arguments --\n";
-$len = 0;
+$len = 0;
var_dump( fread($file_handle, $len) );
$len = -10;
var_dump( fread($file_handle, $len) );
diff --git a/ext/standard/tests/file/fread_fwrite_basic.phpt b/ext/standard/tests/file/fread_fwrite_basic.phpt
index 0f5c4ed763..12c66ce928 100644
--- a/ext/standard/tests/file/fread_fwrite_basic.phpt
+++ b/ext/standard/tests/file/fread_fwrite_basic.phpt
@@ -5,11 +5,11 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
--FILE--
<?php
-/*
+/*
* proto int fwrite(resource fp, string str [, int length])
* Function is implemented in ext/standard/file.c
- */
-
+ */
+
/*
Prototype: string fread ( resource $handle [, int $length] );
Description: reads up to length bytes from the file pointer referenced by handle.
diff --git a/ext/standard/tests/file/fread_variation1.phpt b/ext/standard/tests/file/fread_variation1.phpt
index b782536a57..ce5abdb103 100644
--- a/ext/standard/tests/file/fread_variation1.phpt
+++ b/ext/standard/tests/file/fread_variation1.phpt
@@ -47,7 +47,7 @@ function check_read($file_handle, $read_size, $expect_size) {
return $data_from_file;
}
-
+
echo "*** Testing fread() : usage variations ***\n";
$file_modes = array("a+","a+b","a+t",
@@ -65,7 +65,7 @@ foreach($file_content_types as $file_content_type) {
/* create files with $file_content_type */
create_files ( dirname(__FILE__), 1, $file_content_type, 0755, 1, "w", "fread_variation");
}
-
+
$filename = dirname(__FILE__)."/fread_variation1.tmp"; // this is name of the file created by create_files()
echo "-- File opened in mode ".$file_mode." --\n";
$file_handle = fopen($filename, $file_mode);
diff --git a/ext/standard/tests/file/fread_variation2.phpt b/ext/standard/tests/file/fread_variation2.phpt
index 9375b7a1db..1109b4813a 100644
--- a/ext/standard/tests/file/fread_variation2.phpt
+++ b/ext/standard/tests/file/fread_variation2.phpt
@@ -27,7 +27,7 @@ function check_read($file_handle, $read_size, $expect_size) {
// print file pointer position before read
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// read the data of size $read_size
echo "Reading $read_size bytes from file, expecting $expect_size bytes ... ";
$data_from_file = fread($file_handle, $read_size);
@@ -46,7 +46,7 @@ function check_read($file_handle, $read_size, $expect_size) {
return $data_from_file;
}
-
+
echo "*** Testing fread() : usage variations ***\n";
$file_modes = array("a","ab","at",
diff --git a/ext/standard/tests/file/fread_variation3-win32-mb.phpt b/ext/standard/tests/file/fread_variation3-win32-mb.phpt
index 537b525f76..a176bcd6db 100644
--- a/ext/standard/tests/file/fread_variation3-win32-mb.phpt
+++ b/ext/standard/tests/file/fread_variation3-win32-mb.phpt
@@ -31,7 +31,7 @@ function check_read($file_handle, $read_size, $expect_size) {
// print file pointer position before read
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// read the data of size $read_size
echo "Reading $read_size bytes from file, expecting $expect_size bytes ... ";
$data_from_file = fread($file_handle, $read_size);
@@ -49,7 +49,7 @@ function check_read($file_handle, $read_size, $expect_size) {
return $data_from_file;
}
-
+
echo "*** Testing fread() : usage variations ***\n";
$file_modes = array("a+","a+b","a+t",
@@ -67,7 +67,7 @@ foreach($file_content_types as $file_content_type) {
/* create files with $file_content_type */
create_files ( dirname(__FILE__), 1, $file_content_type, 0755, 1, "w", "私はガラスを食べられますfread_variation", 3);
}
-
+
$filename = dirname(__FILE__)."/私はガラスを食べられますfread_variation3.tmp"; // this is name of the file created by create_files()
echo "-- File opened in mode ".$file_mode." --\n";
$file_handle = fopen($filename, $file_mode);
diff --git a/ext/standard/tests/file/fread_variation3-win32.phpt b/ext/standard/tests/file/fread_variation3-win32.phpt
index 295663c539..de21a44459 100644
--- a/ext/standard/tests/file/fread_variation3-win32.phpt
+++ b/ext/standard/tests/file/fread_variation3-win32.phpt
@@ -31,7 +31,7 @@ function check_read($file_handle, $read_size, $expect_size) {
// print file pointer position before read
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// read the data of size $read_size
echo "Reading $read_size bytes from file, expecting $expect_size bytes ... ";
$data_from_file = fread($file_handle, $read_size);
@@ -49,7 +49,7 @@ function check_read($file_handle, $read_size, $expect_size) {
return $data_from_file;
}
-
+
echo "*** Testing fread() : usage variations ***\n";
$file_modes = array("a+","a+b","a+t",
@@ -67,7 +67,7 @@ foreach($file_content_types as $file_content_type) {
/* create files with $file_content_type */
create_files ( dirname(__FILE__), 1, $file_content_type, 0755, 1, "w", "fread_variation", 3);
}
-
+
$filename = dirname(__FILE__)."/fread_variation3.tmp"; // this is name of the file created by create_files()
echo "-- File opened in mode ".$file_mode." --\n";
$file_handle = fopen($filename, $file_mode);
diff --git a/ext/standard/tests/file/fread_variation3.phpt b/ext/standard/tests/file/fread_variation3.phpt
index 5d66b54bec..9761af8dce 100644
--- a/ext/standard/tests/file/fread_variation3.phpt
+++ b/ext/standard/tests/file/fread_variation3.phpt
@@ -31,7 +31,7 @@ function check_read($file_handle, $read_size, $expect_size) {
// print file pointer position before read
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// read the data of size $read_size
echo "Reading $read_size bytes from file, expecting $expect_size bytes ... ";
$data_from_file = fread($file_handle, $read_size);
@@ -49,7 +49,7 @@ function check_read($file_handle, $read_size, $expect_size) {
return $data_from_file;
}
-
+
echo "*** Testing fread() : usage variations ***\n";
$file_modes = array("a+","a+b","a+t",
@@ -67,7 +67,7 @@ foreach($file_content_types as $file_content_type) {
/* create files with $file_content_type */
create_files ( dirname(__FILE__), 1, $file_content_type, 0755, 1, "w", "fread_variation", 3);
}
-
+
$filename = dirname(__FILE__)."/fread_variation3.tmp"; // this is name of the file created by create_files()
echo "-- File opened in mode ".$file_mode." --\n";
$file_handle = fopen($filename, $file_mode);
diff --git a/ext/standard/tests/file/fread_variation4-win32.phpt b/ext/standard/tests/file/fread_variation4-win32.phpt
index 6601f5aebc..69ea1574ad 100644
--- a/ext/standard/tests/file/fread_variation4-win32.phpt
+++ b/ext/standard/tests/file/fread_variation4-win32.phpt
@@ -31,7 +31,7 @@ function check_read($file_handle, $read_size, $expect_size) {
// print file pointer position before read
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// read the data of size $read_size
echo "Reading $read_size bytes from file, expecting $expect_size bytes ... ";
$data_from_file = fread($file_handle, $read_size);
@@ -49,7 +49,7 @@ function check_read($file_handle, $read_size, $expect_size) {
return $data_from_file;
}
-
+
echo "*** Testing fread() : usage variations ***\n";
$file_modes = array("a","ab","at",
@@ -67,7 +67,7 @@ foreach($file_content_types as $file_content_type) {
/* create files with $file_content_type */
create_files ( dirname(__FILE__), 1, $file_content_type, 0755, 1, "w", "fread_variation", 4);
}
-
+
$filename = dirname(__FILE__)."/fread_variation4.tmp"; // this is name of the file created by create_files()
echo "-- File opened in mode ".$file_mode." --\n";
$file_handle = fopen($filename, $file_mode);
diff --git a/ext/standard/tests/file/fread_variation4.phpt b/ext/standard/tests/file/fread_variation4.phpt
index fb290b104c..dc893dd509 100644
--- a/ext/standard/tests/file/fread_variation4.phpt
+++ b/ext/standard/tests/file/fread_variation4.phpt
@@ -31,7 +31,7 @@ function check_read($file_handle, $read_size, $expect_size) {
// print file pointer position before read
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) );
-
+
// read the data of size $read_size
echo "Reading $read_size bytes from file, expecting $expect_size bytes ... ";
$data_from_file = fread($file_handle, $read_size);
@@ -49,7 +49,7 @@ function check_read($file_handle, $read_size, $expect_size) {
return $data_from_file;
}
-
+
echo "*** Testing fread() : usage variations ***\n";
$file_modes = array("a","ab","at",
@@ -67,7 +67,7 @@ foreach($file_content_types as $file_content_type) {
/* create files with $file_content_type */
create_files ( dirname(__FILE__), 1, $file_content_type, 0755, 1, "w", "fread_variation", 4);
}
-
+
$filename = dirname(__FILE__)."/fread_variation4.tmp"; // this is name of the file created by create_files()
echo "-- File opened in mode ".$file_mode." --\n";
$file_handle = fopen($filename, $file_mode);
diff --git a/ext/standard/tests/file/fscanf.phpt b/ext/standard/tests/file/fscanf.phpt
index 700439fcb5..6d3d0a5b96 100644
--- a/ext/standard/tests/file/fscanf.phpt
+++ b/ext/standard/tests/file/fscanf.phpt
@@ -63,7 +63,7 @@ echo "Done\n";
$filename = dirname(__FILE__)."/fscanf.dat";
unlink($filename);
?>
---EXPECTF--
+--EXPECTF--
Warning: fscanf() expects at least 2 parameters, 0 given in %s on line %d
NULL
diff --git a/ext/standard/tests/file/fscanf_error.phpt b/ext/standard/tests/file/fscanf_error.phpt
index 1a80d19348..fe351960dd 100644
--- a/ext/standard/tests/file/fscanf_error.phpt
+++ b/ext/standard/tests/file/fscanf_error.phpt
@@ -13,7 +13,7 @@ $file_path = dirname(__FILE__);
$filename = "$file_path/fscanf_error.tmp";
$file_handle = fopen($filename, 'w');
-if ($file_handle == false)
+if ($file_handle == false)
exit("Error:failed to open file $filename");
fwrite($file_handle, "hello world");
fclose($file_handle);
@@ -23,7 +23,7 @@ var_dump( fscanf() );
// single argument
$file_handle = fopen($filename, 'r');
-if ($file_handle == false)
+if ($file_handle == false)
exit("Error:failed to open file $filename");
var_dump( fscanf($file_handle) );
fclose($file_handle);
@@ -33,7 +33,7 @@ var_dump( fscanf($file_handle, "%s") );
// number of formats in format strings not matching the no of variables
$file_handle = fopen($filename, 'r');
-if ($file_handle == false)
+if ($file_handle == false)
exit("Error:failed to open file $filename");
var_dump( fscanf($file_handle, "%d%s%f", $int_var, $string_var) );
fclose($file_handle);
@@ -47,10 +47,10 @@ $invalid_formats = array( $undefined_var, undefined_constant,
// looping to use various invalid formats with fscanf()
foreach($invalid_formats as $format) {
$file_handle = fopen($filename, 'r');
- if ($file_handle == false)
+ if ($file_handle == false)
exit("Error:failed to open file $filename");
var_dump( fscanf($file_handle, $format) );
- fclose($file_handle);
+ fclose($file_handle);
}
echo "\n*** Done ***";
diff --git a/ext/standard/tests/file/fscanf_variation1.phpt b/ext/standard/tests/file/fscanf_variation1.phpt
index 64d778916f..eaf720c506 100644
--- a/ext/standard/tests/file/fscanf_variation1.phpt
+++ b/ext/standard/tests/file/fscanf_variation1.phpt
@@ -36,7 +36,7 @@ echo "\n*** Done ***";
<?php
$file_path = dirname(__FILE__);
$filename = "$file_path/fscanf_variation1.tmp";
-unlink($filename);
+unlink($filename);
?>
--EXPECT--
*** Testing fscanf(): for its return type without third argument ***
diff --git a/ext/standard/tests/file/fscanf_variation10.phpt b/ext/standard/tests/file/fscanf_variation10.phpt
index a46c112879..e31e39688e 100644
--- a/ext/standard/tests/file/fscanf_variation10.phpt
+++ b/ext/standard/tests/file/fscanf_variation10.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - float formats with resource
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different float format types with resource ***\n";
+echo "*** Test fscanf(): different float format types with resource ***\n";
// create a file
$filename = "$file_path/fscanf_variation10.tmp";
@@ -24,14 +24,14 @@ if($file_handle == false)
// resource type variable
$fp = fopen (__FILE__, "r");
$dfp = opendir ( dirname(__FILE__) );
-
+
// array of resource types
$resource_types = array (
$fp,
$dfp
);
-$float_formats = array( "%f",
+$float_formats = array( "%f",
"%hf", "%lf", "%Lf",
" %f", "%f ", "% f",
"\t%f", "\n%f", "%4f",
diff --git a/ext/standard/tests/file/fscanf_variation11.phpt b/ext/standard/tests/file/fscanf_variation11.phpt
index 27de2ae5df..2d6debd5c0 100644
--- a/ext/standard/tests/file/fscanf_variation11.phpt
+++ b/ext/standard/tests/file/fscanf_variation11.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - float formats with arrays
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different float format types with arrays ***\n";
+echo "*** Test fscanf(): different float format types with arrays ***\n";
// create a file
$filename = "$file_path/fscanf_variation11.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation12.phpt b/ext/standard/tests/file/fscanf_variation12.phpt
index 33bfb67db0..8968fc3397 100644
--- a/ext/standard/tests/file/fscanf_variation12.phpt
+++ b/ext/standard/tests/file/fscanf_variation12.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - float formats with strings
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different float format types with strings ***\n";
+echo "*** Test fscanf(): different float format types with strings ***\n";
// create a file
$filename = "$file_path/fscanf_variation12.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation13.phpt b/ext/standard/tests/file/fscanf_variation13.phpt
index 49525b484c..d979517a99 100644
--- a/ext/standard/tests/file/fscanf_variation13.phpt
+++ b/ext/standard/tests/file/fscanf_variation13.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - float formats with boolean
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different float format types with boolean data ***\n";
+echo "*** Test fscanf(): different float format types with boolean data ***\n";
// create a file
$filename = "$file_path/fscanf_variation13.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation14.phpt b/ext/standard/tests/file/fscanf_variation14.phpt
index 2b497c9f5b..0c521a2186 100644
--- a/ext/standard/tests/file/fscanf_variation14.phpt
+++ b/ext/standard/tests/file/fscanf_variation14.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - string formats with strings
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different string format types with different string ***\n";
+echo "*** Test fscanf(): different string format types with different string ***\n";
// create a file
$filename = "$file_path/fscanf_variation14.tmp";
@@ -65,7 +65,7 @@ $valid_strings = array(
);
// various string formats
-$string_formats = array( "%s",
+$string_formats = array( "%s",
"%hs", "%ls", "%Ls",
" %s", "%s ", "% s",
"\t%s", "\n%s", "%4s",
diff --git a/ext/standard/tests/file/fscanf_variation15.phpt b/ext/standard/tests/file/fscanf_variation15.phpt
index 76422dbc8c..a6dc720b91 100644
--- a/ext/standard/tests/file/fscanf_variation15.phpt
+++ b/ext/standard/tests/file/fscanf_variation15.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - string formats with float values
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different string format types with float values ***\n";
+echo "*** Test fscanf(): different string format types with float values ***\n";
// create a file
$filename = "$file_path/fscanf_variation15.tmp";
@@ -23,8 +23,8 @@ if($file_handle == false)
// array of float type values
$float_values = array (
- -2147483649,
- 2147483648,
+ -2147483649,
+ 2147483648,
-0x80000001, // float value, beyond max negative int
0x800000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
diff --git a/ext/standard/tests/file/fscanf_variation16.phpt b/ext/standard/tests/file/fscanf_variation16.phpt
index 8025767bc1..8c49c0cace 100644
--- a/ext/standard/tests/file/fscanf_variation16.phpt
+++ b/ext/standard/tests/file/fscanf_variation16.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - string formats with resource
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different string format types with resource ***\n";
+echo "*** Test fscanf(): different string format types with resource ***\n";
// create a file
$filename = "$file_path/fscanf_variation16.tmp";
@@ -24,7 +24,7 @@ if($file_handle == false)
// resource type variable
$fp = fopen (__FILE__, "r");
$dfp = opendir ( dirname(__FILE__) );
-
+
// array of resource types
$resource_types = array (
$fp,
diff --git a/ext/standard/tests/file/fscanf_variation17.phpt b/ext/standard/tests/file/fscanf_variation17.phpt
index 2db8871c2b..d7e84f8d8c 100644
--- a/ext/standard/tests/file/fscanf_variation17.phpt
+++ b/ext/standard/tests/file/fscanf_variation17.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - string formats with arrays
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different string format types with arrays ***\n";
+echo "*** Test fscanf(): different string format types with arrays ***\n";
// create a file
$filename = "$file_path/fscanf_variation17.tmp";
@@ -37,7 +37,7 @@ $array_types = array (
);
$string_formats = array( "%s",
- "%hs", "%ls", "%Ls",
+ "%hs", "%ls", "%Ls",
" %s", "%s ", "% s",
"\t%s", "\n%s", "%4s",
"%30s", "%[a-zA-Z0-9]", "%*s");
diff --git a/ext/standard/tests/file/fscanf_variation18.phpt b/ext/standard/tests/file/fscanf_variation18.phpt
index e80606a3fc..5babc5479f 100644
--- a/ext/standard/tests/file/fscanf_variation18.phpt
+++ b/ext/standard/tests/file/fscanf_variation18.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - string formats with integer values
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different string format types with integer values ***\n";
+echo "*** Test fscanf(): different string format types with integer values ***\n";
// create a file
$filename = "$file_path/fscanf_variation18.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation19.phpt b/ext/standard/tests/file/fscanf_variation19.phpt
index 08edc522b4..680c4afb6f 100644
--- a/ext/standard/tests/file/fscanf_variation19.phpt
+++ b/ext/standard/tests/file/fscanf_variation19.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - string formats with boolean
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different string format types with boolean data ***\n";
+echo "*** Test fscanf(): different string format types with boolean data ***\n";
// create a file
$filename = "$file_path/fscanf_variation19.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation2.phpt b/ext/standard/tests/file/fscanf_variation2.phpt
index 6f8b4d9247..b91028af07 100644
--- a/ext/standard/tests/file/fscanf_variation2.phpt
+++ b/ext/standard/tests/file/fscanf_variation2.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - integer formats with integer values
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different integer format types with different integer values ***\n";
+echo "*** Test fscanf(): different integer format types with different integer values ***\n";
// create a file
$filename = "$file_path/fscanf_variation2.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation20.phpt b/ext/standard/tests/file/fscanf_variation20.phpt
index d59bef2ebd..81251c7b81 100644
--- a/ext/standard/tests/file/fscanf_variation20.phpt
+++ b/ext/standard/tests/file/fscanf_variation20.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - char formats with integer values
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different char format types with different integer values ***\n";
+echo "*** Test fscanf(): different char format types with different integer values ***\n";
// create a file
$filename = "$file_path/fscanf_variation20.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation21.phpt b/ext/standard/tests/file/fscanf_variation21.phpt
index 51381ce479..42e05aaf04 100644
--- a/ext/standard/tests/file/fscanf_variation21.phpt
+++ b/ext/standard/tests/file/fscanf_variation21.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - char formats with float values
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different char format types with float values ***\n";
+echo "*** Test fscanf(): different char format types with float values ***\n";
// create a file
$filename = "$file_path/fscanf_variation21.tmp";
@@ -23,8 +23,8 @@ if($file_handle == false)
// array of float type values
$float_values = array (
- -2147483649,
- 2147483648,
+ -2147483649,
+ 2147483648,
-0x80000001, // float value, beyond max negative int
0x800000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
diff --git a/ext/standard/tests/file/fscanf_variation22.phpt b/ext/standard/tests/file/fscanf_variation22.phpt
index a3809500a6..bf6d97515f 100644
--- a/ext/standard/tests/file/fscanf_variation22.phpt
+++ b/ext/standard/tests/file/fscanf_variation22.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - char formats with resource
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different char format types with resource ***\n";
+echo "*** Test fscanf(): different char format types with resource ***\n";
// create a file
$filename = "$file_path/fscanf_variation22.tmp";
@@ -24,14 +24,14 @@ if($file_handle == false)
// resource type variable
$fp = fopen (__FILE__, "r");
$dfp = opendir ( dirname(__FILE__) );
-
+
// array of resource types
$resource_types = array (
$fp,
$dfp
);
-$char_formats = array( "%c",
+$char_formats = array( "%c",
"%hc", "%lc", "%Lc",
" %c", "%c ", "% c",
"\t%c", "\n%c", "%4c",
diff --git a/ext/standard/tests/file/fscanf_variation23.phpt b/ext/standard/tests/file/fscanf_variation23.phpt
index d536c28fde..fc36f5da36 100644
--- a/ext/standard/tests/file/fscanf_variation23.phpt
+++ b/ext/standard/tests/file/fscanf_variation23.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - char formats with arrays
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different char format types with arrays ***\n";
+echo "*** Test fscanf(): different char format types with arrays ***\n";
// create a file
$filename = "$file_path/fscanf_variation23.tmp";
@@ -39,7 +39,7 @@ $array_types = array (
$char_formats = array( "%c",
"%hc", "%lc", "%Lc",
" %c", "%c ", "% c",
- "\t%c", "\n%c", "%4c",
+ "\t%c", "\n%c", "%4c",
"%30c", "%[a-zA-Z@#$&0-9]", "%*c");
$counter = 1;
diff --git a/ext/standard/tests/file/fscanf_variation24.phpt b/ext/standard/tests/file/fscanf_variation24.phpt
index ddca007ccf..8be8354023 100644
--- a/ext/standard/tests/file/fscanf_variation24.phpt
+++ b/ext/standard/tests/file/fscanf_variation24.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - char formats with strings
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different char format types with strings ***\n";
+echo "*** Test fscanf(): different char format types with strings ***\n";
// create a file
$filename = "$file_path/fscanf_variation24.tmp";
@@ -43,9 +43,9 @@ $strings = array (
);
$char_formats = array( "%c",
- "%hc", "%lc", "%Lc",
+ "%hc", "%lc", "%Lc",
" %c", "%c ", "% c",
- "\t%c", "\n%c", "%4c",
+ "\t%c", "\n%c", "%4c",
"%30c", "%[a-zA-Z@#$&0-9]", "%*c");
$counter = 1;
diff --git a/ext/standard/tests/file/fscanf_variation25.phpt b/ext/standard/tests/file/fscanf_variation25.phpt
index d874aba45e..c5f7e9413b 100644
--- a/ext/standard/tests/file/fscanf_variation25.phpt
+++ b/ext/standard/tests/file/fscanf_variation25.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - char formats with boolean
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different char format types with boolean data ***\n";
+echo "*** Test fscanf(): different char format types with boolean data ***\n";
// create a file
$filename = "$file_path/fscanf_variation25.tmp";
@@ -31,7 +31,7 @@ $bool_types = array (
$char_formats = array( "%c",
"%hc", "%lc", "%Lc",
" %c", "%c ", "% c",
- "\t%c", "\n%c", "%4c",
+ "\t%c", "\n%c", "%4c",
"%30c", "%[a-zA-Z@#$&0-9]", "%*c");
$counter = 1;
diff --git a/ext/standard/tests/file/fscanf_variation26.phpt b/ext/standard/tests/file/fscanf_variation26.phpt
index 1a883f479b..aaa631de81 100644
--- a/ext/standard/tests/file/fscanf_variation26.phpt
+++ b/ext/standard/tests/file/fscanf_variation26.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - char formats with chars
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different char format types with chars ***\n";
+echo "*** Test fscanf(): different char format types with chars ***\n";
// create a file
$filename = "$file_path/fscanf_variation26.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation27.phpt b/ext/standard/tests/file/fscanf_variation27.phpt
index bbd201c543..24f34a5d81 100644
--- a/ext/standard/tests/file/fscanf_variation27.phpt
+++ b/ext/standard/tests/file/fscanf_variation27.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - octal formats with integer values
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different octal format types with different integer values ***\n";
+echo "*** Test fscanf(): different octal format types with different integer values ***\n";
// create a file
$filename = "$file_path/fscanf_variation27.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation28.phpt b/ext/standard/tests/file/fscanf_variation28.phpt
index 97f72089fe..c96377b027 100644
--- a/ext/standard/tests/file/fscanf_variation28.phpt
+++ b/ext/standard/tests/file/fscanf_variation28.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - octal formats with float values
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different octal format types with float values ***\n";
+echo "*** Test fscanf(): different octal format types with float values ***\n";
// create a file
$filename = "$file_path/fscanf_variation28.tmp";
@@ -23,8 +23,8 @@ if($file_handle == false)
// array of float type values
$float_values = array (
- -2147483649,
- 2147483648,
+ -2147483649,
+ 2147483648,
-0x80000001, // float value, beyond max negative int
0x800000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
@@ -41,7 +41,7 @@ $float_values = array (
);
$octal_formats = array( "%o",
- "%ho", "%lo", "%Lo",
+ "%ho", "%lo", "%Lo",
" %o", "%o ", "% o",
"\t%o", "\n%o", "%4o",
"%30o", "%[0-7]", "%*o"
diff --git a/ext/standard/tests/file/fscanf_variation29.phpt b/ext/standard/tests/file/fscanf_variation29.phpt
index ce7083bc08..07e569be1b 100644
--- a/ext/standard/tests/file/fscanf_variation29.phpt
+++ b/ext/standard/tests/file/fscanf_variation29.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - octal formats with resource
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different octal format types with resource ***\n";
+echo "*** Test fscanf(): different octal format types with resource ***\n";
// create a file
$filename = "$file_path/fscanf_variation29.tmp";
@@ -24,7 +24,7 @@ if($file_handle == false)
// resource type variable
$fp = fopen (__FILE__, "r");
$dfp = opendir ( dirname(__FILE__) );
-
+
// array of resource types
$resource_types = array (
$fp,
@@ -33,7 +33,7 @@ $resource_types = array (
$octal_formats = array( "%o",
"%ho", "%lo", "%Lo",
- " %o", "%o ", "% o",
+ " %o", "%o ", "% o",
"\t%o", "\n%o", "%4o",
"%30o", "%[0-7]", "%*o"
);
diff --git a/ext/standard/tests/file/fscanf_variation3.phpt b/ext/standard/tests/file/fscanf_variation3.phpt
index 8faff9d091..8ea8c8674a 100644
--- a/ext/standard/tests/file/fscanf_variation3.phpt
+++ b/ext/standard/tests/file/fscanf_variation3.phpt
@@ -18,7 +18,7 @@ if (PHP_INT_SIZE != 4) {
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different integer format types with float values ***\n";
+echo "*** Test fscanf(): different integer format types with float values ***\n";
// create a file
$filename = "$file_path/fscanf_variation3.tmp";
@@ -29,8 +29,8 @@ if($file_handle == false)
// array of float type values
$float_values = array (
- -2147483649,
- 2147483648,
+ -2147483649,
+ 2147483648,
-0x80000001, // float value, beyond max negative int
0x800000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
diff --git a/ext/standard/tests/file/fscanf_variation30.phpt b/ext/standard/tests/file/fscanf_variation30.phpt
index b4cb350ed6..5457c9b2c6 100644
--- a/ext/standard/tests/file/fscanf_variation30.phpt
+++ b/ext/standard/tests/file/fscanf_variation30.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - octal formats with arrays
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different octal format types with arrays ***\n";
+echo "*** Test fscanf(): different octal format types with arrays ***\n";
// create a file
$filename = "$file_path/fscanf_variation30.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation31.phpt b/ext/standard/tests/file/fscanf_variation31.phpt
index f6bc7465f5..6ba47b6a51 100644
--- a/ext/standard/tests/file/fscanf_variation31.phpt
+++ b/ext/standard/tests/file/fscanf_variation31.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - octal formats with strings
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different octal format types with strings ***\n";
+echo "*** Test fscanf(): different octal format types with strings ***\n";
// create a file
$filename = "$file_path/fscanf_variation31.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation32.phpt b/ext/standard/tests/file/fscanf_variation32.phpt
index 52e45405d0..f7d3cd5236 100644
--- a/ext/standard/tests/file/fscanf_variation32.phpt
+++ b/ext/standard/tests/file/fscanf_variation32.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - octal formats with boolean
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different octal format types with boolean data ***\n";
+echo "*** Test fscanf(): different octal format types with boolean data ***\n";
// create a file
$filename = "$file_path/fscanf_variation32.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation33.phpt b/ext/standard/tests/file/fscanf_variation33.phpt
index 7263ffdf4a..6dfe071418 100644
--- a/ext/standard/tests/file/fscanf_variation33.phpt
+++ b/ext/standard/tests/file/fscanf_variation33.phpt
@@ -18,7 +18,7 @@ if (PHP_INT_SIZE != 4) {
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different hexa format types with different integer values ***\n";
+echo "*** Test fscanf(): different hexa format types with different integer values ***\n";
// create a file
$filename = "$file_path/fscanf_variation33.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation34.phpt b/ext/standard/tests/file/fscanf_variation34.phpt
index 2acdc8ba1b..77437efc99 100644
--- a/ext/standard/tests/file/fscanf_variation34.phpt
+++ b/ext/standard/tests/file/fscanf_variation34.phpt
@@ -18,7 +18,7 @@ if (PHP_INT_SIZE != 4) {
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different hexa format types with float values ***\n";
+echo "*** Test fscanf(): different hexa format types with float values ***\n";
// create a file
$filename = "$file_path/fscanf_variation34.tmp";
@@ -29,8 +29,8 @@ if($file_handle == false)
// array of float type values
$float_values = array (
- -2147483649,
- 2147483648,
+ -2147483649,
+ 2147483648,
-0x80000001, // float value, beyond max negative int
0x800000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
diff --git a/ext/standard/tests/file/fscanf_variation35.phpt b/ext/standard/tests/file/fscanf_variation35.phpt
index 1f98bd8f42..88e86b9690 100644
--- a/ext/standard/tests/file/fscanf_variation35.phpt
+++ b/ext/standard/tests/file/fscanf_variation35.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - hexa formats with resource
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different hexa format types with resource ***\n";
+echo "*** Test fscanf(): different hexa format types with resource ***\n";
// create a file
$filename = "$file_path/fscanf_variation35.tmp";
@@ -24,7 +24,7 @@ if($file_handle == false)
// resource type variable
$fp = fopen (__FILE__, "r");
$dfp = opendir ( dirname(__FILE__) );
-
+
// array of resource types
$resource_types = array (
$fp,
diff --git a/ext/standard/tests/file/fscanf_variation36.phpt b/ext/standard/tests/file/fscanf_variation36.phpt
index 44ff29536e..864209f499 100644
--- a/ext/standard/tests/file/fscanf_variation36.phpt
+++ b/ext/standard/tests/file/fscanf_variation36.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - hexa formats with arrays
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different hexa format types with arrays ***\n";
+echo "*** Test fscanf(): different hexa format types with arrays ***\n";
// create a file
$filename = "$file_path/fscanf_variation36.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation37.phpt b/ext/standard/tests/file/fscanf_variation37.phpt
index 7ab302dd39..43668fff4f 100644
--- a/ext/standard/tests/file/fscanf_variation37.phpt
+++ b/ext/standard/tests/file/fscanf_variation37.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - hexa formats with strings
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different hexa format types with strings ***\n";
+echo "*** Test fscanf(): different hexa format types with strings ***\n";
// create a file
$filename = "$file_path/fscanf_variation37.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation38.phpt b/ext/standard/tests/file/fscanf_variation38.phpt
index 32a7f77b42..4860ee1b5e 100644
--- a/ext/standard/tests/file/fscanf_variation38.phpt
+++ b/ext/standard/tests/file/fscanf_variation38.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - hexa formats with boolean
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different hexa format types with boolean data ***\n";
+echo "*** Test fscanf(): different hexa format types with boolean data ***\n";
// create a file
$filename = "$file_path/fscanf_variation38.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation39.phpt b/ext/standard/tests/file/fscanf_variation39.phpt
index 1ed250c36c..222d6a2b8c 100644
--- a/ext/standard/tests/file/fscanf_variation39.phpt
+++ b/ext/standard/tests/file/fscanf_variation39.phpt
@@ -18,7 +18,7 @@ if (PHP_INT_SIZE != 4) {
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different unsigned int format types with different integer values ***\n";
+echo "*** Test fscanf(): different unsigned int format types with different integer values ***\n";
// create a file
$filename = "$file_path/fscanf_variation39.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation4.phpt b/ext/standard/tests/file/fscanf_variation4.phpt
index 0d9cd9dd43..4b5ae3073b 100644
--- a/ext/standard/tests/file/fscanf_variation4.phpt
+++ b/ext/standard/tests/file/fscanf_variation4.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - integer formats with resource
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different integer format types with resource ***\n";
+echo "*** Test fscanf(): different integer format types with resource ***\n";
// create a file
$filename = "$file_path/fscanf_variation4.tmp";
@@ -25,7 +25,7 @@ if($file_handle == false)
// resource type variable
$fp = fopen (__FILE__, "r");
$dfp = opendir ( dirname(__FILE__) );
-
+
// array of resource types
$resource_types = array (
$fp,
diff --git a/ext/standard/tests/file/fscanf_variation40.phpt b/ext/standard/tests/file/fscanf_variation40.phpt
index f3a0c96a71..1324007561 100644
--- a/ext/standard/tests/file/fscanf_variation40.phpt
+++ b/ext/standard/tests/file/fscanf_variation40.phpt
@@ -18,7 +18,7 @@ if (PHP_INT_SIZE != 4) {
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different unsigned format types with float values ***\n";
+echo "*** Test fscanf(): different unsigned format types with float values ***\n";
// create a file
$filename = "$file_path/fscanf_variation40.tmp";
@@ -29,8 +29,8 @@ if($file_handle == false)
// array of float type values
$float_values = array (
- -2147483649,
- 2147483648,
+ -2147483649,
+ 2147483648,
-0x80000001, // float value, beyond max negative int
0x800000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
diff --git a/ext/standard/tests/file/fscanf_variation41.phpt b/ext/standard/tests/file/fscanf_variation41.phpt
index 080ce98054..1d1afa4a56 100644
--- a/ext/standard/tests/file/fscanf_variation41.phpt
+++ b/ext/standard/tests/file/fscanf_variation41.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - unsigned formats with resource
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different unsigned format types with resource ***\n";
+echo "*** Test fscanf(): different unsigned format types with resource ***\n";
// create a file
$filename = "$file_path/fscanf_variation41.tmp";
@@ -24,7 +24,7 @@ if($file_handle == false)
// resource type variable
$fp = fopen (__FILE__, "r");
$dfp = opendir ( dirname(__FILE__) );
-
+
// array of resource types
$resource_types = array (
$fp,
diff --git a/ext/standard/tests/file/fscanf_variation42.phpt b/ext/standard/tests/file/fscanf_variation42.phpt
index 978187c733..0bfa59b8b5 100644
--- a/ext/standard/tests/file/fscanf_variation42.phpt
+++ b/ext/standard/tests/file/fscanf_variation42.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - unsigned formats with arrays
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different unsigned format types with arrays ***\n";
+echo "*** Test fscanf(): different unsigned format types with arrays ***\n";
// create a file
$filename = "$file_path/fscanf_variation42.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation43.phpt b/ext/standard/tests/file/fscanf_variation43.phpt
index 8a0052f122..e77ea08cfc 100644
--- a/ext/standard/tests/file/fscanf_variation43.phpt
+++ b/ext/standard/tests/file/fscanf_variation43.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - unsigned formats with strings
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different unsigned format types with strings ***\n";
+echo "*** Test fscanf(): different unsigned format types with strings ***\n";
// create a file
$filename = "$file_path/fscanf_variation43.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation44.phpt b/ext/standard/tests/file/fscanf_variation44.phpt
index 0b30b61f20..0b720472aa 100644
--- a/ext/standard/tests/file/fscanf_variation44.phpt
+++ b/ext/standard/tests/file/fscanf_variation44.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - unsigned formats with boolean
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different unsigned format types with boolean data ***\n";
+echo "*** Test fscanf(): different unsigned format types with boolean data ***\n";
// create a file
$filename = "$file_path/fscanf_variation44.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation45.phpt b/ext/standard/tests/file/fscanf_variation45.phpt
index 2af39cb1c8..703863976b 100644
--- a/ext/standard/tests/file/fscanf_variation45.phpt
+++ b/ext/standard/tests/file/fscanf_variation45.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - scientific formats with integer value
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different scientific format types with different integer values ***\n";
+echo "*** Test fscanf(): different scientific format types with different integer values ***\n";
// create a file
$filename = "$file_path/fscanf_variation45.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation46.phpt b/ext/standard/tests/file/fscanf_variation46.phpt
index 7145c8637a..c3cd8e0b7b 100644
--- a/ext/standard/tests/file/fscanf_variation46.phpt
+++ b/ext/standard/tests/file/fscanf_variation46.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - scientific formats with float values
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different scientific format types with float values ***\n";
+echo "*** Test fscanf(): different scientific format types with float values ***\n";
// create a file
$filename = "$file_path/fscanf_variation46.tmp";
@@ -23,8 +23,8 @@ if($file_handle == false)
// array of float type values
$float_values = array (
- -2147483649,
- 2147483648,
+ -2147483649,
+ 2147483648,
-0x80000001, // float value, beyond max negative int
0x800000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
diff --git a/ext/standard/tests/file/fscanf_variation47.phpt b/ext/standard/tests/file/fscanf_variation47.phpt
index 7010571a42..fb165ac068 100644
--- a/ext/standard/tests/file/fscanf_variation47.phpt
+++ b/ext/standard/tests/file/fscanf_variation47.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - scientific formats with resource
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different scientific format types with resource ***\n";
+echo "*** Test fscanf(): different scientific format types with resource ***\n";
// create a file
$filename = "$file_path/fscanf_variation47.tmp";
@@ -24,7 +24,7 @@ if($file_handle == false)
// resource type variable
$fp = fopen (__FILE__, "r");
$dfp = opendir ( dirname(__FILE__) );
-
+
// array of resource types
$resource_types = array (
$fp,
diff --git a/ext/standard/tests/file/fscanf_variation48.phpt b/ext/standard/tests/file/fscanf_variation48.phpt
index 5b61e5b71e..c668dfd516 100644
--- a/ext/standard/tests/file/fscanf_variation48.phpt
+++ b/ext/standard/tests/file/fscanf_variation48.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - scientific formats with arrays
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different scientific format types with arrays ***\n";
+echo "*** Test fscanf(): different scientific format types with arrays ***\n";
// create a file
$filename = "$file_path/fscanf_variation48.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation49.phpt b/ext/standard/tests/file/fscanf_variation49.phpt
index 4e314fb7ce..a681cc01e3 100644
--- a/ext/standard/tests/file/fscanf_variation49.phpt
+++ b/ext/standard/tests/file/fscanf_variation49.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - scientific formats with strings
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different scientific format types with strings ***\n";
+echo "*** Test fscanf(): different scientific format types with strings ***\n";
// create a file
$filename = "$file_path/fscanf_variation49.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation5.phpt b/ext/standard/tests/file/fscanf_variation5.phpt
index 750e604586..5528c15a68 100644
--- a/ext/standard/tests/file/fscanf_variation5.phpt
+++ b/ext/standard/tests/file/fscanf_variation5.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - integer formats with arrays
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different integer format types with arrays ***\n";
+echo "*** Test fscanf(): different integer format types with arrays ***\n";
// create a file
$filename = "$file_path/fscanf_variation5.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation50.phpt b/ext/standard/tests/file/fscanf_variation50.phpt
index e46dbdb347..f904f61fdb 100644
--- a/ext/standard/tests/file/fscanf_variation50.phpt
+++ b/ext/standard/tests/file/fscanf_variation50.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - scientific formats with boolean
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different scientific format types with boolean data ***\n";
+echo "*** Test fscanf(): different scientific format types with boolean data ***\n";
// create a file
$filename = "$file_path/fscanf_variation50.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation51.phpt b/ext/standard/tests/file/fscanf_variation51.phpt
index 0f5ab5a612..68747729aa 100644
--- a/ext/standard/tests/file/fscanf_variation51.phpt
+++ b/ext/standard/tests/file/fscanf_variation51.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - file opened in write only mode
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): to read from a file opened in write only mode ***\n";
+echo "*** Test fscanf(): to read from a file opened in write only mode ***\n";
// create a file
$filename = "$file_path/fscanf_variation51.tmp";
@@ -39,7 +39,7 @@ $modes = array("w", "wb", "wt",
$counter = 1;
// reading the values from file using different integer formats
foreach($modes as $mode) {
-
+
$file_handle = fopen($filename, $mode);
if($file_handle == false) {
exit("Error:failed to open file $filename");
diff --git a/ext/standard/tests/file/fscanf_variation52.phpt b/ext/standard/tests/file/fscanf_variation52.phpt
index bf82ab8e43..3fcb8f5d18 100644
--- a/ext/standard/tests/file/fscanf_variation52.phpt
+++ b/ext/standard/tests/file/fscanf_variation52.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - empty file
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): to read an empty file ***\n";
+echo "*** Test fscanf(): to read an empty file ***\n";
// various formats
$formats = array( "%d", "%f", "%e", "%u", " %s", "%x", "%o");
@@ -28,7 +28,7 @@ $modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
$counter = 1;
// reading the values from file using different integer formats
foreach($modes as $mode) {
-
+
// create an empty file
$filename = "$file_path/fscanf_variation52.tmp";
$file_handle = fopen($filename, "w");
diff --git a/ext/standard/tests/file/fscanf_variation53.phpt b/ext/standard/tests/file/fscanf_variation53.phpt
index a553a96693..aa50a8140a 100644
--- a/ext/standard/tests/file/fscanf_variation53.phpt
+++ b/ext/standard/tests/file/fscanf_variation53.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - file pointer pointing to EOF
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): to read a file when file pointer is pointing to EOF ***\n";
+echo "*** Test fscanf(): to read a file when file pointer is pointing to EOF ***\n";
// various formats
$formats = array( "%d", "%f", "%e", "%u", " %s", "%x", "%o");
@@ -28,16 +28,16 @@ $modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
$counter = 1;
// reading the values from file using different integer formats
foreach($modes as $mode) {
-
+
// create an empty file
$filename = "$file_path/fscanf_variation53.tmp";
$file_handle = fopen($filename, "w");
if($file_handle == false)
exit("Error:failed to open file $filename");
-
+
//writing data to the file
@fwrite($file_handle, "Sample text\n");
-
+
// writing a blank line
@fwrite($file_handle, "\n");
@@ -50,13 +50,13 @@ foreach($modes as $mode) {
exit("Error:failed to open file $filename");
}
echo "\n-- iteration $counter --\n";
-
+
// current location
var_dump( ftell($file_handle) );
-
+
// set the file pointer to eof
var_dump( fseek($file_handle, 0, SEEK_END) );
-
+
// current location
var_dump( ftell($file_handle) );
diff --git a/ext/standard/tests/file/fscanf_variation54.phpt b/ext/standard/tests/file/fscanf_variation54.phpt
index 0937e5b556..ae13100617 100644
--- a/ext/standard/tests/file/fscanf_variation54.phpt
+++ b/ext/standard/tests/file/fscanf_variation54.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - objects
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): to read objects from a file ***\n";
+echo "*** Test fscanf(): to read objects from a file ***\n";
// declare a class
class foo
diff --git a/ext/standard/tests/file/fscanf_variation55.phpt b/ext/standard/tests/file/fscanf_variation55.phpt
index a0f9b709e8..1e02356c6b 100644
--- a/ext/standard/tests/file/fscanf_variation55.phpt
+++ b/ext/standard/tests/file/fscanf_variation55.phpt
@@ -21,7 +21,7 @@ if (PHP_INT_SIZE != 4) {
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): tracking file pointer along with reading data from file ***\n";
+echo "*** Test fscanf(): tracking file pointer along with reading data from file ***\n";
// create a file
$filename = "$file_path/fscanf_variation55.tmp";
@@ -32,13 +32,13 @@ if($file_handle == false)
// different valid data
$valid_data = array(
12345, // integer value
- -12345,
+ -12345,
123.45, // float value
-123.45,
0x123B, // hexadecimal value
0x12ab,
0123, // octal value
- -0123,
+ -0123,
"abcde", // string
'abcde',
10e3, // exponential value
@@ -72,14 +72,14 @@ foreach($modes as $mode) {
// reading different data from file using different formats
foreach($int_formats as $int_format) {
// current file pointer position
- var_dump( ftell($file_handle) );
+ var_dump( ftell($file_handle) );
// rewind the file so that for every foreach iteration the file pointer starts from bof
rewind($file_handle);
// current file pointer position after rewind operation
- var_dump( ftell($file_handle) );
+ var_dump( ftell($file_handle) );
echo "\n-- iteration $counter --\n";
while( !feof($file_handle) ) {
- var_dump( ftell($file_handle) );
+ var_dump( ftell($file_handle) );
var_dump( fscanf($file_handle,$int_format) );
}
$counter++;
diff --git a/ext/standard/tests/file/fscanf_variation6.phpt b/ext/standard/tests/file/fscanf_variation6.phpt
index 74446f0851..0a6c908b2d 100644
--- a/ext/standard/tests/file/fscanf_variation6.phpt
+++ b/ext/standard/tests/file/fscanf_variation6.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - integer formats with strings
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different integer format types with strings ***\n";
+echo "*** Test fscanf(): different integer format types with strings ***\n";
// create a file
$filename = "$file_path/fscanf_variation6.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation7.phpt b/ext/standard/tests/file/fscanf_variation7.phpt
index 33354e7faa..bf6afea277 100644
--- a/ext/standard/tests/file/fscanf_variation7.phpt
+++ b/ext/standard/tests/file/fscanf_variation7.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - integer formats with boolean
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different integer format types with boolean data ***\n";
+echo "*** Test fscanf(): different integer format types with boolean data ***\n";
// create a file
$filename = "$file_path/fscanf_variation7.tmp";
diff --git a/ext/standard/tests/file/fscanf_variation8.phpt b/ext/standard/tests/file/fscanf_variation8.phpt
index 97241015e6..e81b713351 100644
--- a/ext/standard/tests/file/fscanf_variation8.phpt
+++ b/ext/standard/tests/file/fscanf_variation8.phpt
@@ -12,7 +12,7 @@ Test fscanf() function: usage variations - float formats with float values
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different float format types with different float values ***\n";
+echo "*** Test fscanf(): different float format types with different float values ***\n";
// create a file
$filename = "$file_path/fscanf_variation8.tmp";
@@ -55,7 +55,7 @@ $valid_floats = array(
);
// various float formats
-$float_formats = array( "%f",
+$float_formats = array( "%f",
"%hf", "%lf", "%Lf",
" %f", "%f ", "% f",
"\t%f", "\n%f", "%4f",
diff --git a/ext/standard/tests/file/fscanf_variation9.phpt b/ext/standard/tests/file/fscanf_variation9.phpt
index e4cc6fa3b3..331d8f9c2f 100644
--- a/ext/standard/tests/file/fscanf_variation9.phpt
+++ b/ext/standard/tests/file/fscanf_variation9.phpt
@@ -18,7 +18,7 @@ if (PHP_INT_SIZE != 4) {
$file_path = dirname(__FILE__);
-echo "*** Test fscanf(): different float format types with integer values ***\n";
+echo "*** Test fscanf(): different float format types with integer values ***\n";
// create a file
$filename = "$file_path/fscanf_variation9.tmp";
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_basic1.phpt b/ext/standard/tests/file/fseek_ftell_rewind_basic1.phpt
index 4a14b334b6..41ce37ccf7 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_basic1.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_basic1.phpt
@@ -42,7 +42,7 @@ foreach($file_content_types as $file_content_type){
// set the file pointer to 0
var_dump( rewind($file_handle) ); // Confirm file pointer moves correctly
var_dump( ftell($file_handle) ); // confirm the file pointer position
-
+
foreach($whence_set as $whence){
echo "-- Testing fseek() with whence = $whence_string[$whence] --\n";
var_dump( fseek($file_handle,10,$whence) ); //expecting int(0)
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32-mb.phpt b/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32-mb.phpt
index fda4de5f40..ded2f648f9 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32-mb.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32-mb.phpt
@@ -24,7 +24,7 @@ include ("file.inc");
/* Testing fseek(),ftell(),rewind() functions on all write and create with write modes */
echo "*** Testing fseek(), ftell(), rewind() : basic operations ***\n";
-$file_modes = array( "w","wb","wt","w+","w+b","w+t",
+$file_modes = array( "w","wb","wt","w+","w+b","w+t",
"x","xb","xt","x+","x+b","x+t");
$file_content_types = array("text_with_new_line","alphanumeric");
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32.phpt b/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32.phpt
index 58bb65ef86..c9b46bfbb4 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_basic2-win32.phpt
@@ -24,7 +24,7 @@ include ("file.inc");
/* Testing fseek(),ftell(),rewind() functions on all write and create with write modes */
echo "*** Testing fseek(), ftell(), rewind() : basic operations ***\n";
-$file_modes = array( "w","wb","wt","w+","w+b","w+t",
+$file_modes = array( "w","wb","wt","w+","w+b","w+t",
"x","xb","xt","x+","x+b","x+t");
$file_content_types = array("text_with_new_line","alphanumeric");
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_basic2.phpt b/ext/standard/tests/file/fseek_ftell_rewind_basic2.phpt
index 6974b5262e..9788b02041 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_basic2.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_basic2.phpt
@@ -23,7 +23,7 @@ include ("file.inc");
/* Testing fseek(),ftell(),rewind() functions on all write and create with write modes */
echo "*** Testing fseek(), ftell(), rewind() : basic operations ***\n";
-$file_modes = array( "w","wb","wt","w+","w+b","w+t",
+$file_modes = array( "w","wb","wt","w+","w+b","w+t",
"x","xb","xt","x+","x+b","x+t");
$file_content_types = array("text_with_new_line","alphanumeric");
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_error1.phpt b/ext/standard/tests/file/fseek_ftell_rewind_error1.phpt
index 8e01b8408b..9c1b3a822d 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_error1.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_error1.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test fseek(), ftell() & rewind() functions : error conditions - fseek()
+Test fseek(), ftell() & rewind() functions : error conditions - fseek()
--FILE--
<?php
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation1.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation1.phpt
index 5c96fa0275..c33e28118b 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation1.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation1.phpt
@@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type){
}
echo "-- Testing fseek() without using argument whence --\n";
foreach($offset as $count){
- var_dump( fseek($file_handle, $count) );
+ var_dump( fseek($file_handle, $count) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation2-win32.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation2-win32.phpt
index e30a6bba06..4212751e62 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation2-win32.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation2-win32.phpt
@@ -26,7 +26,7 @@ include ("file.inc");
*/
echo "*** Testing fseek(), ftell(), rewind() : default whence & all w and x modes ***\n";
-$file_modes = array( "w","wb","wt","w+","w+b","w+t",
+$file_modes = array( "w","wb","wt","w+","w+b","w+t",
"x","xb","xt","x+","x+b","x+t");
$file_content_types = array( "text_with_new_line","alphanumeric");
@@ -53,7 +53,7 @@ foreach($file_content_types as $file_content_type){
echo "-- Testing fseek() without using argument whence --\n";
foreach($offset as $count){
- var_dump( fseek($file_handle,$count) );
+ var_dump( fseek($file_handle,$count) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation2.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation2.phpt
index 4957868723..fa6c14965f 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation2.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation2.phpt
@@ -26,7 +26,7 @@ include ("file.inc");
*/
echo "*** Testing fseek(), ftell(), rewind() : default whence & all w and x modes ***\n";
-$file_modes = array( "w","wb","wt","w+","w+b","w+t",
+$file_modes = array( "w","wb","wt","w+","w+b","w+t",
"x","xb","xt","x+","x+b","x+t");
$file_content_types = array( "text_with_new_line","alphanumeric");
@@ -53,7 +53,7 @@ foreach($file_content_types as $file_content_type){
echo "-- Testing fseek() without using argument whence --\n";
foreach($offset as $count){
- var_dump( fseek($file_handle,$count) );
+ var_dump( fseek($file_handle,$count) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation3.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation3.phpt
index 7dc9256340..b1eebf9f7e 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation3.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation3.phpt
@@ -45,7 +45,7 @@ foreach($file_content_types as $file_content_type){
exit();
}
foreach($offset as $count){
- var_dump( fseek($file_handle,$count,SEEK_SET) );
+ var_dump( fseek($file_handle,$count,SEEK_SET) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation4-win32.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation4-win32.phpt
index aa6e5f4104..44afc314ea 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation4-win32.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation4-win32.phpt
@@ -51,7 +51,7 @@ foreach($file_content_types as $file_content_type){
rewind($file_handle);
foreach($offset as $count){
- var_dump( fseek($file_handle,$count,SEEK_SET) );
+ var_dump( fseek($file_handle,$count,SEEK_SET) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation4.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation4.phpt
index 71573087ee..890b126118 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation4.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation4.phpt
@@ -51,7 +51,7 @@ foreach($file_content_types as $file_content_type){
rewind($file_handle);
foreach($offset as $count){
- var_dump( fseek($file_handle,$count,SEEK_SET) );
+ var_dump( fseek($file_handle,$count,SEEK_SET) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation5.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation5.phpt
index ff1d8c8710..b9fda93f1b 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation5.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation5.phpt
@@ -32,7 +32,7 @@ $filename = dirname(__FILE__)."/fseek_ftell_rewind_variation5.tmp"; // this is n
/* open the file using $files_modes and perform fseek(),ftell() and rewind() on it */
foreach($file_content_types as $file_content_type){
echo "-- File having data of type ". $file_content_type ." --\n";
-
+
foreach($file_modes as $file_mode) {
echo "-- File opened in mode ".$file_mode." --\n";
create_files ( dirname(__FILE__), 1, $file_content_type, 0755, 512, "w", "fseek_ftell_rewind_variation"
@@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type){
}
rewind($file_handle);
foreach($offset as $count){
- var_dump( fseek($file_handle,$count,SEEK_CUR) );
+ var_dump( fseek($file_handle,$count,SEEK_CUR) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation6-win32.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation6-win32.phpt
index 02c230f819..9451c07f5f 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation6-win32.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation6-win32.phpt
@@ -51,7 +51,7 @@ foreach($file_content_types as $file_content_type){
rewind($file_handle);
foreach($offset as $count){
- var_dump( fseek($file_handle,$count,SEEK_CUR) );
+ var_dump( fseek($file_handle,$count,SEEK_CUR) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation6.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation6.phpt
index 18821c86f2..d53a43816b 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation6.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation6.phpt
@@ -51,7 +51,7 @@ foreach($file_content_types as $file_content_type){
rewind($file_handle);
foreach($offset as $count){
- var_dump( fseek($file_handle,$count,SEEK_CUR) );
+ var_dump( fseek($file_handle,$count,SEEK_CUR) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation7.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation7.phpt
index 49deec5a15..8c3f53393c 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation7.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation7.phpt
@@ -44,11 +44,11 @@ foreach($file_content_types as $file_content_type){
}
rewind($file_handle);
foreach($offset as $count){
- var_dump( fseek($file_handle,$count,SEEK_END) );
+ var_dump( fseek($file_handle,$count,SEEK_END) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
-
+
//close the file and check the size, the size will have increased
// by 10 bytes because of holes
fclose($file_handle);
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation8-win32.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation8-win32.phpt
index 2503422195..9ac2c128c5 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation8-win32.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation8-win32.phpt
@@ -52,11 +52,11 @@ foreach($file_content_types as $file_content_type){
rewind($file_handle);
foreach($offset as $count){
- var_dump( fseek($file_handle,$count,SEEK_END) );
+ var_dump( fseek($file_handle,$count,SEEK_END) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
-
+
//close the file and check the size
fclose($file_handle);
var_dump( filesize($filename) );
diff --git a/ext/standard/tests/file/fseek_ftell_rewind_variation8.phpt b/ext/standard/tests/file/fseek_ftell_rewind_variation8.phpt
index 144d9f6d1b..87a1703981 100644
--- a/ext/standard/tests/file/fseek_ftell_rewind_variation8.phpt
+++ b/ext/standard/tests/file/fseek_ftell_rewind_variation8.phpt
@@ -52,11 +52,11 @@ foreach($file_content_types as $file_content_type){
rewind($file_handle);
foreach($offset as $count){
- var_dump( fseek($file_handle,$count,SEEK_END) );
+ var_dump( fseek($file_handle,$count,SEEK_END) );
var_dump( ftell($file_handle) ); // confirm the file pointer position
var_dump( feof($file_handle) ); //ensure that file pointer is not at end
} //end of offset loop
-
+
//close the file and check the size
fclose($file_handle);
var_dump( filesize($filename) );
diff --git a/ext/standard/tests/file/fseek_variation1.phpt b/ext/standard/tests/file/fseek_variation1.phpt
index dda12bc704..56b2d128e8 100644
--- a/ext/standard/tests/file/fseek_variation1.phpt
+++ b/ext/standard/tests/file/fseek_variation1.phpt
@@ -62,7 +62,7 @@ $values = array(
// string data
"string",
'string',
-
+
// object data
new testClass(),
diff --git a/ext/standard/tests/file/fstat.phpt b/ext/standard/tests/file/fstat.phpt
index 96924af077..94ba9c5abf 100644
--- a/ext/standard/tests/file/fstat.phpt
+++ b/ext/standard/tests/file/fstat.phpt
@@ -13,7 +13,7 @@ var_dump(fstat($fp));
@unlink($filename);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
array(26) {
[0]=>
int(%i)
diff --git a/ext/standard/tests/file/fstat_error.phpt b/ext/standard/tests/file/fstat_error.phpt
index d75ddb9a76..c3c15295dd 100644
--- a/ext/standard/tests/file/fstat_error.phpt
+++ b/ext/standard/tests/file/fstat_error.phpt
@@ -3,7 +3,7 @@ Test function fstat() by calling it more than or less than its expected argument
--FILE--
<?php
$fp = fopen (__FILE__, 'r');
-$extra_arg = 'nothing';
+$extra_arg = 'nothing';
var_dump(fstat( $fp, $extra_arg ) );
var_dump(fstat());
diff --git a/ext/standard/tests/file/ftruncate_error.phpt b/ext/standard/tests/file/ftruncate_error.phpt
index 31fc60fd17..cb4c6e2468 100644
--- a/ext/standard/tests/file/ftruncate_error.phpt
+++ b/ext/standard/tests/file/ftruncate_error.phpt
@@ -64,7 +64,7 @@ var_dump( ftruncate(@$fp,10));
var_dump( filesize($filename) );
echo "Done\n";
-?>
+?>
--CLEAN--
<?php
$filename = dirname(__FILE__)."/ftruncate_error.tmp";
diff --git a/ext/standard/tests/file/ftruncate_variation1-win32-mb.phpt b/ext/standard/tests/file/ftruncate_variation1-win32-mb.phpt
index e097b342f4..7460492cce 100644
--- a/ext/standard/tests/file/ftruncate_variation1-win32-mb.phpt
+++ b/ext/standard/tests/file/ftruncate_variation1-win32-mb.phpt
@@ -19,7 +19,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
diff --git a/ext/standard/tests/file/ftruncate_variation1-win32.phpt b/ext/standard/tests/file/ftruncate_variation1-win32.phpt
index 58dfd296ed..317e13fe73 100644
--- a/ext/standard/tests/file/ftruncate_variation1-win32.phpt
+++ b/ext/standard/tests/file/ftruncate_variation1-win32.phpt
@@ -19,7 +19,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
diff --git a/ext/standard/tests/file/ftruncate_variation1.phpt b/ext/standard/tests/file/ftruncate_variation1.phpt
index c6d28d7e6d..5a84b168de 100644
--- a/ext/standard/tests/file/ftruncate_variation1.phpt
+++ b/ext/standard/tests/file/ftruncate_variation1.phpt
@@ -19,7 +19,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
diff --git a/ext/standard/tests/file/ftruncate_variation2-win32.phpt b/ext/standard/tests/file/ftruncate_variation2-win32.phpt
index 6d62f75f1a..de7b088320 100644
--- a/ext/standard/tests/file/ftruncate_variation2-win32.phpt
+++ b/ext/standard/tests/file/ftruncate_variation2-win32.phpt
@@ -19,7 +19,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -31,7 +31,7 @@ foreach($file_content_types as $file_content_type) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "-- Testing ftruncate() with file opening using $file_modes[$mode_counter] mode --\n";
-
+
// create 1 file with some contents
$filename = dirname(__FILE__)."/ftruncate_variation2.tmp";
if( strstr($file_modes[$mode_counter], "x") || strstr($file_modes[$mode_counter], "w") ) {
@@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
diff --git a/ext/standard/tests/file/ftruncate_variation2.phpt b/ext/standard/tests/file/ftruncate_variation2.phpt
index 2b907f595b..ac5a2316cd 100644
--- a/ext/standard/tests/file/ftruncate_variation2.phpt
+++ b/ext/standard/tests/file/ftruncate_variation2.phpt
@@ -19,7 +19,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -31,7 +31,7 @@ foreach($file_content_types as $file_content_type) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "-- Testing ftruncate() with file opening using $file_modes[$mode_counter] mode --\n";
-
+
// create 1 file with some contents
$filename = dirname(__FILE__)."/ftruncate_variation2.tmp";
if( strstr($file_modes[$mode_counter], "x") || strstr($file_modes[$mode_counter], "w") ) {
@@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
diff --git a/ext/standard/tests/file/ftruncate_variation3-win32.phpt b/ext/standard/tests/file/ftruncate_variation3-win32.phpt
index 4eba4a7a08..b275d5f462 100644
--- a/ext/standard/tests/file/ftruncate_variation3-win32.phpt
+++ b/ext/standard/tests/file/ftruncate_variation3-win32.phpt
@@ -19,7 +19,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -44,14 +44,14 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
rewind($file_handle); // file pointer to 0
echo "-- Testing ftruncate(): truncate file to half of its current size --\n";
- /* truncate it to half of its current size */
+ /* truncate it to half of its current size */
$new_size = filesize($filename)/2;
var_dump( filesize($filename) ); // current filesize
var_dump( ftell($file_handle) );
diff --git a/ext/standard/tests/file/ftruncate_variation3.phpt b/ext/standard/tests/file/ftruncate_variation3.phpt
index 27fbe33bbc..70ea90d18a 100644
--- a/ext/standard/tests/file/ftruncate_variation3.phpt
+++ b/ext/standard/tests/file/ftruncate_variation3.phpt
@@ -19,7 +19,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -44,14 +44,14 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
rewind($file_handle); // file pointer to 0
echo "-- Testing ftruncate(): truncate file to half of its current size --\n";
- /* truncate it to half of its current size */
+ /* truncate it to half of its current size */
$new_size = filesize($filename)/2;
var_dump( filesize($filename) ); // current filesize
var_dump( ftell($file_handle) );
diff --git a/ext/standard/tests/file/ftruncate_variation4-win32.phpt b/ext/standard/tests/file/ftruncate_variation4-win32.phpt
index 5bf5f679b6..18d5138baf 100644
--- a/ext/standard/tests/file/ftruncate_variation4-win32.phpt
+++ b/ext/standard/tests/file/ftruncate_variation4-win32.phpt
@@ -19,7 +19,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
@@ -53,7 +53,7 @@ foreach($file_content_types as $file_content_type) {
echo "-- Testing ftruncate(): try truncating file to a negative size --\n";
/* try to truncate it to a negative size, size should not change*/
- $new_size = -1000;
+ $new_size = -1000;
var_dump( filesize($filename) ); // current filesize
var_dump( ftell($file_handle) );
var_dump( ftruncate($file_handle, $new_size) ); // truncate it
diff --git a/ext/standard/tests/file/ftruncate_variation4.phpt b/ext/standard/tests/file/ftruncate_variation4.phpt
index ef0ee21996..077b46fd05 100644
--- a/ext/standard/tests/file/ftruncate_variation4.phpt
+++ b/ext/standard/tests/file/ftruncate_variation4.phpt
@@ -19,7 +19,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
@@ -53,7 +53,7 @@ foreach($file_content_types as $file_content_type) {
echo "-- Testing ftruncate(): try truncating file to a negative size --\n";
/* try to truncate it to a negative size, size should not change*/
- $new_size = -1000;
+ $new_size = -1000;
var_dump( filesize($filename) ); // current filesize
var_dump( ftell($file_handle) );
var_dump( ftruncate($file_handle, $new_size) ); // truncate it
diff --git a/ext/standard/tests/file/ftruncate_variation5-win32.phpt b/ext/standard/tests/file/ftruncate_variation5-win32.phpt
index 64bed969c9..9bec15dca3 100644
--- a/ext/standard/tests/file/ftruncate_variation5-win32.phpt
+++ b/ext/standard/tests/file/ftruncate_variation5-win32.phpt
@@ -19,7 +19,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -31,7 +31,7 @@ foreach($file_content_types as $file_content_type) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "-- Testing ftruncate() with file opening using $file_modes[$mode_counter] mode --\n";
-
+
// create 1 file with some contents
$filename = dirname(__FILE__)."/ftruncate_variation5.tmp";
if( strstr($file_modes[$mode_counter], "x") || strstr($file_modes[$mode_counter], "w") ) {
@@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
@@ -62,7 +62,7 @@ foreach($file_content_types as $file_content_type) {
fclose($file_handle);
clearstatcache(); // clear previous size value in cache
var_dump( filesize($filename) ); // new file size = actual size, no change
-
+
//delete all files created
delete_file($filename);
}//end of inner for loop
diff --git a/ext/standard/tests/file/ftruncate_variation5.phpt b/ext/standard/tests/file/ftruncate_variation5.phpt
index 0716693cd1..7df84c9b17 100644
--- a/ext/standard/tests/file/ftruncate_variation5.phpt
+++ b/ext/standard/tests/file/ftruncate_variation5.phpt
@@ -19,7 +19,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -31,7 +31,7 @@ foreach($file_content_types as $file_content_type) {
for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "-- Testing ftruncate() with file opening using $file_modes[$mode_counter] mode --\n";
-
+
// create 1 file with some contents
$filename = dirname(__FILE__)."/ftruncate_variation5.tmp";
if( strstr($file_modes[$mode_counter], "x") || strstr($file_modes[$mode_counter], "w") ) {
@@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
@@ -62,7 +62,7 @@ foreach($file_content_types as $file_content_type) {
fclose($file_handle);
clearstatcache(); // clear previous size value in cache
var_dump( filesize($filename) ); // new file size = actual size, no change
-
+
//delete all files created
delete_file($filename);
}//end of inner for loop
diff --git a/ext/standard/tests/file/ftruncate_variation6-win32.phpt b/ext/standard/tests/file/ftruncate_variation6-win32.phpt
index 4b88ee8dd6..6686c80944 100644
--- a/ext/standard/tests/file/ftruncate_variation6-win32.phpt
+++ b/ext/standard/tests/file/ftruncate_variation6-win32.phpt
@@ -21,7 +21,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -46,15 +46,15 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
rewind($file_handle); // file pointer to 0
-
+
echo "-- Testing ftruncate(): truncate to smaller size and display the file content --\n";
/* try to truncate it and display the file content */
-
+
$new_size = 15;
var_dump( filesize($filename) ); // current filesize
var_dump( ftell($file_handle) );
@@ -66,8 +66,8 @@ foreach($file_content_types as $file_content_type) {
var_dump( feof($file_handle) );
fclose($file_handle);
clearstatcache(); // clear previous size value in cache
- var_dump( filesize($filename) );
-
+ var_dump( filesize($filename) );
+
//delete all files created
delete_file( $filename );
}//end of inner for loop
diff --git a/ext/standard/tests/file/ftruncate_variation6.phpt b/ext/standard/tests/file/ftruncate_variation6.phpt
index 69dee82b70..a8bce476e0 100644
--- a/ext/standard/tests/file/ftruncate_variation6.phpt
+++ b/ext/standard/tests/file/ftruncate_variation6.phpt
@@ -21,7 +21,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -46,15 +46,15 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
rewind($file_handle); // file pointer to 0
-
+
echo "-- Testing ftruncate(): truncate to smaller size and display the file content --\n";
/* try to truncate it and display the file content */
-
+
$new_size = 15;
var_dump( filesize($filename) ); // current filesize
var_dump( ftell($file_handle) );
@@ -66,8 +66,8 @@ foreach($file_content_types as $file_content_type) {
var_dump( feof($file_handle) );
fclose($file_handle);
clearstatcache(); // clear previous size value in cache
- var_dump( filesize($filename) );
-
+ var_dump( filesize($filename) );
+
//delete all files created
delete_file( $filename );
}//end of inner for loop
diff --git a/ext/standard/tests/file/ftruncate_variation7-win32.phpt b/ext/standard/tests/file/ftruncate_variation7-win32.phpt
index 09158ca490..376f775dcf 100644
--- a/ext/standard/tests/file/ftruncate_variation7-win32.phpt
+++ b/ext/standard/tests/file/ftruncate_variation7-win32.phpt
@@ -20,7 +20,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -45,15 +45,15 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
rewind($file_handle); // file pointer to 0
-
+
echo "-- Testing ftruncate(): File pointer at the end --\n";
/* try to truncate it to while file pointer at the end */
- fseek($file_handle, 0, SEEK_END);
+ fseek($file_handle, 0, SEEK_END);
$new_size = 200;
var_dump( filesize($filename) ); // current filesize
var_dump( ftell($file_handle) );
@@ -62,8 +62,8 @@ foreach($file_content_types as $file_content_type) {
var_dump( feof($file_handle) );
fclose($file_handle);
clearstatcache(); // clear previous size value in cache
- var_dump( filesize($filename) );
-
+ var_dump( filesize($filename) );
+
//delete all files created
delete_file($filename);
}//end of inner for loop
diff --git a/ext/standard/tests/file/ftruncate_variation7.phpt b/ext/standard/tests/file/ftruncate_variation7.phpt
index 0ee558f0f9..5288344b20 100644
--- a/ext/standard/tests/file/ftruncate_variation7.phpt
+++ b/ext/standard/tests/file/ftruncate_variation7.phpt
@@ -20,7 +20,7 @@ include ("file.inc");
echo "*** Testing ftruncate() : usage variations ***\n";
/* test ftruncate with file opened in different modes */
-$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
+$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t",
"w", "wb", "wt", "w+", "w+b", "w+t",
"x", "xb", "xt", "x+", "x+b", "x+t",
"a", "ab", "at", "a+", "a+b", "a+t");
@@ -45,15 +45,15 @@ foreach($file_content_types as $file_content_type) {
$file_handle = fopen($filename, $file_modes[$mode_counter]);
}
if (!$file_handle) {
- echo "Error: failed to open file $filename!\n";
+ echo "Error: failed to open file $filename!\n";
exit();
}
rewind($file_handle); // file pointer to 0
-
+
echo "-- Testing ftruncate(): File pointer at the end --\n";
/* try to truncate it to while file pointer at the end */
- fseek($file_handle, 0, SEEK_END);
+ fseek($file_handle, 0, SEEK_END);
$new_size = 200;
var_dump( filesize($filename) ); // current filesize
var_dump( ftell($file_handle) );
@@ -62,8 +62,8 @@ foreach($file_content_types as $file_content_type) {
var_dump( feof($file_handle) );
fclose($file_handle);
clearstatcache(); // clear previous size value in cache
- var_dump( filesize($filename) );
-
+ var_dump( filesize($filename) );
+
//delete all files created
delete_file($filename);
}//end of inner for loop
diff --git a/ext/standard/tests/file/fwrite.phpt b/ext/standard/tests/file/fwrite.phpt
index 7f12ebb1ee..443710b99d 100644
--- a/ext/standard/tests/file/fwrite.phpt
+++ b/ext/standard/tests/file/fwrite.phpt
@@ -29,7 +29,7 @@ var_dump(file_get_contents($filename));
@unlink($filename);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: fwrite() expects at least 2 parameters, 1 given in %s on line %d
bool(false)
diff --git a/ext/standard/tests/file/fwrite_basic-win32-mb.phpt b/ext/standard/tests/file/fwrite_basic-win32-mb.phpt
index cdc5d86ff9..03ecfee483 100644
--- a/ext/standard/tests/file/fwrite_basic-win32-mb.phpt
+++ b/ext/standard/tests/file/fwrite_basic-win32-mb.phpt
@@ -31,8 +31,8 @@ foreach($file_content_types as $file_content_type) {
echo "\n-- Testing fwrite() with file having data of type ". $file_content_type ." --\n";
$filename = dirname(__FILE__)."/fwrite_basic-win32私はガラスを食べられます.tmp"; // this is name of the file
- for($inner_loop_counter = 0;
- $inner_loop_counter < count($file_modes);
+ for($inner_loop_counter = 0;
+ $inner_loop_counter < count($file_modes);
$inner_loop_counter++) {
echo "-- File opened in mode : " . $file_modes[$inner_loop_counter]. " --\n";
/* open the file using $files_modes and perform fwrite() on it */
@@ -51,7 +51,7 @@ foreach($file_content_types as $file_content_type) {
var_dump( fwrite($file_handle, $data_to_be_written, 100)); //int(100)
var_dump( feof($file_handle) ); // expected : false
var_dump( ftell($file_handle) ); //expected: 100
-
+
// trying to write more than the available data, available 1024 bytes but trying 2048
var_dump( fwrite($file_handle, $data_to_be_written, 2048)); //int(1024)
var_dump( feof($file_handle) ); // expected : false
diff --git a/ext/standard/tests/file/fwrite_basic-win32.phpt b/ext/standard/tests/file/fwrite_basic-win32.phpt
index d21887873e..d1655a7b6d 100644
--- a/ext/standard/tests/file/fwrite_basic-win32.phpt
+++ b/ext/standard/tests/file/fwrite_basic-win32.phpt
@@ -31,8 +31,8 @@ foreach($file_content_types as $file_content_type) {
echo "\n-- Testing fwrite() with file having data of type ". $file_content_type ." --\n";
$filename = dirname(__FILE__)."/fwrite_basic-win32.tmp"; // this is name of the file
- for($inner_loop_counter = 0;
- $inner_loop_counter < count($file_modes);
+ for($inner_loop_counter = 0;
+ $inner_loop_counter < count($file_modes);
$inner_loop_counter++) {
echo "-- File opened in mode : " . $file_modes[$inner_loop_counter]. " --\n";
/* open the file using $files_modes and perform fwrite() on it */
@@ -51,7 +51,7 @@ foreach($file_content_types as $file_content_type) {
var_dump( fwrite($file_handle, $data_to_be_written, 100)); //int(100)
var_dump( feof($file_handle) ); // expected : false
var_dump( ftell($file_handle) ); //expected: 100
-
+
// trying to write more than the available data, available 1024 bytes but trying 2048
var_dump( fwrite($file_handle, $data_to_be_written, 2048)); //int(1024)
var_dump( feof($file_handle) ); // expected : false
diff --git a/ext/standard/tests/file/fwrite_basic.phpt b/ext/standard/tests/file/fwrite_basic.phpt
index b0cb93212b..3670edd281 100644
--- a/ext/standard/tests/file/fwrite_basic.phpt
+++ b/ext/standard/tests/file/fwrite_basic.phpt
@@ -31,8 +31,8 @@ foreach($file_content_types as $file_content_type) {
echo "\n-- Testing fwrite() with file having data of type ". $file_content_type ." --\n";
$filename = dirname(__FILE__)."/fwrite_basic.tmp"; // this is name of the file
- for($inner_loop_counter = 0;
- $inner_loop_counter < count($file_modes);
+ for($inner_loop_counter = 0;
+ $inner_loop_counter < count($file_modes);
$inner_loop_counter++) {
echo "-- File opened in mode : " . $file_modes[$inner_loop_counter]. " --\n";
/* open the file using $files_modes and perform fwrite() on it */
@@ -51,7 +51,7 @@ foreach($file_content_types as $file_content_type) {
var_dump( fwrite($file_handle, $data_to_be_written, 100)); //int(100)
var_dump( feof($file_handle) ); // expected : false
var_dump( ftell($file_handle) ); //expected: 100
-
+
// trying to write more than the available data, available 1024 bytes but trying 2048
var_dump( fwrite($file_handle, $data_to_be_written, 2048)); //int(1024)
var_dump( feof($file_handle) ); // expected : false
diff --git a/ext/standard/tests/file/fwrite_error.phpt b/ext/standard/tests/file/fwrite_error.phpt
index 1e17b5d117..ec2305a6b1 100644
--- a/ext/standard/tests/file/fwrite_error.phpt
+++ b/ext/standard/tests/file/fwrite_error.phpt
@@ -19,7 +19,7 @@ $filename = dirname(__FILE__)."/fwrite_error.tmp";
echo "-- Testing fwrite() with less than expected number of arguments --\n";
// zero argument
-var_dump( fwrite() );
+var_dump( fwrite() );
// less than expected, 1 arg
$file_handle = fopen ( $filename, "w");
var_dump( fwrite($file_handle) );
diff --git a/ext/standard/tests/file/fwrite_variation1-win32-mb.phpt b/ext/standard/tests/file/fwrite_variation1-win32-mb.phpt
index 79a5cf1d9c..f368513d10 100644
--- a/ext/standard/tests/file/fwrite_variation1-win32-mb.phpt
+++ b/ext/standard/tests/file/fwrite_variation1-win32-mb.phpt
@@ -50,7 +50,7 @@ foreach($file_content_types as $file_content_type) {
$data_to_be_written="";
fill_buffer($data_to_be_written,$file_content_type,1024); //get the data of size 1024
-
+
/* Write the data into the file, verify it by checking the file pointer position, eof position,
filesize & by displaying the content */
diff --git a/ext/standard/tests/file/fwrite_variation1-win32.phpt b/ext/standard/tests/file/fwrite_variation1-win32.phpt
index 644e71c44b..28559af0c9 100644
--- a/ext/standard/tests/file/fwrite_variation1-win32.phpt
+++ b/ext/standard/tests/file/fwrite_variation1-win32.phpt
@@ -50,7 +50,7 @@ foreach($file_content_types as $file_content_type) {
$data_to_be_written="";
fill_buffer($data_to_be_written,$file_content_type,1024); //get the data of size 1024
-
+
/* Write the data into the file, verify it by checking the file pointer position, eof position,
filesize & by displaying the content */
diff --git a/ext/standard/tests/file/fwrite_variation1.phpt b/ext/standard/tests/file/fwrite_variation1.phpt
index f6cf927621..dd3f5eddb9 100644
--- a/ext/standard/tests/file/fwrite_variation1.phpt
+++ b/ext/standard/tests/file/fwrite_variation1.phpt
@@ -36,7 +36,7 @@ foreach($file_content_types as $file_content_type) {
/* open the file using $files_modes and perform fwrite() on it */
foreach($file_modes as $file_mode) {
echo "-- Opening file in $file_mode --\n";
-
+
// create the temp file with content of type $file_content_type
$filename = dirname(__FILE__)."/fwrite_variation1.tmp"; // this is name of the file
create_files ( dirname(__FILE__), 1, $file_content_type, 0755, 1, "w", "fwrite_variation");
@@ -54,10 +54,10 @@ foreach($file_content_types as $file_content_type) {
filesize & by displaying the content */
var_dump( ftell($file_handle) ); // expected: 0
- var_dump( fwrite($file_handle, $data_to_be_written ));
+ var_dump( fwrite($file_handle, $data_to_be_written ));
var_dump( ftell($file_handle) ); // expected: 0
var_dump( feof($file_handle) ); // expected: false
-
+
// move the file pointer to end of the file and try fwrite()
fseek($file_handle, SEEK_END, 0);
var_dump( ftell($file_handle) ); // expecting 1024
diff --git a/ext/standard/tests/file/fwrite_variation2.phpt b/ext/standard/tests/file/fwrite_variation2.phpt
index 47a352e28a..6f16deb2d7 100644
--- a/ext/standard/tests/file/fwrite_variation2.phpt
+++ b/ext/standard/tests/file/fwrite_variation2.phpt
@@ -61,14 +61,14 @@ foreach($file_content_types as $file_content_type) {
var_dump( feof($file_handle) ); //Expecting bool(false)
/*overwrite data in middle of the file*/
- fseek($file_handle, SEEK_SET, 1024/2 );
+ fseek($file_handle, SEEK_SET, 1024/2 );
var_dump( ftell($file_handle)); // expected: 1024/2
var_dump( fwrite($file_handle, $data_to_be_written, 200) );
var_dump( ftell($file_handle) );
var_dump( feof($file_handle) ); //Expecting bool(false)
/* write at the end of the file */
- fseek($file_handle, SEEK_END, 0);
+ fseek($file_handle, SEEK_END, 0);
var_dump( ftell($file_handle) ); // expected: 1024
var_dump( feof($file_handle) );
var_dump( fwrite($file_handle, $data_to_be_written, 200) );
diff --git a/ext/standard/tests/file/fwrite_variation3.phpt b/ext/standard/tests/file/fwrite_variation3.phpt
index ca60ef438e..c7e148efd1 100644
--- a/ext/standard/tests/file/fwrite_variation3.phpt
+++ b/ext/standard/tests/file/fwrite_variation3.phpt
@@ -64,9 +64,9 @@ foreach($file_content_types as $file_content_type) {
fseek($file_handle, SEEK_SET, (1024 + 400)/2 );
var_dump( ftell($file_handle)); // expected: (1024 + 400)/2
var_dump( fwrite($file_handle, $data_to_be_written, 200) );
- var_dump( ftell($file_handle) );
+ var_dump( ftell($file_handle) );
var_dump( feof($file_handle) ); //Expecting bool(false)
-
+
/* check the filesize and display file content */
// close the file, get the size and content of the file.
var_dump( fclose($file_handle) );
diff --git a/ext/standard/tests/file/get_current_user.phpt b/ext/standard/tests/file/get_current_user.phpt
index b67195b629..f23d2fabef 100644
--- a/ext/standard/tests/file/get_current_user.phpt
+++ b/ext/standard/tests/file/get_current_user.phpt
@@ -8,7 +8,7 @@ var_dump(get_current_user());
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: get_current_user() expects exactly 0 parameters, 1 given in %s on line %d
NULL
string(%d) %s
diff --git a/ext/standard/tests/file/include_streams.phpt b/ext/standard/tests/file/include_streams.phpt
index 05b16238cd..d7b4aa57f5 100644
--- a/ext/standard/tests/file/include_streams.phpt
+++ b/ext/standard/tests/file/include_streams.phpt
@@ -20,7 +20,7 @@ class mystream
function url_stat($path, $flags) {
return array();
}
-
+
function stream_stat() {
return array();
}
@@ -43,7 +43,7 @@ class mystream
$this->position = strlen($GLOBALS[$this->varname]);
else
$this->position = 0;
-
+
return true;
}
diff --git a/ext/standard/tests/file/include_userstream_001.phpt b/ext/standard/tests/file/include_userstream_001.phpt
index d805afd204..d769a4f3b2 100644
--- a/ext/standard/tests/file/include_userstream_001.phpt
+++ b/ext/standard/tests/file/include_userstream_001.phpt
@@ -15,7 +15,7 @@ class test {
$this->pos = strlen($this->data);
else
$this->po = 0;
-
+
return true;
}
diff --git a/ext/standard/tests/file/include_userstream_002.phpt b/ext/standard/tests/file/include_userstream_002.phpt
index 4841d39c51..cc1887c446 100644
--- a/ext/standard/tests/file/include_userstream_002.phpt
+++ b/ext/standard/tests/file/include_userstream_002.phpt
@@ -20,7 +20,7 @@ class test {
$this->pos = strlen($this->data);
else
$this->po = 0;
-
+
return true;
}
diff --git a/ext/standard/tests/file/include_userstream_003.phpt b/ext/standard/tests/file/include_userstream_003.phpt
index 2b439cfa25..470982d9b8 100644
--- a/ext/standard/tests/file/include_userstream_003.phpt
+++ b/ext/standard/tests/file/include_userstream_003.phpt
@@ -20,7 +20,7 @@ class test {
$this->pos = strlen($this->data);
else
$this->po = 0;
-
+
return true;
}
diff --git a/ext/standard/tests/file/is_dir_variation2.phpt b/ext/standard/tests/file/is_dir_variation2.phpt
index 65efeab9a1..cfa140ad52 100644
--- a/ext/standard/tests/file/is_dir_variation2.phpt
+++ b/ext/standard/tests/file/is_dir_variation2.phpt
@@ -24,14 +24,14 @@ mkdir($dirname);
var_dump( is_dir($dirname) );
clearstatcache();
-echo "-- With symlink --\n";
+echo "-- With symlink --\n";
symlink($file_path."/is_dir_variation2", $file_path."/is_dir_variation2_symlink");
var_dump( is_dir($file_path."/is_dir_variation2_symlink") ); //is_dir() resolves symlinks
clearstatcache();
echo "-- With hardlink --";
link($file_path."/is_dir_variation2", $file_path."/is_dir_variation2_link"); //Not permitted to create hard-link to a dir
-var_dump( is_dir($file_path."/is_dir_variation2_link") );
+var_dump( is_dir($file_path."/is_dir_variation2_link") );
clearstatcache();
echo "\n*** Testing is_dir() with file and links to a file ***\n";
@@ -41,7 +41,7 @@ fclose( fopen($filename, "w") );
var_dump( is_dir($filename) );
clearstatcache();
-echo "-- With symlink --\n";
+echo "-- With symlink --\n";
symlink($file_path."/is_dir_variation2.tmp", $file_path."/is_dir_variation2_symlink.tmp");
var_dump( is_dir($file_path."/is_dir_variation2_symlink.tmp") );
clearstatcache();
diff --git a/ext/standard/tests/file/is_executable_variation1.phpt b/ext/standard/tests/file/is_executable_variation1.phpt
index 231f1bff3f..9f49437311 100644
--- a/ext/standard/tests/file/is_executable_variation1.phpt
+++ b/ext/standard/tests/file/is_executable_variation1.phpt
@@ -35,13 +35,13 @@ $files_arr = array(
/* Testing file with double slashes */
"$file_path/is_executable_variation1//bar.tmp",
"$file_path/is_executable_variation1/*.tmp",
- "$file_path/is_executable_variation1/b*.tmp",
+ "$file_path/is_executable_variation1/b*.tmp",
/* Testing Binary safe */
"$file_path/is_executable_variation1".chr(0)."bar.temp",
"$file_path".chr(0)."is_executable_variation1/bar.temp",
"$file_path/is_executable_variation1x000/",
-
+
/* Testing directories */
".", // current directory, exp: bool(true)
"$file_path/is_executable_variation1" // temp directory, exp: bool(true)
diff --git a/ext/standard/tests/file/is_file_variation2.phpt b/ext/standard/tests/file/is_file_variation2.phpt
index 7ab44da7ff..6a871468d3 100644
--- a/ext/standard/tests/file/is_file_variation2.phpt
+++ b/ext/standard/tests/file/is_file_variation2.phpt
@@ -12,7 +12,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
Returns TRUE if the filename exists and is a regular file
*/
-/* Creating soft and hard links to a file and applying is_file() on links */
+/* Creating soft and hard links to a file and applying is_file() on links */
$file_path = dirname(__FILE__);
fclose( fopen($file_path."/is_file_variation2.tmp", "w") );
diff --git a/ext/standard/tests/file/is_file_variation3.phpt b/ext/standard/tests/file/is_file_variation3.phpt
index 2a13e46779..6a6d76f793 100644
--- a/ext/standard/tests/file/is_file_variation3.phpt
+++ b/ext/standard/tests/file/is_file_variation3.phpt
@@ -22,12 +22,12 @@ $filenames = array(
FALSE,
NULL,
$file_handle,
-
+
/* scalars */
1234,
0
);
-
+
/* loop through to test each element the above array */
foreach( $filenames as $filename ) {
var_dump( is_file($filename) );
diff --git a/ext/standard/tests/file/is_file_variation4.phpt b/ext/standard/tests/file/is_file_variation4.phpt
index b927446b7c..505331d2c9 100644
--- a/ext/standard/tests/file/is_file_variation4.phpt
+++ b/ext/standard/tests/file/is_file_variation4.phpt
@@ -27,7 +27,7 @@ $files_arr = array(
"/is_file_variation4//is_file_variation4.tmp",
"//is_file_variation4//is_file_variation4.tmp",
"/is_file_variation4/*.tmp",
- "is_file_variation4/is_file*.tmp",
+ "is_file_variation4/is_file*.tmp",
/* Testing Binary safe */
"/is_file_variation4/is_file_variation4.tmp".chr(0),
diff --git a/ext/standard/tests/file/is_readable_variation1.phpt b/ext/standard/tests/file/is_readable_variation1.phpt
index 5becac00a2..f1b8af55d6 100644
--- a/ext/standard/tests/file/is_readable_variation1.phpt
+++ b/ext/standard/tests/file/is_readable_variation1.phpt
@@ -44,13 +44,13 @@ $files_arr = array(
"$file_path/is_readable_variation1//bar.tmp",
"$file_path//is_readable_variation1//bar.tmp",
"$file_path/is_readable_variation1/*.tmp",
- "$file_path/is_readable_variation1/b*.tmp",
+ "$file_path/is_readable_variation1/b*.tmp",
/* Testing Binary safe */
"$file_path/is_readable_variation1".chr(0)."bar.tmp",
"$file_path".chr(0)."is_readable_variation1/bar.tmp",
"$file_path".chr(0)."is_readable_variation1/bar.tmp",
-
+
/* Testing directories */
".", // current directory, exp: bool(true)
"$file_path/is_readable_variation1" // temp directory, exp: bool(true)
diff --git a/ext/standard/tests/file/is_writable_variation1.phpt b/ext/standard/tests/file/is_writable_variation1.phpt
index 718c7fb8e9..ff717a5c2f 100644
--- a/ext/standard/tests/file/is_writable_variation1.phpt
+++ b/ext/standard/tests/file/is_writable_variation1.phpt
@@ -46,13 +46,13 @@ $files_arr = array(
"$file_path/is_writable_variation1//bar.tmp",
"$file_path//is_writable_variation1//bar.tmp",
"$file_path/is_writable_variation1/*.tmp",
- "$file_path/is_writable_variation1/b*.tmp",
+ "$file_path/is_writable_variation1/b*.tmp",
/* Testing Binary safe */
"$file_path/is_writable_variation1".chr(0)."bar.tmp",
"$file_path".chr(0)."is_writable_variation1/bar.tmp",
"$file_path".chr(0)."is_writable_variation1/bar.tmp",
-
+
/* Testing directories */
".", // current directory, exp: bool(true)
"$file_path/is_writable_variation1" // temp directory, exp: bool(true)
diff --git a/ext/standard/tests/file/lchown_basic.phpt b/ext/standard/tests/file/lchown_basic.phpt
index 57476131c7..1d3604e329 100644
--- a/ext/standard/tests/file/lchown_basic.phpt
+++ b/ext/standard/tests/file/lchown_basic.phpt
@@ -10,7 +10,7 @@ if (!function_exists("posix_getuid")) die("skip no posix_getuid()");
/* Prototype : bool lchown (string filename, mixed user)
* Description: Change file owner of a symlink
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing lchown() : basic functionality ***\n";
diff --git a/ext/standard/tests/file/lchown_error.phpt b/ext/standard/tests/file/lchown_error.phpt
index 8632495b39..1e1ebf3e94 100644
--- a/ext/standard/tests/file/lchown_error.phpt
+++ b/ext/standard/tests/file/lchown_error.phpt
@@ -19,7 +19,7 @@ unlink($filename);
/* Prototype : bool lchown (string filename, mixed user)
* Description: Change file owner of a symlink
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing lchown() : error functionality ***\n";
diff --git a/ext/standard/tests/file/lstat_stat_error.phpt b/ext/standard/tests/file/lstat_stat_error.phpt
index 385167fe32..8f290a32e3 100644
--- a/ext/standard/tests/file/lstat_stat_error.phpt
+++ b/ext/standard/tests/file/lstat_stat_error.phpt
@@ -16,7 +16,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
*/
echo "*** Testing lstat() for error conditions ***\n";
-$file_path = dirname(__FILE__);
+$file_path = dirname(__FILE__);
var_dump( lstat() ); // args < expected
var_dump( lstat(__FILE__, 2) ); // args > expected
var_dump( lstat("$file_path/temp.tmp") ); // non existing file
diff --git a/ext/standard/tests/file/lstat_stat_variation12.phpt b/ext/standard/tests/file/lstat_stat_variation12.phpt
index 3051210001..26c0e578b1 100644
--- a/ext/standard/tests/file/lstat_stat_variation12.phpt
+++ b/ext/standard/tests/file/lstat_stat_variation12.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test lstat() and stat() functions: usage variations - effects of is_link()
+Test lstat() and stat() functions: usage variations - effects of is_link()
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
diff --git a/ext/standard/tests/file/lstat_stat_variation19.phpt b/ext/standard/tests/file/lstat_stat_variation19.phpt
index c481575ce9..fedf0bd154 100644
--- a/ext/standard/tests/file/lstat_stat_variation19.phpt
+++ b/ext/standard/tests/file/lstat_stat_variation19.phpt
@@ -32,7 +32,7 @@ echo "*** Testing stat() with filename & directory name stored inside an array *
// array with default numeric index
$names = array(
- "$file_path/lstat_stat_variation19.tmp",
+ "$file_path/lstat_stat_variation19.tmp",
"$file_path/lstat_stat_variation19"
);
diff --git a/ext/standard/tests/file/lstat_stat_variation2.phpt b/ext/standard/tests/file/lstat_stat_variation2.phpt
index 9f9e75ba2b..8c4a499510 100644
--- a/ext/standard/tests/file/lstat_stat_variation2.phpt
+++ b/ext/standard/tests/file/lstat_stat_variation2.phpt
@@ -37,7 +37,7 @@ var_dump( compare_self_stat($old_stat) );
var_dump( compare_self_stat($new_stat) );
// compare the two stats - all except ctime
-$keys_to_compare = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12,
+$keys_to_compare = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12,
"dev", "ino", "mode", "nlink", "uid", "gid",
"rdev", "size", "atime", "mtime", "blksize", "blocks");
var_dump( compare_stats($old_stat, $new_stat, $keys_to_compare) );
diff --git a/ext/standard/tests/file/lstat_stat_variation3.phpt b/ext/standard/tests/file/lstat_stat_variation3.phpt
index e7bae3abb4..43f8bf6187 100644
--- a/ext/standard/tests/file/lstat_stat_variation3.phpt
+++ b/ext/standard/tests/file/lstat_stat_variation3.phpt
@@ -41,7 +41,7 @@ var_dump( compare_self_stat($old_stat) );
var_dump( compare_self_stat($new_stat) );
// compare the two stats - all except ctime
-$keys_to_compare = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12,
+$keys_to_compare = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12,
"dev", "ino", "mode", "nlink", "uid", "gid",
"rdev", "size", "atime", "mtime", "blksize", "blocks");
var_dump( compare_stats($old_stat, $new_stat, $keys_to_compare) );
diff --git a/ext/standard/tests/file/mkdir-001.phpt b/ext/standard/tests/file/mkdir-001.phpt
index 23823b2ae7..bad32c37ab 100644
--- a/ext/standard/tests/file/mkdir-001.phpt
+++ b/ext/standard/tests/file/mkdir-001.phpt
@@ -20,7 +20,7 @@ var_dump(rmdir(dirname(__FILE__)."/mkdir-001"));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
bool(true)
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/mkdir-002.phpt b/ext/standard/tests/file/mkdir-002.phpt
index d149098df0..92c05e941d 100644
--- a/ext/standard/tests/file/mkdir-002.phpt
+++ b/ext/standard/tests/file/mkdir-002.phpt
@@ -30,7 +30,7 @@ var_dump(rmdir(dirname(__FILE__)."/mkdir-002"));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
bool(true)
bool(true)
string(%d) "%s
diff --git a/ext/standard/tests/file/mkdir-003.phpt b/ext/standard/tests/file/mkdir-003.phpt
index fe14bef23d..b3141c5970 100644
--- a/ext/standard/tests/file/mkdir-003.phpt
+++ b/ext/standard/tests/file/mkdir-003.phpt
@@ -17,7 +17,7 @@ var_dump(rmdir(dirname(__FILE__)."/mkdir-003"));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
bool(true)
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/mkdir-004.phpt b/ext/standard/tests/file/mkdir-004.phpt
index 51e4e55617..46db531082 100644
--- a/ext/standard/tests/file/mkdir-004.phpt
+++ b/ext/standard/tests/file/mkdir-004.phpt
@@ -17,7 +17,7 @@ var_dump(rmdir("/testdir"));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
bool(true)
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/mkdir-005.phpt b/ext/standard/tests/file/mkdir-005.phpt
index 161f8d0630..621c9922e5 100644
--- a/ext/standard/tests/file/mkdir-005.phpt
+++ b/ext/standard/tests/file/mkdir-005.phpt
@@ -18,7 +18,7 @@ var_dump(rmdir("./testdir"));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
bool(true)
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/mkdir_variation1-win32.phpt b/ext/standard/tests/file/mkdir_variation1-win32.phpt
index 17f54926cb..ea02b62fab 100644
--- a/ext/standard/tests/file/mkdir_variation1-win32.phpt
+++ b/ext/standard/tests/file/mkdir_variation1-win32.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : bool mkdir(string pathname [, int mode [, bool recursive [, resource context]]])
* Description: Create a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mkdir() : usage variation ***\n";
@@ -71,7 +71,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// other
// php.net bug outputs message File Exists
'single space' => ' ',
diff --git a/ext/standard/tests/file/mkdir_variation1.phpt b/ext/standard/tests/file/mkdir_variation1.phpt
index b5254034be..93e7f28d32 100644
--- a/ext/standard/tests/file/mkdir_variation1.phpt
+++ b/ext/standard/tests/file/mkdir_variation1.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : bool mkdir(string pathname [, int mode [, bool recursive [, resource context]]])
* Description: Create a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mkdir() : usage variation ***\n";
@@ -71,7 +71,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// other
'single space' => ' ',
);
diff --git a/ext/standard/tests/file/mkdir_variation2.phpt b/ext/standard/tests/file/mkdir_variation2.phpt
index 0b461d2635..220820532f 100644
--- a/ext/standard/tests/file/mkdir_variation2.phpt
+++ b/ext/standard/tests/file/mkdir_variation2.phpt
@@ -9,7 +9,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : bool mkdir(string pathname [, int mode [, bool recursive [, resource context]]])
* Description: Create a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mkdir() : usage variation ***\n";
diff --git a/ext/standard/tests/file/mkdir_variation3.phpt b/ext/standard/tests/file/mkdir_variation3.phpt
index 1c0baa09f7..cf2911273a 100644
--- a/ext/standard/tests/file/mkdir_variation3.phpt
+++ b/ext/standard/tests/file/mkdir_variation3.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : bool mkdir(string pathname [, int mode [, bool recursive [, resource context]]])
* Description: Create a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mkdir() : usage variation ***\n";
diff --git a/ext/standard/tests/file/mkdir_variation4.phpt b/ext/standard/tests/file/mkdir_variation4.phpt
index 862dec8c4e..acf7e27eac 100644
--- a/ext/standard/tests/file/mkdir_variation4.phpt
+++ b/ext/standard/tests/file/mkdir_variation4.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : bool mkdir(string pathname [, int mode [, bool recursive [, resource context]]])
* Description: Create a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mkdir() : usage variation ***\n";
@@ -104,7 +104,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// non stream context resource
'file resource' => $fileRes,
);
diff --git a/ext/standard/tests/file/mkdir_variation5-win32.phpt b/ext/standard/tests/file/mkdir_variation5-win32.phpt
index c7ebd518da..c6bdc1575a 100644
--- a/ext/standard/tests/file/mkdir_variation5-win32.phpt
+++ b/ext/standard/tests/file/mkdir_variation5-win32.phpt
@@ -6,13 +6,13 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
<?php
if(substr(PHP_OS, 0, 3) != "WIN")
die("skip Only valid for Windows");
-?>
+?>
--FILE--
<?php
/* Prototype : bool mkdir(string pathname [, int mode [, bool recursive [, resource context]]])
* Description: Create a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mkdir() : variation ***\n";
@@ -29,11 +29,11 @@ $dirs = array(
$workDir.'\\'.$subDir,
'.\\'.$workDir.'\\'.$subDir,
$workDir.'\\..\\'.$workDir.'\\'.$subDir,
-
+
// relative bad path
$workDir.'\\..\\BADDIR\\'.$subDir,
'BADDIR\\'.$subDir,
-
+
//absolute
$cwd.'\\'.$workDir.'\\'.$subDir,
$cwd.'\\.\\'.$workDir.'\\'.$subDir,
@@ -41,23 +41,23 @@ $dirs = array(
//absolute bad path
$cwd.'\\BADDIR\\'.$subDir,
-
+
//trailing separators
$workDir.'\\'.$subDir.'\\',
$cwd.'\\'.$workDir.'\\'.$subDir.'\\',
-
+
// multiple separators
$workDir.'\\\\'.$subDir,
$cwd.'\\\\'.$workDir.'\\\\'.$subDir,
-
+
// Unixified Dir
$unixifiedDir,
-
+
);
-
+
foreach($dirs as $dir) {
- echo "-- creating $dir --\n";
+ echo "-- creating $dir --\n";
$res = mkdir($dir);
if ($res === true) {
echo "Directory created\n";
diff --git a/ext/standard/tests/file/mkdir_variation5.phpt b/ext/standard/tests/file/mkdir_variation5.phpt
index 8a02fe1d67..d7646a2a4f 100644
--- a/ext/standard/tests/file/mkdir_variation5.phpt
+++ b/ext/standard/tests/file/mkdir_variation5.phpt
@@ -6,13 +6,13 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
<?php
if(substr(PHP_OS, 0, 3) == "WIN")
die("skip Not valid for Windows");
-?>
+?>
--FILE--
<?php
/* Prototype : bool mkdir(string pathname [, int mode [, bool recursive [, resource context]]])
* Description: Create a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mkdir() : variation ***\n";
@@ -27,11 +27,11 @@ $dirs = array(
$workDir.'/'.$subDir,
'./'.$workDir.'/'.$subDir,
$workDir.'/../'.$workDir.'/'.$subDir,
-
+
// relative bad path
$workDir.'/../BADDIR/'.$subDir,
'BADDIR/'.$subDir,
-
+
//absolute
$cwd.'/'.$workDir.'/'.$subDir,
$cwd.'/./'.$workDir.'/'.$subDir,
@@ -39,20 +39,20 @@ $dirs = array(
//absolute bad path
$cwd.'/BADDIR/'.$subDir,
-
+
//trailing separators
$workDir.'/'.$subDir.'/',
$cwd.'/'.$workDir.'/'.$subDir.'/',
-
+
// multiple separators
$workDir.'//'.$subDir,
$cwd.'//'.$workDir.'//'.$subDir,
-
+
);
-
+
foreach($dirs as $dir) {
- echo "-- creating $dir --\n";
+ echo "-- creating $dir --\n";
$res = mkdir($dir);
if ($res === true) {
echo "Directory created\n";
diff --git a/ext/standard/tests/file/parse_ini_file.phpt b/ext/standard/tests/file/parse_ini_file.phpt
index 439fcaf301..88633bd451 100644
--- a/ext/standard/tests/file/parse_ini_file.phpt
+++ b/ext/standard/tests/file/parse_ini_file.phpt
@@ -71,7 +71,7 @@ Non_alpha12 = \
;Non_alpha17 = ~
;Non_alpha18 = !
;Non_alpha19 = $
-;Non_alpha20 = ()
+;Non_alpha20 = ()
Non_alpha1_quotes = ";"
Non_alpha2_quotes = "+"
diff --git a/ext/standard/tests/file/parse_ini_file_error.phpt b/ext/standard/tests/file/parse_ini_file_error.phpt
index 14990b2606..49636b1bb1 100644
--- a/ext/standard/tests/file/parse_ini_file_error.phpt
+++ b/ext/standard/tests/file/parse_ini_file_error.phpt
@@ -5,7 +5,7 @@ Test parse_ini_file() function : error conditions
/* Prototype : proto array parse_ini_file(string filename [, bool process_sections])
* Description: Parse configuration file
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing parse_ini_file() : error conditions ***\n";
@@ -23,7 +23,7 @@ var_dump( parse_ini_file($filename, $process_sections, $extra_arg) );
echo "\n-- Testing parse_ini_file() function with a non-existent file --\n";
$filename = __FILE__ . 'invalidfilename';
-var_dump( parse_ini_file($filename, $process_sections) );
+var_dump( parse_ini_file($filename, $process_sections) );
echo "Done";
?>
diff --git a/ext/standard/tests/file/parse_ini_file_variation1.phpt b/ext/standard/tests/file/parse_ini_file_variation1.phpt
index a24bc1c051..4e76d5133d 100644
--- a/ext/standard/tests/file/parse_ini_file_variation1.phpt
+++ b/ext/standard/tests/file/parse_ini_file_variation1.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : array parse_ini_file(string filename [, bool process_sections])
* Description: Parse configuration file
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing parse_ini_file() : variation ***\n";
diff --git a/ext/standard/tests/file/parse_ini_file_variation2.phpt b/ext/standard/tests/file/parse_ini_file_variation2.phpt
index 20ad6bb067..09e18d8c0c 100644
--- a/ext/standard/tests/file/parse_ini_file_variation2.phpt
+++ b/ext/standard/tests/file/parse_ini_file_variation2.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : array parse_ini_file(string filename [, bool process_sections])
* Description: Parse configuration file
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing parse_ini_file() : variation ***\n";
diff --git a/ext/standard/tests/file/parse_ini_file_variation3.phpt b/ext/standard/tests/file/parse_ini_file_variation3.phpt
index 43b0274ea9..c0a3bd777d 100644
--- a/ext/standard/tests/file/parse_ini_file_variation3.phpt
+++ b/ext/standard/tests/file/parse_ini_file_variation3.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : array parse_ini_file(string filename [, bool process_sections])
* Description: Parse configuration file
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing parse_ini_file() : variation ***\n";
@@ -32,7 +32,7 @@ foreach($newdirs as $newdir) {
set_include_path($newIncludePath);
$path = get_include_path();
echo "New include path is : " . $path . "\n";
-
+
$output_file = $dir2."/".$iniFile;
$iniContent = <<<FILE
error_reporting = E_ALL
diff --git a/ext/standard/tests/file/parse_ini_file_variation4.phpt b/ext/standard/tests/file/parse_ini_file_variation4.phpt
index 66cab3bedc..5af6631804 100644
--- a/ext/standard/tests/file/parse_ini_file_variation4.phpt
+++ b/ext/standard/tests/file/parse_ini_file_variation4.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : array parse_ini_file(string filename [, bool process_sections])
* Description: Parse configuration file
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing parse_ini_file() : usage variation ***\n";
diff --git a/ext/standard/tests/file/parse_ini_file_variation5.phpt b/ext/standard/tests/file/parse_ini_file_variation5.phpt
index 52b5d02764..2dbff79701 100644
--- a/ext/standard/tests/file/parse_ini_file_variation5.phpt
+++ b/ext/standard/tests/file/parse_ini_file_variation5.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : array parse_ini_file(string filename [, bool process_sections])
* Description: Parse configuration file
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing parse_ini_file() : usage variation ***\n";
diff --git a/ext/standard/tests/file/parse_ini_file_variation6-win32-mb.phpt b/ext/standard/tests/file/parse_ini_file_variation6-win32-mb.phpt
index 4e5d4347e4..b7833fa2e8 100644
--- a/ext/standard/tests/file/parse_ini_file_variation6-win32-mb.phpt
+++ b/ext/standard/tests/file/parse_ini_file_variation6-win32-mb.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : array parse_ini_file(string filename [, bool process_sections])
* Description: Parse configuration file
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing parse_ini_file() : variation ***\n";
@@ -35,14 +35,14 @@ $allDirs = array(
"$absSubDir\\..\\..\\".$mainDir."\\.\\".$subDir,
"$absSubDir\\..\\\\\\".$subDir."\\\\..\\\\..\\".$subDir,
"$absSubDir\\BADDIR",
-
+
// relative paths
$mainDir."\\".$subDir,
$mainDir."\\\\".$subDir,
$mainDir."\\\\\\".$subDir,
".\\".$mainDir."\\..\\".$mainDir."\\".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
// unixifed path
$unixifiedDir,
);
diff --git a/ext/standard/tests/file/parse_ini_file_variation6-win32.phpt b/ext/standard/tests/file/parse_ini_file_variation6-win32.phpt
index 6dfbee990a..8b5f1a5b6e 100644
--- a/ext/standard/tests/file/parse_ini_file_variation6-win32.phpt
+++ b/ext/standard/tests/file/parse_ini_file_variation6-win32.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : array parse_ini_file(string filename [, bool process_sections])
* Description: Parse configuration file
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing parse_ini_file() : variation ***\n";
@@ -35,14 +35,14 @@ $allDirs = array(
"$absSubDir\\..\\..\\".$mainDir."\\.\\".$subDir,
"$absSubDir\\..\\\\\\".$subDir."\\\\..\\\\..\\".$subDir,
"$absSubDir\\BADDIR",
-
+
// relative paths
$mainDir."\\".$subDir,
$mainDir."\\\\".$subDir,
$mainDir."\\\\\\".$subDir,
".\\".$mainDir."\\..\\".$mainDir."\\".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
// unixifed path
$unixifiedDir,
);
diff --git a/ext/standard/tests/file/parse_ini_file_variation6.phpt b/ext/standard/tests/file/parse_ini_file_variation6.phpt
index e9844e905a..4726ddafb5 100644
--- a/ext/standard/tests/file/parse_ini_file_variation6.phpt
+++ b/ext/standard/tests/file/parse_ini_file_variation6.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : array parse_ini_file(string filename [, bool process_sections])
* Description: Parse configuration file
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing parse_ini_file() : variation ***\n";
@@ -29,14 +29,14 @@ $allDirs = array(
"$absSubDir/../../".$mainDir."/./".$subDir,
"$absSubDir/..///".$subDir."//..//../".$subDir,
"$absSubDir/BADDIR",
-
+
// relative paths
$mainDir."/".$subDir,
$mainDir."//".$subDir,
$mainDir."///".$subDir,
"./".$mainDir."/../".$mainDir."/".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
);
$filename = 'ParseIniFileVar6.ini';
diff --git a/ext/standard/tests/file/pathinfo_basic.phpt b/ext/standard/tests/file/pathinfo_basic.phpt
index 0ab4776e02..48d01dd66c 100644
--- a/ext/standard/tests/file/pathinfo_basic.phpt
+++ b/ext/standard/tests/file/pathinfo_basic.phpt
@@ -45,7 +45,7 @@ $paths = array (
/* Testing with homedir notation */
"~/PHP/php5.2.0/",
-
+
/* Testing normal directory notation */
"/home/example/test/",
"http://httpd.apache.org/core.html#acceptpathinfo"
diff --git a/ext/standard/tests/file/pathinfo_basic2-win32.phpt b/ext/standard/tests/file/pathinfo_basic2-win32.phpt
index 4c2fd2cacf..5a88b648d3 100644
--- a/ext/standard/tests/file/pathinfo_basic2-win32.phpt
+++ b/ext/standard/tests/file/pathinfo_basic2-win32.phpt
@@ -31,7 +31,7 @@ $paths = array (
'..',
'...',
'/usr/lib/.../afile'
-
+
);
$counter = 1;
diff --git a/ext/standard/tests/file/pathinfo_basic2.phpt b/ext/standard/tests/file/pathinfo_basic2.phpt
index 4087c6d445..0df852eb18 100644
--- a/ext/standard/tests/file/pathinfo_basic2.phpt
+++ b/ext/standard/tests/file/pathinfo_basic2.phpt
@@ -31,7 +31,7 @@ $paths = array (
'..',
'...',
'/usr/lib/.../afile'
-
+
);
$counter = 1;
diff --git a/ext/standard/tests/file/pathinfo_variation1.phpt b/ext/standard/tests/file/pathinfo_variation1.phpt
index ff4c1eb818..75ad224de8 100644
--- a/ext/standard/tests/file/pathinfo_variation1.phpt
+++ b/ext/standard/tests/file/pathinfo_variation1.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : array pathinfo(string path[, int options])
* Description: Returns information about a certain string
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing pathinfo() : usage variation ***\n";
diff --git a/ext/standard/tests/file/pathinfo_variation2.phpt b/ext/standard/tests/file/pathinfo_variation2.phpt
index 84c8243369..38d05b50b6 100644
--- a/ext/standard/tests/file/pathinfo_variation2.phpt
+++ b/ext/standard/tests/file/pathinfo_variation2.phpt
@@ -9,7 +9,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : array pathinfo(string path[, int options])
* Description: Returns information about a certain string
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing pathinfo() : usage variation ***\n";
diff --git a/ext/standard/tests/file/pathinfo_variation3.phpt b/ext/standard/tests/file/pathinfo_variation3.phpt
index 333aa56838..01fb0a7377 100644
--- a/ext/standard/tests/file/pathinfo_variation3.phpt
+++ b/ext/standard/tests/file/pathinfo_variation3.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : array pathinfo(string path[, int options])
* Description: Returns information about a certain string
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing pathinfo() : usage variation ***\n";
diff --git a/ext/standard/tests/file/pathinfo_variaton.phpt b/ext/standard/tests/file/pathinfo_variaton.phpt
index d6c6c774b4..421f378e01 100644
--- a/ext/standard/tests/file/pathinfo_variaton.phpt
+++ b/ext/standard/tests/file/pathinfo_variaton.phpt
@@ -57,7 +57,7 @@ $paths = array (
/* pathname as NULL */
NULL,
null,
-
+
/* filename as resource */
$fp,
diff --git a/ext/standard/tests/file/pclose_variation1.phpt b/ext/standard/tests/file/pclose_variation1.phpt
index 2a3251bd36..3fdba4cf12 100644
--- a/ext/standard/tests/file/pclose_variation1.phpt
+++ b/ext/standard/tests/file/pclose_variation1.phpt
@@ -5,9 +5,9 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
--FILE--
<?php
/* Prototype : int pclose(resource fp)
- * Description: Close a file pointer opened by popen()
+ * Description: Close a file pointer opened by popen()
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing pclose() : usage variation ***\n";
diff --git a/ext/standard/tests/file/php_fd_wrapper_04.phpt b/ext/standard/tests/file/php_fd_wrapper_04.phpt
index 51f4d9f171..1c5defdaef 100644
--- a/ext/standard/tests/file/php_fd_wrapper_04.phpt
+++ b/ext/standard/tests/file/php_fd_wrapper_04.phpt
@@ -1,7 +1,7 @@
--TEST--
php://fd wrapper: invalid file descriptor
--SKIPIF--
-<?php include('skipif.inc');
+<?php include('skipif.inc');
if(substr(PHP_OS, 0, 3) == "WIN")
die("skip Not for Windows");
diff --git a/ext/standard/tests/file/proc_open01.phpt b/ext/standard/tests/file/proc_open01.phpt
index 28e68a2477..66c601fb91 100644
--- a/ext/standard/tests/file/proc_open01.phpt
+++ b/ext/standard/tests/file/proc_open01.phpt
@@ -4,10 +4,10 @@ proc_open() regression test 1 (proc_open() leak)
<?php
$pipes = array(1, 2, 3);
$orig_pipes = $pipes;
-$php = getenv('TEST_PHP_EXECUTABLE');
+$php = getenv('TEST_PHP_EXECUTABLE');
if ($php === false) {
die("no php executable defined");
-}
+}
$proc = proc_open(
"$php -n",
array(0 => array('pipe', 'r'), 1 => array('pipe', 'w')),
@@ -24,7 +24,7 @@ fflush($pipes[0]);
fclose($pipes[0]);
$cnt = '';
$n=0;
-for ($left = strlen($test_string); $left > 0;) {
+for ($left = strlen($test_string); $left > 0;) {
if (++$n >1000) {
print "terminated after 1000 iterations\n";
break;
diff --git a/ext/standard/tests/file/readfile_variation10-win32.phpt b/ext/standard/tests/file/readfile_variation10-win32.phpt
index 61f6aba7a5..24a5af8ad8 100644
--- a/ext/standard/tests/file/readfile_variation10-win32.phpt
+++ b/ext/standard/tests/file/readfile_variation10-win32.phpt
@@ -12,14 +12,14 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
* Description: Output a file or a URL
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing readfile() : variation ***\n";
-/* An array of files */
+/* An array of files */
$names_arr = array(
- /* Invalid args */
+ /* Invalid args */
"-1" => -1,
"TRUE" => TRUE,
"FALSE" => FALSE,
@@ -30,7 +30,7 @@ $names_arr = array(
"array()" => array(),
/* prefix with path separator of a non existing directory*/
- "/no/such/file/dir" => "/no/such/file/dir",
+ "/no/such/file/dir" => "/no/such/file/dir",
"php/php"=> "php/php"
);
diff --git a/ext/standard/tests/file/readfile_variation4.phpt b/ext/standard/tests/file/readfile_variation4.phpt
index 798a065073..48a3c3084e 100644
--- a/ext/standard/tests/file/readfile_variation4.phpt
+++ b/ext/standard/tests/file/readfile_variation4.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
* Description: Output a file or a URL
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing readfile() : usage variation ***\n";
@@ -107,7 +107,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// file resource
'file resource' => $fileRes,
);
diff --git a/ext/standard/tests/file/readfile_variation5.phpt b/ext/standard/tests/file/readfile_variation5.phpt
index 8c95ce8486..7afe9ba71b 100644
--- a/ext/standard/tests/file/readfile_variation5.phpt
+++ b/ext/standard/tests/file/readfile_variation5.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
* Description: Output a file or a URL
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing readfile() : usage variation ***\n";
diff --git a/ext/standard/tests/file/readfile_variation6.phpt b/ext/standard/tests/file/readfile_variation6.phpt
index 02e708220c..1a87ac785c 100644
--- a/ext/standard/tests/file/readfile_variation6.phpt
+++ b/ext/standard/tests/file/readfile_variation6.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
* Description: Output a file or a URL
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
require_once('fopen_include_path.inc');
@@ -39,7 +39,7 @@ function runtest() {
fclose($h);
readfile($filename, true);
echo "\n";
- unlink($secondFile);
+ unlink($secondFile);
}
?>
diff --git a/ext/standard/tests/file/readfile_variation7.phpt b/ext/standard/tests/file/readfile_variation7.phpt
index d26f52f492..9f6b145ad0 100644
--- a/ext/standard/tests/file/readfile_variation7.phpt
+++ b/ext/standard/tests/file/readfile_variation7.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
* Description: Output a file or a URL
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
require_once('fopen_include_path.inc');
@@ -39,7 +39,7 @@ function runtest() {
fclose($h);
readfile($filename, true);
echo "\n";
- unlink($scriptLocFile);
+ unlink($scriptLocFile);
}
?>
diff --git a/ext/standard/tests/file/readfile_variation8-win32-mb.phpt b/ext/standard/tests/file/readfile_variation8-win32-mb.phpt
index e53f362367..1eecda4619 100644
--- a/ext/standard/tests/file/readfile_variation8-win32-mb.phpt
+++ b/ext/standard/tests/file/readfile_variation8-win32-mb.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
* Description: Output a file or a URL
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing readfile() : variation ***\n";
@@ -44,14 +44,14 @@ $allDirs = array(
"$absSubDir\\..\\..\\".$mainDir."\\.\\".$subDir,
"$absSubDir\\..\\\\\\".$subDir."\\\\..\\\\..\\".$subDir,
"$absSubDir\\BADDIR",
-
+
// relative paths
$mainDir."\\".$subDir,
$mainDir."\\\\".$subDir,
$mainDir."\\\\\\".$subDir,
".\\".$mainDir."\\..\\".$mainDir."\\".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
// unixifed path
$unixifiedDir,
);
diff --git a/ext/standard/tests/file/readfile_variation8-win32.phpt b/ext/standard/tests/file/readfile_variation8-win32.phpt
index a66af5d25b..c4672041b9 100644
--- a/ext/standard/tests/file/readfile_variation8-win32.phpt
+++ b/ext/standard/tests/file/readfile_variation8-win32.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
* Description: Output a file or a URL
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing readfile() : variation ***\n";
@@ -44,14 +44,14 @@ $allDirs = array(
"$absSubDir\\..\\..\\".$mainDir."\\.\\".$subDir,
"$absSubDir\\..\\\\\\".$subDir."\\\\..\\\\..\\".$subDir,
"$absSubDir\\BADDIR",
-
+
// relative paths
$mainDir."\\".$subDir,
$mainDir."\\\\".$subDir,
$mainDir."\\\\\\".$subDir,
".\\".$mainDir."\\..\\".$mainDir."\\".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
// unixifed path
$unixifiedDir,
);
diff --git a/ext/standard/tests/file/readfile_variation9.phpt b/ext/standard/tests/file/readfile_variation9.phpt
index c802f4018a..dca4d4a794 100644
--- a/ext/standard/tests/file/readfile_variation9.phpt
+++ b/ext/standard/tests/file/readfile_variation9.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
* Description: Output a file or a URL
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing readfile() : variation ***\n";
@@ -38,14 +38,14 @@ $allDirs = array(
"$absSubDir/../../".$mainDir."/./".$subDir,
"$absSubDir/..///".$subDir."//..//../".$subDir,
"$absSubDir/BADDIR",
-
-
+
+
// relative paths
$mainDir."/".$subDir,
$mainDir."//".$subDir,
$mainDir."///".$subDir,
"./".$mainDir."/../".$mainDir."/".$subDir,
- "BADDIR",
+ "BADDIR",
);
for($i = 0; $i<count($allDirs); $i++) {
diff --git a/ext/standard/tests/file/readlink_realpath_basic1.phpt b/ext/standard/tests/file/readlink_realpath_basic1.phpt
index 99195e2b24..6efe7f2d49 100644
--- a/ext/standard/tests/file/readlink_realpath_basic1.phpt
+++ b/ext/standard/tests/file/readlink_realpath_basic1.phpt
@@ -26,7 +26,7 @@ fclose($file_handle1);
fclose($file_handle2);
fclose($file_handle3);
-symlink("$file_path/readlink_realpath_basic1/home/test/readlink_realpath_basic1.tmp",
+symlink("$file_path/readlink_realpath_basic1/home/test/readlink_realpath_basic1.tmp",
"$file_path/readlink_realpath_basic1/home/test/readlink_realpath_basic1_link.tmp");
symlink("$file_path/readlink_realpath_basic1/home/readlink_realpath_basic1.tmp",
"$file_path/readlink_realpath_basic1/home/readlink_realpath_basic1_link.tmp");
@@ -38,7 +38,7 @@ $linknames = array (
"$file_path/readlink_realpath_basic1/home/readlink_realpath_basic1_link.tmp",
"$file_path/readlink_realpath_basic1/home/test/readlink_realpath_basic1_link.tmp",
"$file_path/readlink_realpath_basic1//home/test//../test/./readlink_realpath_basic1_link.tmp",
-
+
/* linknames with invalid linkpath */
"$file_path///readlink_realpath_basic1/home//..//././test//readlink_realpath_basic1_link.tmp",
"$file_path/readlink_realpath_basic1/home/../home/../test/../readlink_realpath_basic1_link.tmp",
diff --git a/ext/standard/tests/file/readlink_realpath_variation1.phpt b/ext/standard/tests/file/readlink_realpath_variation1.phpt
index 341e39a9de..ccf0ded7f5 100644
--- a/ext/standard/tests/file/readlink_realpath_variation1.phpt
+++ b/ext/standard/tests/file/readlink_realpath_variation1.phpt
@@ -37,29 +37,29 @@ $obj2 = new object_temp("$name_prefix/readlink_realpath_variation1/home/../..///
echo "\n-- Testing readlink() and realpath() with softlink, linkname stored inside an object --\n";
// creating the links
-var_dump( symlink($filename, $obj1->linkname) );
-var_dump( readlink($obj1->linkname) );
+var_dump( symlink($filename, $obj1->linkname) );
+var_dump( readlink($obj1->linkname) );
var_dump( realpath($obj1->linkname) );
-var_dump( symlink($filename, $obj2->linkname) );
+var_dump( symlink($filename, $obj2->linkname) );
var_dump( readlink($obj2->linkname) );
var_dump( realpath($obj2->linkname) );
// deleting the link
unlink($obj1->linkname);
-unlink($obj2->linkname);
+unlink($obj2->linkname);
echo "\n-- Testing readlink() and realpath() with hardlink, linkname stored inside an object --\n";
// creating hard links
-var_dump( link($filename, $obj1->linkname) );
+var_dump( link($filename, $obj1->linkname) );
var_dump( readlink($obj1->linkname) ); // invalid because readlink doesn't work with hardlink
var_dump( realpath($obj1->linkname) );
-var_dump( link($filename, $obj2->linkname) );
+var_dump( link($filename, $obj2->linkname) );
var_dump( readlink($obj2->linkname) ); // invalid because readlink doesn't work with hardlink
var_dump( realpath($obj2->linkname) );
// delete the links
unlink($obj1->linkname);
-unlink($obj2->linkname);
+unlink($obj2->linkname);
echo "Done\n";
?>
diff --git a/ext/standard/tests/file/readlink_realpath_variation2.phpt b/ext/standard/tests/file/readlink_realpath_variation2.phpt
index 0e748576ae..f4a9c554ad 100644
--- a/ext/standard/tests/file/readlink_realpath_variation2.phpt
+++ b/ext/standard/tests/file/readlink_realpath_variation2.phpt
@@ -32,30 +32,30 @@ $link_arr = array (
echo "\n-- Testing readlink() and realpath() with softlink, linkname stored inside an array --\n";
// creating the links
-var_dump( symlink($filename, $link_arr[0]) );
-var_dump( readlink($link_arr[0]) );
-var_dump( realpath($link_arr[0]) );
-var_dump( symlink($filename, $link_arr[1]) );
+var_dump( symlink($filename, $link_arr[0]) );
+var_dump( readlink($link_arr[0]) );
+var_dump( realpath($link_arr[0]) );
+var_dump( symlink($filename, $link_arr[1]) );
var_dump( readlink($link_arr[1]) );
var_dump( realpath($link_arr[1]) );
// deleting the link
unlink($link_arr[0]);
-unlink($link_arr[1]);
+unlink($link_arr[1]);
echo "\n-- Testing readlink() and realpath() with hardlink, linkname stored inside an array --\n";
// creating hard links
-var_dump( link($filename, $link_arr[0]) );
+var_dump( link($filename, $link_arr[0]) );
var_dump( readlink($link_arr[0]) ); // invalid because readlink doesn't work with hardlink
var_dump( realpath($link_arr[0]) );
-var_dump( link($filename, $link_arr[1]) );
+var_dump( link($filename, $link_arr[1]) );
var_dump( readlink($link_arr[1]) ); // invalid because readlink doesn't work with hardlink
var_dump( realpath($link_arr[1]) );
// delete the links
unlink($link_arr[0]);
-unlink($link_arr[1]);
-
+unlink($link_arr[1]);
+
echo "Done\n";
?>
--CLEAN--
diff --git a/ext/standard/tests/file/readlink_realpath_variation3.phpt b/ext/standard/tests/file/readlink_realpath_variation3.phpt
index 3766a5b43a..58e58237ef 100644
--- a/ext/standard/tests/file/readlink_realpath_variation3.phpt
+++ b/ext/standard/tests/file/readlink_realpath_variation3.phpt
@@ -16,7 +16,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
*/
echo "*** Testing readlink() and realpath() : usage variations ***\n";
-
+
echo "\n*** Testing readlink() and realpath() with linkname as empty string, NULL and single space ***\n";
$link_string = array (
/* linkname as spaces */
@@ -34,8 +34,8 @@ for($loop_counter = 0; $loop_counter < count($link_string); $loop_counter++) {
echo $loop_counter + 1;
echo " --\n";
- var_dump( readlink($link_string[$loop_counter]) );
- var_dump( realpath($link_string[$loop_counter]) );
+ var_dump( readlink($link_string[$loop_counter]) );
+ var_dump( realpath($link_string[$loop_counter]) );
}
echo "Done\n";
diff --git a/ext/standard/tests/file/readlink_variation1.phpt b/ext/standard/tests/file/readlink_variation1.phpt
index d4f1a5ff02..c66e2a4265 100644
--- a/ext/standard/tests/file/readlink_variation1.phpt
+++ b/ext/standard/tests/file/readlink_variation1.phpt
@@ -27,12 +27,12 @@ $filenames = array(
FALSE,
NULL,
$file_handle,
-
+
/* scalars */
1234,
0
);
-
+
/* loop through to test each element the above array */
foreach( $filenames as $filename ) {
var_dump( readlink($filename) );
diff --git a/ext/standard/tests/file/realpath_cache.phpt b/ext/standard/tests/file/realpath_cache.phpt
index 0eb9dc519a..f16995eaa2 100644
--- a/ext/standard/tests/file/realpath_cache.phpt
+++ b/ext/standard/tests/file/realpath_cache.phpt
@@ -15,7 +15,7 @@ var_dump($data[__DIR__]);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(%d)
array(4) {
["key"]=>
diff --git a/ext/standard/tests/file/realpath_cache_win32.phpt b/ext/standard/tests/file/realpath_cache_win32.phpt
index fa5f22c3b5..a5103b20ef 100644
--- a/ext/standard/tests/file/realpath_cache_win32.phpt
+++ b/ext/standard/tests/file/realpath_cache_win32.phpt
@@ -15,7 +15,7 @@ var_dump($data[__FILE__]);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(%d)
array(8) {
["key"]=>
diff --git a/ext/standard/tests/file/realpath_variation-win32-mb.phpt b/ext/standard/tests/file/realpath_variation-win32-mb.phpt
index 66d7c8b0c7..25ea530894 100644
--- a/ext/standard/tests/file/realpath_variation-win32-mb.phpt
+++ b/ext/standard/tests/file/realpath_variation-win32-mb.phpt
@@ -43,7 +43,7 @@ $file_arr = array (
"$name_prefix/./realpath_variation_私はガラスを食べられます/home/../home//tests//..//..//..//home//realpath_variation_私はガラスを食べられます.tmp/"
);
-var_dump( realpath($file_arr[0]) );
+var_dump( realpath($file_arr[0]) );
var_dump( realpath($file_arr[1]) );
echo "\n*** Testing realpath() with filename as empty string, NULL and single space ***\n";
@@ -62,7 +62,7 @@ for($loop_counter = 0; $loop_counter < count($file_string); $loop_counter++) {
echo "-- Iteration";
echo $loop_counter + 1;
echo " --\n";
- var_dump( realpath($file_string[$loop_counter]) );
+ var_dump( realpath($file_string[$loop_counter]) );
}
echo "Done\n";
diff --git a/ext/standard/tests/file/realpath_variation-win32.phpt b/ext/standard/tests/file/realpath_variation-win32.phpt
index f58f618993..8049d4c69a 100644
--- a/ext/standard/tests/file/realpath_variation-win32.phpt
+++ b/ext/standard/tests/file/realpath_variation-win32.phpt
@@ -43,7 +43,7 @@ $file_arr = array (
"$name_prefix/./realpath_variation/home/../home//tests//..//..//..//home//realpath_variation.tmp/"
);
-var_dump( realpath($file_arr[0]) );
+var_dump( realpath($file_arr[0]) );
var_dump( realpath($file_arr[1]) );
echo "\n*** Testing realpath() with filename as empty string, NULL and single space ***\n";
@@ -62,7 +62,7 @@ for($loop_counter = 0; $loop_counter < count($file_string); $loop_counter++) {
echo "-- Iteration";
echo $loop_counter + 1;
echo " --\n";
- var_dump( realpath($file_string[$loop_counter]) );
+ var_dump( realpath($file_string[$loop_counter]) );
}
echo "Done\n";
diff --git a/ext/standard/tests/file/realpath_variation2.phpt b/ext/standard/tests/file/realpath_variation2.phpt
index a5031aa7b5..fe3057ad19 100644
--- a/ext/standard/tests/file/realpath_variation2.phpt
+++ b/ext/standard/tests/file/realpath_variation2.phpt
@@ -12,21 +12,21 @@ if(substr(PHP_OS, 0, 3) == 'WIN' )
/* Prototype : string realpath(string path)
* Description: Return the resolved path
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing realpath() : variation ***\n";
-$paths = array('c:\\',
- 'c:',
+$paths = array('c:\\',
+ 'c:',
'c' ,
'\\' ,
- '/',
- 'c:temp',
- 'c:\\/',
+ '/',
+ 'c:temp',
+ 'c:\\/',
'/tmp/',
- '/tmp/\\',
- '\\tmp',
+ '/tmp/\\',
+ '\\tmp',
'\\tmp\\');
foreach($paths as $path) {
diff --git a/ext/standard/tests/file/rename_basic.phpt b/ext/standard/tests/file/rename_basic.phpt
index c589c514e4..238333e776 100644
--- a/ext/standard/tests/file/rename_basic.phpt
+++ b/ext/standard/tests/file/rename_basic.phpt
@@ -25,7 +25,7 @@ var_dump( file_exists($dest_name) ); // expecting true
$new_stat = stat("$file_path/rename_basic_new.tmp");
// checking statistics of old and renamed file - both should be same except ctime
-$keys_to_compare = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12,
+$keys_to_compare = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12,
"dev", "ino", "mode", "nlink", "uid", "gid",
"rdev", "size", "atime", "mtime", "blksize", "blocks");
var_dump( compare_stats($old_stat, $new_stat, $keys_to_compare) );
diff --git a/ext/standard/tests/file/rename_error.phpt b/ext/standard/tests/file/rename_error.phpt
index fae2b4f373..e0ea2043c9 100644
--- a/ext/standard/tests/file/rename_error.phpt
+++ b/ext/standard/tests/file/rename_error.phpt
@@ -8,7 +8,7 @@ Test rename() function: error conditions
echo "*** Testing rename() for error conditions ***\n";
//Zero argument
-var_dump( rename() );
+var_dump( rename() );
// less than expected,1 argument
var_dump( rename(__FILE__) );
@@ -17,7 +17,7 @@ var_dump( rename(__FILE__) );
$context = stream_context_create();
$filename = __FILE__;
$new_filename = __FILE__.".tmp";
-var_dump( rename($filename, $new_filename, $context, "extra_args") );
+var_dump( rename($filename, $new_filename, $context, "extra_args") );
echo "Done\n";
?>
diff --git a/ext/standard/tests/file/rename_variation-win32.phpt b/ext/standard/tests/file/rename_variation-win32.phpt
index a10c6dfbe7..bc3ff2123f 100644
--- a/ext/standard/tests/file/rename_variation-win32.phpt
+++ b/ext/standard/tests/file/rename_variation-win32.phpt
@@ -45,12 +45,12 @@ foreach($src_filenames as $src_filename) {
var_dump( file_exists($src_filename) ); // expecting false
var_dump( file_exists($dest_filename) ); // expecting true
$counter++;
-
+
// unlink the file
unlink($dest_filename);
}
-rmdir("$file_path/rename_variation");
+rmdir("$file_path/rename_variation");
echo "Done\n";
?>
diff --git a/ext/standard/tests/file/rename_variation.phpt b/ext/standard/tests/file/rename_variation.phpt
index 00dc309982..c19aeee343 100644
--- a/ext/standard/tests/file/rename_variation.phpt
+++ b/ext/standard/tests/file/rename_variation.phpt
@@ -37,13 +37,13 @@ foreach($src_filenames as $src_filename) {
var_dump( file_exists($src_filename) ); // expecting false
var_dump( file_exists($dest_filename) ); // expecting true
$counter++;
-
+
// unlink the file
unlink($dest_filename);
}
// clean the temp dir and file
-rmdir("$file_path/rename_variation");
+rmdir("$file_path/rename_variation");
echo "Done\n";
?>
diff --git a/ext/standard/tests/file/rename_variation10.phpt b/ext/standard/tests/file/rename_variation10.phpt
index f84adc890a..1ba349899b 100644
--- a/ext/standard/tests/file/rename_variation10.phpt
+++ b/ext/standard/tests/file/rename_variation10.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : bool rename(string old_name, string new_name[, resource context])
* Description: Rename a file
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing rename() : usage variation ***\n";
@@ -104,7 +104,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// file resource
'file resource' => $fileRes,
);
diff --git a/ext/standard/tests/file/rename_variation11-win32.phpt b/ext/standard/tests/file/rename_variation11-win32.phpt
index c13a09a951..f46504d8fb 100644
--- a/ext/standard/tests/file/rename_variation11-win32.phpt
+++ b/ext/standard/tests/file/rename_variation11-win32.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : bool rename(string old_name, string new_name[, resource context])
* Description: Rename a file
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing rename() with absolute and relative paths ***\n";
@@ -39,14 +39,14 @@ $allDirs = array(
"$absSubDir\\..\\..\\".$mainDir."\\.\\".$subDir,
"$absSubDir\\..\\\\\\".$subDir."\\\\..\\\\..\\".$subDir,
"$absSubDir\\BADDIR",
-
+
// relative paths
$mainDir."\\".$subDir,
$mainDir."\\\\".$subDir,
$mainDir."\\\\\\".$subDir,
".\\".$mainDir."\\..\\".$mainDir."\\".$subDir,
- "BADDIR",
-
+ "BADDIR",
+
// unixifed path
$unixifiedDir,
);
diff --git a/ext/standard/tests/file/rename_variation12-win32.phpt b/ext/standard/tests/file/rename_variation12-win32.phpt
index de5fc14004..9a1367cc6a 100644
--- a/ext/standard/tests/file/rename_variation12-win32.phpt
+++ b/ext/standard/tests/file/rename_variation12-win32.phpt
@@ -11,7 +11,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') die('skip.. for Windows');
/* Prototype : bool rename(string old_name, string new_name[, resource context])
* Description: Rename a file
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Creating unique files in various dirs by passing relative paths to $dir arg */
@@ -38,14 +38,14 @@ $allDirs = array(
"$absSubDir/../../".$mainDir."/./".$subDir,
"$absSubDir/..///".$subDir."//..//../".$subDir,
"$absSubDir/BADDIR",
-
-
+
+
// relative paths
$mainDir."/".$subDir,
$mainDir."//".$subDir,
$mainDir."///".$subDir,
"./".$mainDir."/../".$mainDir."/".$subDir,
- "BADDIR",
+ "BADDIR",
);
for($i = 0; $i<count($allDirs); $i++) {
diff --git a/ext/standard/tests/file/rename_variation12.phpt b/ext/standard/tests/file/rename_variation12.phpt
index 168beeffc9..8f3a65acad 100644
--- a/ext/standard/tests/file/rename_variation12.phpt
+++ b/ext/standard/tests/file/rename_variation12.phpt
@@ -11,7 +11,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') die('skip.. not for Windows');
/* Prototype : bool rename(string old_name, string new_name[, resource context])
* Description: Rename a file
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Creating unique files in various dirs by passing relative paths to $dir arg */
@@ -38,14 +38,14 @@ $allDirs = array(
"$absSubDir/../../".$mainDir."/./".$subDir,
"$absSubDir/..///".$subDir."//..//../".$subDir,
"$absSubDir/BADDIR",
-
-
+
+
// relative paths
$mainDir."/".$subDir,
$mainDir."//".$subDir,
$mainDir."///".$subDir,
"./".$mainDir."/../".$mainDir."/".$subDir,
- "BADDIR",
+ "BADDIR",
);
for($i = 0; $i<count($allDirs); $i++) {
diff --git a/ext/standard/tests/file/rename_variation13.phpt b/ext/standard/tests/file/rename_variation13.phpt
index ec1ee7c78d..29e13efbb8 100644
--- a/ext/standard/tests/file/rename_variation13.phpt
+++ b/ext/standard/tests/file/rename_variation13.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : bool rename(string old_name, string new_name[, resource context])
* Description: Rename a file
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing rename() with obscure files ***\n";
@@ -21,9 +21,9 @@ $aFile = $file_path.'/afile.tmp';
mkdir($file_path);
-/* An array of files */
+/* An array of files */
$names_arr = array(
- /* Invalid args */
+ /* Invalid args */
-1,
TRUE,
FALSE,
@@ -34,7 +34,7 @@ $names_arr = array(
array(),
/* prefix with path separator of a non existing directory*/
- "/no/such/file/dir",
+ "/no/such/file/dir",
"php/php"
);
diff --git a/ext/standard/tests/file/rename_variation3-win32.phpt b/ext/standard/tests/file/rename_variation3-win32.phpt
index b5da587811..5f071fb5b9 100644
--- a/ext/standard/tests/file/rename_variation3-win32.phpt
+++ b/ext/standard/tests/file/rename_variation3-win32.phpt
@@ -16,13 +16,13 @@ require dirname(__FILE__).'/file.inc';
/* creating directory */
$file_path = dirname(__FILE__);
-$dirname = "$file_path/rename_variation3_dir";
+$dirname = "$file_path/rename_variation3_dir";
mkdir($dirname);
/* test rename() by trying to rename an existing file/dir to the same name
and one another */
-$filename = "$file_path/rename_variation3.tmp";
+$filename = "$file_path/rename_variation3.tmp";
$fp = fopen($filename, "w");
if (!$fp) {
die("Cannot create $filename\n");
diff --git a/ext/standard/tests/file/rename_variation5.phpt b/ext/standard/tests/file/rename_variation5.phpt
index 2518cf48ea..e352b7cf0d 100644
--- a/ext/standard/tests/file/rename_variation5.phpt
+++ b/ext/standard/tests/file/rename_variation5.phpt
@@ -13,10 +13,10 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
and one another */
// create a dir
$file_path = dirname(__FILE__);
-$dirname = "$file_path/rename_variation5_dir";
+$dirname = "$file_path/rename_variation5_dir";
mkdir($dirname);
//create a file
-$filename = "$file_path/rename_variation5.tmp";
+$filename = "$file_path/rename_variation5.tmp";
$fp = fopen($filename, "w");
fclose($fp);
// create a link
diff --git a/ext/standard/tests/file/rename_variation6-win32.phpt b/ext/standard/tests/file/rename_variation6-win32.phpt
index dfb57f2e19..9129bd871e 100644
--- a/ext/standard/tests/file/rename_variation6-win32.phpt
+++ b/ext/standard/tests/file/rename_variation6-win32.phpt
@@ -34,7 +34,7 @@ var_dump(file_exists($tmp_file));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: readlink(): %s in %s on line %d
bool(false)
string(%d) "%srename_variation6-win32.php.tmp"
diff --git a/ext/standard/tests/file/rename_variation6.phpt b/ext/standard/tests/file/rename_variation6.phpt
index 413dc6e045..3385d14134 100644
--- a/ext/standard/tests/file/rename_variation6.phpt
+++ b/ext/standard/tests/file/rename_variation6.phpt
@@ -28,7 +28,7 @@ var_dump(file_exists($tmp_file));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: readlink(): No such file or directory in %s on line %d
bool(false)
string(%d) "%srename_variation6.php.tmp"
diff --git a/ext/standard/tests/file/rename_variation7-win32.phpt b/ext/standard/tests/file/rename_variation7-win32.phpt
index b1a04b38c6..845728627b 100644
--- a/ext/standard/tests/file/rename_variation7-win32.phpt
+++ b/ext/standard/tests/file/rename_variation7-win32.phpt
@@ -25,7 +25,7 @@ var_dump(readlink($tmp_link2));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: symlink(): No such file or directory in %srename_variation7-win32.php on line %d
Warning: readlink(): readlink failed to read the symbolic link (%srename_variation7-win32.php.tmp.link), error 2) in %srename_variation7-win32.php on line %d
diff --git a/ext/standard/tests/file/rename_variation7.phpt b/ext/standard/tests/file/rename_variation7.phpt
index 5b937728f8..dc5ce429b6 100644
--- a/ext/standard/tests/file/rename_variation7.phpt
+++ b/ext/standard/tests/file/rename_variation7.phpt
@@ -24,7 +24,7 @@ var_dump(readlink($tmp_link2));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: readlink(): No such file or directory in %s on line %d
bool(false)
string(%d) "%sthere_is_no_such_file"
diff --git a/ext/standard/tests/file/rmdir_variation1-win32.phpt b/ext/standard/tests/file/rmdir_variation1-win32.phpt
index 2516e6162e..9e55ab43c3 100644
--- a/ext/standard/tests/file/rmdir_variation1-win32.phpt
+++ b/ext/standard/tests/file/rmdir_variation1-win32.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Prototype : bool rmdir(string dirname[, resource context])
* Description: Remove a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing rmdir() : usage variation ***\n";
@@ -71,7 +71,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// other
// php outputs Permission Denied, p8 outputs no suck file or dir
'single space' => ' ',
diff --git a/ext/standard/tests/file/rmdir_variation1.phpt b/ext/standard/tests/file/rmdir_variation1.phpt
index 04fee0ee2a..090d52e534 100644
--- a/ext/standard/tests/file/rmdir_variation1.phpt
+++ b/ext/standard/tests/file/rmdir_variation1.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : bool rmdir(string dirname[, resource context])
* Description: Remove a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing rmdir() : usage variation ***\n";
@@ -72,7 +72,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// other
'single space' => ' ',
);
diff --git a/ext/standard/tests/file/rmdir_variation2.phpt b/ext/standard/tests/file/rmdir_variation2.phpt
index 8c5af1a351..6dd30f58e7 100644
--- a/ext/standard/tests/file/rmdir_variation2.phpt
+++ b/ext/standard/tests/file/rmdir_variation2.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : bool rmdir(string dirname[, resource context])
* Description: Remove a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing rmdir() : usage variation ***\n";
@@ -102,7 +102,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// non stream context resource
$fileres,
);
diff --git a/ext/standard/tests/file/rmdir_variation3-win32.phpt b/ext/standard/tests/file/rmdir_variation3-win32.phpt
index e6b3eaabb6..da9afbb918 100644
--- a/ext/standard/tests/file/rmdir_variation3-win32.phpt
+++ b/ext/standard/tests/file/rmdir_variation3-win32.phpt
@@ -6,13 +6,13 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
<?php
if(substr(PHP_OS, 0, 3) != "WIN")
die("skip Only valid for Windows");
-?>
+?>
--FILE--
<?php
/* Prototype : bool rmdir(string dirname[, resource context])
* Description: Remove a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing rmdir() : variation ***\n";
@@ -29,11 +29,11 @@ $dirs = array(
$workDir.'\\'.$subDir,
'.\\'.$workDir.'\\'.$subDir,
$workDir.'\\..\\'.$workDir.'\\'.$subDir,
-
+
// relative bad path
$workDir.'\\..\\BADDIR\\'.$subDir,
'BADDIR\\'.$subDir,
-
+
//absolute
$cwd.'\\'.$workDir.'\\'.$subDir,
$cwd.'\\.\\'.$workDir.'\\'.$subDir,
@@ -41,24 +41,24 @@ $dirs = array(
//absolute bad path
$cwd.'\\BADDIR\\'.$subDir,
-
+
//trailing separators
$workDir.'\\'.$subDir.'\\',
$cwd.'\\'.$workDir.'\\'.$subDir.'\\',
-
+
// multiple separators
$workDir.'\\\\'.$subDir,
$cwd.'\\\\'.$workDir.'\\\\'.$subDir,
-
+
// Unixified Dir
$unixifiedDir,
-
+
);
-
+
foreach($dirs as $dir) {
mkdir($workDir.'/'.$subDir);
- echo "-- removing $dir --\n";
+ echo "-- removing $dir --\n";
$res = rmdir($dir);
if ($res === true) {
echo "Directory removed\n";
diff --git a/ext/standard/tests/file/rmdir_variation3.phpt b/ext/standard/tests/file/rmdir_variation3.phpt
index 5848007395..13dfbd3f99 100644
--- a/ext/standard/tests/file/rmdir_variation3.phpt
+++ b/ext/standard/tests/file/rmdir_variation3.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : bool rmdir(string dirname[, resource context])
* Description: Remove a directory
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing rmdir() : variation ***\n";
@@ -22,11 +22,11 @@ $dirs = array(
$workDir.'/'.$subDir,
'./'.$workDir.'/'.$subDir,
$workDir.'/../'.$workDir.'/'.$subDir,
-
+
// relative bad path
$workDir.'/../BADDIR/'.$subDir,
'BADDIR/'.$subDir,
-
+
//absolute
$cwd.'/'.$workDir.'/'.$subDir,
$cwd.'/./'.$workDir.'/'.$subDir,
@@ -34,21 +34,21 @@ $dirs = array(
//absolute bad path
$cwd.'/BADDIR/'.$subDir,
-
+
//trailing separators
$workDir.'/'.$subDir.'/',
$cwd.'/'.$workDir.'/'.$subDir.'/',
-
+
// multiple separators
$workDir.'//'.$subDir,
$cwd.'//'.$workDir.'//'.$subDir,
-
+
);
-
+
foreach($dirs as $dir) {
mkdir($workDir.'/'.$subDir);
- echo "-- removing $dir --\n";
+ echo "-- removing $dir --\n";
$res = rmdir($dir);
if ($res === true) {
echo "Directory removed\n";
diff --git a/ext/standard/tests/file/stat_error-win32.phpt b/ext/standard/tests/file/stat_error-win32.phpt
index 1b69da8bf5..3614ba5f7e 100644
--- a/ext/standard/tests/file/stat_error-win32.phpt
+++ b/ext/standard/tests/file/stat_error-win32.phpt
@@ -13,7 +13,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
Description: Gives information about a file
*/
-$file_path = dirname(__FILE__);
+$file_path = dirname(__FILE__);
$arr = array(__FILE__);
echo "\n*** Testing stat() for error conditions ***\n";
diff --git a/ext/standard/tests/file/statpage.phpt b/ext/standard/tests/file/statpage.phpt
index f11be9734c..5bd4183c21 100644
--- a/ext/standard/tests/file/statpage.phpt
+++ b/ext/standard/tests/file/statpage.phpt
@@ -11,7 +11,7 @@ var_dump(getmygid());
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(%d)
int(%d)
int(%d)
diff --git a/ext/standard/tests/file/stream_001.phpt b/ext/standard/tests/file/stream_001.phpt
index eece30a2f5..6e692c554a 100644
--- a/ext/standard/tests/file/stream_001.phpt
+++ b/ext/standard/tests/file/stream_001.phpt
@@ -10,7 +10,7 @@ var_dump(fopen("file://".__FILE__, "r"));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
bool(true)
Warning: fopen(): Unable to find the wrapper "file" - did you forget to enable it when you configured PHP? in %s on line %d
diff --git a/ext/standard/tests/file/stream_002.phpt b/ext/standard/tests/file/stream_002.phpt
index e982f704c4..b18dd85b31 100644
--- a/ext/standard/tests/file/stream_002.phpt
+++ b/ext/standard/tests/file/stream_002.phpt
@@ -20,7 +20,7 @@ var_dump($a, $b);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: stream_socket_client(): unable to connect to (Failed to parse address "") in %s on line %d
bool(false)
int(0)
diff --git a/ext/standard/tests/file/stream_copy_to_stream.phpt b/ext/standard/tests/file/stream_copy_to_stream.phpt
index 716ae1f462..1cc57b7f6d 100644
--- a/ext/standard/tests/file/stream_copy_to_stream.phpt
+++ b/ext/standard/tests/file/stream_copy_to_stream.phpt
@@ -111,7 +111,7 @@ unlink($new_file);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(0)
string(0) ""
int(%d)
diff --git a/ext/standard/tests/file/stream_rfc2397_007.phpt b/ext/standard/tests/file/stream_rfc2397_007.phpt
index 48c7cdb3f1..447b0246ae 100644
--- a/ext/standard/tests/file/stream_rfc2397_007.phpt
+++ b/ext/standard/tests/file/stream_rfc2397_007.phpt
@@ -14,7 +14,7 @@ foreach($streams as $stream)
echo "===$stream===\n";
$fp = fopen($stream, 'rb');
-
+
var_dump(ftell($fp));
var_dump(feof($fp));
echo "===S:4,S===\n";
diff --git a/ext/standard/tests/file/stream_supports_lock.phpt b/ext/standard/tests/file/stream_supports_lock.phpt
index bbf3993b6b..38a84dd7c2 100644
--- a/ext/standard/tests/file/stream_supports_lock.phpt
+++ b/ext/standard/tests/file/stream_supports_lock.phpt
@@ -30,7 +30,7 @@ var_dump(stream_supports_lock($sock));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
bool(true)
resource(%d) of type (stream)
diff --git a/ext/standard/tests/file/symlink.phpt b/ext/standard/tests/file/symlink.phpt
index 489c26644f..228e459297 100644
--- a/ext/standard/tests/file/symlink.phpt
+++ b/ext/standard/tests/file/symlink.phpt
@@ -44,7 +44,7 @@ var_dump(linkinfo("."));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
bool(true)
string(%d) "%ssymlink.dat"
int(%d)
diff --git a/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation1.phpt b/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation1.phpt
index b1b1afc740..837bc5b961 100644
--- a/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation1.phpt
+++ b/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation1.phpt
@@ -58,11 +58,11 @@ clearstatcache();
/* Testing on hard links */
echo "\n-- Working with hard links --\n";
// creating hard link
-var_dump( link($filename, $obj->linkname) );
+var_dump( link($filename, $obj->linkname) );
// check if the link exists
var_dump( linkinfo($obj->linkname) );
// check if link is soft link; expected: false as the link is a hardlink
-var_dump( is_link($obj->linkname) );
+var_dump( is_link($obj->linkname) );
// delete the link created
unlink($obj->linkname);
// clear the cache
diff --git a/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation4.phpt b/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation4.phpt
index 74f03e2097..9c0c8ab8d0 100644
--- a/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation4.phpt
+++ b/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation4.phpt
@@ -45,7 +45,7 @@ $data_from_link = file_get_contents($linkname); // data read from $filename
var_dump( $data_from_link );
echo "\n-- Check size of hard link and file --\n";
-if( filesize($filename) == filesize($linkname) )
+if( filesize($filename) == filesize($linkname) )
echo "\nSize of file and hard link are same\n";
else
echo "\nWarning: Size of file and hard link differ\n";
@@ -61,7 +61,7 @@ $data_from_file = file_get_contents($filename);
var_dump( $data_from_file );
echo "\n-- Check size of hard link and file --\n";
-if( filesize($filename) == filesize($linkname) )
+if( filesize($filename) == filesize($linkname) )
echo "\nSize of file and hard link are same\n";
else
echo "\nWarning: Size of file and hard link differ\n";
@@ -79,7 +79,7 @@ var_dump( $data_from_link );
echo "\n-- Check size of hard link and file --\n";
var_dump( filesize($filename) );
var_dump( filesize($linkname) );
-if( filesize($filename) == filesize($linkname) )
+if( filesize($filename) == filesize($linkname) )
echo "\nSize of file and hard link are same\n";
else
echo "\nWarning: Size of file and hard link differ\n";
diff --git a/ext/standard/tests/file/tempnam_variation1-win32-mb.phpt b/ext/standard/tests/file/tempnam_variation1-win32-mb.phpt
index 4d985410da..339ac7c0a9 100644
--- a/ext/standard/tests/file/tempnam_variation1-win32-mb.phpt
+++ b/ext/standard/tests/file/tempnam_variation1-win32-mb.phpt
@@ -21,24 +21,24 @@ for($i=1; $i<=10; $i++) {
echo "-- Iteration $i --\n";
$files[$i] = tempnam("$file_path", "tempnam_variation1.tmp");
- if( file_exists($files[$i]) ) {
+ if( file_exists($files[$i]) ) {
- echo "File name is => ";
+ echo "File name is => ";
print($files[$i]);
echo "\n";
-
+
echo "File permissions are => ";
printf("%o", fileperms($files[$i]) );
echo "\n";
clearstatcache();
echo "File created in => ";
- $file_dir = dirname($files[$i]);
-
+ $file_dir = dirname($files[$i]);
+
if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sys_get_temp_dir())) {
echo "temp dir\n";
}
- else if (realpath($file_dir) == realpath($file_path) || realpath($file_dir."\\") == realpath($file_path)) {
+ else if (realpath($file_dir) == realpath($file_path) || realpath($file_dir."\\") == realpath($file_path)) {
echo "directory specified\n";
}
else {
diff --git a/ext/standard/tests/file/tempnam_variation1-win32.phpt b/ext/standard/tests/file/tempnam_variation1-win32.phpt
index a3dd7e9d62..e57b677a2b 100644
--- a/ext/standard/tests/file/tempnam_variation1-win32.phpt
+++ b/ext/standard/tests/file/tempnam_variation1-win32.phpt
@@ -21,24 +21,24 @@ for($i=1; $i<=10; $i++) {
echo "-- Iteration $i --\n";
$files[$i] = tempnam("$file_path", "tempnam_variation1.tmp");
- if( file_exists($files[$i]) ) {
+ if( file_exists($files[$i]) ) {
- echo "File name is => ";
+ echo "File name is => ";
print($files[$i]);
echo "\n";
-
+
echo "File permissions are => ";
printf("%o", fileperms($files[$i]) );
echo "\n";
clearstatcache();
echo "File created in => ";
- $file_dir = dirname($files[$i]);
-
+ $file_dir = dirname($files[$i]);
+
if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sys_get_temp_dir())) {
echo "temp dir\n";
}
- else if (realpath($file_dir) == realpath($file_path) || realpath($file_dir."\\") == realpath($file_path)) {
+ else if (realpath($file_dir) == realpath($file_path) || realpath($file_dir."\\") == realpath($file_path)) {
echo "directory specified\n";
}
else {
diff --git a/ext/standard/tests/file/tempnam_variation1.phpt b/ext/standard/tests/file/tempnam_variation1.phpt
index 0745f5397c..8d62aef2ea 100644
--- a/ext/standard/tests/file/tempnam_variation1.phpt
+++ b/ext/standard/tests/file/tempnam_variation1.phpt
@@ -21,12 +21,12 @@ for($i=1; $i<=10; $i++) {
echo "-- Iteration $i --\n";
$files[$i] = tempnam("$file_path", "tempnam_variation1.tmp");
- if( file_exists($files[$i]) ) {
+ if( file_exists($files[$i]) ) {
- echo "File name is => ";
+ echo "File name is => ";
print($files[$i]);
echo "\n";
-
+
echo "File permissions are => ";
printf("%o", fileperms($files[$i]) );
echo "\n";
@@ -35,10 +35,10 @@ for($i=1; $i<=10; $i++) {
echo "File inode is => ";
print_r( fileinode($files[$i]) ); //checking inodes
echo "\n";
-
+
echo "File created in => ";
- $file_dir = dirname($files[$i]);
-
+ $file_dir = dirname($files[$i]);
+
if ($file_dir == sys_get_temp_dir()) {
echo "temp dir\n";
}
diff --git a/ext/standard/tests/file/tempnam_variation2-win32.phpt b/ext/standard/tests/file/tempnam_variation2-win32.phpt
index 15d59614ff..60fe951353 100644
--- a/ext/standard/tests/file/tempnam_variation2-win32.phpt
+++ b/ext/standard/tests/file/tempnam_variation2-win32.phpt
@@ -31,23 +31,23 @@ $dir_paths = array(
"$dir_path/../.././tempnam_variation2",
"$dir_path/..///tempnam_variation2_sub//..//../tempnam_variation2",
"$dir_path/BADDIR",
-
-
+
+
// relative paths
".",
"tempname_variation2",
"tempname_variation2/",
"tempnam_variation2/tempnam_variation2_sub",
- "tempnam_variation2//tempnam_variation2_sub",
+ "tempnam_variation2//tempnam_variation2_sub",
"./tempnam_variation2/../tempnam_variation2/tempnam_variation2_sub",
- "BADDIR",
+ "BADDIR",
);
for($i = 0; $i<count($dir_paths); $i++) {
$j = $i+1;
echo "\n-- Iteration $j --\n";
$file_name = tempnam($dir_paths[$i], "tempnam_variation2.tmp");
-
+
if( file_exists($file_name) ){
echo "File name is => ";
@@ -57,27 +57,27 @@ for($i = 0; $i<count($dir_paths); $i++) {
echo "File permissions are => ";
printf("%o", fileperms($file_name) );
echo "\n";
-
+
echo "File created in => ";
$file_dir = dirname($file_name);
$dir_req = $dir_paths[$i];
-
+
if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sys_get_temp_dir())) {
echo "temp dir\n";
}
- else if (realpath($file_dir) == realpath($dir_req) || realpath($file_dir."\\") == realpath($dir_req)) {
+ else if (realpath($file_dir) == realpath($dir_req) || realpath($file_dir."\\") == realpath($dir_req)) {
echo "directory specified\n";
}
else {
echo "unknown location\n";
- }
-
+ }
+
}
else {
echo "-- File is not created --";
}
-
+
unlink($file_name);
}
diff --git a/ext/standard/tests/file/tempnam_variation2.phpt b/ext/standard/tests/file/tempnam_variation2.phpt
index 1a2de1885b..dd98b40e8b 100644
--- a/ext/standard/tests/file/tempnam_variation2.phpt
+++ b/ext/standard/tests/file/tempnam_variation2.phpt
@@ -31,23 +31,23 @@ $dir_paths = array(
"$dir_path/../.././tempnam_variation2",
"$dir_path/..///tempnam_variation2_sub//..//../tempnam_variation2",
"$dir_path/BADDIR",
-
-
+
+
// relative paths
".",
"tempname_variation2",
"tempname_variation2/",
"tempnam_variation2/tempnam_variation2_sub",
- "tempnam_variation2//tempnam_variation2_sub",
+ "tempnam_variation2//tempnam_variation2_sub",
"./tempnam_variation2/../tempnam_variation2/tempnam_variation2_sub",
- "BADDIR",
+ "BADDIR",
);
for($i = 0; $i<count($dir_paths); $i++) {
$j = $i+1;
echo "\n-- Iteration $j --\n";
$file_name = tempnam($dir_paths[$i], "tempnam_variation2.tmp");
-
+
if( file_exists($file_name) ){
echo "File name is => ";
@@ -57,11 +57,11 @@ for($i = 0; $i<count($dir_paths); $i++) {
echo "File permissions are => ";
printf("%o", fileperms($file_name) );
echo "\n";
-
+
echo "File created in => ";
$file_dir = dirname($file_name);
$dir_req = $dir_paths[$i];
-
+
if (realpath($file_dir) == realpath(sys_get_temp_dir())) {
echo "temp dir\n";
}
@@ -70,14 +70,14 @@ for($i = 0; $i<count($dir_paths); $i++) {
}
else {
echo "unknown location\n";
- }
-
+ }
+
}
else {
echo "-- File is not created --";
}
-
+
unlink($file_name);
}
diff --git a/ext/standard/tests/file/tempnam_variation4-0.phpt b/ext/standard/tests/file/tempnam_variation4-0.phpt
index e96846ff2c..b7837b68d4 100644
--- a/ext/standard/tests/file/tempnam_variation4-0.phpt
+++ b/ext/standard/tests/file/tempnam_variation4-0.phpt
@@ -44,9 +44,9 @@ for($mode = 0000; $mode <= 0350; $mode++) {
if (realpath(dirname($file_name)) != realpath(sys_get_temp_dir())) {
echo " created in unexpected dir\n";
- }
+ }
}
- unlink($file_name);
+ unlink($file_name);
}
else {
print("FAILED: File is not created\n");
diff --git a/ext/standard/tests/file/tempnam_variation4-1.phpt b/ext/standard/tests/file/tempnam_variation4-1.phpt
index 667d3ecda6..fda6beda6b 100644
--- a/ext/standard/tests/file/tempnam_variation4-1.phpt
+++ b/ext/standard/tests/file/tempnam_variation4-1.phpt
@@ -44,9 +44,9 @@ for($mode = 0351; $mode <= 0777; $mode++) {
if (realpath(dirname($file_name)) != realpath(sys_get_temp_dir())) {
echo " created in unexpected dir\n";
- }
+ }
}
- unlink($file_name);
+ unlink($file_name);
}
else {
print("FAILED: File is not created\n");
diff --git a/ext/standard/tests/file/tempnam_variation5-win32.phpt b/ext/standard/tests/file/tempnam_variation5-win32.phpt
index 3e39352fe1..d2e708bc30 100644
--- a/ext/standard/tests/file/tempnam_variation5-win32.phpt
+++ b/ext/standard/tests/file/tempnam_variation5-win32.phpt
@@ -25,7 +25,7 @@ $h = fopen($dir_name."/tempnam_variation6.tmp", "w");
for($i=1; $i<=3; $i++) {
echo "-- Iteration $i --\n";
$created_file = tempnam("$dir_name", "tempnam_variation6.tmp");
-
+
if( file_exists($created_file) ) {
echo "File name is => ";
print($created_file);
diff --git a/ext/standard/tests/file/tempnam_variation5.phpt b/ext/standard/tests/file/tempnam_variation5.phpt
index cf2eff8bec..fdfcee9bed 100644
--- a/ext/standard/tests/file/tempnam_variation5.phpt
+++ b/ext/standard/tests/file/tempnam_variation5.phpt
@@ -23,7 +23,7 @@ $h = fopen($dir_name."/tempnam_variation5.tmp", "w");
for($i=1; $i<=3; $i++) {
echo "-- Iteration $i --\n";
$created_file = tempnam("$dir_name", "tempnam_variation5.tmp");
-
+
if( file_exists($created_file) ) {
echo "File name is => ";
print($created_file);
diff --git a/ext/standard/tests/file/tempnam_variation6-win32.phpt b/ext/standard/tests/file/tempnam_variation6-win32.phpt
index efe7e86e85..acaa1abf50 100644
--- a/ext/standard/tests/file/tempnam_variation6-win32.phpt
+++ b/ext/standard/tests/file/tempnam_variation6-win32.phpt
@@ -6,7 +6,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
<?php
if(substr(PHP_OS, 0, 3) != "WIN")
die("skip Windows Only");
-?>
+?>
--FILE--
<?php
/* Prototype: string tempnam ( string $dir, string $prefix );
@@ -27,10 +27,10 @@ for($i=1; $i<=3; $i++) {
echo "File name is => ";
print($file_name);
echo "\n";
-
+
echo "File created in => ";
$file_dir = dirname($file_name);
-
+
if ($file_dir == sys_get_temp_dir()) {
echo "temp dir\n";
}
@@ -39,7 +39,7 @@ for($i=1; $i<=3; $i++) {
}
else {
echo "unknown location\n";
- }
+ }
}
unlink($file_name);
diff --git a/ext/standard/tests/file/tempnam_variation6.phpt b/ext/standard/tests/file/tempnam_variation6.phpt
index 5eb6e6fc86..08a9fce4de 100644
--- a/ext/standard/tests/file/tempnam_variation6.phpt
+++ b/ext/standard/tests/file/tempnam_variation6.phpt
@@ -4,7 +4,7 @@ Test tempnam() function: usage variations - Using previous unique filename
<?php
if(substr(PHP_OS, 0, 3) == "WIN")
die("skip Do not run on Windows");
-?>
+?>
--FILE--
<?php
/* Prototype: string tempnam ( string $dir, string $prefix );
@@ -25,10 +25,10 @@ for($i=1; $i<=3; $i++) {
echo "File name is => ";
print($file_name);
echo "\n";
-
+
echo "File created in => ";
$file_dir = dirname($file_name);
-
+
if ($file_dir == sys_get_temp_dir()) {
echo "temp dir\n";
}
@@ -37,7 +37,7 @@ for($i=1; $i<=3; $i++) {
}
else {
echo "unknown location\n";
- }
+ }
}
unlink($file_name);
diff --git a/ext/standard/tests/file/tempnam_variation7-win32.phpt b/ext/standard/tests/file/tempnam_variation7-win32.phpt
index 918ef36588..285faa46a5 100644
--- a/ext/standard/tests/file/tempnam_variation7-win32.phpt
+++ b/ext/standard/tests/file/tempnam_variation7-win32.phpt
@@ -13,11 +13,11 @@ if(substr(PHP_OS, 0, 3) != "WIN")
/* Passing invalid/non-existing args for $dir,
hence the unique files will be created in temporary dir */
-
+
echo "*** Testing tempnam() with invalid/non-existing directory names ***\n";
-/* An array of names, which will be passed as a dir name */
+/* An array of names, which will be passed as a dir name */
$names_arr = array(
- /* Invalid args */
+ /* Invalid args */
-1,
TRUE,
FALSE,
@@ -28,7 +28,7 @@ $names_arr = array(
array(),
/* Non-existing dirs */
- "/no/such/file/dir",
+ "/no/such/file/dir",
"php"
);
diff --git a/ext/standard/tests/file/tempnam_variation7.phpt b/ext/standard/tests/file/tempnam_variation7.phpt
index d24c1d8974..230a9a7212 100644
--- a/ext/standard/tests/file/tempnam_variation7.phpt
+++ b/ext/standard/tests/file/tempnam_variation7.phpt
@@ -15,9 +15,9 @@ if(substr(PHP_OS, 0, 3) == "WIN")
hence the unique files will be created in temporary dir */
echo "*** Testing tempnam() with invalid/non-existing directory names ***\n";
-/* An array of names, which will be passed as a dir name */
+/* An array of names, which will be passed as a dir name */
$names_arr = array(
- /* Invalid args */
+ /* Invalid args */
-1,
TRUE,
FALSE,
@@ -28,7 +28,7 @@ $names_arr = array(
array(),
/* Non-existing dirs */
- "/no/such/file/dir",
+ "/no/such/file/dir",
"php"
);
@@ -46,22 +46,22 @@ for( $i=0; $i<count($names_arr); $i++ ) {
echo "File permissions are => ";
printf("%o", fileperms($file_name) );
echo "\n";
-
+
echo "File created in => ";
$file_dir = dirname($file_name);
-
+
if (realpath($file_dir) == realpath(sys_get_temp_dir())) {
echo "temp dir\n";
}
else {
echo "unknown location\n";
- }
-
+ }
+
}
- else {
+ else {
echo "-- File is not created --\n";
}
-
+
unlink($file_name);
}
diff --git a/ext/standard/tests/file/tempnam_variation8-win32.phpt b/ext/standard/tests/file/tempnam_variation8-win32.phpt
index 52ff7b9daa..cceda6438f 100644
--- a/ext/standard/tests/file/tempnam_variation8-win32.phpt
+++ b/ext/standard/tests/file/tempnam_variation8-win32.phpt
@@ -32,21 +32,21 @@ $dir_paths = array(
"$dir_path\\..\\..\\.\\tempnam_variation2",
"$dir_path\\..\\\\\\tempnam_variation2_sub\\\\..\\\\..\\tempnam_variation2",
"$dir_path\\BADDIR",
-
-
+
+
// relative paths
"tempname_variation2\\",
"tempnam_variation2\\tempnam_variation2_sub",
- "tempnam_variation2\\\\tempnam_variation2_sub",
+ "tempnam_variation2\\\\tempnam_variation2_sub",
".\\tempnam_variation2\\..\\tempnam_variation2\\tempnam_variation2_sub",
- "BADDIR",
+ "BADDIR",
);
for($i = 0; $i<count($dir_paths); $i++) {
$j = $i+1;
echo "\n-- Iteration $j --\n";
$file_name = tempnam($dir_paths[$i], "tempnam_variation2.tmp");
-
+
if( file_exists($file_name) ){
echo "File name is => ";
@@ -56,27 +56,27 @@ for($i = 0; $i<count($dir_paths); $i++) {
echo "File permissions are => ";
printf("%o", fileperms($file_name) );
echo "\n";
-
+
echo "File created in => ";
$file_dir = dirname($file_name);
$dir_req = $dir_paths[$i];
-
+
if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sys_get_temp_dir())) {
echo "temp dir\n";
}
- else if (realpath($file_dir) == realpath($dir_req) || realpath($file_dir."\\") == realpath($dir_req)) {
+ else if (realpath($file_dir) == realpath($dir_req) || realpath($file_dir."\\") == realpath($dir_req)) {
echo "directory specified\n";
}
else {
echo "unknown location\n";
- }
-
+ }
+
}
else {
echo "-- File is not created --";
}
-
+
unlink($file_name);
}
diff --git a/ext/standard/tests/file/touch.phpt b/ext/standard/tests/file/touch.phpt
index c6c270d065..fa000db008 100644
--- a/ext/standard/tests/file/touch.phpt
+++ b/ext/standard/tests/file/touch.phpt
@@ -38,7 +38,7 @@ var_dump(touch("/no/such/file/or/directory"));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: touch() expects at least 1 parameter, 0 given in %s on line %d
NULL
bool(true)
diff --git a/ext/standard/tests/file/touch_basic-win32-mb.phpt b/ext/standard/tests/file/touch_basic-win32-mb.phpt
index d721edc84c..eea2a50c68 100644
--- a/ext/standard/tests/file/touch_basic-win32-mb.phpt
+++ b/ext/standard/tests/file/touch_basic-win32-mb.phpt
@@ -13,7 +13,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
/* Prototype : proto bool touch(string filename [, int time [, int atime]])
* Description: Set modification time of file
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing touch() : basic functionality ***\n";
diff --git a/ext/standard/tests/file/touch_basic-win32.phpt b/ext/standard/tests/file/touch_basic-win32.phpt
index b4ad29f037..7af7d535a5 100644
--- a/ext/standard/tests/file/touch_basic-win32.phpt
+++ b/ext/standard/tests/file/touch_basic-win32.phpt
@@ -13,7 +13,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
/* Prototype : proto bool touch(string filename [, int time [, int atime]])
* Description: Set modification time of file
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing touch() : basic functionality ***\n";
diff --git a/ext/standard/tests/file/touch_basic.phpt b/ext/standard/tests/file/touch_basic.phpt
index b39c84b7e0..b7832c9fbb 100644
--- a/ext/standard/tests/file/touch_basic.phpt
+++ b/ext/standard/tests/file/touch_basic.phpt
@@ -14,7 +14,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
/* Prototype : proto bool touch(string filename [, int time [, int atime]])
* Description: Set modification time of file
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing touch() : basic functionality ***\n";
diff --git a/ext/standard/tests/file/touch_error.phpt b/ext/standard/tests/file/touch_error.phpt
index ec58fee511..9fa8a81739 100644
--- a/ext/standard/tests/file/touch_error.phpt
+++ b/ext/standard/tests/file/touch_error.phpt
@@ -10,7 +10,7 @@ var_dump(touch(1, 2, 3, 4));
var_dump(touch("/no/such/file/or/directory"));
?>
---EXPECTF--
+--EXPECTF--
Warning: touch() expects at least 1 parameter, 0 given in %s on line %d
NULL
diff --git a/ext/standard/tests/file/touch_variation1.phpt b/ext/standard/tests/file/touch_variation1.phpt
index 18f9d033b8..3c9e429c77 100644
--- a/ext/standard/tests/file/touch_variation1.phpt
+++ b/ext/standard/tests/file/touch_variation1.phpt
@@ -29,7 +29,7 @@ var_dump(fileatime($filename));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
bool(true)
int(101)
int(101)
diff --git a/ext/standard/tests/file/touch_variation2.phpt b/ext/standard/tests/file/touch_variation2.phpt
index 9477a3494e..a3596adc6b 100644
--- a/ext/standard/tests/file/touch_variation2.phpt
+++ b/ext/standard/tests/file/touch_variation2.phpt
@@ -18,7 +18,7 @@ var_dump(file_get_contents($filename));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
bool(true)
string(6) "mydata"
Done
diff --git a/ext/standard/tests/file/touch_variation3-win32-mb.phpt b/ext/standard/tests/file/touch_variation3-win32-mb.phpt
index b3f8817656..e7b8d1b2ac 100644
--- a/ext/standard/tests/file/touch_variation3-win32-mb.phpt
+++ b/ext/standard/tests/file/touch_variation3-win32-mb.phpt
@@ -14,7 +14,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
/* Prototype : bool touch(string filename [, int time [, int atime]])
* Description: Set modification time of file
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing touch() : usage variation ***\n";
diff --git a/ext/standard/tests/file/touch_variation3-win32.phpt b/ext/standard/tests/file/touch_variation3-win32.phpt
index 8c7db0905b..a4735275d8 100644
--- a/ext/standard/tests/file/touch_variation3-win32.phpt
+++ b/ext/standard/tests/file/touch_variation3-win32.phpt
@@ -14,7 +14,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
/* Prototype : bool touch(string filename [, int time [, int atime]])
* Description: Set modification time of file
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing touch() : usage variation ***\n";
diff --git a/ext/standard/tests/file/touch_variation3.phpt b/ext/standard/tests/file/touch_variation3.phpt
index 00203c8f36..56f82192d4 100644
--- a/ext/standard/tests/file/touch_variation3.phpt
+++ b/ext/standard/tests/file/touch_variation3.phpt
@@ -14,7 +14,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
/* Prototype : bool touch(string filename [, int time [, int atime]])
* Description: Set modification time of file
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing touch() : usage variation ***\n";
diff --git a/ext/standard/tests/file/touch_variation4-win32.phpt b/ext/standard/tests/file/touch_variation4-win32.phpt
index 2f1eda71c6..ae9e32d7c7 100644
--- a/ext/standard/tests/file/touch_variation4-win32.phpt
+++ b/ext/standard/tests/file/touch_variation4-win32.phpt
@@ -14,7 +14,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
/* Prototype : bool touch(string filename [, int time [, int atime]])
* Description: Set modification time of file
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing touch() : usage variation ***\n";
diff --git a/ext/standard/tests/file/touch_variation4.phpt b/ext/standard/tests/file/touch_variation4.phpt
index 6467f5dcdf..687e01e513 100644
--- a/ext/standard/tests/file/touch_variation4.phpt
+++ b/ext/standard/tests/file/touch_variation4.phpt
@@ -14,7 +14,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
/* Prototype : bool touch(string filename [, int time [, int atime]])
* Description: Set modification time of file
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing touch() : usage variation ***\n";
diff --git a/ext/standard/tests/file/touch_variation5-win32.phpt b/ext/standard/tests/file/touch_variation5-win32.phpt
index 92b67c24a6..48467ade8c 100644
--- a/ext/standard/tests/file/touch_variation5-win32.phpt
+++ b/ext/standard/tests/file/touch_variation5-win32.phpt
@@ -12,7 +12,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
/* Prototype : bool touch(string filename [, int time [, int atime]])
* Description: Set modification time of file
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
$workDir = "touchVar5.tmp";
@@ -26,38 +26,38 @@ $paths = array(
$workDir.'/'.$subDirOrFile,
'./'.$workDir.'/'.$subDirOrFile,
$workDir.'/../'.$workDir.'/'.$subDirOrFile,
-
+
// relative bad path (note p8 msgs differ)
$workDir.'/../BADDIR/'.$subDirOrFile,
'BADDIR/'.$subDirOrFile,
-
+
//absolute
$cwd.'/'.$workDir.'/'.$subDirOrFile,
$cwd.'/./'.$workDir.'/'.$subDirOrFile,
$cwd.'/'.$workDir.'/../'.$workDir.'/'.$subDirOrFile,
- //absolute bad path (note p8 msgs differ)
+ //absolute bad path (note p8 msgs differ)
$cwd.'/BADDIR/'.$subDirOrFile,
-
+
//trailing separators
$workDir.'/'.$subDirOrFile.'/',
$cwd.'/'.$workDir.'/'.$subDirOrFile.'/',
-
+
// multiple separators
$workDir.'//'.$subDirOrFile,
$cwd.'//'.$workDir.'//'.$subDirOrFile,
-
+
);
-
+
echo "*** Testing touch() : variation ***\n";
-echo "\n*** testing nonexisting paths ***\n";
+echo "\n*** testing nonexisting paths ***\n";
test_nonexisting($paths);
-echo "\n*** testing existing files ***\n";
+echo "\n*** testing existing files ***\n";
test_existing($paths, false);
-echo "\n*** testing existing directories ***\n";
+echo "\n*** testing existing directories ***\n";
test_existing($paths, true);
@@ -68,7 +68,7 @@ rmdir($workDir);
function test_nonexisting($paths) {
foreach($paths as $path) {
echo "--- testing $path ---\n";
-
+
if (is_dir($path) || is_file($path)) {
echo "FAILED: $path - exists\n";
}
@@ -115,7 +115,7 @@ function test_existing($paths, $are_dirs) {
if ($res == true) {
test_path($path);
rmdir($path);
- }
+ }
}
else {
$h = @fopen($path,"w");
@@ -123,12 +123,12 @@ function test_existing($paths, $are_dirs) {
fclose($h);
test_path($path);
unlink($path);
- }
+ }
}
}
}
-
-
+
+
function test_path($path) {
echo "--- testing $path ---\n";
$org_atime = get_atime($path);
diff --git a/ext/standard/tests/file/touch_variation5.phpt b/ext/standard/tests/file/touch_variation5.phpt
index a448db3ea4..46993afc7e 100644
--- a/ext/standard/tests/file/touch_variation5.phpt
+++ b/ext/standard/tests/file/touch_variation5.phpt
@@ -13,7 +13,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
/* Prototype : bool touch(string filename [, int time [, int atime]])
* Description: Set modification time of file
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
$workDir = "touchVar5.tmp";
@@ -26,11 +26,11 @@ $paths = array(
$workDir.'/'.$subDirOrFile,
'./'.$workDir.'/'.$subDirOrFile,
$workDir.'/../'.$workDir.'/'.$subDirOrFile,
-
+
// relative bad path
$workDir.'/../BADDIR/'.$subDirOrFile,
'BADDIR/'.$subDirOrFile,
-
+
//absolute
$cwd.'/'.$workDir.'/'.$subDirOrFile,
$cwd.'/./'.$workDir.'/'.$subDirOrFile,
@@ -38,26 +38,26 @@ $paths = array(
//absolute bad path
$cwd.'/BADDIR/'.$subDirOrFile,
-
+
//trailing separators
$workDir.'/'.$subDirOrFile.'/',
$cwd.'/'.$workDir.'/'.$subDirOrFile.'/',
-
+
// multiple separators
$workDir.'//'.$subDirOrFile,
$cwd.'//'.$workDir.'//'.$subDirOrFile,
-
+
);
-
+
echo "*** Testing touch() : variation ***\n";
-echo "\n*** testing nonexisting paths ***\n";
+echo "\n*** testing nonexisting paths ***\n";
test_nonexisting($paths);
-echo "\n*** testing existing files ***\n";
+echo "\n*** testing existing files ***\n";
test_existing($paths, false);
-echo "\n*** testing existing directories ***\n";
+echo "\n*** testing existing directories ***\n";
test_existing($paths, true);
@@ -68,7 +68,7 @@ rmdir($workDir);
function test_nonexisting($paths) {
foreach($paths as $path) {
echo "--- testing $path ---\n";
-
+
if (is_dir($path) || is_file($path)) {
echo "FAILED: $path - exists\n";
}
@@ -115,7 +115,7 @@ function test_existing($paths, $are_dirs) {
if ($res == true) {
test_path($path);
rmdir($path);
- }
+ }
}
else {
$h = @fopen($path,"w");
@@ -123,12 +123,12 @@ function test_existing($paths, $are_dirs) {
fclose($h);
test_path($path);
unlink($path);
- }
+ }
}
}
}
-
-
+
+
function test_path($path) {
echo "--- testing $path ---\n";
$org_atime = get_atime($path);
diff --git a/ext/standard/tests/file/touch_variation6-win32.phpt b/ext/standard/tests/file/touch_variation6-win32.phpt
index 177de94e48..7366420332 100644
--- a/ext/standard/tests/file/touch_variation6-win32.phpt
+++ b/ext/standard/tests/file/touch_variation6-win32.phpt
@@ -13,7 +13,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
/* Prototype : bool touch(string filename [, int time [, int atime]])
* Description: Set modification time of file
* Source code: ext/standard/filestat.c
- * Alias to functions:
+ * Alias to functions:
*/
$workDir = "touchVar5.tmp";
@@ -29,41 +29,41 @@ $paths = array(
$workDir.'\\'.$subDirOrFile,
'.\\'.$workDir.'\\'.$subDirOrFile,
$workDir.'\\..\\'.$workDir.'\\'.$subDirOrFile,
-
+
// relative bad path (note p8 msgs differ)
$workDir.'\\..\\BADDIR\\'.$subDirOrFile,
'BADDIR\\'.$subDirOrFile,
-
+
//absolute
$cwd.'\\'.$workDir.'\\'.$subDirOrFile,
$cwd.'\\.\\'.$workDir.'\\'.$subDirOrFile,
$cwd.'\\'.$workDir.'\\..\\'.$workDir.'\\'.$subDirOrFile,
- //absolute bad path (note p8 msgs differ)
+ //absolute bad path (note p8 msgs differ)
$cwd.'\\BADDIR\\'.$subDirOrFile,
-
+
//trailing separators
$workDir.'\\'.$subDirOrFile.'\\',
$cwd.'\\'.$workDir.'\\'.$subDirOrFile.'\\',
-
+
// multiple separators
$workDir.'\\\\'.$subDirOrFile,
$cwd.'\\\\'.$workDir.'\\\\'.$subDirOrFile,
-
+
// Unixified Dir Or File
$unixifiedDirOrFile,
-
+
);
-
+
echo "*** Testing touch() : variation ***\n";
-echo "\n*** testing nonexisting paths ***\n";
+echo "\n*** testing nonexisting paths ***\n";
test_nonexisting($paths);
-echo "\n*** testing existing files ***\n";
+echo "\n*** testing existing files ***\n";
test_existing($paths, false);
-echo "\n*** testing existing directories ***\n";
+echo "\n*** testing existing directories ***\n";
test_existing($paths, true);
@@ -74,7 +74,7 @@ rmdir($workDir);
function test_nonexisting($paths) {
foreach($paths as $path) {
echo "--- testing $path ---\n";
-
+
if (is_dir($path) || is_file($path)) {
echo "FAILED: $path - exists\n";
}
@@ -121,7 +121,7 @@ function test_existing($paths, $are_dirs) {
if ($res == true) {
test_path($path);
rmdir($path);
- }
+ }
}
else {
$h = @fopen($path,"w");
@@ -129,12 +129,12 @@ function test_existing($paths, $are_dirs) {
fclose($h);
test_path($path);
unlink($path);
- }
+ }
}
}
}
-
-
+
+
function test_path($path) {
echo "--- testing $path ---\n";
$org_atime = get_atime($path);
diff --git a/ext/standard/tests/file/umask_variation1.phpt b/ext/standard/tests/file/umask_variation1.phpt
index b44e1ef3c9..6f5bdc4480 100644
--- a/ext/standard/tests/file/umask_variation1.phpt
+++ b/ext/standard/tests/file/umask_variation1.phpt
@@ -28,7 +28,7 @@ for($mask = 0000; $mask <= 0350; $mask++) {
echo " --\n";
// setting umask
umask($mask);
-
+
/* umasking file */
// creating temp file
$fp = fopen($filename, "w");
diff --git a/ext/standard/tests/file/umask_variation2.phpt b/ext/standard/tests/file/umask_variation2.phpt
index bb2dbb3255..b302bea969 100644
--- a/ext/standard/tests/file/umask_variation2.phpt
+++ b/ext/standard/tests/file/umask_variation2.phpt
@@ -28,7 +28,7 @@ for($mask = 0351; $mask <= 0777; $mask++) {
echo " --\n";
// setting umask
umask($mask);
-
+
/* umasking file */
// creating temp file
$fp = fopen($filename, "w");
diff --git a/ext/standard/tests/file/unlink_variation10.phpt b/ext/standard/tests/file/unlink_variation10.phpt
index e0c92caeba..e0139571fe 100644
--- a/ext/standard/tests/file/unlink_variation10.phpt
+++ b/ext/standard/tests/file/unlink_variation10.phpt
@@ -7,13 +7,13 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip.. Not for Windows');
}
-?>
+?>
--FILE--
<?php
/* Prototype : bool unlink(string filename[, context context])
* Description: Delete a file
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing unlink() : variation ***\n";
@@ -31,18 +31,18 @@ $dirs = array(
$workDir.'/'.$tmpDir,
'./'.$workDir.'/'.$tmpDir,
$workDir.'/../'.$workDir.'/'.$tmpDir,
-
+
//absolute
$cwd.'/'.$workDir.'/'.$tmpDir,
$cwd.'/./'.$workDir.'/'.$tmpDir,
$cwd.'/'.$workDir.'/../'.$workDir.'/'.$tmpDir,
-
+
// multiple separators
$workDir.'//'.$tmpDir,
$cwd.'//'.$workDir.'//'.$tmpDir,
-
+
);
-
+
foreach($dirs as $dirToUnlink) {
test_link($workDir.'/'.$tmpDir, $dirToLinkTo, $dirToUnlink, true); //soft link
@@ -61,9 +61,9 @@ function test_link($linkedDir, $toLinkTo, $tounlink, $softlink) {
}
else {
link($toLinkTo, $linkedDir);
- $msg = "hard link";
- }
- echo "-- unlinking $msg $tounlink --\n";
+ $msg = "hard link";
+ }
+ echo "-- unlinking $msg $tounlink --\n";
$res = unlink($tounlink);
if ($res === true) {
if (is_link($tounlink) === false) {
diff --git a/ext/standard/tests/file/unlink_variation6.phpt b/ext/standard/tests/file/unlink_variation6.phpt
index 558d32a483..9c495f2c86 100644
--- a/ext/standard/tests/file/unlink_variation6.phpt
+++ b/ext/standard/tests/file/unlink_variation6.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : bool unlink(string filename[, context context])
* Description: Delete a file
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing unlink() : variation: contexts and relative files ***\n";
@@ -30,7 +30,7 @@ function f_exists($file) {
else {
echo "$file doesn't exist\n";
}
-}
+}
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/file/unlink_variation7.phpt b/ext/standard/tests/file/unlink_variation7.phpt
index 1860018102..cc8b722413 100644
--- a/ext/standard/tests/file/unlink_variation7.phpt
+++ b/ext/standard/tests/file/unlink_variation7.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
/* Prototype : bool unlink(string filename[, context context])
* Description: Delete a file
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing unlink() : usage variation different types for context ***\n";
@@ -101,7 +101,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// file resource
'file resource' => $fileRes
);
diff --git a/ext/standard/tests/file/unlink_variation8-win32.phpt b/ext/standard/tests/file/unlink_variation8-win32.phpt
index 8c9fbd895c..27b63bdf2a 100644
--- a/ext/standard/tests/file/unlink_variation8-win32.phpt
+++ b/ext/standard/tests/file/unlink_variation8-win32.phpt
@@ -7,13 +7,13 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
if (substr(PHP_OS, 0, 3) != 'WIN') {
die('skip.. only for Windows');
}
-?>
+?>
--FILE--
<?php
/* Prototype : bool unlink(string filename[, context context])
* Description: Delete a file
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing unlink() : variation ***\n";
@@ -29,11 +29,11 @@ $files = array(
$workDir.'/'.$tmpFile,
'./'.$workDir.'/'.$tmpFile,
$workDir.'/../'.$workDir.'/'.$tmpFile,
-
+
// relative bad path
$workDir.'/../BADDIR/'.$tmpFile,
'BADDIR/'.$tmpFile,
-
+
//absolute
$cwd.'/'.$workDir.'/'.$tmpFile,
$cwd.'/./'.$workDir.'/'.$tmpFile,
@@ -41,17 +41,17 @@ $files = array(
//absolute bad path
$cwd.'/BADDIR/'.$tmpFile,
-
+
//trailing separators
$workDir.'/'.$tmpFile.'/',
$cwd.'/'.$workDir.'/'.$tmpFile.'/',
-
+
// multiple separators
$workDir.'//'.$tmpFile,
$cwd.'//'.$workDir.'//'.$tmpFile,
-
+
);
-
+
foreach($files as $fileToUnlink) {
test_realfile($workDir.'/'.$tmpFile, $fileToUnlink);
@@ -61,7 +61,7 @@ rmdir($workDir);
function test_realfile($file, $tounlink) {
touch($file);
- echo "-- removing $tounlink --\n";
+ echo "-- removing $tounlink --\n";
$res = unlink($tounlink);
if ($res === true) {
if (file_exists($tounlink) === false) {
diff --git a/ext/standard/tests/file/unlink_variation8.phpt b/ext/standard/tests/file/unlink_variation8.phpt
index e142763cef..3940191f57 100644
--- a/ext/standard/tests/file/unlink_variation8.phpt
+++ b/ext/standard/tests/file/unlink_variation8.phpt
@@ -7,13 +7,13 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip.. Not for Windows');
}
-?>
+?>
--FILE--
<?php
/* Prototype : bool unlink(string filename[, context context])
* Description: Delete a file
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing unlink() : variation ***\n";
@@ -31,11 +31,11 @@ $files = array(
$workDir.'/'.$tmpFile,
'./'.$workDir.'/'.$tmpFile,
$workDir.'/../'.$workDir.'/'.$tmpFile,
-
+
// relative bad path
$workDir.'/../BADDIR/'.$tmpFile,
'BADDIR/'.$tmpFile,
-
+
//absolute
$cwd.'/'.$workDir.'/'.$tmpFile,
$cwd.'/./'.$workDir.'/'.$tmpFile,
@@ -43,17 +43,17 @@ $files = array(
//absolute bad path
$cwd.'/BADDIR/'.$tmpFile,
-
+
//trailing separators
$workDir.'/'.$tmpFile.'/',
$cwd.'/'.$workDir.'/'.$tmpFile.'/',
-
+
// multiple separators
$workDir.'//'.$tmpFile,
$cwd.'//'.$workDir.'//'.$tmpFile,
-
+
);
-
+
foreach($files as $fileToUnlink) {
test_realfile($workDir.'/'.$tmpFile, $fileToUnlink);
@@ -66,7 +66,7 @@ rmdir($workDir);
function test_realfile($file, $tounlink) {
touch($file);
- echo "-- removing $tounlink --\n";
+ echo "-- removing $tounlink --\n";
$res = unlink($tounlink);
if ($res === true) {
if (file_exists($tounlink) === false) {
@@ -88,9 +88,9 @@ function test_link($linkedfile, $toLinkTo, $tounlink, $softlink) {
}
else {
link($toLinkTo, $linkedfile);
- $msg = "hard link";
- }
- echo "-- unlinking $msg $tounlink --\n";
+ $msg = "hard link";
+ }
+ echo "-- unlinking $msg $tounlink --\n";
$res = unlink($tounlink);
if ($res === true) {
if (file_exists($tounlink) === false) {
diff --git a/ext/standard/tests/file/unlink_variation9-win32.phpt b/ext/standard/tests/file/unlink_variation9-win32.phpt
index 0eaed2e4ca..7532785a5d 100644
--- a/ext/standard/tests/file/unlink_variation9-win32.phpt
+++ b/ext/standard/tests/file/unlink_variation9-win32.phpt
@@ -7,13 +7,13 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
if (substr(PHP_OS, 0, 3) != 'WIN') {
die('skip.. only for Windows');
}
-?>
+?>
--FILE--
<?php
/* Prototype : bool unlink(string filename[, context context])
* Description: Delete a file
* Source code: ext/standard/file.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing unlink() : variation ***\n";
@@ -30,11 +30,11 @@ $files = array(
$workDir.'\\'.$tmpFile,
'.\\'.$workDir.'\\'.$tmpFile,
$workDir.'\\..\\'.$workDir.'\\'.$tmpFile,
-
+
// relative bad path
$workDir.'\\..\\BADDIR\\'.$tmpFile,
'BADDIR\\'.$tmpFile,
-
+
//absolute
$cwd.'\\'.$workDir.'\\'.$tmpFile,
$cwd.'\\.\\'.$workDir.'\\'.$tmpFile,
@@ -42,26 +42,26 @@ $files = array(
//absolute bad path
$cwd.'\\BADDIR\\'.$tmpFile,
-
+
//trailing separators
$workDir.'\\'.$tmpFile.'\\',
$cwd.'\\'.$workDir.'\\'.$tmpFile.'\\',
-
+
// multiple separators
$workDir.'\\\\'.$tmpFile,
$cwd.'\\\\'.$workDir.'\\\\'.$tmpFile,
-
+
// Unixified File
$unixifiedFile,
-
+
);
-
+
foreach($files as $fileToUnlink) {
$file = $workDir.'/'.$tmpFile;
$tounlink = $fileToUnlink;
touch($file);
- echo "-- removing $tounlink --\n";
+ echo "-- removing $tounlink --\n";
$res = unlink($tounlink);
if ($res === true) {
if (file_exists($tounlink) === false) {
diff --git a/ext/standard/tests/file/userfilters.phpt b/ext/standard/tests/file/userfilters.phpt
index dfa8376fff..73f87de613 100644
--- a/ext/standard/tests/file/userfilters.phpt
+++ b/ext/standard/tests/file/userfilters.phpt
@@ -10,7 +10,7 @@ class testfilter extends php_user_filter {
$consumed += strlen($bucket->data);
stream_bucket_append($out, $bucket);
}
- return PSFS_PASS_ON;
+ return PSFS_PASS_ON;
}
function oncreate() {
diff --git a/ext/standard/tests/file/userstreams.phpt b/ext/standard/tests/file/userstreams.phpt
index 0e649e9a92..7f0dc1d91c 100644
--- a/ext/standard/tests/file/userstreams.phpt
+++ b/ext/standard/tests/file/userstreams.phpt
@@ -102,7 +102,7 @@ class mystream
$this->position = strlen($GLOBALS[$this->varname]);
else
$this->position = 0;
-
+
return true;
}
@@ -266,7 +266,7 @@ foreach($line_lengths as $line_length) {
var_dump($dat);
break;
}
-
+
$j++;
}
if ($fail_count)
diff --git a/ext/standard/tests/file/windows_acls/bug44859.phpt b/ext/standard/tests/file/windows_acls/bug44859.phpt
index 4454ee1173..20e10f5c5b 100644
--- a/ext/standard/tests/file/windows_acls/bug44859.phpt
+++ b/ext/standard/tests/file/windows_acls/bug44859.phpt
@@ -1,7 +1,7 @@
--TEST--
bug #44859 (incorrect result with NTFS ACL permissions, is_writable)
--SKIPIF--
-<?php
+<?php
include_once __DIR__ . '/common.inc';
skipif();
?>
diff --git a/ext/standard/tests/file/windows_acls/bug44859_2.phpt b/ext/standard/tests/file/windows_acls/bug44859_2.phpt
index 514953f42e..583e63a2a6 100644
--- a/ext/standard/tests/file/windows_acls/bug44859_2.phpt
+++ b/ext/standard/tests/file/windows_acls/bug44859_2.phpt
@@ -1,7 +1,7 @@
--TEST--
bug #44859 (incorrect result with NTFS ACL permissions, is_readable)
--SKIPIF--
-<?php
+<?php
include_once __DIR__ . '/common.inc';
skipif();
?>
diff --git a/ext/standard/tests/file/windows_acls/bug44859_3.phpt b/ext/standard/tests/file/windows_acls/bug44859_3.phpt
index ed57abba07..35db1f29be 100644
--- a/ext/standard/tests/file/windows_acls/bug44859_3.phpt
+++ b/ext/standard/tests/file/windows_acls/bug44859_3.phpt
@@ -1,7 +1,7 @@
--TEST--
bug #44859 (incorrect result with NTFS ACL permissions, is_executable)
--SKIPIF--
-<?php
+<?php
include_once __DIR__ . '/common.inc';
skipif();
?>
diff --git a/ext/standard/tests/file/windows_acls/bug44859_4.phpt b/ext/standard/tests/file/windows_acls/bug44859_4.phpt
index bf640fa660..452581fa05 100644
--- a/ext/standard/tests/file/windows_acls/bug44859_4.phpt
+++ b/ext/standard/tests/file/windows_acls/bug44859_4.phpt
@@ -3,7 +3,7 @@ bug #44859 (incorrect result with NTFS ACL permissions, is_readable)
--CREDITS--
Venkat Raman Don
--SKIPIF--
-<?php
+<?php
include_once __DIR__ . '/common.inc';
skipif();
?>
diff --git a/ext/standard/tests/file/windows_mb_path/bug54977.phpt b/ext/standard/tests/file/windows_mb_path/bug54977.phpt
index d5b184158e..b1bc415f05 100644
--- a/ext/standard/tests/file/windows_mb_path/bug54977.phpt
+++ b/ext/standard/tests/file/windows_mb_path/bug54977.phpt
@@ -27,7 +27,7 @@ foreach ($paths as $d) {
}
$myDirectory = opendir($prefix);
-while($entryName = readdir($myDirectory)) {
+while($entryName = readdir($myDirectory)) {
echo get_basename_with_cp($prefix . $entryName, 65001, false) . "\n";
}
closedir($myDirectory);
diff --git a/ext/standard/tests/file/windows_mb_path/bug64506.phpt b/ext/standard/tests/file/windows_mb_path/bug64506.phpt
index 784cffadb7..6d9367f857 100644
--- a/ext/standard/tests/file/windows_mb_path/bug64506.phpt
+++ b/ext/standard/tests/file/windows_mb_path/bug64506.phpt
@@ -36,7 +36,7 @@ var_dump(unlink($fnw));
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
int(25)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_0.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_0.phpt
index 7a6496a619..a5dea1c9b8 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_0.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_0.phpt
@@ -28,13 +28,13 @@ if ($f) {
var_dump(fclose($f));
} else {
echo "open utf8 failed\n";
-}
+}
remove_data("file_cp1250");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
string(37) "reading file wihh multibyte filename
"
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_1.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_1.phpt
index bd4421e7a2..ae7eff4a13 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_1.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_1.phpt
@@ -37,7 +37,7 @@ remove_data("dir_cp1250");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
bool(true)
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_2.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_2.phpt
index 488343d8d1..45531b6d6b 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_2.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_2.phpt
@@ -38,7 +38,7 @@ remove_data("dir_cp1250");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
int(25)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_3.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_3.phpt
index 84b05b71d9..c70570b2b0 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_3.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_3.phpt
@@ -28,13 +28,13 @@ if ($f) {
var_dump(fclose($f));
} else {
echo "open utf8 failed\n";
-}
+}
remove_data("file_cp1250");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
string(37) "reading file wihh multibyte filename
"
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_4.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_4.phpt
index 3759daa71d..a7df51695f 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_4.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_4.phpt
@@ -37,7 +37,7 @@ remove_data("dir_cp1250");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
bool(true)
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_5.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_5.phpt
index 7e1998ba2a..75e5c55ca9 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_5.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1250_to_utf8_5.phpt
@@ -38,7 +38,7 @@ remove_data("dir_cp1250");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
int(25)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_0.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_0.phpt
index 0fbc78fc12..c7604184d2 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_0.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_0.phpt
@@ -28,13 +28,13 @@ if ($f) {
var_dump(fclose($f));
} else {
echo "open utf8 failed\n";
-}
+}
remove_data("file_cp1253");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
string(37) "reading file wihh multibyte filename
"
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_1.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_1.phpt
index ddc79b1204..7b6342ed1b 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_1.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_1.phpt
@@ -37,7 +37,7 @@ remove_data("dir_cp1253");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
bool(true)
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_2.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_2.phpt
index 6e28c89e0c..579f78e7ef 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_2.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1253_to_utf8_2.phpt
@@ -38,7 +38,7 @@ remove_data("dir_cp1253");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
int(25)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_0.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_0.phpt
index 9a92099cd0..2e63d376c8 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_0.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_0.phpt
@@ -28,13 +28,13 @@ if ($f) {
var_dump(fclose($f));
} else {
echo "open utf8 failed\n";
-}
+}
remove_data("file_cp1254");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
string(37) "reading file wihh multibyte filename
"
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_1.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_1.phpt
index 551a0f2235..7391c3bd9d 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_1.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_1.phpt
@@ -37,7 +37,7 @@ remove_data("dir_cp1254");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
bool(true)
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_2.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_2.phpt
index 12df56b11e..8ac17416fe 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_2.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_2.phpt
@@ -38,7 +38,7 @@ remove_data("dir_cp1254");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
int(25)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_3.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_3.phpt
index cbaba44e4e..0c330ea445 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_3.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1254_to_utf8_3.phpt
@@ -16,7 +16,7 @@ skip_if_no_required_exts();
#vim: set encoding=cp1254
*/
-include dirname(__FILE__) . DIRECTORY_SEPARATOR . "util.inc";
+include dirname(__FILE__) . DIRECTORY_SEPARATOR . "util.inc";
$item = "çokbaytlı işleri";
@@ -32,7 +32,7 @@ remove_data("file_cp1254");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
string(%d) "%s\çokbaytlı işleri"
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_0.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_0.phpt
index 31a48dbc0c..6d8b55d536 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_0.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_0.phpt
@@ -28,13 +28,13 @@ if ($f) {
var_dump(fclose($f));
} else {
echo "open utf8 failed\n";
-}
+}
remove_data("file_cp1255");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
string(37) "reading file wihh multibyte filename
"
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_1.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_1.phpt
index b6a59e4be3..b73f01f729 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_1.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_1.phpt
@@ -37,7 +37,7 @@ remove_data("dir_cp1255");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
bool(true)
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_2.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_2.phpt
index 53f83b3a0e..07cfcf053f 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_2.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1255_to_utf8_2.phpt
@@ -38,7 +38,7 @@ remove_data("dir_cp1255");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
int(25)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_0.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_0.phpt
index b021df7fa4..3471fa7b1f 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_0.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_0.phpt
@@ -28,13 +28,13 @@ if ($f) {
var_dump(fclose($f));
} else {
echo "open utf8 failed\n";
-}
+}
remove_data("file_cp1256");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
string(37) "reading file wihh multibyte filename
"
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_1.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_1.phpt
index 2fb10a97a5..4c12d76d97 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_1.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_1.phpt
@@ -37,7 +37,7 @@ remove_data("dir_cp1256");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
bool(true)
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_2.phpt b/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_2.phpt
index ba70e1a77e..4f3108427f 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_2.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp1256_to_utf8_2.phpt
@@ -38,7 +38,7 @@ remove_data("dir_cp1256");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
int(25)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_cp874_to_utf8_1.phpt b/ext/standard/tests/file/windows_mb_path/test_cp874_to_utf8_1.phpt
index 843c66f4a2..13ec027748 100644
--- a/ext/standard/tests/file/windows_mb_path/test_cp874_to_utf8_1.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_cp874_to_utf8_1.phpt
@@ -16,10 +16,10 @@ skip_if_no_required_exts();
#vim: set encoding=cp874
*/
-include dirname(__FILE__) . DIRECTORY_SEPARATOR . "util.inc";
+include dirname(__FILE__) . DIRECTORY_SEPARATOR . "util.inc";
-$item = "เป็นแฟ้มที่ทดสอบ11";
+$item = "เป็นแฟ้มที่ทดสอบ11";
$prefix = create_data("file_cp874", $item);
$fn = $prefix . DIRECTORY_SEPARATOR . $item;
@@ -32,7 +32,7 @@ remove_data("file_cp874");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
string(%d) "%s\เป็นแฟ้มที่ทดสอบ11"
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_0.phpt b/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_0.phpt
index 32b6f9b066..a287847352 100644
--- a/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_0.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_0.phpt
@@ -28,13 +28,13 @@ if ($f) {
var_dump(fclose($f));
} else {
echo "open utf8 failed\n";
-}
+}
remove_data("file_kartuli");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
string(37) "reading file wihh multibyte filename
"
diff --git a/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_1.phpt b/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_1.phpt
index a92e7c34ed..8f15596d38 100644
--- a/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_1.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_1.phpt
@@ -37,7 +37,7 @@ remove_data("dir_kartuli");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
bool(true)
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_2.phpt b/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_2.phpt
index edfb279cd2..6b0f864cc2 100644
--- a/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_2.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_2.phpt
@@ -38,7 +38,7 @@ remove_data("dir_kartuli");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
resource(%d) of type (stream)
int(25)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_3.phpt b/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_3.phpt
index 46077258d1..8f08357792 100644
--- a/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_3.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_kartuli_utf8_3.phpt
@@ -16,10 +16,10 @@ skip_if_no_required_exts();
#vim: set encoding=cp874
*/
-include dirname(__FILE__) . DIRECTORY_SEPARATOR . "util.inc";
+include dirname(__FILE__) . DIRECTORY_SEPARATOR . "util.inc";
-$item = "ქართველები55";
+$item = "ქართველები55";
$prefix = create_data("file_kartuli", $item);
$fn = $prefix . DIRECTORY_SEPARATOR . $item;
@@ -32,7 +32,7 @@ remove_data("file_kartuli");
?>
===DONE===
---EXPECTF--
+--EXPECTF--
string(%d) "%s\ქართველები55"
bool(true)
bool(true)
diff --git a/ext/standard/tests/file/windows_mb_path/test_long_path_0.phpt b/ext/standard/tests/file/windows_mb_path/test_long_path_0.phpt
index 6bc28110e0..688fc6caca 100644
--- a/ext/standard/tests/file/windows_mb_path/test_long_path_0.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_long_path_0.phpt
@@ -12,14 +12,14 @@ skip_if_no_required_exts("mbstring");
--FILE--
<?php
-$p = "";
+$p = "";
$s = str_repeat('a', 50);
$how_many = 32;
for ($i = 0; $i < $how_many; $i++) {
$p .= "$s";
$p .= DIRECTORY_SEPARATOR;
-}
+}
$p = realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . $p;
diff --git a/ext/standard/tests/file/windows_mb_path/test_long_path_1.phpt b/ext/standard/tests/file/windows_mb_path/test_long_path_1.phpt
index 94518e7a65..b2af71aa76 100644
--- a/ext/standard/tests/file/windows_mb_path/test_long_path_1.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_long_path_1.phpt
@@ -11,7 +11,7 @@ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
--FILE--
<?php
-$p = "";
+$p = "";
$s = str_repeat('a', 50);
$how_many = 32;
@@ -19,7 +19,7 @@ $how_many = 32;
for ($i = 0; $i < $how_many; $i++) {
$p .= "$s";
$p .= DIRECTORY_SEPARATOR;
-}
+}
$p = realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . $p;
diff --git a/ext/standard/tests/file/windows_mb_path/test_long_path_2.phpt b/ext/standard/tests/file/windows_mb_path/test_long_path_2.phpt
index 3be1850c5a..bcae2c53bc 100644
--- a/ext/standard/tests/file/windows_mb_path/test_long_path_2.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_long_path_2.phpt
@@ -11,7 +11,7 @@ skip_if_no_required_exts("mbstring");
?>
--FILE--
<?php
-$p = "";
+$p = "";
$s = str_repeat('x', 50) . "ü";
$how_many = 32;
@@ -19,7 +19,7 @@ $how_many = 32;
for ($i = 0; $i < $how_many; $i++) {
$p .= "$s";
$p .= DIRECTORY_SEPARATOR;
-}
+}
/* path doesn't exist at this point! */
$p = realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . $p;
diff --git a/ext/standard/tests/file/windows_mb_path/test_long_path_mkdir.phpt b/ext/standard/tests/file/windows_mb_path/test_long_path_mkdir.phpt
index 2453538190..0dcbba2480 100644
--- a/ext/standard/tests/file/windows_mb_path/test_long_path_mkdir.phpt
+++ b/ext/standard/tests/file/windows_mb_path/test_long_path_mkdir.phpt
@@ -15,13 +15,13 @@ if (strlen($start) > 260 || strlen($start) > 248) {
--FILE--
<?php
-$p = "";
+$p = "";
$s = str_repeat('a', 50);
$how_many = 32;
for ($i = 0; $i < $how_many; $i++) {
$p .= "$s\\";
-}
+}
$start = realpath(dirname(__FILE__));
if (strlen($start) <= 248) {
diff --git a/ext/standard/tests/filters/001.phpt b/ext/standard/tests/filters/001.phpt
index afbcdcfdd5..fbfdda2385 100644
--- a/ext/standard/tests/filters/001.phpt
+++ b/ext/standard/tests/filters/001.phpt
@@ -12,7 +12,7 @@ var_dump(stream_filter_register("", array()));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: stream_filter_register(): Filter name cannot be empty in %s on line %d
bool(false)
diff --git a/ext/standard/tests/filters/stream_filter_remove_basic.phpt b/ext/standard/tests/filters/stream_filter_remove_basic.phpt
index 3744b72467..0999f7c6b9 100644
--- a/ext/standard/tests/filters/stream_filter_remove_basic.phpt
+++ b/ext/standard/tests/filters/stream_filter_remove_basic.phpt
@@ -10,7 +10,7 @@ if(! in_array( "string.rot13", $filters )) die( "skip rot13 filter not available
/* Prototype : bool stream_filter_remove(resource stream_filter)
* Description: Flushes any data in the filter's internal buffer, removes it from the chain, and frees the resource
* Source code: ext/standard/streamsfuncs.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing stream_filter_remove() : basic functionality ***\n";
diff --git a/ext/standard/tests/filters/stream_filter_remove_error.phpt b/ext/standard/tests/filters/stream_filter_remove_error.phpt
index 9cbb925855..d1be672136 100644
--- a/ext/standard/tests/filters/stream_filter_remove_error.phpt
+++ b/ext/standard/tests/filters/stream_filter_remove_error.phpt
@@ -10,7 +10,7 @@ if(! in_array( "string.rot13", $filters )) die( "skip rot13 filter not available
/* Prototype : bool stream_filter_remove(resource stream_filter)
* Description: Flushes any data in the filter's internal buffer, removes it from the chain, and frees the resource
* Source code: ext/standard/streamsfuncs.c
- * Alias to functions:
+ * Alias to functions:
*/
$file = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'streamfilterTest.txt';
diff --git a/ext/standard/tests/general_functions/001.phpt b/ext/standard/tests/general_functions/001.phpt
index bfd82e55b0..307122e1cb 100644
--- a/ext/standard/tests/general_functions/001.phpt
+++ b/ext/standard/tests/general_functions/001.phpt
@@ -1,7 +1,7 @@
--TEST--
sprintf() function
--FILE--
-<?php
+<?php
$agent = sprintf("%.5s", "James Bond, 007");
diff --git a/ext/standard/tests/general_functions/003.phpt b/ext/standard/tests/general_functions/003.phpt
index 7ad90c8b5a..0388cf95b0 100644
--- a/ext/standard/tests/general_functions/003.phpt
+++ b/ext/standard/tests/general_functions/003.phpt
@@ -1,11 +1,11 @@
--TEST--
levenshtein() function test
--FILE--
-<?php
+<?php
function test_me($title,$expect,$text1,$text2,$cost1=0,$cost2=0,$cost3=0) {
- if($cost1==0)
+ if($cost1==0)
$result=levenshtein($text1,$text2);
else
$result=levenshtein($text1,$text2,$cost1,$cost2,$cost3);
@@ -16,8 +16,8 @@ function test_me($title,$expect,$text1,$text2,$cost1=0,$cost2=0,$cost3=0) {
echo "for '$text1'/'$text2' ";
if($cost1) echo "($cost1:$cost2:$cost3)";
echo "\n";
-
- return 1;
+
+ return 1;
}
$n=0;
diff --git a/ext/standard/tests/general_functions/004.phpt b/ext/standard/tests/general_functions/004.phpt
index 40b47cc1ca..5468ca99f0 100644
--- a/ext/standard/tests/general_functions/004.phpt
+++ b/ext/standard/tests/general_functions/004.phpt
@@ -1,7 +1,7 @@
--TEST--
fgetcsv() with tab delimited fields (BUG #8258)
--FILE--
-<?php
+<?php
chdir(dirname(__FILE__));
$fp=fopen("004.data","r");
while($a=fgetcsv($fp,100,"\t")) {
diff --git a/ext/standard/tests/general_functions/007.phpt b/ext/standard/tests/general_functions/007.phpt
index f755ab4f80..02fc6c6480 100644
--- a/ext/standard/tests/general_functions/007.phpt
+++ b/ext/standard/tests/general_functions/007.phpt
@@ -5,7 +5,7 @@ MD5 / Base64
function test($str) {
$res = md5(base64_decode(base64_encode($str)))."\n";
return $res;
-}
+}
echo test("");
echo test("a");
echo test("abc");
diff --git a/ext/standard/tests/general_functions/009.phpt b/ext/standard/tests/general_functions/009.phpt
index e80d36140d..39dc2189b3 100644
--- a/ext/standard/tests/general_functions/009.phpt
+++ b/ext/standard/tests/general_functions/009.phpt
@@ -5,7 +5,7 @@ SHA1
function test($str) {
$res = sha1($str)."\n";
return $res;
-}
+}
echo test("");
echo test("a");
echo test("abc");
diff --git a/ext/standard/tests/general_functions/bug27678.phpt b/ext/standard/tests/general_functions/bug27678.phpt
index 6f95509e14..7f6597d288 100644
--- a/ext/standard/tests/general_functions/bug27678.phpt
+++ b/ext/standard/tests/general_functions/bug27678.phpt
@@ -11,6 +11,6 @@ var_dump(strlen($num) == 3); // $num == 'inf'
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
bool(true)
Done
diff --git a/ext/standard/tests/general_functions/bug31190.phpt b/ext/standard/tests/general_functions/bug31190.phpt
index 7d154708fa..12776448b3 100644
--- a/ext/standard/tests/general_functions/bug31190.phpt
+++ b/ext/standard/tests/general_functions/bug31190.phpt
@@ -4,7 +4,7 @@ Bug #31190 (exception in call_user_func_array())
<?php
class test {
- function throwException() { throw new Exception("Hello World!\n");
+ function throwException() { throw new Exception("Hello World!\n");
} }
$array = array(new test(), 'throwException');
diff --git a/ext/standard/tests/general_functions/bug36011.phpt b/ext/standard/tests/general_functions/bug36011.phpt
index 248608e008..00530bf846 100644
--- a/ext/standard/tests/general_functions/bug36011.phpt
+++ b/ext/standard/tests/general_functions/bug36011.phpt
@@ -9,17 +9,17 @@ class TestClass
{
echo __METHOD__ . "()\n";
}
-
+
function whee()
{
array_map(array('TestClass', 'test'), array('array_value'));
}
-
+
function whee4()
{
call_user_func(array('TestClass', 'test'));
}
-
+
static function whee5()
{
call_user_func(array('TestClass', 'test'));
diff --git a/ext/standard/tests/general_functions/bug40752.phpt b/ext/standard/tests/general_functions/bug40752.phpt
index 9500573e8d..9bf524029c 100644
--- a/ext/standard/tests/general_functions/bug40752.phpt
+++ b/ext/standard/tests/general_functions/bug40752.phpt
@@ -22,7 +22,7 @@ unlink($file);
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
array(1) {
["foo"]=>
array(1) {
diff --git a/ext/standard/tests/general_functions/bug41037.phpt b/ext/standard/tests/general_functions/bug41037.phpt
index 0ffc8d58f6..b9bb5856d8 100644
--- a/ext/standard/tests/general_functions/bug41037.phpt
+++ b/ext/standard/tests/general_functions/bug41037.phpt
@@ -14,7 +14,7 @@ declare (ticks=1) {
echo "Done\n";
}
?>
---EXPECTF--
+--EXPECTF--
hello
Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d
Done
diff --git a/ext/standard/tests/general_functions/bug41445.phpt b/ext/standard/tests/general_functions/bug41445.phpt
index 000e9d347d..f46dc9093c 100644
--- a/ext/standard/tests/general_functions/bug41445.phpt
+++ b/ext/standard/tests/general_functions/bug41445.phpt
@@ -35,7 +35,7 @@ var_dump(parse_ini_file($file));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
array(2) {
["001099030277"]=>
array(1) {
diff --git a/ext/standard/tests/general_functions/bug41445_1.phpt b/ext/standard/tests/general_functions/bug41445_1.phpt
index 120d9400b6..b70bf9b8f0 100644
--- a/ext/standard/tests/general_functions/bug41445_1.phpt
+++ b/ext/standard/tests/general_functions/bug41445_1.phpt
@@ -25,7 +25,7 @@ var_dump(parse_ini_file($file));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
array(3) {
["2454.33"]=>
array(1) {
diff --git a/ext/standard/tests/general_functions/bug43293_1.phpt b/ext/standard/tests/general_functions/bug43293_1.phpt
index d2c7f10ca4..34eb2f855c 100644
--- a/ext/standard/tests/general_functions/bug43293_1.phpt
+++ b/ext/standard/tests/general_functions/bug43293_1.phpt
@@ -4,7 +4,7 @@ Bug #43293 (Multiple segfaults in getopt())
register_argc_argv=Off
--FILE--
<?php
-$argv = array(1, 2, 3);
+$argv = array(1, 2, 3);
var_dump(getopt("abcd"));
var_dump($argv);
$argv = null;
diff --git a/ext/standard/tests/general_functions/bug44667.phpt b/ext/standard/tests/general_functions/bug44667.phpt
index 53290a7a30..d4d7b94b4b 100644
--- a/ext/standard/tests/general_functions/bug44667.phpt
+++ b/ext/standard/tests/general_functions/bug44667.phpt
@@ -11,19 +11,19 @@ $descriptor_spec = array(
0 => array('pipe', 'rb'),
1 => array('pipe', 'wb'),
);
-
+
$proc = proc_open('cat', $descriptor_spec, $pipes);
-
+
fwrite($pipes[0], 'Hello', 5);
fflush($pipes[0]);
fclose($pipes[0]);
-
+
$result = fread($pipes[1], 5);
fclose($pipes[1]);
-
+
proc_close($proc);
-
-echo "Result is: ", $result, "\n";
+
+echo "Result is: ", $result, "\n";
echo "Done\n";
diff --git a/ext/standard/tests/general_functions/bug66094.phpt b/ext/standard/tests/general_functions/bug66094.phpt
index ecc13ab07a..d218e70efa 100644
--- a/ext/standard/tests/general_functions/bug66094.phpt
+++ b/ext/standard/tests/general_functions/bug66094.phpt
@@ -7,6 +7,6 @@ register_tick_function($closure = function () { echo "Tick!\n"; });
unregister_tick_function($closure);
echo "done";
?>
---EXPECT--
+--EXPECT--
Tick!
done
diff --git a/ext/standard/tests/general_functions/call_user_func_array_variation_002.phpt b/ext/standard/tests/general_functions/call_user_func_array_variation_002.phpt
index 4a4845aa1d..9bd7ddfb35 100644
--- a/ext/standard/tests/general_functions/call_user_func_array_variation_002.phpt
+++ b/ext/standard/tests/general_functions/call_user_func_array_variation_002.phpt
@@ -5,7 +5,7 @@ Test call_user_func_array() function : first parameter variation
/* Prototype : mixed call_user_func_array(string function_name, array parameters)
* Description: Call a user function which is the first parameter with the arguments contained in array
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing call_user_func_array() : usage variation ***\n";
diff --git a/ext/standard/tests/general_functions/call_user_func_array_variation_003.phpt b/ext/standard/tests/general_functions/call_user_func_array_variation_003.phpt
index 51a5d74ae2..efd6b76255 100644
--- a/ext/standard/tests/general_functions/call_user_func_array_variation_003.phpt
+++ b/ext/standard/tests/general_functions/call_user_func_array_variation_003.phpt
@@ -5,7 +5,7 @@ Test call_user_func_array() function : second parameter variation
/* Prototype : mixed call_user_func_array(string function_name, array parameters)
* Description: Call a user function which is the first parameter with the arguments contained in array
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing call_user_func_array() : usage variation ***\n";
diff --git a/ext/standard/tests/general_functions/closures_001.phpt b/ext/standard/tests/general_functions/closures_001.phpt
index 3a077f2db6..0e81f912cf 100644
--- a/ext/standard/tests/general_functions/closures_001.phpt
+++ b/ext/standard/tests/general_functions/closures_001.phpt
@@ -6,6 +6,6 @@ register_shutdown_function(function () { echo "Hello World!\n"; });
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
Done
Hello World!
diff --git a/ext/standard/tests/general_functions/closures_002.phpt b/ext/standard/tests/general_functions/closures_002.phpt
index 6df389bbb1..e0ef5121c0 100644
--- a/ext/standard/tests/general_functions/closures_002.phpt
+++ b/ext/standard/tests/general_functions/closures_002.phpt
@@ -16,7 +16,7 @@ echo "$i\n";
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Test
%d
%d
diff --git a/ext/standard/tests/general_functions/debug_zval_dump_o.phpt b/ext/standard/tests/general_functions/debug_zval_dump_o.phpt
index e2c84dae9b..b14dcad344 100644
--- a/ext/standard/tests/general_functions/debug_zval_dump_o.phpt
+++ b/ext/standard/tests/general_functions/debug_zval_dump_o.phpt
@@ -76,7 +76,7 @@ class contains_object_class
}
/* creating new object $obj */
-$obj = new contains_object_class();
+$obj = new contains_object_class();
$obj1 = & $obj; //object $obj1 references object $obj
$obj2 = & $obj;
$obj3 = & $obj2;
diff --git a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt
index 849d8b492c..68a9f7cd9e 100644
--- a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt
+++ b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt
@@ -49,7 +49,7 @@ debug_zval_dump($ref_first_var);
echo "\n-- Value of \$first_var --\n";
debug_zval_dump($first_var);
-unset($ref_first_var);
+unset($ref_first_var);
/* dump value and reference count of $first_var, $ref_first_var
here $ref_first_var is unset */
@@ -71,7 +71,7 @@ debug_zval_dump($var_3);
/* unsetting $var_3 */
unset($var_3);
-echo "\n-- Value of \$var_3: (after unsetting var_3) --\n";
+echo "\n-- Value of \$var_3: (after unsetting var_3) --\n";
debug_zval_dump($var_3);
echo "\n-- Value of \$var_2: --\n";
debug_zval_dump($var_2);
@@ -94,7 +94,7 @@ $misc_values = array (
/* nulls */
NULL,
null,
-
+
/* unset variable */
@$unset_var,
diff --git a/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt b/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt
index c53b5153f8..57115a2b72 100644
--- a/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt
+++ b/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt
@@ -13,7 +13,7 @@ enable_dl=1
<?php
var_dump(dl(str_repeat("a", 8376757)));
?>
---EXPECTF--
+--EXPECTF--
Warning: dl(): File name exceeds the maximum allowed length of %d characters in %s on line %d
bool(false)
diff --git a/ext/standard/tests/general_functions/error_clear_last.phpt b/ext/standard/tests/general_functions/error_clear_last.phpt
index 02936c84cb..675affb625 100644
--- a/ext/standard/tests/general_functions/error_clear_last.phpt
+++ b/ext/standard/tests/general_functions/error_clear_last.phpt
@@ -15,7 +15,7 @@ var_dump(error_get_last());
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
NULL
NULL
array(4) {
diff --git a/ext/standard/tests/general_functions/error_get_last.phpt b/ext/standard/tests/general_functions/error_get_last.phpt
index 95a6cf434c..71f068f104 100644
--- a/ext/standard/tests/general_functions/error_get_last.phpt
+++ b/ext/standard/tests/general_functions/error_get_last.phpt
@@ -13,7 +13,7 @@ var_dump(error_get_last());
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
NULL
Warning: error_get_last() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/standard/tests/general_functions/escapeshellarg_basic-win32-mb.phpt b/ext/standard/tests/general_functions/escapeshellarg_basic-win32-mb.phpt
index f85f4a4195..d7b27cd8de 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_basic-win32-mb.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_basic-win32-mb.phpt
@@ -10,7 +10,7 @@ if( substr(PHP_OS, 0, 3) != "WIN" )
/* Prototype : string escapeshellarg ( string $arg )
* Description: Escape a string to be used as a shell argument.
* Source code: ext/standard/exec.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for escapeshellarg() function\n";
diff --git a/ext/standard/tests/general_functions/escapeshellarg_basic-win32.phpt b/ext/standard/tests/general_functions/escapeshellarg_basic-win32.phpt
index d97c1a956b..7ee46ea9a2 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_basic-win32.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_basic-win32.phpt
@@ -10,7 +10,7 @@ if( substr(PHP_OS, 0, 3) != "WIN" )
/* Prototype : string escapeshellarg ( string $arg )
* Description: Escape a string to be used as a shell argument.
* Source code: ext/standard/exec.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for escapeshellarg() function\n";
diff --git a/ext/standard/tests/general_functions/escapeshellarg_basic.phpt b/ext/standard/tests/general_functions/escapeshellarg_basic.phpt
index c26915c923..1efa72d992 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_basic.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_basic.phpt
@@ -10,7 +10,7 @@ if( substr(PHP_OS, 0, 3) == "WIN" )
/* Prototype : string escapeshellarg ( string $arg )
* Description: Escape a string to be used as a shell argument.
* Source code: ext/standard/exec.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for escapeshellarg() function\n";
diff --git a/ext/standard/tests/general_functions/escapeshellarg_error.phpt b/ext/standard/tests/general_functions/escapeshellarg_error.phpt
index 139a445202..8746b5884a 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_error.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_error.phpt
@@ -38,7 +38,7 @@ var_dump( escapeshellarg($fp));
fclose($fp);
echo "\n-- Testing escapeshellarg() function with a array supplied for argument --\n";
-$arg = array(1,2,3);
+$arg = array(1,2,3);
var_dump( escapeshellarg($arg));
?>
diff --git a/ext/standard/tests/general_functions/escapeshellarg_variation1-win32.phpt b/ext/standard/tests/general_functions/escapeshellarg_variation1-win32.phpt
index 8f8bc19d8f..f4e9439b14 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_variation1-win32.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_variation1-win32.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12,
- -12,
+ -12,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
diff --git a/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt b/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt
index 32431a581a..6f3b6a9f32 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12,
- -12,
+ -12,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
diff --git a/ext/standard/tests/general_functions/floatval.phpt b/ext/standard/tests/general_functions/floatval.phpt
index d7bdffd6ae..136f57707c 100644
--- a/ext/standard/tests/general_functions/floatval.phpt
+++ b/ext/standard/tests/general_functions/floatval.phpt
@@ -102,7 +102,7 @@ var_dump( doubleval() );
//arguments more than expected
var_dump( floatval(TRUE, FALSE) );
var_dump( doubleval(TRUE, FALSE) );
-
+
echo "\nDone\n";
diff --git a/ext/standard/tests/general_functions/get_cfg_var_variation9.phpt b/ext/standard/tests/general_functions/get_cfg_var_variation9.phpt
index 00a24597f8..6e4b304018 100644
--- a/ext/standard/tests/general_functions/get_cfg_var_variation9.phpt
+++ b/ext/standard/tests/general_functions/get_cfg_var_variation9.phpt
@@ -21,7 +21,7 @@ EOT;
$variation_array = array(
'session.use_cookies',
- 'session.serialize_handler',
+ 'session.serialize_handler',
'session.save_handler'
);
diff --git a/ext/standard/tests/general_functions/get_defined_constants_basic.phpt b/ext/standard/tests/general_functions/get_defined_constants_basic.phpt
index 9de39c18d0..ad40e2df7f 100644
--- a/ext/standard/tests/general_functions/get_defined_constants_basic.phpt
+++ b/ext/standard/tests/general_functions/get_defined_constants_basic.phpt
@@ -5,7 +5,7 @@ Test get_defined_constants() function : basic functionality
/* Prototype : array get_defined_constants ([ bool $categorize ] )
* Description: Returns an associative array with the names of all the constants and their values
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_defined_constants() : basic functionality ***\n";
@@ -29,7 +29,7 @@ if ($n2 == $n1 + 1 && array_key_exists("USER_CONSTANT", $arr2)) {
?>
===DONE===
---EXPECT--
+--EXPECT--
*** Testing get_defined_constants() : basic functionality ***
string(5) "array"
string(5) "array"
diff --git a/ext/standard/tests/general_functions/get_defined_constants_error.phpt b/ext/standard/tests/general_functions/get_defined_constants_error.phpt
index 1092712ee9..098abd19c6 100644
--- a/ext/standard/tests/general_functions/get_defined_constants_error.phpt
+++ b/ext/standard/tests/general_functions/get_defined_constants_error.phpt
@@ -5,7 +5,7 @@ Test get_defined_constants() function : error conditions
/* Prototype : array get_defined_constants ([ bool $categorize ] )
* Description: Returns an associative array with the names of all the constants and their values
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_defined_constants() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/get_defined_vars_basic.phpt b/ext/standard/tests/general_functions/get_defined_vars_basic.phpt
index 3aa6e72a92..cd0360e3ee 100644
--- a/ext/standard/tests/general_functions/get_defined_vars_basic.phpt
+++ b/ext/standard/tests/general_functions/get_defined_vars_basic.phpt
@@ -11,39 +11,39 @@ Test get_defined_vars() function
echo "Simple testcase for get_defined_vars() function\n\n";
function f1() {
- echo "\n-- Function f1() called --\n";
+ echo "\n-- Function f1() called --\n";
$vars = get_defined_vars();
-
+
if (count($vars) != 0) {
- echo "TEST FAILED\n";
- }
-
- echo "\n-- ..define some local variables --\n";
+ echo "TEST FAILED\n";
+ }
+
+ echo "\n-- ..define some local variables --\n";
$i = 123;
$f = 123.456;
$b = false;
- $s = "Hello World";
+ $s = "Hello World";
$arr = array(1,2,3,4);
- var_dump( get_defined_vars() );
+ var_dump( get_defined_vars() );
f2();
}
function f2() {
- echo "\n -- Function f2() called --\n";
+ echo "\n -- Function f2() called --\n";
$vars= get_defined_vars();
-
+
if (count($vars) != 0) {
- echo "TEST FAILED\n";
+ echo "TEST FAILED\n";
}
-
- echo "\n-- ...define some variables --\n";
+
+ echo "\n-- ...define some variables --\n";
$i = 456;
$f = 456.678;
$b = true;
- $s = "Goodnight";
- $arr = array("foo", "bar");
+ $s = "Goodnight";
+ $arr = array("foo", "bar");
var_dump( get_defined_vars() );
-
+
echo "\n-- ...define some more variables --\n";
$i1 = 456;
$f1 = 456.678;
@@ -56,8 +56,8 @@ echo "\n-- Get variables at global scope --\n";
$vars = get_defined_vars();
if (count($vars) == 0) {
- echo "TEST FAILED - Global variables missing at global scope\n";
-}
+ echo "TEST FAILED - Global variables missing at global scope\n";
+}
// call a function
f1();
diff --git a/ext/standard/tests/general_functions/get_extension_funcs_basic.phpt b/ext/standard/tests/general_functions/get_extension_funcs_basic.phpt
index 2dbe332ccc..33d4af03d2 100644
--- a/ext/standard/tests/general_functions/get_extension_funcs_basic.phpt
+++ b/ext/standard/tests/general_functions/get_extension_funcs_basic.phpt
@@ -5,7 +5,7 @@ Test get_extension_funcs() function: basic test
/* Prototype : array get_extension_funcs ( string $module_name )
* Description: Returns an array with the names of the functions of a module.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for get_extension_funcs() function\n";
diff --git a/ext/standard/tests/general_functions/get_extension_funcs_error.phpt b/ext/standard/tests/general_functions/get_extension_funcs_error.phpt
index 33e32a66a5..d3d72f301b 100644
--- a/ext/standard/tests/general_functions/get_extension_funcs_error.phpt
+++ b/ext/standard/tests/general_functions/get_extension_funcs_error.phpt
@@ -5,7 +5,7 @@ Test get_extension_funcs() function : error conditions
/* Prototype : array get_extension_funcs ( string $module_name )
* Description: Returns an array with the names of the functions of a module.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_extension_funcs() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/get_extension_funcs_variation.phpt b/ext/standard/tests/general_functions/get_extension_funcs_variation.phpt
index c575737264..c412d1816c 100644
--- a/ext/standard/tests/general_functions/get_extension_funcs_variation.phpt
+++ b/ext/standard/tests/general_functions/get_extension_funcs_variation.phpt
@@ -5,7 +5,7 @@ Test get_extension_funcs() function : error conditions
/* Prototype : array get_extension_funcs ( string $module_name )
* Description: Returns an array with the names of the functions of a module.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_extension_funcs() function: with unexpected inputs for 'module_name' argument ***\n";
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
diff --git a/ext/standard/tests/general_functions/get_include_path_basic.phpt b/ext/standard/tests/general_functions/get_include_path_basic.phpt
index 999862bc64..b777a2a44d 100644
--- a/ext/standard/tests/general_functions/get_include_path_basic.phpt
+++ b/ext/standard/tests/general_functions/get_include_path_basic.phpt
@@ -17,7 +17,7 @@ if (ini_get("include_path") == get_include_path()) {
echo "PASSED\n";
} else {
echo "FAILED\n";
-}
+}
echo "\nError cases:\n";
var_dump(get_include_path(TRUE));
diff --git a/ext/standard/tests/general_functions/get_loaded_extensions_basic.phpt b/ext/standard/tests/general_functions/get_loaded_extensions_basic.phpt
index 52b2136f5b..127378d3c1 100644
--- a/ext/standard/tests/general_functions/get_loaded_extensions_basic.phpt
+++ b/ext/standard/tests/general_functions/get_loaded_extensions_basic.phpt
@@ -5,7 +5,7 @@ Test get_loaded_extensions() function : basic functionality
/* Prototype : array get_loaded_extensions ([ bool $zend_extensions= false ] )
* Description: Returns an array with the names of all modules compiled and loaded
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_loaded_extensions() : basic functionality ***\n";
diff --git a/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt b/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt
index d731046dc6..10862f4468 100644
--- a/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt
+++ b/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt
@@ -5,7 +5,7 @@ Test get_loaded_extensions() function : error conditions
/* Prototype : array get_loaded_extensions ([ bool $zend_extensions= false ] )
* Description: Returns an array with the names of all modules compiled and loaded
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_loaded_extensions() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt b/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt
index 75cde18b08..add1ea141c 100644
--- a/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt
+++ b/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt
@@ -9,9 +9,9 @@ Test get_magic_quotes_gpc() function
echo "Simple testcase for get_magic_quotes_gpc() function\n";
var_dump(get_magic_quotes_gpc());
-echo "\n-- Error cases --\n";
+echo "\n-- Error cases --\n";
// no checks on number of args
-var_dump(get_magic_quotes_gpc(true));
+var_dump(get_magic_quotes_gpc(true));
?>
===DONE===
diff --git a/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt b/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt
index 4106ee9eea..620e97cf83 100644
--- a/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt
+++ b/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt
@@ -10,9 +10,9 @@ echo "Simple testcase for get_magic_quotes_runtime() function\n";
var_dump(get_magic_quotes_runtime());
-echo "\n-- Error cases --\n";
+echo "\n-- Error cases --\n";
// no checks on number of args
-var_dump(get_magic_quotes_runtime(true));
+var_dump(get_magic_quotes_runtime(true));
?>
===DONE===
diff --git a/ext/standard/tests/general_functions/get_resource_type_basic.phpt b/ext/standard/tests/general_functions/get_resource_type_basic.phpt
index 7ff4aec2c3..99ffbafdea 100644
--- a/ext/standard/tests/general_functions/get_resource_type_basic.phpt
+++ b/ext/standard/tests/general_functions/get_resource_type_basic.phpt
@@ -5,12 +5,12 @@ Test get_resource_type() function : basic functionality
/* Prototype : string get_resource_type ( resource $handle )
* Description: Returns the resource type
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_resource_type() : basic functionality ***\n";
$res = fopen(__FILE__, "r");
-var_dump(get_resource_type($res));
+var_dump(get_resource_type($res));
?>
===DONE===
diff --git a/ext/standard/tests/general_functions/get_resource_type_error.phpt b/ext/standard/tests/general_functions/get_resource_type_error.phpt
index 40dcf07799..f7457bf7f4 100644
--- a/ext/standard/tests/general_functions/get_resource_type_error.phpt
+++ b/ext/standard/tests/general_functions/get_resource_type_error.phpt
@@ -5,7 +5,7 @@ Test get_resource_type() function : error conditions
/* Prototype : string get_resource_type ( resource $handle )
* Description: Returns the resource type
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_resource_type() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/get_resource_type_variation1.phpt b/ext/standard/tests/general_functions/get_resource_type_variation1.phpt
index cd974fd5e0..df4a04b9d4 100644
--- a/ext/standard/tests/general_functions/get_resource_type_variation1.phpt
+++ b/ext/standard/tests/general_functions/get_resource_type_variation1.phpt
@@ -5,14 +5,14 @@ Test get_resource_type() function : usage variations - different data types as h
/* Prototype : string get_resource_type ( resource $handle )
* Description: Returns the resource type
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_resource_type() : variation test ***\n";
class Hello {
public function SayHello($arg) {
echo "Hello\n";
- }
+ }
}
$res = fopen(__FILE__, "r");
diff --git a/ext/standard/tests/general_functions/getmypid_basic.phpt b/ext/standard/tests/general_functions/getmypid_basic.phpt
index 869eb59442..3f4d9cd5cf 100644
--- a/ext/standard/tests/general_functions/getmypid_basic.phpt
+++ b/ext/standard/tests/general_functions/getmypid_basic.phpt
@@ -5,7 +5,7 @@ Test getmypid() function: basic test
/* Prototype : int getmypid ( void )
* Description: Gets the current PHP process ID.
* Source code: ext/standard/pageinfo.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for getmypid() function\n";
diff --git a/ext/standard/tests/general_functions/getrusage.phpt b/ext/standard/tests/general_functions/getrusage.phpt
index e9fc8c6f6e..4caca88e1b 100644
--- a/ext/standard/tests/general_functions/getrusage.phpt
+++ b/ext/standard/tests/general_functions/getrusage.phpt
@@ -13,7 +13,7 @@ var_dump(getrusage(array()));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
string(5) "array"
string(5) "array"
string(5) "array"
diff --git a/ext/standard/tests/general_functions/getrusage_basic.phpt b/ext/standard/tests/general_functions/getrusage_basic.phpt
index b2379a7663..0fe0a6afba 100644
--- a/ext/standard/tests/general_functions/getrusage_basic.phpt
+++ b/ext/standard/tests/general_functions/getrusage_basic.phpt
@@ -7,7 +7,7 @@ Test getrusage() function: basic test
/* Prototype : array getrusage ([ int $who ] )
* Description: Gets the current resource usages
* Source code: ext/standard/microtime.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for getrusage() function\n";
@@ -16,11 +16,11 @@ $dat = getrusage();
if (!is_array($dat)) {
echo "TEST FAILED : getrusage should return an array\n";
-}
+}
// echo the fields which are common to all platforms
echo "User time used (seconds) " . $dat["ru_utime.tv_sec"] . "\n";
-echo "User time used (microseconds) " . $dat["ru_utime.tv_usec"] . "\n";
+echo "User time used (microseconds) " . $dat["ru_utime.tv_usec"] . "\n";
?>
===DONE===
--EXPECTF--
diff --git a/ext/standard/tests/general_functions/getrusage_error.phpt b/ext/standard/tests/general_functions/getrusage_error.phpt
index a40a43449a..04c9fb9abe 100644
--- a/ext/standard/tests/general_functions/getrusage_error.phpt
+++ b/ext/standard/tests/general_functions/getrusage_error.phpt
@@ -7,7 +7,7 @@ Test getrusage() function : error conditions - incorrect number of args
/* Prototype : array getrusage ([ int $who ] )
* Description: Gets the current resource usages
* Source code: ext/standard/microtime.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/general_functions/getrusage_variation1.phpt b/ext/standard/tests/general_functions/getrusage_variation1.phpt
index 568c9c7383..0c072ed6e0 100644
--- a/ext/standard/tests/general_functions/getrusage_variation1.phpt
+++ b/ext/standard/tests/general_functions/getrusage_variation1.phpt
@@ -3,14 +3,14 @@ Test getrusage() function : usage variation - diff data types as $who arg
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
-if (!function_exists("getrusage")) die("skip");
+if (!function_exists("getrusage")) die("skip");
?>
--FILE--
<?php
/* Prototype : array getrusage ([ int $who ] )
* Description: Gets the current resource usages
* Source code: ext/standard/microtime.c
- * Alias to functions:
+ * Alias to functions:
*/
@@ -50,13 +50,13 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// string data
/*16*/ "0",
'1',
"1232456",
"1.23E4",
-
+
// undefined data
/*20*/ @$undefined_var,
diff --git a/ext/standard/tests/general_functions/getservbyname_error.phpt b/ext/standard/tests/general_functions/getservbyname_error.phpt
index eaeec64888..ec9b7795a5 100644
--- a/ext/standard/tests/general_functions/getservbyname_error.phpt
+++ b/ext/standard/tests/general_functions/getservbyname_error.phpt
@@ -8,7 +8,7 @@ Danilo Sanchi (sanchi@grupporetina.com)
--FILE--
<?php
$service = "www";
-$protocol = "tcp";
+$protocol = "tcp";
$extra_arg = 12;
var_dump(getservbyname($service, $protocol, $extra_arg ) );
var_dump(getservbyname($service));
diff --git a/ext/standard/tests/general_functions/getservbyname_variation14.phpt b/ext/standard/tests/general_functions/getservbyname_variation14.phpt
index 986d7d5973..8e94bb9557 100644
--- a/ext/standard/tests/general_functions/getservbyname_variation14.phpt
+++ b/ext/standard/tests/general_functions/getservbyname_variation14.phpt
@@ -6,7 +6,7 @@ Test function getservbyname() by substituting argument 2 with string values.
echo "*** Test substituting argument 2 with string values ***\n";
-$service = "www";
+$service = "www";
$heredoc = <<<EOT
diff --git a/ext/standard/tests/general_functions/getservbyname_variation2.phpt b/ext/standard/tests/general_functions/getservbyname_variation2.phpt
index 7c00b1e7f7..a659ba4cce 100644
--- a/ext/standard/tests/general_functions/getservbyname_variation2.phpt
+++ b/ext/standard/tests/general_functions/getservbyname_variation2.phpt
@@ -6,7 +6,7 @@ Test function getservbyname() by substituting argument 1 with boolean values.
echo "*** Test substituting argument 1 with boolean values ***\n";
-$protocol = "tcp";
+$protocol = "tcp";
$variation_array = array(
diff --git a/ext/standard/tests/general_functions/getservbyname_variation5.phpt b/ext/standard/tests/general_functions/getservbyname_variation5.phpt
index f06a6ec884..2ee334a0ba 100644
--- a/ext/standard/tests/general_functions/getservbyname_variation5.phpt
+++ b/ext/standard/tests/general_functions/getservbyname_variation5.phpt
@@ -6,7 +6,7 @@ Test function getservbyname() by substituting argument 1 with int values.
echo "*** Test substituting argument 1 with int values ***\n";
-$protocol = "tcp";
+$protocol = "tcp";
$variation_array = array (
diff --git a/ext/standard/tests/general_functions/getservbyport_error.phpt b/ext/standard/tests/general_functions/getservbyport_error.phpt
index e2c245b7ea..7d4107cedf 100644
--- a/ext/standard/tests/general_functions/getservbyport_error.phpt
+++ b/ext/standard/tests/general_functions/getservbyport_error.phpt
@@ -8,7 +8,7 @@ Simone Gentili (sensorario@gmail.com)
--FILE--
<?php
$port = 80;
-$protocol = "tcp";
+$protocol = "tcp";
$extra_arg = 12;
var_dump(getservbyport( $port, $protocol, $extra_arg ) );
var_dump(getservbyport($port));
diff --git a/ext/standard/tests/general_functions/getservbyport_variation1.phpt b/ext/standard/tests/general_functions/getservbyport_variation1.phpt
index 3073f66430..a876ac1fea 100644
--- a/ext/standard/tests/general_functions/getservbyport_variation1.phpt
+++ b/ext/standard/tests/general_functions/getservbyport_variation1.phpt
@@ -18,7 +18,7 @@ Simone Gentili (sensorario@gmail.com)
var_dump(getservbyport( 2, 2));
var_dump(getservbyport( "80", "tcp"));
var_dump(getservbyport( new stdClass(), new stdClass()));
-
+
?>
--EXPECTF--
bool(false)
diff --git a/ext/standard/tests/general_functions/gettype_settype_error.phpt b/ext/standard/tests/general_functions/gettype_settype_error.phpt
index 2c6aac6875..af8959d9fd 100644
--- a/ext/standard/tests/general_functions/gettype_settype_error.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_error.phpt
@@ -32,7 +32,7 @@ var_dump( settype( $var, "unknown" ) );
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
**** Testing gettype() and settype() functions ****
*** Testing gettype(): error conditions ***
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation1.phpt b/ext/standard/tests/general_functions/gettype_settype_variation1.phpt
index 6265d0a373..5761f1b832 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation1.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation1.phpt
@@ -24,7 +24,7 @@ precision=14
dump the variable to see its new data
get the new type of the variable
*/
-
+
/* function to handle catchable errors */
function foo($errno, $errstr, $errfile, $errline) {
// var_dump($errstr);
@@ -33,7 +33,7 @@ function foo($errno, $errstr, $errfile, $errline) {
}
//set the error handler, this is required as
// settype() would fail with catachable fatal error
-set_error_handler("foo");
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -57,7 +57,7 @@ class point
}
}
-$var_values = array (
+$var_values = array (
/* nulls */
null,
@@ -65,7 +65,7 @@ $var_values = array (
FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -79,7 +79,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -125,11 +125,11 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -155,7 +155,7 @@ $var_values = array (
$undef_var
);
-/* test conversion to null type */
+/* test conversion to null type */
$type = "null";
echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
@@ -166,20 +166,20 @@ foreach ($var_values as $var) {
// get the current data type
var_dump( gettype($var) );
-
+
// convert it to null
var_dump( settype($var, $type) );
// dump the converted data
var_dump( $var );
-
+
// check the new type after conversion
var_dump( gettype($var) );
}
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation2.phpt b/ext/standard/tests/general_functions/gettype_settype_variation2.phpt
index ba3a0dbfec..ab9126c281 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation2.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation2.phpt
@@ -36,7 +36,7 @@ function foo($errno, $errstr, $errfile, $errline) {
}
//set the error handler, this is required as
// settype() would fail with catachable fatal error
-set_error_handler("foo");
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -60,7 +60,7 @@ class point
}
}
-$var_values = array (
+$var_values = array (
/* nulls */
null,
@@ -68,7 +68,7 @@ $var_values = array (
FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -82,7 +82,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -128,11 +128,11 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -173,13 +173,13 @@ foreach ($types as $type) {
// get the current data type
var_dump( gettype($var) );
-
+
// convert it to new type
var_dump( settype($var, $type) );
-
+
// dump the converted $var
var_dump( $var );
-
+
// get the new type of the $var
var_dump( gettype($var) );
}
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation3.phpt b/ext/standard/tests/general_functions/gettype_settype_variation3.phpt
index 29c1463fb1..ff30b3e919 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation3.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation3.phpt
@@ -33,7 +33,7 @@ function foo($errno, $errstr, $errfile, $errline) {
}
//set the error handler, this is required as
// settype() would fail with catachable fatal error
-set_error_handler("foo");
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -57,7 +57,7 @@ class point
}
}
-$var_values = array (
+$var_values = array (
/* nulls */
null,
@@ -65,7 +65,7 @@ $var_values = array (
FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -79,7 +79,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -125,11 +125,11 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -184,7 +184,7 @@ foreach ($types as $type) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation4.phpt b/ext/standard/tests/general_functions/gettype_settype_variation4.phpt
index 6f7cc23df4..03fd9e3d9e 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation4.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation4.phpt
@@ -33,7 +33,7 @@ function foo($errno, $errstr, $errfile, $errline) {
}
//set the error handler, this is required as
// settype() would fail with catachable fatal error
-set_error_handler("foo");
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -61,7 +61,7 @@ class class_with_no_member {
// no member(s)
}
-$var_values = array (
+$var_values = array (
/* nulls */
null,
@@ -69,7 +69,7 @@ $var_values = array (
FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -86,7 +86,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -133,12 +133,12 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
0.0,
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -163,7 +163,7 @@ $var_values = array (
/* undefined/unset vars */
$unset_var,
$undef_var,
-
+
/* binary strings */
b"0",
b'0',
@@ -209,7 +209,7 @@ foreach ($types as $type) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
diff --git a/ext/standard/tests/general_functions/head.phpt b/ext/standard/tests/general_functions/head.phpt
index e83bbf6aca..059c56b258 100644
--- a/ext/standard/tests/general_functions/head.phpt
+++ b/ext/standard/tests/general_functions/head.phpt
@@ -27,7 +27,7 @@ var_dump(headers_list());
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
NULL
bool(false)
array(0) {
diff --git a/ext/standard/tests/general_functions/intval_variation1.phpt b/ext/standard/tests/general_functions/intval_variation1.phpt
index bf88c7c920..dc12153832 100644
--- a/ext/standard/tests/general_functions/intval_variation1.phpt
+++ b/ext/standard/tests/general_functions/intval_variation1.phpt
@@ -5,7 +5,7 @@ Test intval() function : usage variation
/* Prototype : int intval(mixed var [, int base])
* Description: Get the integer value of a variable using the optional base for the conversion
* Source code: ext/standard/type.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing intval() : usage variation ***\n";
diff --git a/ext/standard/tests/general_functions/intval_variation2.phpt b/ext/standard/tests/general_functions/intval_variation2.phpt
index b27ace4063..150c7f8222 100644
--- a/ext/standard/tests/general_functions/intval_variation2.phpt
+++ b/ext/standard/tests/general_functions/intval_variation2.phpt
@@ -7,7 +7,7 @@ Test intval() function : usage variation
/* Prototype : int intval(mixed var [, int base])
* Description: Get the integer value of a variable using the optional base for the conversion
* Source code: ext/standard/type.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing intval() : usage variation ***\n";
diff --git a/ext/standard/tests/general_functions/is_array.phpt b/ext/standard/tests/general_functions/is_array.phpt
index 469a8ec6cb..767e5d9320 100644
--- a/ext/standard/tests/general_functions/is_array.phpt
+++ b/ext/standard/tests/general_functions/is_array.phpt
@@ -46,7 +46,7 @@ unset($unset_array);
// other types in a array
$varient_arrays = array (
/* integers */
- 543915,
+ 543915,
-5322,
0x55F,
-0xCCF,
@@ -54,7 +54,7 @@ $varient_arrays = array (
-0654,
/* strings */
- "",
+ "",
'',
"0",
'0',
@@ -68,10 +68,10 @@ $varient_arrays = array (
.5E+8,
-.5e+90,
1e5,
-
+
/* objects */
new stdclass,
-
+
/* resources */
$fp,
$dfp,
@@ -81,7 +81,7 @@ $varient_arrays = array (
NULL,
/* boolean */
- true,
+ true,
TRUE,
FALSE,
false,
@@ -104,7 +104,7 @@ var_dump( is_array() );
//arguments more than expected
var_dump( is_array ($fp, $fp) );
-
+
echo "Done\n";
/* close resources */
fclose($fp);
diff --git a/ext/standard/tests/general_functions/is_bool.phpt b/ext/standard/tests/general_functions/is_bool.phpt
index a8336524de..82bed146a2 100644
--- a/ext/standard/tests/general_functions/is_bool.phpt
+++ b/ext/standard/tests/general_functions/is_bool.phpt
@@ -18,7 +18,7 @@ $valid_bools = array(
bool values, expected output: bool(true) */
$loop_counter = 1;
foreach ($valid_bools as $bool_val ) {
- echo "-- Iteration $loop_counter --\n"; $loop_counter++;
+ echo "-- Iteration $loop_counter --\n"; $loop_counter++;
var_dump( is_bool($bool_val) );
}
@@ -98,7 +98,7 @@ $not_bool_types = array (
/* nulls */
null,
NULL,
-
+
/* arrays */
array(),
array(0),
@@ -114,8 +114,8 @@ $not_bool_types = array (
array(1 => "One", "two" => 2),
/* unset bool vars and undefined var */
- @$unset_bool1,
- @$unset_bool2,
+ @$unset_bool1,
+ @$unset_bool2,
@$unset_var,
@$undefined_var
);
@@ -123,7 +123,7 @@ $not_bool_types = array (
is_bool() on non bull types, expected output: bool(false) */
$loop_counter = 1;
foreach ($not_bool_types as $type ) {
- echo "-- Iteration $loop_counter --\n"; $loop_counter++;
+ echo "-- Iteration $loop_counter --\n"; $loop_counter++;
var_dump( is_bool($type) );
}
@@ -133,7 +133,7 @@ var_dump( is_bool() );
//arguments more than expected
var_dump( is_bool(TRUE, FALSE) );
-
+
echo "Done\n";
// close resources
diff --git a/ext/standard/tests/general_functions/is_callable_basic2.phpt b/ext/standard/tests/general_functions/is_callable_basic2.phpt
index 06941832db..bec24c8e81 100644
--- a/ext/standard/tests/general_functions/is_callable_basic2.phpt
+++ b/ext/standard/tests/general_functions/is_callable_basic2.phpt
@@ -32,11 +32,11 @@ echo "\n*** Testing is_callable() on objects ***\n";
class object_class
{
public $value = 100;
-
+
/* static method */
static public function foo() {
}
-
+
public function foo1() {
}
/* function name with mixed string and integer */
@@ -47,7 +47,7 @@ class object_class
}
/* function name having boolean value */
public function TRUE() {
- }
+ }
protected function foo2() {
}
diff --git a/ext/standard/tests/general_functions/is_float.phpt b/ext/standard/tests/general_functions/is_float.phpt
index 6adf5414f8..e223047640 100644
--- a/ext/standard/tests/general_functions/is_float.phpt
+++ b/ext/standard/tests/general_functions/is_float.phpt
@@ -8,7 +8,7 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
<?php
/* Prototype: bool is_float ( mixed $var );
* Description: Finds whether the given variable is a float
- */
+ */
echo "*** Testing is_float(), is_double() and is_real() with float values***\n";
// different valid float values
@@ -90,7 +90,7 @@ $not_floats = array (
TRUE,
false,
FALSE,
-
+
"", // strings
'',
"0",
@@ -103,7 +103,7 @@ $not_floats = array (
'1e5',
'1.5e6_string',
"1.5e6_string",
-
+
1, // integers, hex and octal
-1,
0,
@@ -112,7 +112,7 @@ $not_floats = array (
-0x673,
0123,
-0123,
-
+
@$unset_var, // unset variable
@$undefined_var
);
@@ -137,7 +137,7 @@ var_dump( is_real() );
var_dump( is_float( $floats[0], $floats[1]) );
var_dump( is_double( $floats[0], $floats[1]) );
var_dump( is_real( $floats[0], $floats[1]) );
-
+
echo "Done\n";
// close the resources used
diff --git a/ext/standard/tests/general_functions/is_float_64bit.phpt b/ext/standard/tests/general_functions/is_float_64bit.phpt
index f5350f848e..7b20dff2ce 100644
--- a/ext/standard/tests/general_functions/is_float_64bit.phpt
+++ b/ext/standard/tests/general_functions/is_float_64bit.phpt
@@ -10,7 +10,7 @@ precision=14
<?php
/* Prototype: bool is_float ( mixed $var );
* Description: Finds whether the given variable is a float
- */
+ */
echo "*** Testing is_float(), is_double() and is_real() with float values***\n";
// different valid float values
@@ -92,7 +92,7 @@ $not_floats = array (
TRUE,
false,
FALSE,
-
+
"", // strings
'',
"0",
@@ -105,7 +105,7 @@ $not_floats = array (
'1e5',
'1.5e6_string',
"1.5e6_string",
-
+
1, // integers, hex and octal
-1,
0,
@@ -114,7 +114,7 @@ $not_floats = array (
-0x673,
0123,
-0123,
-
+
@$unset_var, // unset variable
@$undefined_var
);
@@ -139,7 +139,7 @@ var_dump( is_real() );
var_dump( is_float( $floats[0], $floats[1]) );
var_dump( is_double( $floats[0], $floats[1]) );
var_dump( is_real( $floats[0], $floats[1]) );
-
+
echo "Done\n";
?>
--EXPECTF--
diff --git a/ext/standard/tests/general_functions/is_int.phpt b/ext/standard/tests/general_functions/is_int.phpt
index aa2306e763..4266a3b39c 100644
--- a/ext/standard/tests/general_functions/is_int.phpt
+++ b/ext/standard/tests/general_functions/is_int.phpt
@@ -17,7 +17,7 @@ $valid_ints = array(
1,
-1,
-2147483648, // max negative integer value
- -2147483647,
+ -2147483647,
2147483647, // max positive integer value
2147483640,
0x123B, // integer as hexadecimal
@@ -36,7 +36,7 @@ $valid_ints = array(
integer values, expected output: bool(true) */
$loop_counter = 1;
foreach ($valid_ints as $int_val ) {
- echo "--Iteration $loop_counter--\n"; $loop_counter++;
+ echo "--Iteration $loop_counter--\n"; $loop_counter++;
var_dump( is_int($int_val) );
var_dump( is_integer($int_val) );
var_dump( is_long($int_val) );
@@ -61,7 +61,7 @@ $not_int_types = array (
0x800000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
-020000000001, // float value, beyond max negative int
- 0.0,
+ 0.0,
-0.1,
1.0,
1e5,
@@ -70,14 +70,14 @@ $not_int_types = array (
-1E9,
10.0000000000000000005,
10.5e+5,
-
+
/* objects */
new stdclass,
/* resources */
$fp,
$dfp,
-
+
/* arrays */
array(),
array(0),
@@ -91,7 +91,7 @@ $not_int_types = array (
array(FALSE),
array(1,2,3,4),
array(1 => "One", "two" => 2),
-
+
/* strings */
"",
'',
@@ -126,7 +126,7 @@ $not_int_types = array (
is_int() on non integer types, expected output: bool(false) */
$loop_counter = 1;
foreach ($not_int_types as $type ) {
- echo "--Iteration $loop_counter--\n"; $loop_counter++;
+ echo "--Iteration $loop_counter--\n"; $loop_counter++;
var_dump( is_int($type) );
var_dump( is_integer($type) );
var_dump( is_long($type) );
@@ -142,7 +142,7 @@ var_dump( is_long() );
var_dump( is_int(TRUE, FALSE) );
var_dump( is_integer(TRUE, FALSE) );
var_dump( is_long(TRUE, FALSE) );
-
+
echo "Done\n";
// close the resources
diff --git a/ext/standard/tests/general_functions/is_int_64bit.phpt b/ext/standard/tests/general_functions/is_int_64bit.phpt
index ac98b09436..883debbfd8 100644
--- a/ext/standard/tests/general_functions/is_int_64bit.phpt
+++ b/ext/standard/tests/general_functions/is_int_64bit.phpt
@@ -19,7 +19,7 @@ $valid_ints = array(
1,
-1,
-2147483648, // max negative integer value
- -2147483647,
+ -2147483647,
2147483647, // max positive integer value
2147483640,
0x123B, // integer as hexadecimal
@@ -38,7 +38,7 @@ $valid_ints = array(
integer values, expected output: bool(true) */
$loop_counter = 1;
foreach ($valid_ints as $int_val ) {
- echo "--Iteration $loop_counter--\n"; $loop_counter++;
+ echo "--Iteration $loop_counter--\n"; $loop_counter++;
var_dump( is_int($int_val) );
var_dump( is_integer($int_val) );
var_dump( is_long($int_val) );
@@ -63,7 +63,7 @@ $not_int_types = array (
0x800000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
-020000000001, // float value, beyond max negative int
- 0.0,
+ 0.0,
-0.1,
1.0,
1e5,
@@ -72,14 +72,14 @@ $not_int_types = array (
-1E9,
10.0000000000000000005,
10.5e+5,
-
+
/* objects */
new stdclass,
/* resources */
$fp,
$dfp,
-
+
/* arrays */
array(),
array(0),
@@ -93,7 +93,7 @@ $not_int_types = array (
array(FALSE),
array(1,2,3,4),
array(1 => "One", "two" => 2),
-
+
/* strings */
"",
'',
@@ -128,7 +128,7 @@ $not_int_types = array (
is_int() on non integer types, expected output: bool(false) */
$loop_counter = 1;
foreach ($not_int_types as $type ) {
- echo "--Iteration $loop_counter--\n"; $loop_counter++;
+ echo "--Iteration $loop_counter--\n"; $loop_counter++;
var_dump( is_int($type) );
var_dump( is_integer($type) );
var_dump( is_long($type) );
@@ -144,7 +144,7 @@ var_dump( is_long() );
var_dump( is_int(TRUE, FALSE) );
var_dump( is_integer(TRUE, FALSE) );
var_dump( is_long(TRUE, FALSE) );
-
+
echo "Done\n";
?>
--EXPECTF--
diff --git a/ext/standard/tests/general_functions/is_null.phpt b/ext/standard/tests/general_functions/is_null.phpt
index e52b3d29f4..dace39ca10 100644
--- a/ext/standard/tests/general_functions/is_null.phpt
+++ b/ext/standard/tests/general_functions/is_null.phpt
@@ -15,7 +15,7 @@ $unset_bool = true;
$unset_object = new stdclass;
$unset_resource = fopen(__FILE__, "r");
// unset them to make it null.
-unset ($unset_array, $unset_int, $unset_float, $unset_bool, $unset_object, $unset_resource);
+unset ($unset_array, $unset_int, $unset_float, $unset_bool, $unset_object, $unset_resource);
$null_var1 = NULL;
$null_var2 = null;
@@ -133,7 +133,7 @@ var_dump( is_null() );
//arguments more than expected
var_dump( is_null(NULL, null) );
-
+
echo "Done\n";
// close the resources used
diff --git a/ext/standard/tests/general_functions/is_numeric.phpt b/ext/standard/tests/general_functions/is_numeric.phpt
index b529994ec1..b88f1ec24a 100644
--- a/ext/standard/tests/general_functions/is_numeric.phpt
+++ b/ext/standard/tests/general_functions/is_numeric.phpt
@@ -58,15 +58,15 @@ $numerics = array(
//0x1111111111111111111111,
-0x1111111,
+0x6698319,
- 01000000000000000000000,
+ 01000000000000000000000,
0123,
0345,
- -0200001,
- -0200001.7,
- 0200001.7,
- +0200001,
- +0200001.7,
- +0200001.7,
+ -0200001,
+ -0200001.7,
+ 0200001.7,
+ +0200001,
+ +0200001.7,
+ +0200001.7,
2.00000000000000000000001, // a float value with more precision points
"1", // numeric in the form of string
"-1",
@@ -108,10 +108,10 @@ unset ($unset_var);
// other types in a array
$not_numerics = array(
"0x80001",
- "-0x80001",
- "+0x80001",
+ "-0x80001",
+ "+0x80001",
"-0x80001.5",
- "0x80001.5",
+ "0x80001.5",
new stdclass, // object
$fp, // resource
$dfp,
@@ -126,7 +126,7 @@ $not_numerics = array(
"20 test",
"3.6test",
"1,000",
- "NULL",
+ "NULL",
"true",
true,
NULL,
@@ -151,7 +151,7 @@ var_dump( is_numeric() );
//arguments more than expected
var_dump( is_numeric("10", "20") );
-
+
echo "Done\n";
// close the resources used
diff --git a/ext/standard/tests/general_functions/is_object.phpt b/ext/standard/tests/general_functions/is_object.phpt
index 89b5081fae..0060f5e526 100644
--- a/ext/standard/tests/general_functions/is_object.phpt
+++ b/ext/standard/tests/general_functions/is_object.phpt
@@ -34,7 +34,7 @@ class concreteClass extends abstractClass
// interface class
interface IValue
{
- public function setVal ($name, $val);
+ public function setVal ($name, $val);
public function dumpVal ();
}
@@ -42,11 +42,11 @@ interface IValue
class Value implements IValue
{
private $vars = array ();
-
+
public function setVal ( $name, $val ) {
$this->vars[$name] = $val;
}
-
+
public function dumpVal () {
var_dump ( $vars );
}
@@ -67,7 +67,7 @@ class myClass
$this->public_var1 = new foo();
$this->private_var = new foo();
$this->proected_var = new foo();
- }
+ }
}
// create a object of each class defined above
@@ -88,8 +88,8 @@ $valid_objects = array(
$foo_object,
$Value_object,
$concreteClass_object
-);
-
+);
+
/* loop to check that is_object() recognizes different
objects, expected output: bool(true) */
$loop_counter = 1;
@@ -144,7 +144,7 @@ var_dump( is_object() );
//arguments more than expected
var_dump( is_object($myClass_object, $myClass_object) );
-
+
echo "Done\n";
// close the resources used
diff --git a/ext/standard/tests/general_functions/is_resource_basic.phpt b/ext/standard/tests/general_functions/is_resource_basic.phpt
index 27583d3d87..5ff4d2d59d 100644
--- a/ext/standard/tests/general_functions/is_resource_basic.phpt
+++ b/ext/standard/tests/general_functions/is_resource_basic.phpt
@@ -5,14 +5,14 @@ Test is_resource() function : basic functionality
/* Prototype : bool is_resource ( mixed $var )
* Description: Finds whether a variable is a resource
* Source code: ext/standard/type.c
- */
+ */
echo "*** Testing is_resource() : basic functionality ***\n";
class Hello {
public function SayHello($arg) {
echo "Hello\n";
- }
+ }
}
@@ -25,7 +25,7 @@ $vars = array(
array(1,2,3,4,5),
NULL,
new Hello());
-
+
$types = array(
"bool=false",
"bool=true",
@@ -34,7 +34,7 @@ $types = array(
"string",
"array",
"NULL",
- "object");
+ "object");
echo "\nNon-resource type cases\n";
@@ -44,7 +44,7 @@ for ($i=0; $i < count($vars); $i++) {
} else {
echo $types[$i]. " test returns FALSE\n";
}
-}
+}
$res = fopen(__FILE__, "r");
echo "\nResource type..var_dump after file open returns\n";
@@ -64,7 +64,7 @@ if (is_resource($res)) {
echo " TRUE\n";
} else {
echo " FALSE\n";
-}
+}
?>
diff --git a/ext/standard/tests/general_functions/is_scalar.phpt b/ext/standard/tests/general_functions/is_scalar.phpt
index d3e2fa572b..a7adf6d8e5 100644
--- a/ext/standard/tests/general_functions/is_scalar.phpt
+++ b/ext/standard/tests/general_functions/is_scalar.phpt
@@ -33,7 +33,7 @@ $scalar_variables = array(
" ",
' ',
"string",
- 'string',
+ 'string',
"0", // numeric as string
"40",
"50.696",
@@ -94,7 +94,7 @@ $variation_array = array(
@$resource,
@$undefined_var // undefined variable
-);
+);
/* loop through each element of $variation_array to see the
working of is_scalar on non-scalar values, expected output: bool(false)
@@ -113,7 +113,7 @@ var_dump( is_scalar() );
var_dump( is_scalar( $scalar_variables[2], $scalar_variables[2]) );
var_dump( is_scalar( new stdclass, new stdclass) );
-echo "Done\n";
+echo "Done\n";
// close the resources used
fclose($fp);
diff --git a/ext/standard/tests/general_functions/is_string.phpt b/ext/standard/tests/general_functions/is_string.phpt
index b8c82b187b..685ac6fb14 100644
--- a/ext/standard/tests/general_functions/is_string.phpt
+++ b/ext/standard/tests/general_functions/is_string.phpt
@@ -146,7 +146,7 @@ var_dump( is_string() );
//arguments more than expected
var_dump( is_string("string", "test") );
-
+
echo "Done\n";
// close the resources used
diff --git a/ext/standard/tests/general_functions/isset_basic1.phpt b/ext/standard/tests/general_functions/isset_basic1.phpt
index 4c03210342..7731097799 100644
--- a/ext/standard/tests/general_functions/isset_basic1.phpt
+++ b/ext/standard/tests/general_functions/isset_basic1.phpt
@@ -4,7 +4,7 @@ Test isset() function : basic functionality
<?php
/* Prototype : bool isset ( mixed $var [, mixed $var [, $... ]] )
* Description: Determine if a variable is set and is not NULL
- */
+ */
class foo {}
diff --git a/ext/standard/tests/general_functions/isset_basic2.phpt b/ext/standard/tests/general_functions/isset_basic2.phpt
index 9137aeb922..bf121ed6dc 100644
--- a/ext/standard/tests/general_functions/isset_basic2.phpt
+++ b/ext/standard/tests/general_functions/isset_basic2.phpt
@@ -4,7 +4,7 @@ Test isset() function : basic functionality
<?php
/* Prototype : bool isset ( mixed $var [, mixed $var [, $... ]] )
* Description: Determine if a variable is set and is not NULL
- */
+ */
class foo {}
@@ -28,14 +28,14 @@ var_dump(isset($i, $f, $s, $b));
echo "\n\nArray test:\n";
$arr = array();
-var_dump(isset($var));
+var_dump(isset($var));
var_dump(isset($var[1]));
-var_dump(isset($var, $var[1]));
+var_dump(isset($var, $var[1]));
echo "..now set\n";
$var[1] = 10;
-var_dump(isset($var));
-var_dump(isset($var[1]));
-var_dump(isset($var, $var[1]));
+var_dump(isset($var));
+var_dump(isset($var[1]));
+var_dump(isset($var, $var[1]));
?>
===DONE===
diff --git a/ext/standard/tests/general_functions/ob_get_flush_basic.phpt b/ext/standard/tests/general_functions/ob_get_flush_basic.phpt
index dbda1d9e66..9c76af97bd 100644
--- a/ext/standard/tests/general_functions/ob_get_flush_basic.phpt
+++ b/ext/standard/tests/general_functions/ob_get_flush_basic.phpt
@@ -7,7 +7,7 @@ output_buffering=0
/* Prototype : bool ob_get_flush(void)
* Description: Get current buffer contents, flush (send) the output buffer, and delete current output buffer
* Source code: main/output.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing ob_get_flush() : basic functionality ***\n";
diff --git a/ext/standard/tests/general_functions/ob_get_flush_error.phpt b/ext/standard/tests/general_functions/ob_get_flush_error.phpt
index 1d3538120d..3d3b47d615 100644
--- a/ext/standard/tests/general_functions/ob_get_flush_error.phpt
+++ b/ext/standard/tests/general_functions/ob_get_flush_error.phpt
@@ -7,7 +7,7 @@ output_buffering=0
/* Prototype : bool ob_get_flush(void)
* Description: Get current buffer contents, flush (send) the output buffer, and delete current output buffer
* Source code: main/output.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing ob_get_flush() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/ob_get_length_basic.phpt b/ext/standard/tests/general_functions/ob_get_length_basic.phpt
index 9b3e8fb465..5fdc71d67c 100644
--- a/ext/standard/tests/general_functions/ob_get_length_basic.phpt
+++ b/ext/standard/tests/general_functions/ob_get_length_basic.phpt
@@ -7,7 +7,7 @@ output_buffering=0
/* Prototype : int ob_get_length(void)
* Description: Return the length of the output buffer
* Source code: main/output.c
- * Alias to functions:
+ * Alias to functions:
*/
function dump_string_length( $string )
diff --git a/ext/standard/tests/general_functions/parse_ini_basic.phpt b/ext/standard/tests/general_functions/parse_ini_basic.phpt
index f5a18c457e..8d7b2f8a22 100644
--- a/ext/standard/tests/general_functions/parse_ini_basic.phpt
+++ b/ext/standard/tests/general_functions/parse_ini_basic.phpt
@@ -14,7 +14,7 @@ var_dump(parse_ini_file($ini_file, 1));
echo "Done.\n";
?>
---EXPECT--
+--EXPECT--
array(26) {
["basic"]=>
array(15) {
diff --git a/ext/standard/tests/general_functions/parse_ini_booleans.phpt b/ext/standard/tests/general_functions/parse_ini_booleans.phpt
index 530e186a99..5b854c3f41 100644
--- a/ext/standard/tests/general_functions/parse_ini_booleans.phpt
+++ b/ext/standard/tests/general_functions/parse_ini_booleans.phpt
@@ -10,7 +10,7 @@ var_dump(parse_ini_file($ini_file, 1));
echo "Done.\n";
?>
---EXPECT--
+--EXPECT--
array(3) {
["error_reporting values"]=>
array(6) {
diff --git a/ext/standard/tests/general_functions/parse_ini_file.phpt b/ext/standard/tests/general_functions/parse_ini_file.phpt
index fb12c3f139..ebc714455d 100644
--- a/ext/standard/tests/general_functions/parse_ini_file.phpt
+++ b/ext/standard/tests/general_functions/parse_ini_file.phpt
@@ -120,7 +120,7 @@ var_dump(parse_ini_file($filename, true));
@unlink($filename);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: parse_ini_file() expects at least 1 parameter, 0 given in %sparse_ini_file.php on line 6
bool(false)
diff --git a/ext/standard/tests/general_functions/parse_ini_string_001.phpt b/ext/standard/tests/general_functions/parse_ini_string_001.phpt
index e5e402b8fc..c3939a2246 100644
--- a/ext/standard/tests/general_functions/parse_ini_string_001.phpt
+++ b/ext/standard/tests/general_functions/parse_ini_string_001.phpt
@@ -69,7 +69,7 @@ Non_alpha12 = \
;Non_alpha17 = ~
;Non_alpha18 = !
;Non_alpha19 = $
-;Non_alpha20 = ()
+;Non_alpha20 = ()
Non_alpha1_quotes = ";"
Non_alpha2_quotes = "+"
diff --git a/ext/standard/tests/general_functions/parse_ini_string_002.phpt b/ext/standard/tests/general_functions/parse_ini_string_002.phpt
index 98c9c0b359..106cd0c842 100644
--- a/ext/standard/tests/general_functions/parse_ini_string_002.phpt
+++ b/ext/standard/tests/general_functions/parse_ini_string_002.phpt
@@ -86,7 +86,7 @@ var_dump(parse_ini_string($ini, true));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: parse_ini_string() expects at least 1 parameter, 0 given in %s
bool(false)
diff --git a/ext/standard/tests/general_functions/php_uname_error.phpt b/ext/standard/tests/general_functions/php_uname_error.phpt
index ca4c3d4022..2f671cd016 100644
--- a/ext/standard/tests/general_functions/php_uname_error.phpt
+++ b/ext/standard/tests/general_functions/php_uname_error.phpt
@@ -13,7 +13,7 @@ var_dump( php_uname('a', true) );
echo "\n-- Testing php_uname() function with invalid mode --\n";
// am invalid mode should result in same o/p as mode 'a'
-var_dump( php_uname('z') == php_uname('z') );
+var_dump( php_uname('z') == php_uname('z') );
class barClass {
}
diff --git a/ext/standard/tests/general_functions/php_uname_variation1.phpt b/ext/standard/tests/general_functions/php_uname_variation1.phpt
index d94fd80049..4a47827657 100644
--- a/ext/standard/tests/general_functions/php_uname_variation1.phpt
+++ b/ext/standard/tests/general_functions/php_uname_variation1.phpt
@@ -26,34 +26,34 @@ $values = array(
"1" => 1,
"12345" => 12345,
"-2345" => -2345,
-
+
// float data
"10.5" => 10.5,
"-10.5" => -10.5,
"10.1234567e10" => 10.1234567e10,
"10.7654321E-10" => 10.7654321E-10,
".5" => .5,
-
+
// null data
"NULL" => NULL,
"null" => null,
-
+
// boolean data
"true" => true,
"false" => false,
"TRUE" => TRUE,
"FALSE" => FALSE,
-
+
// empty data
"\"\"" => "",
"''" => '',
-
+
// object data
"new fooClass()" => new fooClass(),
-
+
// undefined data
"undefined var" => $undefined_var,
-
+
// unset data
"unset var" => $unset_var,
);
diff --git a/ext/standard/tests/general_functions/print_r.phpt b/ext/standard/tests/general_functions/print_r.phpt
index 5069dd33f1..0cc8e609b1 100644
--- a/ext/standard/tests/general_functions/print_r.phpt
+++ b/ext/standard/tests/general_functions/print_r.phpt
@@ -42,7 +42,7 @@ $integers = array (
-0x80000000, // min range of hexadecimal integer
017777777777, // max posotive octal integer
-020000000000 // min range of octal integer
-);
+);
/* calling check_printr() to display contents of integer variables
using print_r() */
check_printr($integers);
@@ -112,7 +112,7 @@ $booleans = array (
FALSE,
true,
false
-);
+);
/* calling check_printr() to display boolean variables using print_r() */
check_printr($booleans);
var_dump( reset($booleans) );
@@ -227,7 +227,7 @@ print_r($recursion_obj2);
echo "\n*** Testing print_r() on resources ***\n";
/* file type resource */
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
/* directory type resource */
$dir_handle = opendir( dirname(__FILE__) );
diff --git a/ext/standard/tests/general_functions/print_r_64bit.phpt b/ext/standard/tests/general_functions/print_r_64bit.phpt
index 3054e0a431..8809a1b808 100644
--- a/ext/standard/tests/general_functions/print_r_64bit.phpt
+++ b/ext/standard/tests/general_functions/print_r_64bit.phpt
@@ -47,7 +47,7 @@ $integers = array (
-0x80000000, // min range of hexadecimal integer
017777777777, // max posotive octal integer
-020000000000 // min range of octal integer
-);
+);
/* calling check_printr() to display contents of integer variables
using print_r() */
check_printr($integers);
@@ -117,7 +117,7 @@ $booleans = array (
FALSE,
true,
false
-);
+);
/* calling check_printr() to display boolean variables using print_r() */
check_printr($booleans);
var_dump( reset($booleans) );
@@ -232,7 +232,7 @@ print_r($recursion_obj2);
echo "\n*** Testing print_r() on resources ***\n";
/* file type resource */
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
/* directory type resource */
$dir_handle = opendir( dirname(__FILE__) );
diff --git a/ext/standard/tests/general_functions/putenv.phpt b/ext/standard/tests/general_functions/putenv.phpt
index 254207320b..ab2c1b41f7 100644
--- a/ext/standard/tests/general_functions/putenv.phpt
+++ b/ext/standard/tests/general_functions/putenv.phpt
@@ -20,7 +20,7 @@ var_dump(putenv(""));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
bool(false)
bool(true)
string(5) "value"
diff --git a/ext/standard/tests/general_functions/putenv_bug75574_utf8.phpt b/ext/standard/tests/general_functions/putenv_bug75574_utf8.phpt
index 76c6db5468..ea8a0ab119 100644
--- a/ext/standard/tests/general_functions/putenv_bug75574_utf8.phpt
+++ b/ext/standard/tests/general_functions/putenv_bug75574_utf8.phpt
@@ -24,7 +24,7 @@ var_dump(putenv('FOO=啊a啊啊啊啊'), getenv("FOO"));
?>
===DONE===
---EXPECT--
+--EXPECT--
bool(true)
string(3) "啊"
bool(true)
diff --git a/ext/standard/tests/general_functions/rand.phpt b/ext/standard/tests/general_functions/rand.phpt
index 93faf3ac16..e6639a71c7 100644
--- a/ext/standard/tests/general_functions/rand.phpt
+++ b/ext/standard/tests/general_functions/rand.phpt
@@ -29,7 +29,7 @@ var_dump(mt_getrandmax(1));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(%d)
Warning: mt_rand() expects exactly 2 parameters, 1 given in %s on line %d
diff --git a/ext/standard/tests/general_functions/sleep_basic.phpt b/ext/standard/tests/general_functions/sleep_basic.phpt
index ac0b1d7db2..2c5f5ab3e6 100644
--- a/ext/standard/tests/general_functions/sleep_basic.phpt
+++ b/ext/standard/tests/general_functions/sleep_basic.phpt
@@ -15,7 +15,7 @@ echo "*** Testing sleep() : basic functionality ***\n";
$sleeptime = 1; // sleep for 1 seconds
-set_time_limit(20);
+set_time_limit(20);
$time_start = microtime(true);
diff --git a/ext/standard/tests/general_functions/sleep_error.phpt b/ext/standard/tests/general_functions/sleep_error.phpt
index 199bd8e9bc..2e75837701 100644
--- a/ext/standard/tests/general_functions/sleep_error.phpt
+++ b/ext/standard/tests/general_functions/sleep_error.phpt
@@ -7,7 +7,7 @@ Test sleep() function : error conditions
* Source code: ext/standard/basic_functions.c
*/
set_time_limit(20);
-
+
echo "*** Testing sleep() : error conditions ***\n";
echo "\n-- Testing sleep() function with zero arguments --\n";
diff --git a/ext/standard/tests/general_functions/strval.phpt b/ext/standard/tests/general_functions/strval.phpt
index ee5313aaae..d72ac7a2ab 100644
--- a/ext/standard/tests/general_functions/strval.phpt
+++ b/ext/standard/tests/general_functions/strval.phpt
@@ -21,7 +21,7 @@ EOD;
/* null heredoc string */
$heredoc_empty_string = <<<EOD
EOD;
-/* heredoc string with NULL */
+/* heredoc string with NULL */
$heredoc_NULL_string = <<<EOD
NULL
EOD;
@@ -33,15 +33,15 @@ $scalars = array(
1,
-1,
-2147483648, // max negative integer value
- -2147483647,
+ -2147483647,
2147483647, // max positive integer value
2147483640,
0x123B, // integer as hexadecimal
0x12ab,
0Xfff,
0XFA,
-
- /* floats */
+
+ /* floats */
-0x80000000, // max negative integer as hexadecimal
0x7fffffff, // max positive integer as hexadecimal
0x7FFFFFFF, // max positive integer as hexadecimal
@@ -66,12 +66,12 @@ $scalars = array(
.0034E-30,
/* booleans */
- true,
+ true,
TRUE,
FALSE,
- false,
+ false,
- /* strings */
+ /* strings */
"",
'',
" ",
@@ -147,7 +147,7 @@ var_dump( strval() );
//arguments more than expected
var_dump( strval( $scalars[0], $scalars[1]) );
-
+
echo "Done\n";
// close the resources used
diff --git a/ext/standard/tests/general_functions/type.phpt b/ext/standard/tests/general_functions/type.phpt
index ac29a1bf38..90bfb45f28 100644
--- a/ext/standard/tests/general_functions/type.phpt
+++ b/ext/standard/tests/general_functions/type.phpt
@@ -54,7 +54,7 @@ foreach ($types as $type) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
string(5) "array"
string(6) "string"
string(5) "array"
diff --git a/ext/standard/tests/general_functions/uniqid_basic.phpt b/ext/standard/tests/general_functions/uniqid_basic.phpt
index 2da832b8ed..109fe00328 100644
--- a/ext/standard/tests/general_functions/uniqid_basic.phpt
+++ b/ext/standard/tests/general_functions/uniqid_basic.phpt
@@ -26,16 +26,16 @@ $prefix = array (
false
);
-for ($i = 0; $i < count($prefix); $i++) {
+for ($i = 0; $i < count($prefix); $i++) {
var_dump(uniqid($prefix[$i]));
var_dump(uniqid($prefix[$i], true));
var_dump(uniqid($prefix[$i], false));
echo "\n";
-}
+}
?>
===DONE===
---EXPECTF--
+--EXPECTF--
*** Testing uniqid() : basic functionality ***
uniqid() without a prefix
diff --git a/ext/standard/tests/general_functions/uniqid_error.phpt b/ext/standard/tests/general_functions/uniqid_error.phpt
index 8f7f22d7d3..b358edc48c 100644
--- a/ext/standard/tests/general_functions/uniqid_error.phpt
+++ b/ext/standard/tests/general_functions/uniqid_error.phpt
@@ -17,7 +17,7 @@ var_dump(uniqid($prefix, $more_entropy, $extra_arg));
echo "\n-- Testing uniqid() function with invalid values for \$prefix --\n";
class class1{}
$obj = new class1();
-$res = fopen(__FILE__, "r");
+$res = fopen(__FILE__, "r");
$array = array(1,2,3);
uniqid($array, false);
@@ -28,7 +28,7 @@ fclose($res);
?>
===DONE===
---EXPECTF--
+--EXPECTF--
*** Testing uniqid() : error conditions ***
-- Testing uniqid() function with more than expected no. of arguments --
diff --git a/ext/standard/tests/general_functions/usleep_basic.phpt b/ext/standard/tests/general_functions/usleep_basic.phpt
index bec1dfa1d7..a4b31c6524 100644
--- a/ext/standard/tests/general_functions/usleep_basic.phpt
+++ b/ext/standard/tests/general_functions/usleep_basic.phpt
@@ -10,9 +10,9 @@ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
* Description: Delays program execution for the given number of micro seconds.
* Source code: ext/standard/basic_functions.c
*/
-
+
set_time_limit(20);
-
+
echo "*** Testing usleep() : basic functionality ***\n";
$sleeptime = 1000000; // == 1 seconds
diff --git a/ext/standard/tests/general_functions/usleep_error.phpt b/ext/standard/tests/general_functions/usleep_error.phpt
index bdd120cde9..93aa9824e3 100644
--- a/ext/standard/tests/general_functions/usleep_error.phpt
+++ b/ext/standard/tests/general_functions/usleep_error.phpt
@@ -6,8 +6,8 @@ Test usleep() function : error conditions
* Description: Delays program execution for the given number of micro seconds.
* Source code: ext/standard/basic_functions.c
*/
-
-set_time_limit(20);
+
+set_time_limit(20);
echo "*** Testing usleep() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/var_dump.phpt b/ext/standard/tests/general_functions/var_dump.phpt
index 78c862b77d..bccbd23910 100644
--- a/ext/standard/tests/general_functions/var_dump.phpt
+++ b/ext/standard/tests/general_functions/var_dump.phpt
@@ -22,9 +22,9 @@ function check_vardump( $variables ) {
$counter++;
}
}
-
+
echo "\n*** Testing var_dump() on integer variables ***\n";
-$integers = array (
+$integers = array (
0, // zero as argument
000000123, //octal value of 83
123000000,
@@ -40,7 +40,7 @@ $integers = array (
-0x80000000, // min range of hexadecimal integer
017777777777, // max posotive octal integer
-020000000000 // min range of octal integer
-);
+);
/* calling check_vardump() to display contents of integer variables
using var_dump() */
check_vardump($integers);
@@ -111,7 +111,7 @@ $booleans = array (
FALSE,
true,
false
-);
+);
/* calling check_vardump() to display boolean variables
using var_dump() */
check_vardump($booleans);
@@ -226,7 +226,7 @@ var_dump($recursion_obj2);
echo "\n*** Testing var_dump() on resources ***\n";
/* file type resource */
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
/* directory type resource */
$dir_handle = opendir( dirname(__FILE__) );
@@ -254,7 +254,7 @@ $variations = array (
array( new no_member_class, array(), false, 0 ),
array( -0.00, "Where am I?", array(7,8,9), TRUE, 'A', 987654321 ),
array( @$unset_var, 2.E+10, 100-20.9, 000004.599998 ), //unusual data
- array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
+ array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
);
/* calling check_vardump() to display combinations of scalar and
non-scalar variables using var_dump() */
@@ -287,7 +287,7 @@ echo "\n*** Testing error conditions ***\n";
var_dump();
/* closing resource handle used */
-closedir($dir_handle);
+closedir($dir_handle);
echo "Done\n";
?>
diff --git a/ext/standard/tests/general_functions/var_dump_64bit.phpt b/ext/standard/tests/general_functions/var_dump_64bit.phpt
index 3b8212204a..f9ed8dab2e 100644
--- a/ext/standard/tests/general_functions/var_dump_64bit.phpt
+++ b/ext/standard/tests/general_functions/var_dump_64bit.phpt
@@ -22,9 +22,9 @@ function check_vardump( $variables ) {
$counter++;
}
}
-
+
echo "\n*** Testing var_dump() on integer variables ***\n";
-$integers = array (
+$integers = array (
0, // zero as argument
000000123, //octal value of 83
123000000,
@@ -40,7 +40,7 @@ $integers = array (
-0x80000000, // min range of hexadecimal integer
017777777777, // max posotive octal integer
-020000000000 // min range of octal integer
-);
+);
/* calling check_vardump() to display contents of integer variables
using var_dump() */
check_vardump($integers);
@@ -111,7 +111,7 @@ $booleans = array (
FALSE,
true,
false
-);
+);
/* calling check_vardump() to display boolean variables
using var_dump() */
check_vardump($booleans);
@@ -226,7 +226,7 @@ var_dump($recursion_obj2);
echo "\n*** Testing var_dump() on resources ***\n";
/* file type resource */
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
/* directory type resource */
$dir_handle = opendir( dirname(__FILE__) );
@@ -254,7 +254,7 @@ $variations = array (
array( new no_member_class, array(), false, 0 ),
array( -0.00, "Where am I?", array(7,8,9), TRUE, 'A', 987654321 ),
array( @$unset_var, 2.E+10, 100-20.9, 000004.599998 ), //unusual data
- array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
+ array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
);
/* calling check_vardump() to display combinations of scalar and
non-scalar variables using var_dump() */
@@ -287,7 +287,7 @@ echo "\n*** Testing error conditions ***\n";
var_dump();
/* closing resource handle used */
-closedir($dir_handle);
+closedir($dir_handle);
echo "Done\n";
?>
diff --git a/ext/standard/tests/general_functions/var_export-locale.phpt b/ext/standard/tests/general_functions/var_export-locale.phpt
index e440238970..10fb889858 100644
--- a/ext/standard/tests/general_functions/var_export-locale.phpt
+++ b/ext/standard/tests/general_functions/var_export-locale.phpt
@@ -23,7 +23,7 @@ $valid_ints = array(
'1',
'-1',
'-2147483648', // max negative integer value
- '-2147483647',
+ '-2147483647',
2147483647, // max positive integer value
2147483640,
0x123B, // integer as hexadecimal
@@ -57,7 +57,7 @@ echo "*** Testing var_export() with valid boolean values ***\n";
$valid_bool = array(
1,
TRUE,
- true,
+ true,
0,
FALSE,
false
@@ -207,18 +207,18 @@ class concreteClass extends abstractClass
// interface class
interface iValue
{
- public function setVal ($name, $val);
+ public function setVal ($name, $val);
public function dumpVal ();
}
// implement the interface
class Value implements iValue
{
private $vars = array ();
-
+
public function setVal ( $name, $val ) {
$this->vars[$name] = $val;
}
-
+
public function dumpVal () {
var_export ( $vars );
}
@@ -239,7 +239,7 @@ class myClass
$this->public_var1 = new foo();
$this->private_var = new foo();
$this->proected_var = new foo();
- }
+ }
}
// create a object of each class defined above
@@ -260,7 +260,7 @@ $valid_objects = array(
$foo_object,
$Value_object,
$concreteClass_object
- );
+ );
$counter = 1;
/* Loop to check for above objects with var_export() */
echo "\n*** Output for objects ***\n";
@@ -274,7 +274,7 @@ var_dump( var_export( $obj, TRUE) );
echo "\n";
$counter++;
}
-
+
echo "*** Testing var_export() with valid null values ***\n";
// different valid null values
$unset_var = array();
@@ -306,7 +306,7 @@ var_export( var_export() );
//arguments more than expected
var_export( var_export(TRUE, FALSE, TRUE) );
-
+
echo "\n\nDone";
diff --git a/ext/standard/tests/general_functions/var_export_basic1.phpt b/ext/standard/tests/general_functions/var_export_basic1.phpt
index 5f5f09bb2d..9dbc821271 100644
--- a/ext/standard/tests/general_functions/var_export_basic1.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic1.phpt
@@ -5,7 +5,7 @@ Test var_export() function with integer values
/* Prototype : mixed var_export(mixed var [, bool return])
* Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with integer values ***\n";
@@ -15,7 +15,7 @@ $valid_ints = array(
'1' => '1',
'-1' => '-1',
'-2147483648' => '-2147483648', // max negative integer value
- '-2147483647' => '-2147483647',
+ '-2147483647' => '-2147483647',
'2147483647' => 2147483647, // max positive integer value
'2147483640' => 2147483640,
'0x123B' => 0x123B, // integer as hexadecimal
diff --git a/ext/standard/tests/general_functions/var_export_basic2.phpt b/ext/standard/tests/general_functions/var_export_basic2.phpt
index d1c731fd3f..300b5287c8 100644
--- a/ext/standard/tests/general_functions/var_export_basic2.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic2.phpt
@@ -6,7 +6,7 @@ Test var_export() function with valid boolean values
/* Prototype : mixed var_export(mixed var [, bool return])
* Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with valid boolean values ***\n";
@@ -14,12 +14,12 @@ echo "*** Testing var_export() with valid boolean values ***\n";
$valid_bool = array(
"1" => 1,
"TRUE" => TRUE,
- "true" => true,
+ "true" => true,
"0" => 0,
"FALSE" => FALSE,
"false" => false
);
-
+
/* Loop to check for above boolean values with var_export() */
echo "\n*** Output for boolean values ***\n";
foreach($valid_bool as $key => $bool_value) {
diff --git a/ext/standard/tests/general_functions/var_export_basic3.phpt b/ext/standard/tests/general_functions/var_export_basic3.phpt
index d02065a7f6..f31334e69e 100644
--- a/ext/standard/tests/general_functions/var_export_basic3.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic3.phpt
@@ -7,7 +7,7 @@ serialize_precision=17
/* Prototype : mixed var_export(mixed var [, bool return])
* Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with valid float values ***\n";
diff --git a/ext/standard/tests/general_functions/var_export_basic4.phpt b/ext/standard/tests/general_functions/var_export_basic4.phpt
index 4668ace1c5..9b6e42c71e 100644
--- a/ext/standard/tests/general_functions/var_export_basic4.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic4.phpt
@@ -5,7 +5,7 @@ Test var_export() function with valid strings
/* Prototype : mixed var_export(mixed var [, bool return])
* Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
diff --git a/ext/standard/tests/general_functions/var_export_basic5.phpt b/ext/standard/tests/general_functions/var_export_basic5.phpt
index dacb355323..3e0e50f21c 100644
--- a/ext/standard/tests/general_functions/var_export_basic5.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic5.phpt
@@ -7,7 +7,7 @@ serialize_precision=17
/* Prototype : mixed var_export(mixed var [, bool return])
* Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
diff --git a/ext/standard/tests/general_functions/var_export_basic6.phpt b/ext/standard/tests/general_functions/var_export_basic6.phpt
index bdcdf48c02..a24b44b949 100644
--- a/ext/standard/tests/general_functions/var_export_basic6.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic6.phpt
@@ -5,7 +5,7 @@ Test var_export() function with valid objects
/* Prototype : mixed var_export(mixed var [, bool return])
* Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with valid objects ***\n";
@@ -35,18 +35,18 @@ class concreteClass extends abstractClass
// interface class
interface iValue
{
- public function setVal ($name, $val);
+ public function setVal ($name, $val);
public function dumpVal ();
}
// implement the interface
class Value implements iValue
{
private $vars = array ();
-
+
public function setVal ( $name, $val ) {
$this->vars[$name] = $val;
}
-
+
public function dumpVal () {
var_export ( $vars );
}
@@ -67,7 +67,7 @@ class myClass
$this->public_var1 = new foo();
$this->private_var = new foo();
$this->proected_var = new foo();
- }
+ }
}
// create a object of each class defined above
@@ -88,7 +88,7 @@ $valid_objects = array(
"foo_object" => $foo_object,
"Value_object" => $Value_object,
"concreteClass_object" => $concreteClass_object
- );
+ );
/* Loop to check for above objects with var_export() */
echo "\n*** Output for objects ***\n";
foreach($valid_objects as $key => $obj) {
diff --git a/ext/standard/tests/general_functions/var_export_basic7.phpt b/ext/standard/tests/general_functions/var_export_basic7.phpt
index 525c55470d..02668237c9 100644
--- a/ext/standard/tests/general_functions/var_export_basic7.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic7.phpt
@@ -5,7 +5,7 @@ Test var_export() function with valid null values
/* Prototype : mixed var_export(mixed var [, bool return])
* Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with valid null values ***\n";
diff --git a/ext/standard/tests/general_functions/var_export_basic8.phpt b/ext/standard/tests/general_functions/var_export_basic8.phpt
index faae2bca17..3fe0a23d3a 100644
--- a/ext/standard/tests/general_functions/var_export_basic8.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic8.phpt
@@ -5,16 +5,16 @@ var_export(): simple test with arrays and objects
/* Prototype : mixed var_export(mixed var [, bool return])
* Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
-
+
echo "\n\n-- Var export on a simple object --\n";
$o1 = new stdclass;
$o1->p = '22';
$o2 = new stdclass;
$o2->a = 1;
-$o2->b = array('k'=>2);
-$o2->x = $o1;
+$o2->b = array('k'=>2);
+$o2->x = $o1;
var_export($o2);
echo "\n\n-- Var export on an simple array --\n";
diff --git a/ext/standard/tests/general_functions/var_export_error1.phpt b/ext/standard/tests/general_functions/var_export_error1.phpt
index d9c5eee9dc..de66874c25 100644
--- a/ext/standard/tests/general_functions/var_export_error1.phpt
+++ b/ext/standard/tests/general_functions/var_export_error1.phpt
@@ -5,7 +5,7 @@ Test var_export() function : error conditions
/* Prototype : mixed var_export(mixed var [, bool return])
* Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/var_export_error2.phpt b/ext/standard/tests/general_functions/var_export_error2.phpt
index a6403e610d..9ad5803fbe 100644
--- a/ext/standard/tests/general_functions/var_export_error2.phpt
+++ b/ext/standard/tests/general_functions/var_export_error2.phpt
@@ -5,7 +5,7 @@ Test var_export() function : error conditions - recursive object
/* Prototype : mixed var_export(mixed var [, bool return])
* Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
@$obj->p =& $obj;
diff --git a/ext/standard/tests/general_functions/var_export_error3.phpt b/ext/standard/tests/general_functions/var_export_error3.phpt
index c862691e91..284460d242 100644
--- a/ext/standard/tests/general_functions/var_export_error3.phpt
+++ b/ext/standard/tests/general_functions/var_export_error3.phpt
@@ -5,7 +5,7 @@ Test var_export() function : error conditions - recursive array
/* Prototype : mixed var_export(mixed var [, bool return])
* Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
$a[] =& $a;
diff --git a/ext/standard/tests/http/bug60570.phpt b/ext/standard/tests/http/bug60570.phpt
index 29c6a46f17..7cdb6e3d41 100644
--- a/ext/standard/tests/http/bug60570.phpt
+++ b/ext/standard/tests/http/bug60570.phpt
@@ -26,7 +26,7 @@ function do_test() {
$context = stream_context_create(array('http'=>array('timeout'=>1)));
file_get_contents('http://127.0.0.1:12342/', 0, $context);
unset($context);
-
+
$b = $a;
$a = count(get_resources());
}
diff --git a/ext/standard/tests/image/getimagesize_basic.phpt b/ext/standard/tests/image/getimagesize_basic.phpt
index 63ae334066..f911ef33d2 100644
--- a/ext/standard/tests/image/getimagesize_basic.phpt
+++ b/ext/standard/tests/image/getimagesize_basic.phpt
@@ -16,13 +16,13 @@ $imagetype_filenames = array(
//PNG file
"PNG image file" => "200x100.png",
-
+
//SWF file
"SWF image file" => "200x100.swf",
-
+
//BMP file
"BMP image file" => "200x100.bmp",
-
+
//TIFF intel byte order
"TIFF intel byte order image file" => "200x100.tif",
diff --git a/ext/standard/tests/image/getimagesize_error1.phpt b/ext/standard/tests/image/getimagesize_error1.phpt
index 947379d145..9544a2acf1 100644
--- a/ext/standard/tests/image/getimagesize_error1.phpt
+++ b/ext/standard/tests/image/getimagesize_error1.phpt
@@ -5,7 +5,7 @@ Test getimagesize() function : error conditions - wrong number of args
/* Prototype : proto array getimagesize(string imagefile [, array info])
* Description: Get the size of an image as 4-element array
* Source code: ext/standard/image.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing getimagesize() : error conditions ***\n";
diff --git a/ext/standard/tests/image/getimagesize_jpgapp.phpt b/ext/standard/tests/image/getimagesize_jpgapp.phpt
index 766427b59f..d171365baf 100644
--- a/ext/standard/tests/image/getimagesize_jpgapp.phpt
+++ b/ext/standard/tests/image/getimagesize_jpgapp.phpt
@@ -5,7 +5,7 @@ Test getimagesize() function : basic functionality - load APP info from jpeg.
/* Prototype : proto array getimagesize(string imagefile [, array info])
* Description: Get the size of an image as 4-element array
* Source code: ext/standard/image.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/image/getimagesize_tif_mm.phpt b/ext/standard/tests/image/getimagesize_tif_mm.phpt
index 8cac17b3e7..a5f5bb8cc3 100644
--- a/ext/standard/tests/image/getimagesize_tif_mm.phpt
+++ b/ext/standard/tests/image/getimagesize_tif_mm.phpt
@@ -5,7 +5,7 @@ GetImageSize() for tiff format with big-endian (aka Motorola, aka MM) ordering
/* Prototype : proto array getimagesize(string imagefile [, array info])
* Description: Get the size of an image as 4-element array
* Source code: ext/standard/image.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing getimagesize() : tiff_mm format ***\n";
diff --git a/ext/standard/tests/image/getimagesize_variation1.phpt b/ext/standard/tests/image/getimagesize_variation1.phpt
index 78795f7636..23f2b15745 100644
--- a/ext/standard/tests/image/getimagesize_variation1.phpt
+++ b/ext/standard/tests/image/getimagesize_variation1.phpt
@@ -5,7 +5,7 @@ Test getimagesize() function : usage variations - unexpected type for arg 1
/* Prototype : proto array getimagesize(string imagefile [, array info])
* Description: Get the size of an image as 4-element array
* Source code: ext/standard/image.c
- * Alias to functions:
+ * Alias to functions:
*/
function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
diff --git a/ext/standard/tests/image/getimagesize_variation2.phpt b/ext/standard/tests/image/getimagesize_variation2.phpt
index 3efdd51b40..8288e28bf9 100644
--- a/ext/standard/tests/image/getimagesize_variation2.phpt
+++ b/ext/standard/tests/image/getimagesize_variation2.phpt
@@ -5,7 +5,7 @@ Test getimagesize() function : usage variations - unexpected type for arg 2
/* Prototype : proto array getimagesize(string imagefile [, array info])
* Description: Get the size of an image as 4-element array
* Source code: ext/standard/image.c
- * Alias to functions:
+ * Alias to functions:
*/
function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
diff --git a/ext/standard/tests/image/getimagesize_wbmp.phpt b/ext/standard/tests/image/getimagesize_wbmp.phpt
index ce2179293c..2410cff4d5 100644
--- a/ext/standard/tests/image/getimagesize_wbmp.phpt
+++ b/ext/standard/tests/image/getimagesize_wbmp.phpt
@@ -5,7 +5,7 @@ GetImageSize() for wbmp format
/* Prototype : proto array getimagesize(string imagefile [, array info])
* Description: Get the size of an image as 4-element array
* Source code: ext/standard/image.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing getimagesize() : wbmp format ***\n";
diff --git a/ext/standard/tests/image/getimagesize_xbm.phpt b/ext/standard/tests/image/getimagesize_xbm.phpt
index 9156d40b10..360394ae3c 100644
--- a/ext/standard/tests/image/getimagesize_xbm.phpt
+++ b/ext/standard/tests/image/getimagesize_xbm.phpt
@@ -5,7 +5,7 @@ GetImageSize() for xbm format
/* Prototype : proto array getimagesize(string imagefile [, array info])
* Description: Get the size of an image as 4-element array
* Source code: ext/standard/image.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing getimagesize() : xbm format ***\n";
diff --git a/ext/standard/tests/image/getimagesizefromstring1.phpt b/ext/standard/tests/image/getimagesizefromstring1.phpt
index df75be518b..1e9dc59d45 100644
--- a/ext/standard/tests/image/getimagesizefromstring1.phpt
+++ b/ext/standard/tests/image/getimagesizefromstring1.phpt
@@ -5,9 +5,9 @@ Compare getimagesize and getimagesizefromstring
$img = __DIR__ . '/test.gif';
$i1 = getimagesize($img);
-
+
$data = file_get_contents($img);
-
+
$i2 = getimagesizefromstring($data);
var_dump($i1);
diff --git a/ext/standard/tests/image/image_type_to_extension.phpt b/ext/standard/tests/image/image_type_to_extension.phpt
index a2e2758188..8418a4b8c7 100644
--- a/ext/standard/tests/image/image_type_to_extension.phpt
+++ b/ext/standard/tests/image/image_type_to_extension.phpt
@@ -1,7 +1,7 @@
--TEST--
image_type_to_extension()
--SKIPIF--
-<?php
+<?php
require_once('skipif_imagetype.inc');
?>
--FILE--
diff --git a/ext/standard/tests/image/image_type_to_mime_type_basic.phpt b/ext/standard/tests/image/image_type_to_mime_type_basic.phpt
index 8e3176ef41..74f27a877b 100644
--- a/ext/standard/tests/image/image_type_to_mime_type_basic.phpt
+++ b/ext/standard/tests/image/image_type_to_mime_type_basic.phpt
@@ -6,7 +6,7 @@ image_type_to_mime_type()
/* Prototype : string image_type_to_mime_type ( int $imagetype )
* Description: Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype.
* Source code: ext/standard/image.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Starting image_type_to_mime_type() test\n\n";
@@ -21,12 +21,12 @@ $image_types = array (
IMAGETYPE_TIFF_II,
IMAGETYPE_TIFF_MM,
IMAGETYPE_JPC,
- IMAGETYPE_JP2,
+ IMAGETYPE_JP2,
IMAGETYPE_JPX,
- IMAGETYPE_JB2,
+ IMAGETYPE_JB2,
IMAGETYPE_IFF,
IMAGETYPE_WBMP,
- IMAGETYPE_JPEG2000,
+ IMAGETYPE_JPEG2000,
IMAGETYPE_XBM,
IMAGETYPE_WEBP
);
diff --git a/ext/standard/tests/image/image_type_to_mime_type_variation2.phpt b/ext/standard/tests/image/image_type_to_mime_type_variation2.phpt
index 141bc576ff..11306bc19d 100644
--- a/ext/standard/tests/image/image_type_to_mime_type_variation2.phpt
+++ b/ext/standard/tests/image/image_type_to_mime_type_variation2.phpt
@@ -16,13 +16,13 @@ $values = array (
1,
12345,
-12345,
-
+
//Octal values
02,
010,
030071,
-030071,
-
+
//Hexadecimal values
0x0,
0x1,
diff --git a/ext/standard/tests/mail/bug66535.phpt b/ext/standard/tests/mail/bug66535.phpt
index db1f449cb6..e6cef90fae 100644
--- a/ext/standard/tests/mail/bug66535.phpt
+++ b/ext/standard/tests/mail/bug66535.phpt
@@ -13,7 +13,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mail() : send email without additional headers ***\n";
diff --git a/ext/standard/tests/mail/bug73203.phpt b/ext/standard/tests/mail/bug73203.phpt
index 79615f31b5..c3f22d36d5 100644
--- a/ext/standard/tests/mail/bug73203.phpt
+++ b/ext/standard/tests/mail/bug73203.phpt
@@ -9,7 +9,7 @@ verify that the call succeeds.
sendmail_path=cat >/dev/null
mail.add_x_header = Off
--SKIPIF--
-<?php
+<?php
if (substr(PHP_OS, 0, 3) === 'WIN') die('skip won\'t run on Windows');
?>
--FILE--
diff --git a/ext/standard/tests/mail/ezmlm_hash_error.phpt b/ext/standard/tests/mail/ezmlm_hash_error.phpt
index c5f49dd73a..f5bc578558 100644
--- a/ext/standard/tests/mail/ezmlm_hash_error.phpt
+++ b/ext/standard/tests/mail/ezmlm_hash_error.phpt
@@ -32,7 +32,7 @@ echo "\n-- Testing ezmlm_hash() function with invalid input - RESOURCE --\n";
$file_handle = fopen(__FILE__, "r");
$extra_arg = 10;
var_dump( ezmlm_hash($file_handle) );
-fclose($file_handle);
+fclose($file_handle);
?>
===DONE===
diff --git a/ext/standard/tests/mail/ezmlm_hash_variation1.phpt b/ext/standard/tests/mail/ezmlm_hash_variation1.phpt
index 58957c84a9..123195e5ec 100644
--- a/ext/standard/tests/mail/ezmlm_hash_variation1.phpt
+++ b/ext/standard/tests/mail/ezmlm_hash_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
diff --git a/ext/standard/tests/mail/mail_basic.phpt b/ext/standard/tests/mail/mail_basic.phpt
index 70f32df40f..b0c95f35d1 100644
--- a/ext/standard/tests/mail/mail_basic.phpt
+++ b/ext/standard/tests/mail/mail_basic.phpt
@@ -13,7 +13,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mail() : basic functionality ***\n";
diff --git a/ext/standard/tests/mail/mail_basic2.phpt b/ext/standard/tests/mail/mail_basic2.phpt
index 60ad009190..24bf2f92f1 100644
--- a/ext/standard/tests/mail/mail_basic2.phpt
+++ b/ext/standard/tests/mail/mail_basic2.phpt
@@ -13,7 +13,7 @@ mail.add_x_header = Off
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mail() : basic functionality ***\n";
diff --git a/ext/standard/tests/mail/mail_basic3.phpt b/ext/standard/tests/mail/mail_basic3.phpt
index 3e648e5cac..70142cee1f 100644
--- a/ext/standard/tests/mail/mail_basic3.phpt
+++ b/ext/standard/tests/mail/mail_basic3.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mail() : basic functionality ***\n";
diff --git a/ext/standard/tests/mail/mail_basic4.phpt b/ext/standard/tests/mail/mail_basic4.phpt
index de2407a740..9b11ad00c5 100644
--- a/ext/standard/tests/mail/mail_basic4.phpt
+++ b/ext/standard/tests/mail/mail_basic4.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mail() : basic functionality ***\n";
diff --git a/ext/standard/tests/mail/mail_basic5.phpt b/ext/standard/tests/mail/mail_basic5.phpt
index 8d755ebb86..591d48ac53 100644
--- a/ext/standard/tests/mail/mail_basic5.phpt
+++ b/ext/standard/tests/mail/mail_basic5.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mail() : basic functionality ***\n";
diff --git a/ext/standard/tests/mail/mail_basic_alt1-win32.phpt b/ext/standard/tests/mail/mail_basic_alt1-win32.phpt
index fc50498347..815eca28c6 100644
--- a/ext/standard/tests/mail/mail_basic_alt1-win32.phpt
+++ b/ext/standard/tests/mail/mail_basic_alt1-win32.phpt
@@ -1,7 +1,7 @@
--TEST--
Test mail() function : basic functionality
--SKIPIF--
-<?php
+<?php
if( substr(PHP_OS, 0, 3) != 'WIN' ) {
die('skip...Windows only test');
@@ -16,7 +16,7 @@ max_execution_time = 120
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
error_reporting(E_ALL & ~E_STRICT);
@@ -39,7 +39,7 @@ HERE;
$res = mail($to, $subject, $message);
if ($res !== true) {
- exit("TEST FAILED : Unable to send test email\n");
+ exit("TEST FAILED : Unable to send test email\n");
} else {
echo "Msg sent OK\n";
}
@@ -49,7 +49,7 @@ $imap_stream = imap_open($default_mailbox, $username, $password);
if ($imap_stream === false) {
echo "Cannot connect to IMAP server $server: " . imap_last_error() . "\n";
return false;
-}
+}
$found = false;
$repeat_count = 20; // we will repeat a max of 20 times
@@ -63,22 +63,22 @@ while (!$found && $repeat_count > 0) {
// Iterate over recent msgs to find the one we sent above
for ($i = 1; $i <= $current_msg_count; $i++) {
// get hdr details
- $hdr = imap_headerinfo($imap_stream, $i);
+ $hdr = imap_headerinfo($imap_stream, $i);
if (substr($hdr->Subject, 0 , strlen($subject_prefix)) == $subject_prefix) {
- echo "Id of msg just sent is $i\n";
- echo ".. delete it\n";
+ echo "Id of msg just sent is $i\n";
+ echo ".. delete it\n";
imap_delete($imap_stream, $i);
$found = true;
- break;
+ break;
}
}
-
+
$repeat_count -= 1;
}
-if (!$found) {
- echo "TEST FAILED: email not delivered\n";
+if (!$found) {
+ echo "TEST FAILED: email not delivered\n";
} else {
echo "TEST PASSED: Msgs sent and deleted OK\n";
}
diff --git a/ext/standard/tests/mail/mail_basic_alt2-win32.phpt b/ext/standard/tests/mail/mail_basic_alt2-win32.phpt
index 892d92391e..13e75a6c2a 100644
--- a/ext/standard/tests/mail/mail_basic_alt2-win32.phpt
+++ b/ext/standard/tests/mail/mail_basic_alt2-win32.phpt
@@ -1,7 +1,7 @@
--TEST--
Test mail() function : basic functionality
--SKIPIF--
-<?php
+<?php
if( substr(PHP_OS, 0, 3) != 'WIN' ) {
die('skip...Windows only test');
}
@@ -15,7 +15,7 @@ max_execution_time = 120
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
error_reporting(E_ALL & ~E_STRICT);
@@ -37,7 +37,7 @@ $extra_headers = "from: user@example.com";
$res = mail($to, $subject, $message, $extra_headers);
if ($res !== true) {
- exit("TEST FAILED : Unable to send test email\n");
+ exit("TEST FAILED : Unable to send test email\n");
} else {
echo "Msg sent OK\n";
}
@@ -47,7 +47,7 @@ $imap_stream = imap_open($default_mailbox, $username, $password);
if ($imap_stream === false) {
echo "Cannot connect to IMAP server $server: " . imap_last_error() . "\n";
return false;
-}
+}
$found = false;
$repeat_count = 20; // we will repeat a max of 20 times
@@ -61,22 +61,22 @@ while (!$found && $repeat_count > 0) {
// Iterate over recent msgs to find the one we sent above
for ($i = 1; $i <= $current_msg_count; $i++) {
// get hdr details
- $hdr = imap_headerinfo($imap_stream, $i);
+ $hdr = imap_headerinfo($imap_stream, $i);
if (substr($hdr->Subject, 0 , strlen($subject_prefix)) == $subject_prefix) {
- echo "Id of msg just sent is $i\n";
- echo ".. delete it\n";
+ echo "Id of msg just sent is $i\n";
+ echo ".. delete it\n";
imap_delete($imap_stream, $i);
$found = true;
- break;
+ break;
}
}
-
+
$repeat_count -= 1;
}
-if (!$found) {
- echo "TEST FAILED: email not delivered\n";
+if (!$found) {
+ echo "TEST FAILED: email not delivered\n";
} else {
echo "TEST PASSED: Msgs sent and deleted OK\n";
}
diff --git a/ext/standard/tests/mail/mail_basic_alt3-win32.phpt b/ext/standard/tests/mail/mail_basic_alt3-win32.phpt
index 1caa68c068..d768fc9be5 100644
--- a/ext/standard/tests/mail/mail_basic_alt3-win32.phpt
+++ b/ext/standard/tests/mail/mail_basic_alt3-win32.phpt
@@ -1,7 +1,7 @@
--TEST--
Test mail() function : basic functionality
--SKIPIF--
-<?php
+<?php
if( substr(PHP_OS, 0, 3) != 'WIN' ) {
die('skip...Windows only test');
}
@@ -15,7 +15,7 @@ max_execution_time = 120
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
error_reporting(E_ALL & ~E_STRICT);
@@ -37,7 +37,7 @@ $extra_headers = "FRom: user@example.com";
$res = mail($to, $subject, $message, $extra_headers);
if ($res !== true) {
- exit("TEST FAILED : Unable to send test email\n");
+ exit("TEST FAILED : Unable to send test email\n");
} else {
echo "Msg sent OK\n";
}
@@ -47,7 +47,7 @@ $imap_stream = imap_open($default_mailbox, $username, $password);
if ($imap_stream === false) {
echo "Cannot connect to IMAP server $server: " . imap_last_error() . "\n";
return false;
-}
+}
$found = false;
$repeat_count = 20; // we will repeat a max of 20 times
@@ -61,22 +61,22 @@ while (!$found && $repeat_count > 0) {
// Iterate over recent msgs to find the one we sent above
for ($i = 1; $i <= $current_msg_count; $i++) {
// get hdr details
- $hdr = imap_headerinfo($imap_stream, $i);
+ $hdr = imap_headerinfo($imap_stream, $i);
if (substr($hdr->Subject, 0 , strlen($subject_prefix)) == $subject_prefix) {
- echo "Id of msg just sent is $i\n";
- echo ".. delete it\n";
+ echo "Id of msg just sent is $i\n";
+ echo ".. delete it\n";
imap_delete($imap_stream, $i);
$found = true;
- break;
+ break;
}
}
-
+
$repeat_count -= 1;
}
-if (!$found) {
- echo "TEST FAILED: email not delivered\n";
+if (!$found) {
+ echo "TEST FAILED: email not delivered\n";
} else {
echo "TEST PASSED: Msgs sent and deleted OK\n";
}
diff --git a/ext/standard/tests/mail/mail_basic_alt4-win32.phpt b/ext/standard/tests/mail/mail_basic_alt4-win32.phpt
index c8e45242e2..ec51737cee 100644
--- a/ext/standard/tests/mail/mail_basic_alt4-win32.phpt
+++ b/ext/standard/tests/mail/mail_basic_alt4-win32.phpt
@@ -1,7 +1,7 @@
--TEST--
Test mail() function : basic functionality
--SKIPIF--
-<?php
+<?php
if( substr(PHP_OS, 0, 3) != 'WIN' ) {
die('skip...Windows only test');
}
@@ -15,7 +15,7 @@ max_execution_time = 120
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
error_reporting(E_ALL & ~E_STRICT);
@@ -38,7 +38,7 @@ $extra_parameters = "addons"; // should be ignored
$res = mail($to, $subject, $message, $extra_headers, $extra_parameters);
if ($res !== true) {
- exit("TEST FAILED : Unable to send test email\n");
+ exit("TEST FAILED : Unable to send test email\n");
} else {
echo "Msg sent OK\n";
}
@@ -48,7 +48,7 @@ $imap_stream = imap_open($default_mailbox, $username, $password);
if ($imap_stream === false) {
echo "Cannot connect to IMAP server $server: " . imap_last_error() . "\n";
return false;
-}
+}
$found = false;
$repeat_count = 20; // we will repeat a max of 20 times
@@ -62,22 +62,22 @@ while (!$found && $repeat_count > 0) {
// Iterate over recent msgs to find the one we sent above
for ($i = 1; $i <= $current_msg_count; $i++) {
// get hdr details
- $hdr = imap_headerinfo($imap_stream, $i);
+ $hdr = imap_headerinfo($imap_stream, $i);
if (substr($hdr->Subject, 0 , strlen($subject_prefix)) == $subject_prefix) {
- echo "Id of msg just sent is $i\n";
- echo ".. delete it\n";
+ echo "Id of msg just sent is $i\n";
+ echo ".. delete it\n";
imap_delete($imap_stream, $i);
$found = true;
- break;
+ break;
}
}
-
+
$repeat_count -= 1;
}
-if (!$found) {
- echo "TEST FAILED: email not delivered\n";
+if (!$found) {
+ echo "TEST FAILED: email not delivered\n";
} else {
echo "TEST PASSED: Msgs sent and deleted OK\n";
}
diff --git a/ext/standard/tests/mail/mail_error.phpt b/ext/standard/tests/mail/mail_error.phpt
index 871b6da0be..e71fafbd13 100644
--- a/ext/standard/tests/mail/mail_error.phpt
+++ b/ext/standard/tests/mail/mail_error.phpt
@@ -5,7 +5,7 @@ Test mail() function : error conditions
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mail() : error conditions ***\n";
diff --git a/ext/standard/tests/mail/mail_variation1.phpt b/ext/standard/tests/mail/mail_variation1.phpt
index a8eb6bec79..d520cdc254 100644
--- a/ext/standard/tests/mail/mail_variation1.phpt
+++ b/ext/standard/tests/mail/mail_variation1.phpt
@@ -12,7 +12,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mail() : variation ***\n";
diff --git a/ext/standard/tests/mail/mail_variation2.phpt b/ext/standard/tests/mail/mail_variation2.phpt
index f0e44241b1..49ede34eee 100644
--- a/ext/standard/tests/mail/mail_variation2.phpt
+++ b/ext/standard/tests/mail/mail_variation2.phpt
@@ -14,7 +14,7 @@ if(substr(PHP_OS, 0, 3) == "WIN")
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing mail() : basic functionality ***\n";
diff --git a/ext/standard/tests/mail/mail_variation_alt1-win32.phpt b/ext/standard/tests/mail/mail_variation_alt1-win32.phpt
index dd7fd937e2..58ebda047d 100644
--- a/ext/standard/tests/mail/mail_variation_alt1-win32.phpt
+++ b/ext/standard/tests/mail/mail_variation_alt1-win32.phpt
@@ -1,7 +1,7 @@
--TEST--
Test mail() function : basic functionality
--SKIPIF--
-<?php
+<?php
if( substr(PHP_OS, 0, 3) != 'WIN' ) {
die('skip...Windows only test');
}
@@ -15,7 +15,7 @@ max_execution_time = 120
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
error_reporting(E_ALL & ~E_STRICT);
@@ -38,7 +38,7 @@ HERE;
$res = mail($to, $subject, $message);
if ($res !== true) {
- exit("TEST COMPLETED : Unable to send test email\n");
+ exit("TEST COMPLETED : Unable to send test email\n");
} else {
echo "Msg sent OK\n";
}
@@ -48,7 +48,7 @@ $imap_stream = imap_open($default_mailbox, $username, $password);
if ($imap_stream === false) {
echo "Cannot connect to IMAP server $server: " . imap_last_error() . "\n";
return false;
-}
+}
$found = false;
$repeat_count = 20; // we will repeat a max of 20 times
@@ -62,22 +62,22 @@ while (!$found && $repeat_count > 0) {
// Iterate over recent msgs to find the one we sent above
for ($i = 1; $i <= $current_msg_count; $i++) {
// get hdr details
- $hdr = imap_headerinfo($imap_stream, $i);
+ $hdr = imap_headerinfo($imap_stream, $i);
if (substr($hdr->Subject, 0 , strlen($subject_prefix)) == $subject_prefix) {
- echo "Id of msg just sent is $i\n";
- echo ".. delete it\n";
+ echo "Id of msg just sent is $i\n";
+ echo ".. delete it\n";
imap_delete($imap_stream, $i);
$found = true;
- break;
+ break;
}
}
-
+
$repeat_count -= 1;
}
-if (!$found) {
- echo "TEST FAILED: email not delivered\n";
+if (!$found) {
+ echo "TEST FAILED: email not delivered\n";
} else {
echo "TEST PASSED: Msgs sent and deleted OK\n";
}
diff --git a/ext/standard/tests/mail/mail_variation_alt2-win32.phpt b/ext/standard/tests/mail/mail_variation_alt2-win32.phpt
index 817cc36af4..5462c85c24 100644
--- a/ext/standard/tests/mail/mail_variation_alt2-win32.phpt
+++ b/ext/standard/tests/mail/mail_variation_alt2-win32.phpt
@@ -1,7 +1,7 @@
--TEST--
Test mail() function : basic functionality
--SKIPIF--
-<?php
+<?php
if( substr(PHP_OS, 0, 3) != 'WIN' ) {
die('skip...Windows only test');
}
@@ -15,7 +15,7 @@ max_execution_time = 120
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
error_reporting(E_ALL & ~E_STRICT);
@@ -38,7 +38,7 @@ HERE;
$res = mail($to, $subject, $message);
if ($res !== true) {
- exit("TEST COMPLETED : Unable to send test email\n");
+ exit("TEST COMPLETED : Unable to send test email\n");
} else {
echo "Msg sent OK\n";
}
@@ -48,7 +48,7 @@ $imap_stream = imap_open($default_mailbox, $username, $password);
if ($imap_stream === false) {
echo "Cannot connect to IMAP server $server: " . imap_last_error() . "\n";
return false;
-}
+}
$found = false;
$repeat_count = 20; // we will repeat a max of 20 times
@@ -62,22 +62,22 @@ while (!$found && $repeat_count > 0) {
// Iterate over recent msgs to find the one we sent above
for ($i = 1; $i <= $current_msg_count; $i++) {
// get hdr details
- $hdr = imap_headerinfo($imap_stream, $i);
+ $hdr = imap_headerinfo($imap_stream, $i);
if (substr($hdr->Subject, 0 , strlen($subject_prefix)) == $subject_prefix) {
- echo "Id of msg just sent is $i\n";
- echo ".. delete it\n";
+ echo "Id of msg just sent is $i\n";
+ echo ".. delete it\n";
imap_delete($imap_stream, $i);
$found = true;
- break;
+ break;
}
}
-
+
$repeat_count -= 1;
}
-if (!$found) {
- echo "TEST FAILED: email not delivered\n";
+if (!$found) {
+ echo "TEST FAILED: email not delivered\n";
} else {
echo "TEST PASSED: Msgs sent and deleted OK\n";
}
diff --git a/ext/standard/tests/mail/mail_variation_alt3-win32.phpt b/ext/standard/tests/mail/mail_variation_alt3-win32.phpt
index 4062fae981..8a569c0c32 100644
--- a/ext/standard/tests/mail/mail_variation_alt3-win32.phpt
+++ b/ext/standard/tests/mail/mail_variation_alt3-win32.phpt
@@ -1,7 +1,7 @@
--TEST--
Test mail() function : basic functionality
--SKIPIF--
-<?php
+<?php
if( substr(PHP_OS, 0, 3) != 'WIN' ) {
die('skip...Windows only test');
}
@@ -15,7 +15,7 @@ max_execution_time = 120
/* Prototype : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
* Description: Send an email message
* Source code: ext/standard/mail.c
- * Alias to functions:
+ * Alias to functions:
*/
error_reporting(E_ALL & ~E_STRICT);
@@ -37,7 +37,7 @@ HERE;
$res = mail($to, $subject, $message);
if ($res !== true) {
- exit("TEST COMPLETED : Unable to send test email\n");
+ exit("TEST COMPLETED : Unable to send test email\n");
} else {
echo "Msg sent OK\n";
}
@@ -47,7 +47,7 @@ $imap_stream = imap_open($default_mailbox, $username, $password);
if ($imap_stream === false) {
echo "Cannot connect to IMAP server $server: " . imap_last_error() . "\n";
return false;
-}
+}
$found = false;
$repeat_count = 20; // we will repeat a max of 20 times
@@ -61,22 +61,22 @@ while (!$found && $repeat_count > 0) {
// Iterate over recent msgs to find the one we sent above
for ($i = 1; $i <= $current_msg_count; $i++) {
// get hdr details
- $hdr = imap_headerinfo($imap_stream, $i);
+ $hdr = imap_headerinfo($imap_stream, $i);
if (substr($hdr->Subject, 0 , strlen($subject_prefix)) == $subject_prefix) {
- echo "Id of msg just sent is $i\n";
- echo ".. delete it\n";
+ echo "Id of msg just sent is $i\n";
+ echo ".. delete it\n";
imap_delete($imap_stream, $i);
$found = true;
- break;
+ break;
}
}
-
+
$repeat_count -= 1;
}
-if (!$found) {
- echo "TEST FAILED: email not delivered\n";
+if (!$found) {
+ echo "TEST FAILED: email not delivered\n";
} else {
echo "TEST PASSED: Msgs sent and deleted OK\n";
}
diff --git a/ext/standard/tests/math/abs_basic.phpt b/ext/standard/tests/math/abs_basic.phpt
index bc62b38752..881feb96d9 100644
--- a/ext/standard/tests/math/abs_basic.phpt
+++ b/ext/standard/tests/math/abs_basic.phpt
@@ -24,7 +24,7 @@ $values = array(23,
"-2.345e1",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = abs($values[$i]);
diff --git a/ext/standard/tests/math/abs_basiclong_64bit.phpt b/ext/standard/tests/math/abs_basiclong_64bit.phpt
index ccb2556427..0f0cb5d55c 100644
--- a/ext/standard/tests/math/abs_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/abs_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(abs($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/abs_error.phpt b/ext/standard/tests/math/abs_error.phpt
index 4d62259afb..8c2a9f73ce 100644
--- a/ext/standard/tests/math/abs_error.phpt
+++ b/ext/standard/tests/math/abs_error.phpt
@@ -10,7 +10,7 @@ Test abs() function : error conditions - incorrect number of args
/*
* Pass incorrect number of arguments to abs() to test behaviour
*/
-
+
echo "*** Testing abs() : error conditions ***\n";
$arg_0 = 1.0;
diff --git a/ext/standard/tests/math/abs_variation.phpt b/ext/standard/tests/math/abs_variation.phpt
index ed9085446b..fd671855e1 100644
--- a/ext/standard/tests/math/abs_variation.phpt
+++ b/ext/standard/tests/math/abs_variation.phpt
@@ -45,7 +45,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -55,7 +55,7 @@ $inputs = array(
/*19*/ "abs",
'abs',
$heredoc,
-
+
// object data
/*22*/ new classA(),
diff --git a/ext/standard/tests/math/acos_basic.phpt b/ext/standard/tests/math/acos_basic.phpt
index 150eb975ad..a5af21e958 100644
--- a/ext/standard/tests/math/acos_basic.phpt
+++ b/ext/standard/tests/math/acos_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input acos()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float acos(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/acos_basiclong_64bit.phpt b/ext/standard/tests/math/acos_basiclong_64bit.phpt
index 3d811f5928..a32180cd1b 100644
--- a/ext/standard/tests/math/acos_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/acos_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(acos($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/acos_error.phpt b/ext/standard/tests/math/acos_error.phpt
index 6cfdb8f857..6a9dd909a5 100644
--- a/ext/standard/tests/math/acos_error.phpt
+++ b/ext/standard/tests/math/acos_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for acos()
--FILE--
<?php
-/*
+/*
* proto float acos(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/acos_variation.phpt b/ext/standard/tests/math/acos_variation.phpt
index fa9f5e48ac..532ba94c96 100644
--- a/ext/standard/tests/math/acos_variation.phpt
+++ b/ext/standard/tests/math/acos_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of acos()
precision=10
--FILE--
<?php
-/*
+/*
* proto float acos(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test acos with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = acos($values[$i]);
diff --git a/ext/standard/tests/math/acosh_basic.phpt b/ext/standard/tests/math/acosh_basic.phpt
index d94109d9c1..ba1a706574 100644
--- a/ext/standard/tests/math/acosh_basic.phpt
+++ b/ext/standard/tests/math/acosh_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input acosh()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float acosh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/acosh_basiclong_64bit.phpt b/ext/standard/tests/math/acosh_basiclong_64bit.phpt
index 80c33b224b..902c235c32 100644
--- a/ext/standard/tests/math/acosh_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/acosh_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(acosh($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/acosh_error.phpt b/ext/standard/tests/math/acosh_error.phpt
index cb85becdb1..270796c373 100644
--- a/ext/standard/tests/math/acosh_error.phpt
+++ b/ext/standard/tests/math/acosh_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for acosh()
--FILE--
<?php
-/*
+/*
* proto float acosh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/acosh_variation.phpt b/ext/standard/tests/math/acosh_variation.phpt
index 6f8abb19ae..c011f4aa1b 100644
--- a/ext/standard/tests/math/acosh_variation.phpt
+++ b/ext/standard/tests/math/acosh_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of acosh()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float acosh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test acosh with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = acosh($values[$i]);
diff --git a/ext/standard/tests/math/asin_basic.phpt b/ext/standard/tests/math/asin_basic.phpt
index 183f7449bb..7c7542e0f6 100644
--- a/ext/standard/tests/math/asin_basic.phpt
+++ b/ext/standard/tests/math/asin_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input asin()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float asin(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/asin_basiclong_64bit.phpt b/ext/standard/tests/math/asin_basiclong_64bit.phpt
index 7e17f2daff..071ad1c39c 100644
--- a/ext/standard/tests/math/asin_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/asin_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(asin($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/asin_error.phpt b/ext/standard/tests/math/asin_error.phpt
index a51a077b90..2428e8a5b4 100644
--- a/ext/standard/tests/math/asin_error.phpt
+++ b/ext/standard/tests/math/asin_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for asin()
--FILE--
<?php
-/*
+/*
* proto float asin(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/asin_variation.phpt b/ext/standard/tests/math/asin_variation.phpt
index 8259bc811d..bd2321e9c8 100644
--- a/ext/standard/tests/math/asin_variation.phpt
+++ b/ext/standard/tests/math/asin_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of asin()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float asin(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test asin with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = asin($values[$i]);
diff --git a/ext/standard/tests/math/asinh_basic.phpt b/ext/standard/tests/math/asinh_basic.phpt
index ff8a2d10ac..31643fa3c4 100644
--- a/ext/standard/tests/math/asinh_basic.phpt
+++ b/ext/standard/tests/math/asinh_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input asinh()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float asinh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/asinh_basiclong_64bit.phpt b/ext/standard/tests/math/asinh_basiclong_64bit.phpt
index a501d75d3c..f4ccb0d23b 100644
--- a/ext/standard/tests/math/asinh_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/asinh_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(asinh($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/asinh_error.phpt b/ext/standard/tests/math/asinh_error.phpt
index 8a0d558783..ad6bf36014 100644
--- a/ext/standard/tests/math/asinh_error.phpt
+++ b/ext/standard/tests/math/asinh_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for asinh()
--FILE--
<?php
-/*
+/*
* proto float asinh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/asinh_variation.phpt b/ext/standard/tests/math/asinh_variation.phpt
index 77bf4d8998..d8fd1828c9 100644
--- a/ext/standard/tests/math/asinh_variation.phpt
+++ b/ext/standard/tests/math/asinh_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of asinh()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float asinh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test asinh with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = asinh($values[$i]);
diff --git a/ext/standard/tests/math/atan2_basic.phpt b/ext/standard/tests/math/atan2_basic.phpt
index 8312bb2890..f0055e4fdb 100644
--- a/ext/standard/tests/math/atan2_basic.phpt
+++ b/ext/standard/tests/math/atan2_basic.phpt
@@ -16,7 +16,7 @@ $valuesy = array(23,
null,
true,
false);
-
+
$valuesx = array(23,
-23,
2.345e1,
@@ -28,14 +28,14 @@ $valuesx = array(23,
"2.345e1",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($valuesy); $i++) {
- for ($j = 0; $j < count($valuesx); $j++) {
+ for ($j = 0; $j < count($valuesx); $j++) {
$res = atan2($valuesy[$i], $valuesx[$j]);
echo "Y:$valuesy[$i] X:$valuesx[$j] ";
var_dump($res);
- }
+ }
}
?>
--EXPECT--
diff --git a/ext/standard/tests/math/atan2_basiclong_64bit.phpt b/ext/standard/tests/math/atan2_basiclong_64bit.phpt
index e0548a08ee..f646585f30 100644
--- a/ext/standard/tests/math/atan2_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/atan2_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,11 +23,11 @@ $otherVals = array(0, 1, -1, 7, 9, 65, -44, MAX_32Bit, MIN_32Bit, MAX_64Bit, MIN
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
- echo "--- testing: $longVal, $otherVal ---\n";
+ echo "--- testing: $longVal, $otherVal ---\n";
var_dump(atan2($longVal, $otherVal));
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/atan2_variation1.phpt b/ext/standard/tests/math/atan2_variation1.phpt
index 15aef71359..ab8cf72a8d 100644
--- a/ext/standard/tests/math/atan2_variation1.phpt
+++ b/ext/standard/tests/math/atan2_variation1.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12,
- -12,
+ -12,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -63,10 +63,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/atan2_variation2.phpt b/ext/standard/tests/math/atan2_variation2.phpt
index 2de0bb2eec..9d61a09972 100644
--- a/ext/standard/tests/math/atan2_variation2.phpt
+++ b/ext/standard/tests/math/atan2_variation2.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12,
- -12,
+ -12,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -63,10 +63,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/atan_basic.phpt b/ext/standard/tests/math/atan_basic.phpt
index f4a2bedf76..180263fe59 100644
--- a/ext/standard/tests/math/atan_basic.phpt
+++ b/ext/standard/tests/math/atan_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input atan()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float atan(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/atan_basiclong_64bit.phpt b/ext/standard/tests/math/atan_basiclong_64bit.phpt
index ffdfe24372..15d9a000ae 100644
--- a/ext/standard/tests/math/atan_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/atan_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(atan($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/atan_error.phpt b/ext/standard/tests/math/atan_error.phpt
index 61b35b05d6..0a57818088 100644
--- a/ext/standard/tests/math/atan_error.phpt
+++ b/ext/standard/tests/math/atan_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for atan()
--FILE--
<?php
-/*
+/*
* proto float atan(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/atan_variation.phpt b/ext/standard/tests/math/atan_variation.phpt
index 797d88d2d2..81174e0322 100644
--- a/ext/standard/tests/math/atan_variation.phpt
+++ b/ext/standard/tests/math/atan_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of atan()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float atan(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test atan with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = atan($values[$i]);
diff --git a/ext/standard/tests/math/atanh_basic.phpt b/ext/standard/tests/math/atanh_basic.phpt
index 7e7144e239..87580ef181 100644
--- a/ext/standard/tests/math/atanh_basic.phpt
+++ b/ext/standard/tests/math/atanh_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input atanh()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float atanh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/atanh_basiclong_64bit.phpt b/ext/standard/tests/math/atanh_basiclong_64bit.phpt
index d7608cad1d..426ca51f2a 100644
--- a/ext/standard/tests/math/atanh_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/atanh_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(atanh($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/atanh_error.phpt b/ext/standard/tests/math/atanh_error.phpt
index e442825b0e..c62dadf027 100644
--- a/ext/standard/tests/math/atanh_error.phpt
+++ b/ext/standard/tests/math/atanh_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for atanh()
--FILE--
<?php
-/*
+/*
* proto float atanh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/atanh_variation.phpt b/ext/standard/tests/math/atanh_variation.phpt
index 984d399a85..0dbbba851f 100644
--- a/ext/standard/tests/math/atanh_variation.phpt
+++ b/ext/standard/tests/math/atanh_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of atanh()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float atanh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test atanh with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = atanh($values[$i]);
diff --git a/ext/standard/tests/math/base_convert_basic.phpt b/ext/standard/tests/math/base_convert_basic.phpt
index 0da1d1f77c..1643bf153f 100644
--- a/ext/standard/tests/math/base_convert_basic.phpt
+++ b/ext/standard/tests/math/base_convert_basic.phpt
@@ -13,19 +13,19 @@ $values = array(10,
"10",
"27",
"39",
- "5F",
+ "5F",
"3XYZ"
- );
+ );
for ($f= 0; $f < count($frombase); $f++) {
echo "\n...from base is ", $frombase[$f], "\n";
for ($t= 0; $t < count($tobase); $t++) {
- echo "......to base is ", $tobase[$t], "\n";
- for ($i =0; $i < count($values); $i++){
+ echo "......to base is ", $tobase[$t], "\n";
+ for ($i =0; $i < count($values); $i++){
$res = base_convert($values[$i],$frombase[$f],$tobase[$t]);
echo ".........value= ", $values[$i], " res = ", $res, "\n";
- }
- }
+ }
+ }
}
?>
diff --git a/ext/standard/tests/math/base_convert_variation1.phpt b/ext/standard/tests/math/base_convert_variation1.phpt
index afa0c5bb8a..a285ece2a2 100644
--- a/ext/standard/tests/math/base_convert_variation1.phpt
+++ b/ext/standard/tests/math/base_convert_variation1.phpt
@@ -27,7 +27,7 @@ $inputs = array(
/*1*/ 0,
1,
12,
- -12,
+ -12,
2147483647,
// float data
@@ -46,7 +46,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -56,7 +56,7 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// undefined data
/*23*/ @$undefined_var,
diff --git a/ext/standard/tests/math/base_convert_variation2.phpt b/ext/standard/tests/math/base_convert_variation2.phpt
index 14593ffe76..9051323eec 100644
--- a/ext/standard/tests/math/base_convert_variation2.phpt
+++ b/ext/standard/tests/math/base_convert_variation2.phpt
@@ -24,7 +24,7 @@ $inputs = array(
/*1*/ 0,
1,
-1,
- -12,
+ -12,
2147483647,
// float data
@@ -43,7 +43,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -53,7 +53,7 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// undefined data
/*23*/ @$undefined_var,
diff --git a/ext/standard/tests/math/base_convert_variation3.phpt b/ext/standard/tests/math/base_convert_variation3.phpt
index bd4f052ca6..220105f2fb 100644
--- a/ext/standard/tests/math/base_convert_variation3.phpt
+++ b/ext/standard/tests/math/base_convert_variation3.phpt
@@ -24,7 +24,7 @@ $inputs = array(
/*1*/ 0,
1,
-1,
- -12,
+ -12,
2147483647,
// float data
@@ -43,7 +43,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -53,7 +53,7 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// undefined data
/*23*/ @$undefined_var,
diff --git a/ext/standard/tests/math/bindec_basic.phpt b/ext/standard/tests/math/bindec_basic.phpt
index d746b8a1ca..24a91bc0c0 100644
--- a/ext/standard/tests/math/bindec_basic.phpt
+++ b/ext/standard/tests/math/bindec_basic.phpt
@@ -26,7 +26,7 @@ $values = array(111000111,
011237,
true,
false,
- null);
+ null);
for ($i = 0; $i < count($values); $i++) {
$res = bindec($values[$i]);
diff --git a/ext/standard/tests/math/bindec_basic_64bit.phpt b/ext/standard/tests/math/bindec_basic_64bit.phpt
index 3641f0bc41..79ae0a56d6 100644
--- a/ext/standard/tests/math/bindec_basic_64bit.phpt
+++ b/ext/standard/tests/math/bindec_basic_64bit.phpt
@@ -26,7 +26,7 @@ $values = array(111000111,
011237,
true,
false,
- null);
+ null);
for ($i = 0; $i < count($values); $i++) {
$res = bindec($values[$i]);
diff --git a/ext/standard/tests/math/bindec_basiclong_64bit.phpt b/ext/standard/tests/math/bindec_basiclong_64bit.phpt
index 3cc57d5dc4..5a556b7d2b 100644
--- a/ext/standard/tests/math/bindec_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/bindec_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -28,7 +28,7 @@ foreach ($binLongStrs as $strVal) {
echo "--- testing: $strVal ---\n";
var_dump(bindec($strVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/bindec_error.phpt b/ext/standard/tests/math/bindec_error.phpt
index aa6ac9cdd1..8bd52332c4 100644
--- a/ext/standard/tests/math/bindec_error.phpt
+++ b/ext/standard/tests/math/bindec_error.phpt
@@ -10,7 +10,7 @@ Test bindec() function : error conditions - incorrect input
/*
* Pass incorrect input to bindec() to test behaviour
*/
-
+
echo "*** Testing bindec() : error conditions ***\n";
// get a class
diff --git a/ext/standard/tests/math/bindec_variation1.phpt b/ext/standard/tests/math/bindec_variation1.phpt
index 1e188bab34..9efadf6e5c 100644
--- a/ext/standard/tests/math/bindec_variation1.phpt
+++ b/ext/standard/tests/math/bindec_variation1.phpt
@@ -48,7 +48,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -58,7 +58,7 @@ $inputs = array(
/*19*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// undefined data
/*22*/ @$undefined_var,
diff --git a/ext/standard/tests/math/bindec_variation1_64bit.phpt b/ext/standard/tests/math/bindec_variation1_64bit.phpt
index 0a37c4c2f9..ab667126da 100644
--- a/ext/standard/tests/math/bindec_variation1_64bit.phpt
+++ b/ext/standard/tests/math/bindec_variation1_64bit.phpt
@@ -48,7 +48,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -58,7 +58,7 @@ $inputs = array(
/*19*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// undefined data
/*22*/ @$undefined_var,
diff --git a/ext/standard/tests/math/bug25665.phpt b/ext/standard/tests/math/bug25665.phpt
index 469236c943..120604aff2 100644
--- a/ext/standard/tests/math/bug25665.phpt
+++ b/ext/standard/tests/math/bug25665.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #25665 (var_dump () hangs on Nan and INF)
--SKIPIF--
-<?php
+<?php
$OS = strtoupper(PHP_OS);
if ($OS == 'SUNOS' || $OS == 'SOLARIS') die("SKIP Solaris acos() returns wrong value");
?>
diff --git a/ext/standard/tests/math/ceil_basic.phpt b/ext/standard/tests/math/ceil_basic.phpt
index 922d0b14f0..b71178ca19 100644
--- a/ext/standard/tests/math/ceil_basic.phpt
+++ b/ext/standard/tests/math/ceil_basic.phpt
@@ -34,7 +34,7 @@ $values = array(0,
true,
false,
null,
- );
+ );
for ($i = 0; $i < count($values); $i++) {
$res = ceil($values[$i]);
diff --git a/ext/standard/tests/math/ceil_basiclong_64bit.phpt b/ext/standard/tests/math/ceil_basiclong_64bit.phpt
index b4c23d85cd..42d9f6b413 100644
--- a/ext/standard/tests/math/ceil_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/ceil_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(ceil($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/ceil_variation1.phpt b/ext/standard/tests/math/ceil_variation1.phpt
index 35a9e1d4a3..05f308a4a0 100644
--- a/ext/standard/tests/math/ceil_variation1.phpt
+++ b/ext/standard/tests/math/ceil_variation1.phpt
@@ -39,7 +39,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/* 7*/ "",
'',
@@ -49,7 +49,7 @@ $inputs = array(
/*10*/ "abcxyz",
'abcxyz}',
$heredoc,
-
+
// object data
/*13*/ new classA(),
diff --git a/ext/standard/tests/math/cos_basic.phpt b/ext/standard/tests/math/cos_basic.phpt
index f0cfa66ee5..8ad7010ce1 100644
--- a/ext/standard/tests/math/cos_basic.phpt
+++ b/ext/standard/tests/math/cos_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input cos()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float cos(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/cos_basiclong_64bit.phpt b/ext/standard/tests/math/cos_basiclong_64bit.phpt
index c9f041783b..12355a7d86 100644
--- a/ext/standard/tests/math/cos_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/cos_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(cos($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/cos_error.phpt b/ext/standard/tests/math/cos_error.phpt
index 40901991e0..21d4692a7a 100644
--- a/ext/standard/tests/math/cos_error.phpt
+++ b/ext/standard/tests/math/cos_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for cos()
--FILE--
<?php
-/*
+/*
* proto float cos(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/cos_variation.phpt b/ext/standard/tests/math/cos_variation.phpt
index 418bbf658f..ec6fb48642 100644
--- a/ext/standard/tests/math/cos_variation.phpt
+++ b/ext/standard/tests/math/cos_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of cos()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float cos(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test cos with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = cos($values[$i]);
diff --git a/ext/standard/tests/math/cosh_basic.phpt b/ext/standard/tests/math/cosh_basic.phpt
index 0a637ca8e5..e6cfd868a0 100644
--- a/ext/standard/tests/math/cosh_basic.phpt
+++ b/ext/standard/tests/math/cosh_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input cosh()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float cosh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/cosh_basiclong_64bit.phpt b/ext/standard/tests/math/cosh_basiclong_64bit.phpt
index 0916839381..f065b47213 100644
--- a/ext/standard/tests/math/cosh_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/cosh_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(cosh($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/cosh_error.phpt b/ext/standard/tests/math/cosh_error.phpt
index afed24fe3b..c540f72a20 100644
--- a/ext/standard/tests/math/cosh_error.phpt
+++ b/ext/standard/tests/math/cosh_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for cosh()
--FILE--
<?php
-/*
+/*
* proto float cosh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/cosh_variation.phpt b/ext/standard/tests/math/cosh_variation.phpt
index 7a6cff2fd9..f4f7e89fc1 100644
--- a/ext/standard/tests/math/cosh_variation.phpt
+++ b/ext/standard/tests/math/cosh_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of cosh()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float cosh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test cosh with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = cosh($values[$i]);
diff --git a/ext/standard/tests/math/decbin_basic.phpt b/ext/standard/tests/math/decbin_basic.phpt
index 00ed582559..4cab650ecc 100644
--- a/ext/standard/tests/math/decbin_basic.phpt
+++ b/ext/standard/tests/math/decbin_basic.phpt
@@ -15,7 +15,7 @@ $values = array(10,
true,
false,
null,
- );
+ );
for ($i = 0; $i < count($values); $i++) {
$res = decbin($values[$i]);
diff --git a/ext/standard/tests/math/decbin_basiclong_64bit.phpt b/ext/standard/tests/math/decbin_basiclong_64bit.phpt
index 3dc61c4e28..a2e9185ab5 100644
--- a/ext/standard/tests/math/decbin_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/decbin_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(decbin($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/decbin_variation1.phpt b/ext/standard/tests/math/decbin_variation1.phpt
index b357c279b3..53ebbe184e 100644
--- a/ext/standard/tests/math/decbin_variation1.phpt
+++ b/ext/standard/tests/math/decbin_variation1.phpt
@@ -39,7 +39,7 @@ $inputs = array(
12345,
-2345,
4294967295, // largest decimal
- 4294967296,
+ 4294967296,
// float data
/*7*/ 10.5,
@@ -57,7 +57,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*18*/ "",
'',
@@ -70,7 +70,7 @@ $inputs = array(
// object data
/*24*/ new classA(),
-
+
// undefined data
/*25*/ @$undefined_var,
diff --git a/ext/standard/tests/math/decbin_variation1_64bit.phpt b/ext/standard/tests/math/decbin_variation1_64bit.phpt
index e82ee3e88c..92312e4053 100644
--- a/ext/standard/tests/math/decbin_variation1_64bit.phpt
+++ b/ext/standard/tests/math/decbin_variation1_64bit.phpt
@@ -39,7 +39,7 @@ $inputs = array(
12345,
-2345,
18446744073709551615, // largest decimal
- 18446744073709551616,
+ 18446744073709551616,
// float data
/*7*/ 10.5,
@@ -57,7 +57,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*18*/ "",
'',
@@ -70,7 +70,7 @@ $inputs = array(
// object data
/*24*/ new classA(),
-
+
// undefined data
/*25*/ @$undefined_var,
diff --git a/ext/standard/tests/math/dechex_basic.phpt b/ext/standard/tests/math/dechex_basic.phpt
index c842bf7984..851cff44c4 100644
--- a/ext/standard/tests/math/dechex_basic.phpt
+++ b/ext/standard/tests/math/dechex_basic.phpt
@@ -15,7 +15,7 @@ $values = array(10,
true,
false,
null,
- );
+ );
for ($i = 0; $i < count($values); $i++) {
$res = dechex($values[$i]);
diff --git a/ext/standard/tests/math/dechex_basiclong_64bit.phpt b/ext/standard/tests/math/dechex_basiclong_64bit.phpt
index 40b0879246..135a422f66 100644
--- a/ext/standard/tests/math/dechex_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/dechex_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(dechex($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/dechex_error.phpt b/ext/standard/tests/math/dechex_error.phpt
index 7ed0c4598c..4c3fd6f858 100644
--- a/ext/standard/tests/math/dechex_error.phpt
+++ b/ext/standard/tests/math/dechex_error.phpt
@@ -9,7 +9,7 @@ Test dechex() - wrong params dechex()
echo "*** Testing dechex() : error conditions ***\n";
-echo "\nIncorrect number of arguments\n";
+echo "\nIncorrect number of arguments\n";
dechex();
dechex(23,2,true);
diff --git a/ext/standard/tests/math/dechex_variation1.phpt b/ext/standard/tests/math/dechex_variation1.phpt
index 5bcd2b5c5d..0575c7fcd5 100644
--- a/ext/standard/tests/math/dechex_variation1.phpt
+++ b/ext/standard/tests/math/dechex_variation1.phpt
@@ -37,9 +37,9 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
4294967295, // largest decimal
- 4294967296,
+ 4294967296,
// float data
/*7*/ 10.5,
@@ -57,7 +57,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*18*/ "",
'',
@@ -70,7 +70,7 @@ $inputs = array(
// object data
/*24*/ new classA(),
-
+
// undefined data
/*25*/ @$undefined_var,
diff --git a/ext/standard/tests/math/dechex_variation1_64bit.phpt b/ext/standard/tests/math/dechex_variation1_64bit.phpt
index a513264df2..b97285ba94 100644
--- a/ext/standard/tests/math/dechex_variation1_64bit.phpt
+++ b/ext/standard/tests/math/dechex_variation1_64bit.phpt
@@ -37,10 +37,10 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
18446744073709551615, // largest decimal
- 18446744073709551616,
-
+ 18446744073709551616,
+
// float data
/*7*/ 10.5,
-10.5,
@@ -57,7 +57,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*18*/ "",
'',
@@ -70,7 +70,7 @@ $inputs = array(
// object data
/*24*/ new classA(),
-
+
// undefined data
/*25*/ @$undefined_var,
diff --git a/ext/standard/tests/math/decoct_basic.phpt b/ext/standard/tests/math/decoct_basic.phpt
index a3dd741b41..35d2bc5091 100644
--- a/ext/standard/tests/math/decoct_basic.phpt
+++ b/ext/standard/tests/math/decoct_basic.phpt
@@ -15,7 +15,7 @@ $values = array(10,
true,
false,
null,
- );
+ );
for ($i = 0; $i < count($values); $i++) {
$res = decoct($values[$i]);
diff --git a/ext/standard/tests/math/decoct_basiclong_64bit.phpt b/ext/standard/tests/math/decoct_basiclong_64bit.phpt
index d7434176db..f1812b9062 100644
--- a/ext/standard/tests/math/decoct_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/decoct_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(decoct($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/decoct_variation1.phpt b/ext/standard/tests/math/decoct_variation1.phpt
index 49ba57f54b..a991bef48e 100644
--- a/ext/standard/tests/math/decoct_variation1.phpt
+++ b/ext/standard/tests/math/decoct_variation1.phpt
@@ -38,9 +38,9 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
4294967295, // largest decimal
- 4294967296,
+ 4294967296,
// float data
/*7*/ 10.5,
@@ -58,7 +58,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*18*/ "",
'',
@@ -68,10 +68,10 @@ $inputs = array(
/*21*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*24*/ new classA(),
-
+
// undefined data
/*25*/ @$undefined_var,
diff --git a/ext/standard/tests/math/decoct_variation1_64bit.phpt b/ext/standard/tests/math/decoct_variation1_64bit.phpt
index 40afafa10a..bc17cbe684 100644
--- a/ext/standard/tests/math/decoct_variation1_64bit.phpt
+++ b/ext/standard/tests/math/decoct_variation1_64bit.phpt
@@ -38,9 +38,9 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
18446744073709551615, // largest decimal
- 18446744073709551616,
+ 18446744073709551616,
// float data
/*7*/ 10.5,
@@ -58,7 +58,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*18*/ "",
'',
@@ -68,10 +68,10 @@ $inputs = array(
/*21*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*24*/ new classA(),
-
+
// undefined data
/*25*/ @$undefined_var,
diff --git a/ext/standard/tests/math/deg2rad_basic.phpt b/ext/standard/tests/math/deg2rad_basic.phpt
index 64771b9980..3b756281fa 100644
--- a/ext/standard/tests/math/deg2rad_basic.phpt
+++ b/ext/standard/tests/math/deg2rad_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input deg2rad()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float deg2rad(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/deg2rad_basiclong_64bit.phpt b/ext/standard/tests/math/deg2rad_basiclong_64bit.phpt
index c64627661d..3a14b11825 100644
--- a/ext/standard/tests/math/deg2rad_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/deg2rad_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(deg2rad($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/deg2rad_error.phpt b/ext/standard/tests/math/deg2rad_error.phpt
index 517680a7c3..4bdad8cdb8 100644
--- a/ext/standard/tests/math/deg2rad_error.phpt
+++ b/ext/standard/tests/math/deg2rad_error.phpt
@@ -4,10 +4,10 @@ Test wrong number of arguments for deg2rad()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float deg2rad(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/deg2rad_variation.phpt b/ext/standard/tests/math/deg2rad_variation.phpt
index 737be67772..58131c67d3 100644
--- a/ext/standard/tests/math/deg2rad_variation.phpt
+++ b/ext/standard/tests/math/deg2rad_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of deg2rad()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float deg2rad(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test deg2rad with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = deg2rad($values[$i]);
diff --git a/ext/standard/tests/math/exp_basic.phpt b/ext/standard/tests/math/exp_basic.phpt
index 21f7413d82..870fa285ea 100644
--- a/ext/standard/tests/math/exp_basic.phpt
+++ b/ext/standard/tests/math/exp_basic.phpt
@@ -16,7 +16,7 @@ $values = array(10,
true,
false,
null,
- );
+ );
$iterator = 1;
foreach($values as $value) {
diff --git a/ext/standard/tests/math/exp_basiclong_64bit.phpt b/ext/standard/tests/math/exp_basiclong_64bit.phpt
index 5156d055a4..75518548e3 100644
--- a/ext/standard/tests/math/exp_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/exp_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(exp($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/exp_variation1.phpt b/ext/standard/tests/math/exp_variation1.phpt
index 150e0cee8a..07e051b179 100644
--- a/ext/standard/tests/math/exp_variation1.phpt
+++ b/ext/standard/tests/math/exp_variation1.phpt
@@ -35,7 +35,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -54,7 +54,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -64,10 +64,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/expm1_basic.phpt b/ext/standard/tests/math/expm1_basic.phpt
index 7853aeb20c..8d0bb7ca02 100644
--- a/ext/standard/tests/math/expm1_basic.phpt
+++ b/ext/standard/tests/math/expm1_basic.phpt
@@ -23,7 +23,7 @@ $values = array(10,
true,
false,
null,
- );
+ );
// loop through each element of $values to check the behaviour of expm1()
$iterator = 1;
diff --git a/ext/standard/tests/math/expm1_basiclong_64bit.phpt b/ext/standard/tests/math/expm1_basiclong_64bit.phpt
index 6963976777..9046764d02 100644
--- a/ext/standard/tests/math/expm1_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/expm1_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(expm1($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/expm1_variation1.phpt b/ext/standard/tests/math/expm1_variation1.phpt
index a342d25a7c..8cba8b1eaf 100644
--- a/ext/standard/tests/math/expm1_variation1.phpt
+++ b/ext/standard/tests/math/expm1_variation1.phpt
@@ -37,7 +37,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
// float data
/*5*/ 10.5,
@@ -55,7 +55,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
@@ -65,14 +65,14 @@ $inputs = array(
/*19*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// array data
array(),
array(1,2,4),
-
+
// object data
/*24*/ new classA(),
-
+
// undefined data
/*25*/ @$undefined_var,
diff --git a/ext/standard/tests/math/floor_basic.phpt b/ext/standard/tests/math/floor_basic.phpt
index 034f55f00e..5076292472 100644
--- a/ext/standard/tests/math/floor_basic.phpt
+++ b/ext/standard/tests/math/floor_basic.phpt
@@ -30,12 +30,12 @@ $values = array(0,
true,
false,
null,
- );
-
+ );
+
foreach($values as $value) {
echo "\n-- floor $value --\n";
var_dump(floor($value));
-};
+};
?>
===Done===
diff --git a/ext/standard/tests/math/floor_basiclong_64bit.phpt b/ext/standard/tests/math/floor_basiclong_64bit.phpt
index 65a50fc083..6b768ef90c 100644
--- a/ext/standard/tests/math/floor_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/floor_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(floor($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/floor_variation1.phpt b/ext/standard/tests/math/floor_variation1.phpt
index fcb895164a..aef4c742b9 100644
--- a/ext/standard/tests/math/floor_variation1.phpt
+++ b/ext/standard/tests/math/floor_variation1.phpt
@@ -39,7 +39,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/* 7*/ "",
'',
@@ -49,7 +49,7 @@ $inputs = array(
/*10*/ "abcxyz",
'abcxyz}',
$heredoc,
-
+
// object data
/*13*/ new classA(),
diff --git a/ext/standard/tests/math/floorceil.phpt b/ext/standard/tests/math/floorceil.phpt
index 2f7d82c6e6..f9594ce22c 100644
--- a/ext/standard/tests/math/floorceil.phpt
+++ b/ext/standard/tests/math/floorceil.phpt
@@ -2,22 +2,22 @@
Tests for floor en ceil
--FILE--
<?php
- $a = ceil (-0); $b = ceil (-1); $c = ceil (-1.5);
+ $a = ceil (-0); $b = ceil (-1); $c = ceil (-1.5);
$d = ceil (-1.8); $e = ceil (-2.7);
var_dump ($a, $b, $c, $d, $e);
-
+
$a = ceil (0); $b = ceil (0.5); $c = ceil (1);
$d = ceil (1.5); $e = ceil (1.8); $f = ceil (2.7);
var_dump ($a, $b, $c, $d, $e, $f);
-
+
$a = floor (-0); $b = floor (-0.5); $c = floor (-1);
$d = floor (-1.5); $e = floor (-1.8); $f = floor (-2.7);
var_dump ($a, $b, $c, $d, $e, $f);
-
+
$a = floor (0); $b = floor (0.5); $c = floor (1);
$d = floor (1.5); $e = floor (1.8); $f = floor (2.7);
var_dump ($a, $b, $c, $d, $e, $f);
-?>
+?>
--EXPECT--
float(0)
float(-1)
@@ -41,4 +41,4 @@ float(0)
float(1)
float(1)
float(1)
-float(2)
+float(2)
diff --git a/ext/standard/tests/math/fmod_basic.phpt b/ext/standard/tests/math/fmod_basic.phpt
index 003a49498e..afba080cf3 100644
--- a/ext/standard/tests/math/fmod_basic.phpt
+++ b/ext/standard/tests/math/fmod_basic.phpt
@@ -15,8 +15,8 @@ $values1 = array(234,
"23.45e1",
null,
true,
- false);
-
+ false);
+
$values2 = array(2,
-2,
2.3e1,
@@ -28,14 +28,14 @@ $values2 = array(2,
"2.3e1",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values1); $i++) {
- echo "\niteration ", $i, "\n";
-
+ echo "\niteration ", $i, "\n";
+
for ($j = 0; $j < count($values2); $j++) {
$res = fmod($values1[$i], $values2[$j]);
var_dump($res);
- }
+ }
}
?>
--EXPECT--
diff --git a/ext/standard/tests/math/fmod_basiclong_64bit.phpt b/ext/standard/tests/math/fmod_basiclong_64bit.phpt
index 1502b651e2..6513e31159 100644
--- a/ext/standard/tests/math/fmod_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/fmod_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,11 +23,11 @@ $otherVals = array(0, 1, -1, 7, 9, 65, -44, MAX_32Bit, MIN_32Bit, MAX_64Bit, MIN
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
- echo "--- testing: $longVal, $otherVal ---\n";
+ echo "--- testing: $longVal, $otherVal ---\n";
var_dump(fmod($longVal, $otherVal));
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/fmod_variation1.phpt b/ext/standard/tests/math/fmod_variation1.phpt
index 0f0d826ac9..b10a6b9844 100644
--- a/ext/standard/tests/math/fmod_variation1.phpt
+++ b/ext/standard/tests/math/fmod_variation1.phpt
@@ -32,7 +32,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -51,7 +51,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -61,10 +61,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/fmod_variation2.phpt b/ext/standard/tests/math/fmod_variation2.phpt
index 12fae1a758..fd8f1c62fa 100644
--- a/ext/standard/tests/math/fmod_variation2.phpt
+++ b/ext/standard/tests/math/fmod_variation2.phpt
@@ -32,7 +32,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -51,7 +51,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -61,10 +61,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/hexdec_basic.phpt b/ext/standard/tests/math/hexdec_basic.phpt
index 796c4e9bae..b99b2b0832 100644
--- a/ext/standard/tests/math/hexdec_basic.phpt
+++ b/ext/standard/tests/math/hexdec_basic.phpt
@@ -23,7 +23,7 @@ $values = array(0x123abc,
'011237',
true,
false,
- null);
+ null);
for ($i = 0; $i < count($values); $i++) {
$res = hexdec($values[$i]);
var_dump($res);
diff --git a/ext/standard/tests/math/hexdec_basic_64bit.phpt b/ext/standard/tests/math/hexdec_basic_64bit.phpt
index 8c2942fb71..c4884742f2 100644
--- a/ext/standard/tests/math/hexdec_basic_64bit.phpt
+++ b/ext/standard/tests/math/hexdec_basic_64bit.phpt
@@ -25,13 +25,13 @@ $values = array(0x123abc,
'011237',
true,
false,
- null);
+ null);
foreach($values as $value) {
echo "\n-- hexdec $value --\n";
var_dump(hexdec($value));
-};
-
+};
+
?>
===Done===
--EXPECT--
diff --git a/ext/standard/tests/math/hexdec_basiclong_64bit.phpt b/ext/standard/tests/math/hexdec_basiclong_64bit.phpt
index 29c684a155..b8bf548801 100644
--- a/ext/standard/tests/math/hexdec_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/hexdec_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -28,7 +28,7 @@ foreach ($hexLongStrs as $strVal) {
echo "--- testing: $strVal ---\n";
var_dump(hexdec($strVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/hexdec_variation1.phpt b/ext/standard/tests/math/hexdec_variation1.phpt
index 2b3f1b6ab3..1712a5750f 100644
--- a/ext/standard/tests/math/hexdec_variation1.phpt
+++ b/ext/standard/tests/math/hexdec_variation1.phpt
@@ -32,9 +32,9 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
4294967295, // largest decimal
- 4294967296,
+ 4294967296,
// float data
/*7*/ 10.5,
@@ -52,7 +52,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*18*/ "",
'',
diff --git a/ext/standard/tests/math/hexdec_variation1_64bit.phpt b/ext/standard/tests/math/hexdec_variation1_64bit.phpt
index 65beb2d91b..c279addf06 100644
--- a/ext/standard/tests/math/hexdec_variation1_64bit.phpt
+++ b/ext/standard/tests/math/hexdec_variation1_64bit.phpt
@@ -32,9 +32,9 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
4294967295, // largest decimal
- 4294967296,
+ 4294967296,
// float data
/*7*/ 10.5,
@@ -52,7 +52,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*18*/ "",
'',
diff --git a/ext/standard/tests/math/hypot_basic.phpt b/ext/standard/tests/math/hypot_basic.phpt
index c280a23bb2..c47aabcd8a 100644
--- a/ext/standard/tests/math/hypot_basic.phpt
+++ b/ext/standard/tests/math/hypot_basic.phpt
@@ -25,7 +25,7 @@ $valuesy = array(23,
null,
true,
false);
-
+
$valuesx = array(33,
-33,
3.345e1,
@@ -38,14 +38,14 @@ $valuesx = array(33,
"33abc",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($valuesy); $i++) {
- for ($j = 0; $j < count($valuesx); $j++) {
+ for ($j = 0; $j < count($valuesx); $j++) {
echo "\nY:$valuesy[$i] X:$valuesx[$j] ";
$res = hypot($valuesy[$i], $valuesx[$j]);
var_dump($res);
- }
+ }
}
?>
===Done===
diff --git a/ext/standard/tests/math/hypot_basiclong_64bit.phpt b/ext/standard/tests/math/hypot_basiclong_64bit.phpt
index 241fa9c4e9..3bbfcb4afc 100644
--- a/ext/standard/tests/math/hypot_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/hypot_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,11 +23,11 @@ $otherVals = array(0, 1, -1, 7, 9, 65, -44, MAX_32Bit, MIN_32Bit, MAX_64Bit, MIN
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
- echo "--- testing: $longVal, $otherVal ---\n";
+ echo "--- testing: $longVal, $otherVal ---\n";
var_dump(hypot($longVal, $otherVal));
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/hypot_error.phpt b/ext/standard/tests/math/hypot_error.phpt
index b357a3a809..b816cd58a0 100644
--- a/ext/standard/tests/math/hypot_error.phpt
+++ b/ext/standard/tests/math/hypot_error.phpt
@@ -6,7 +6,7 @@ Test hypot() - wrong params test hypot()
* Description: Calculate the length of the hypotenuse of a right-angle triangle.
* Source code: ext/standard/math.c
*/
-
+
echo "*** Testing hypot() : error conditions ***\n";
echo "\n-- Testing hypot() function with less than expected no. of arguments --\n";
diff --git a/ext/standard/tests/math/hypot_variation1.phpt b/ext/standard/tests/math/hypot_variation1.phpt
index b083822c10..f8491167cc 100644
--- a/ext/standard/tests/math/hypot_variation1.phpt
+++ b/ext/standard/tests/math/hypot_variation1.phpt
@@ -33,7 +33,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -52,7 +52,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -62,10 +62,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/hypot_variation2.phpt b/ext/standard/tests/math/hypot_variation2.phpt
index 393e5eb9d1..9685ff234d 100644
--- a/ext/standard/tests/math/hypot_variation2.phpt
+++ b/ext/standard/tests/math/hypot_variation2.phpt
@@ -33,7 +33,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -52,7 +52,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -62,10 +62,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/is_finite_basic.phpt b/ext/standard/tests/math/is_finite_basic.phpt
index 3b80c969d9..679b702319 100644
--- a/ext/standard/tests/math/is_finite_basic.phpt
+++ b/ext/standard/tests/math/is_finite_basic.phpt
@@ -15,11 +15,11 @@ $values = array(234,
true,
false,
pow(0, -2),
- acos(1.01));
+ acos(1.01));
;
for ($i = 0; $i < count($values); $i++) {
$res = is_finite($values[$i]);
- var_dump($res);
+ var_dump($res);
}
?>
--EXPECT--
diff --git a/ext/standard/tests/math/is_finite_basiclong_64bit.phpt b/ext/standard/tests/math/is_finite_basiclong_64bit.phpt
index bbc43f7349..201d8473fa 100644
--- a/ext/standard/tests/math/is_finite_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/is_finite_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(is_finite($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/is_finite_variation1.phpt b/ext/standard/tests/math/is_finite_variation1.phpt
index 4f6288f5df..bf4f3e41e1 100644
--- a/ext/standard/tests/math/is_finite_variation1.phpt
+++ b/ext/standard/tests/math/is_finite_variation1.phpt
@@ -32,7 +32,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -51,7 +51,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -61,10 +61,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/is_infinite_basic.phpt b/ext/standard/tests/math/is_infinite_basic.phpt
index 2ae5679285..2a02dfb9bb 100644
--- a/ext/standard/tests/math/is_infinite_basic.phpt
+++ b/ext/standard/tests/math/is_infinite_basic.phpt
@@ -15,11 +15,11 @@ $values = array(234,
true,
false,
pow(0, -2),
- acos(1.01));
+ acos(1.01));
;
for ($i = 0; $i < count($values); $i++) {
$res = is_infinite($values[$i]);
- var_dump($res);
+ var_dump($res);
}
?>
--EXPECT--
diff --git a/ext/standard/tests/math/is_infinite_basiclong_64bit.phpt b/ext/standard/tests/math/is_infinite_basiclong_64bit.phpt
index ab15ec71f0..ca53b77f0c 100644
--- a/ext/standard/tests/math/is_infinite_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/is_infinite_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(is_infinite($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/is_infinite_variation1.phpt b/ext/standard/tests/math/is_infinite_variation1.phpt
index e7228dd7c5..d04a91b552 100644
--- a/ext/standard/tests/math/is_infinite_variation1.phpt
+++ b/ext/standard/tests/math/is_infinite_variation1.phpt
@@ -32,7 +32,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -51,7 +51,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -61,10 +61,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/is_nan_basic.phpt b/ext/standard/tests/math/is_nan_basic.phpt
index a7998e1314..8a37912f80 100644
--- a/ext/standard/tests/math/is_nan_basic.phpt
+++ b/ext/standard/tests/math/is_nan_basic.phpt
@@ -15,14 +15,14 @@ $values = array(234,
true,
false,
pow(0, -2),
- acos(1.01));
-
+ acos(1.01));
+
for ($i = 0; $i < count($values); $i++) {
$res = is_nan($values[$i]);
- var_dump($res);
+ var_dump($res);
}
-
+
?>
--EXPECT--
diff --git a/ext/standard/tests/math/is_nan_basiclong_64bit.phpt b/ext/standard/tests/math/is_nan_basiclong_64bit.phpt
index 6f66d6b71e..ca85db1660 100644
--- a/ext/standard/tests/math/is_nan_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/is_nan_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(is_nan($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/is_nan_variation1.phpt b/ext/standard/tests/math/is_nan_variation1.phpt
index 3106d30d74..fed29a8901 100644
--- a/ext/standard/tests/math/is_nan_variation1.phpt
+++ b/ext/standard/tests/math/is_nan_variation1.phpt
@@ -32,7 +32,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -51,7 +51,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -61,10 +61,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/lcg_value_basic.phpt b/ext/standard/tests/math/lcg_value_basic.phpt
index 8fc95190c6..16ef44c47d 100644
--- a/ext/standard/tests/math/lcg_value_basic.phpt
+++ b/ext/standard/tests/math/lcg_value_basic.phpt
@@ -9,7 +9,7 @@ echo "MATHS test script started\n";
echo "\n lcg_value tests...\n";
for ($i = 0; $i < 100; $i++) {
$res = lcg_value();
-
+
if (!is_float($res) || $res < 0 || $res > 1) {
break;
}
@@ -17,28 +17,28 @@ for ($i = 0; $i < 100; $i++) {
if ($i != 100) {
echo "FAILED\n";
-} else {
+} else {
echo "PASSED\n";
-}
+}
echo "\n lcg_value error cases..\n";
$res = lcg_value(23);
if (is_null($res)) {
echo "PASSED\n";
-} else {
+} else {
echo "FAILED\n";
-}
+}
$res = lcg_value(10,false);
if (is_null($res)) {
echo "PASSED\n";
-} else {
+} else {
echo "FAILED\n";
-}
+}
echo "MATHS test script completed\n";
-
+
?>
--EXPECTF--
diff --git a/ext/standard/tests/math/log.phpt b/ext/standard/tests/math/log.phpt
index 31c5e2ae85..4df77e643c 100644
--- a/ext/standard/tests/math/log.phpt
+++ b/ext/standard/tests/math/log.phpt
@@ -6,8 +6,8 @@ echo "On failure, please mail result to php-dev@lists.php.net\n";
for ($x = 0, $count= 0; $x < 200; $x++) {
$x2 = (int) exp(log($x));
// e ^ log(x) should be close in range to x
- if (($x2 < ($x + 2)) && ($x2 > ($x - 2))) {
- $count++;
+ if (($x2 < ($x + 2)) && ($x2 > ($x - 2))) {
+ $count++;
} else {
print "$x : $x2\n";
}
@@ -19,8 +19,8 @@ for ($base = 2; $base < 11; $base++) {
for ($x = 0, $count= 0; $x < 50; $x++) {
$x2 = (int) pow($base, log($x, $base));
// base ^ log(x) should be close in range to x
- if (($x2 < ($x + 2)) && ($x2 > ($x - 2))) {
- $count++;
+ if (($x2 < ($x + 2)) && ($x2 > ($x - 2))) {
+ $count++;
} else {
print "base $base: $x : $x2\n";
}
diff --git a/ext/standard/tests/math/log10_basic.phpt b/ext/standard/tests/math/log10_basic.phpt
index 0877df23d7..3ea14b59ac 100644
--- a/ext/standard/tests/math/log10_basic.phpt
+++ b/ext/standard/tests/math/log10_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input log10()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float log10(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/log10_basiclong_64bit.phpt b/ext/standard/tests/math/log10_basiclong_64bit.phpt
index be1b7eff7d..2eb2d544b6 100644
--- a/ext/standard/tests/math/log10_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/log10_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(log10($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/log10_error.phpt b/ext/standard/tests/math/log10_error.phpt
index e3bc604fd2..f4e5da8f48 100644
--- a/ext/standard/tests/math/log10_error.phpt
+++ b/ext/standard/tests/math/log10_error.phpt
@@ -4,10 +4,10 @@ Test wrong number of arguments for log10()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float log10(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/log10_variation.phpt b/ext/standard/tests/math/log10_variation.phpt
index ca41a0dbd5..40099689ef 100644
--- a/ext/standard/tests/math/log10_variation.phpt
+++ b/ext/standard/tests/math/log10_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of log10()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float log10(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test log10 with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = log10($values[$i]);
diff --git a/ext/standard/tests/math/log1p_basic.phpt b/ext/standard/tests/math/log1p_basic.phpt
index b6d14a26e7..4270ad6920 100644
--- a/ext/standard/tests/math/log1p_basic.phpt
+++ b/ext/standard/tests/math/log1p_basic.phpt
@@ -23,14 +23,14 @@ $values = array(23,
"2.345e1",
null,
true,
- false);
+ false);
echo "\n LOG1p tests\n";
foreach($values as $value) {
echo "\n-- log1p $value --\n";
var_dump(log1p($value));
-};
+};
?>
diff --git a/ext/standard/tests/math/log1p_basiclong_64bit.phpt b/ext/standard/tests/math/log1p_basiclong_64bit.phpt
index a0b32bdce9..05580ff731 100644
--- a/ext/standard/tests/math/log1p_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/log1p_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(log1p($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/log1p_error.phpt b/ext/standard/tests/math/log1p_error.phpt
index e0b01a19ac..62549c4765 100644
--- a/ext/standard/tests/math/log1p_error.phpt
+++ b/ext/standard/tests/math/log1p_error.phpt
@@ -7,7 +7,7 @@ Test log1p() - Error conditions
* when the value of number is close to zero
* Source code: ext/standard/math.c
*/
-
+
echo "*** Testing log1p() : error conditions ***\n";
echo "\n-- Testing log1p() function with less than expected no. of arguments --\n";
diff --git a/ext/standard/tests/math/log1p_variation1.phpt b/ext/standard/tests/math/log1p_variation1.phpt
index 8cd41526f5..138471418a 100644
--- a/ext/standard/tests/math/log1p_variation1.phpt
+++ b/ext/standard/tests/math/log1p_variation1.phpt
@@ -35,7 +35,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
-2147483648,
@@ -55,7 +55,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*18*/ "",
'',
@@ -65,10 +65,10 @@ $inputs = array(
/*21*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*24*/ new classA(),
-
+
// undefined data
/*25*/ @$undefined_var,
diff --git a/ext/standard/tests/math/log_basic.phpt b/ext/standard/tests/math/log_basic.phpt
index 1b0b628d51..a928af6013 100644
--- a/ext/standard/tests/math/log_basic.phpt
+++ b/ext/standard/tests/math/log_basic.phpt
@@ -15,7 +15,7 @@ $values = array(23,
"2.345e1",
null,
true,
- false);
+ false);
echo "\n LOG tests...no base\n";
for ($i = 0; $i < count($values); $i++) {
diff --git a/ext/standard/tests/math/log_basiclong_64bit.phpt b/ext/standard/tests/math/log_basiclong_64bit.phpt
index 9a8f8a6f1d..5259899323 100644
--- a/ext/standard/tests/math/log_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/log_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(log($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/log_variation1.phpt b/ext/standard/tests/math/log_variation1.phpt
index c1cde4bcc9..9d350f212c 100644
--- a/ext/standard/tests/math/log_variation1.phpt
+++ b/ext/standard/tests/math/log_variation1.phpt
@@ -32,7 +32,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -51,7 +51,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -61,10 +61,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/log_variation2.phpt b/ext/standard/tests/math/log_variation2.phpt
index 9f5c7313fa..33cb38ee7b 100644
--- a/ext/standard/tests/math/log_variation2.phpt
+++ b/ext/standard/tests/math/log_variation2.phpt
@@ -32,7 +32,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -51,7 +51,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -61,10 +61,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/mt_rand_basic.phpt b/ext/standard/tests/math/mt_rand_basic.phpt
index 5ffa059c3f..6dedc78be1 100644
--- a/ext/standard/tests/math/mt_rand_basic.phpt
+++ b/ext/standard/tests/math/mt_rand_basic.phpt
@@ -7,7 +7,7 @@ $default_max = mt_getrandmax();
echo "\nmt_rand() tests with default min and max value (i.e 0 thru ", $default_max, ")\n";
for ($i = 0; $i < 100; $i++) {
$res = mt_rand();
-
+
// By default RAND_MAX is 32768 although no constant is defined for it for user space apps
if (!is_int($res) || $res < 0 || $res > $default_max) {
break;
@@ -16,9 +16,9 @@ for ($i = 0; $i < 100; $i++) {
if ($i != 100) {
echo "FAILED: res = ", $res, " min = 0 max = ", $default_max, "\n";
-} else {
- echo "PASSED: range min = 0 max = ", $default_max, "\n";
-}
+} else {
+ echo "PASSED: range min = 0 max = ", $default_max, "\n";
+}
echo "\nmt_rand() tests with defined min and max value\n";
@@ -28,28 +28,28 @@ $min = array(10,
10.5e3,
0x10,
0400);
-
+
$max = array(100,
1000,
19.5,
10.5e5,
0x10000,
- 0700);
+ 0700);
for ($x = 0; $x < count($min); $x++) {
for ($i = 0; $i < 100; $i++) {
$res = mt_rand($min[$x], $max[$x]);
-
+
if (!is_int($res) || $res < intval($min[$x]) || $res > intval($max[$x])) {
- echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
+ echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
break;
}
}
if ($i == 100) {
- echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
+ echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
}
-}
+}
echo "\nNon-numeric cases\n";
$min = array(true,
@@ -57,7 +57,7 @@ $min = array(true,
null,
"10",
"10.5");
-
+
// Expected numerical equivalent of above non-numerics
$minval = array(1,
0,
@@ -67,16 +67,16 @@ $minval = array(1,
for ($x = 0; $x < count($min); $x++) {
for ($i = 0; $i < 100; $i++) {
$res = mt_rand($min[$x], 100);
-
+
if (!is_int($res) || $res < intval($minval[$x]) || $res > 100) {
- echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
+ echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
break;
}
}
-
+
if ($i == 100) {
- echo "PASSED range min = ", intval($min[$x]), " max = 100\n";
- }
+ echo "PASSED range min = ", intval($min[$x]), " max = 100\n";
+ }
}
?>
--EXPECT--
diff --git a/ext/standard/tests/math/mt_rand_variation1.phpt b/ext/standard/tests/math/mt_rand_variation1.phpt
index 38df739baf..545cdb0b43 100644
--- a/ext/standard/tests/math/mt_rand_variation1.phpt
+++ b/ext/standard/tests/math/mt_rand_variation1.phpt
@@ -32,7 +32,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -51,7 +51,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -61,10 +61,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/mt_rand_variation2.phpt b/ext/standard/tests/math/mt_rand_variation2.phpt
index f49d1293f7..b258dca2ad 100644
--- a/ext/standard/tests/math/mt_rand_variation2.phpt
+++ b/ext/standard/tests/math/mt_rand_variation2.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -63,10 +63,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/mt_srand_variation1.phpt b/ext/standard/tests/math/mt_srand_variation1.phpt
index 891152b8a8..bb96764a16 100644
--- a/ext/standard/tests/math/mt_srand_variation1.phpt
+++ b/ext/standard/tests/math/mt_srand_variation1.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -63,10 +63,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/number_format_basic.phpt b/ext/standard/tests/math/number_format_basic.phpt
index 330a71b4a7..db1e40e831 100644
--- a/ext/standard/tests/math/number_format_basic.phpt
+++ b/ext/standard/tests/math/number_format_basic.phpt
@@ -13,7 +13,7 @@ $values = array(1234.5678,
"12.3456789e1",
null,
true,
- false);
+ false);
echo "\n number_format tests.....default\n";
for ($i = 0; $i < count($values); $i++) {
diff --git a/ext/standard/tests/math/number_format_multichar.phpt b/ext/standard/tests/math/number_format_multichar.phpt
index 2141cc20a4..90ef3ea634 100644
--- a/ext/standard/tests/math/number_format_multichar.phpt
+++ b/ext/standard/tests/math/number_format_multichar.phpt
@@ -13,7 +13,7 @@ $values = array(1234.5678,
"12.3456789e1",
null,
true,
- false);
+ false);
echo " number_format tests.....multiple character decimal point\n";
for ($i = 0; $i < count($values); $i++) {
diff --git a/ext/standard/tests/math/octdec_basic.phpt b/ext/standard/tests/math/octdec_basic.phpt
index ff584f2514..dfa9e9024c 100644
--- a/ext/standard/tests/math/octdec_basic.phpt
+++ b/ext/standard/tests/math/octdec_basic.phpt
@@ -22,7 +22,7 @@ $values = array(01234567,
31.1013e5,
true,
false,
- null);
+ null);
for ($i = 0; $i < count($values); $i++) {
$res = octdec($values[$i]);
diff --git a/ext/standard/tests/math/octdec_basic_64bit.phpt b/ext/standard/tests/math/octdec_basic_64bit.phpt
index c77ca722bb..a652f30623 100644
--- a/ext/standard/tests/math/octdec_basic_64bit.phpt
+++ b/ext/standard/tests/math/octdec_basic_64bit.phpt
@@ -25,7 +25,7 @@ $values = array(01234567,
31.1013e5,
true,
false,
- null);
+ null);
for ($i = 0; $i < count($values); $i++) {
$res = octdec($values[$i]);
diff --git a/ext/standard/tests/math/octdec_basiclong_64bit.phpt b/ext/standard/tests/math/octdec_basiclong_64bit.phpt
index 651b09db39..4a97a6f414 100644
--- a/ext/standard/tests/math/octdec_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/octdec_basiclong_64bit.phpt
@@ -6,15 +6,15 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
define("MIN_32Bit", -2147483647 - 1);
$octLongStrs = array(
- '777777777777777777777',
- '1777777777777777777777',
+ '777777777777777777777',
+ '1777777777777777777777',
'17777777777',
'37777777777',
'377777777777777777777777',
@@ -28,7 +28,7 @@ foreach ($octLongStrs as $strVal) {
echo "--- testing: $strVal ---\n";
var_dump(octdec($strVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/octdec_error.phpt b/ext/standard/tests/math/octdec_error.phpt
index ba5f2116bb..3ba10a5562 100644
--- a/ext/standard/tests/math/octdec_error.phpt
+++ b/ext/standard/tests/math/octdec_error.phpt
@@ -14,7 +14,7 @@ class classA
{
}
-echo "\n-- Incorrect number of arguments --\n";
+echo "\n-- Incorrect number of arguments --\n";
octdec();
octdec('0123567',true);
diff --git a/ext/standard/tests/math/octdec_variation1.phpt b/ext/standard/tests/math/octdec_variation1.phpt
index 117119600b..57edb35425 100644
--- a/ext/standard/tests/math/octdec_variation1.phpt
+++ b/ext/standard/tests/math/octdec_variation1.phpt
@@ -28,9 +28,9 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
4294967295, // largest decimal
- 4294967296,
+ 4294967296,
// float data
/*7*/ 10.5,
@@ -48,7 +48,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*18*/ "",
'',
@@ -58,7 +58,7 @@ $inputs = array(
/*21*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/pow_basic.phpt b/ext/standard/tests/math/pow_basic.phpt
index b7d96ca23b..c9e13770a1 100644
--- a/ext/standard/tests/math/pow_basic.phpt
+++ b/ext/standard/tests/math/pow_basic.phpt
@@ -20,7 +20,7 @@ $bases = array(23,
"23.45",
"2.345e1",
PHP_INT_MAX,
- -PHP_INT_MAX - 1);
+ -PHP_INT_MAX - 1);
$exponents = array(0,
1,
@@ -34,8 +34,8 @@ $exponents = array(0,
500,
-500,
2147483647,
- -2147483648);
-
+ -2147483648);
+
foreach($bases as $base) {
echo "\n\nBase = $base";
foreach($exponents as $exponent) {
diff --git a/ext/standard/tests/math/pow_basic2.phpt b/ext/standard/tests/math/pow_basic2.phpt
index fc55caccad..a1cb124767 100644
--- a/ext/standard/tests/math/pow_basic2.phpt
+++ b/ext/standard/tests/math/pow_basic2.phpt
@@ -8,7 +8,7 @@ precision=14
$large_exp = 20000;
echo "\n-- The following all result in INF --\n";
-var_dump(pow(24, $large_exp));
+var_dump(pow(24, $large_exp));
var_dump(pow(0.24, -$large_exp));
var_dump(pow(-0.24, -$large_exp));
@@ -16,7 +16,7 @@ echo "\n\n-- The following all result in 0 --\n";
var_dump(pow(0.24, $large_exp));
var_dump(pow(-0.24, $large_exp));
var_dump(pow(24, -$large_exp));
-var_dump(pow(-24, -$large_exp));
+var_dump(pow(-24, -$large_exp));
echo "\n\n-- The following all result in -0 --\n";
var_dump(pow(-0.24, $large_exp+1));
diff --git a/ext/standard/tests/math/pow_basic_64bit.phpt b/ext/standard/tests/math/pow_basic_64bit.phpt
index fd583a0243..1493ea5bc5 100644
--- a/ext/standard/tests/math/pow_basic_64bit.phpt
+++ b/ext/standard/tests/math/pow_basic_64bit.phpt
@@ -20,7 +20,7 @@ $bases = array(23,
"23.45",
"2.345e1",
PHP_INT_MAX,
- -PHP_INT_MAX - 1);
+ -PHP_INT_MAX - 1);
$exponents = array(0,
1,
@@ -34,8 +34,8 @@ $exponents = array(0,
500,
-500,
2147483647,
- -2147483648);
-
+ -2147483648);
+
foreach($bases as $base) {
echo "\n\nBase = $base";
foreach($exponents as $exponent) {
diff --git a/ext/standard/tests/math/pow_basiclong_64bit.phpt b/ext/standard/tests/math/pow_basiclong_64bit.phpt
index dfff0f6785..722b01c0c7 100644
--- a/ext/standard/tests/math/pow_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/pow_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,11 +23,11 @@ $otherVals = array(0, 1, -1, 7, 9, 65, -44, MAX_32Bit, MIN_32Bit, MAX_64Bit, MIN
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
- echo "--- testing: $longVal, $otherVal ---\n";
+ echo "--- testing: $longVal, $otherVal ---\n";
var_dump(pow($longVal, $otherVal));
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/pow_variation1.phpt b/ext/standard/tests/math/pow_variation1.phpt
index 3b1befe16b..2b98844fea 100644
--- a/ext/standard/tests/math/pow_variation1.phpt
+++ b/ext/standard/tests/math/pow_variation1.phpt
@@ -38,7 +38,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
PHP_INT_MAX,
// float data
@@ -57,7 +57,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -67,10 +67,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/pow_variation1_64bit.phpt b/ext/standard/tests/math/pow_variation1_64bit.phpt
index 35f9942490..8e2497e85c 100644
--- a/ext/standard/tests/math/pow_variation1_64bit.phpt
+++ b/ext/standard/tests/math/pow_variation1_64bit.phpt
@@ -38,7 +38,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
PHP_INT_MAX,
// float data
@@ -57,7 +57,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -67,10 +67,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/pow_variation2.phpt b/ext/standard/tests/math/pow_variation2.phpt
index d93a952dbe..7c4d7a0460 100644
--- a/ext/standard/tests/math/pow_variation2.phpt
+++ b/ext/standard/tests/math/pow_variation2.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -63,10 +63,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/rad2deg_basic.phpt b/ext/standard/tests/math/rad2deg_basic.phpt
index 0256ffbd90..e79e591cf7 100644
--- a/ext/standard/tests/math/rad2deg_basic.phpt
+++ b/ext/standard/tests/math/rad2deg_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input rad2deg()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float rad2deg(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/rad2deg_basiclong_64bit.phpt b/ext/standard/tests/math/rad2deg_basiclong_64bit.phpt
index 4f43ef1368..b3d973387e 100644
--- a/ext/standard/tests/math/rad2deg_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/rad2deg_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(rad2deg($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/rad2deg_error.phpt b/ext/standard/tests/math/rad2deg_error.phpt
index 32b2f4dcb6..e49eea2703 100644
--- a/ext/standard/tests/math/rad2deg_error.phpt
+++ b/ext/standard/tests/math/rad2deg_error.phpt
@@ -4,10 +4,10 @@ Test wrong number of arguments for rad2deg()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float rad2deg(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/rad2deg_variation.phpt b/ext/standard/tests/math/rad2deg_variation.phpt
index 935636cd59..d9c81143aa 100644
--- a/ext/standard/tests/math/rad2deg_variation.phpt
+++ b/ext/standard/tests/math/rad2deg_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of rad2deg()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float rad2deg(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test rad2deg with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = rad2deg($values[$i]);
diff --git a/ext/standard/tests/math/rand_basic.phpt b/ext/standard/tests/math/rand_basic.phpt
index 8dc9fb862c..a9fb7b399a 100644
--- a/ext/standard/tests/math/rand_basic.phpt
+++ b/ext/standard/tests/math/rand_basic.phpt
@@ -7,7 +7,7 @@ $default_max = getrandmax();
echo "\nrand() tests with default min and max value (i.e 0 thru ", $default_max, ")\n";
for ($i = 0; $i < 100; $i++) {
$res = rand();
-
+
// By default RAND_MAX is 32768 although no constant is defined for it for user space apps
if (!is_int($res) || $res < 0 || $res > $default_max) {
break;
@@ -16,9 +16,9 @@ for ($i = 0; $i < 100; $i++) {
if ($i != 100) {
echo "FAILED: res = ", $res, " min = 0 max = ", $default_max, "\n";
-} else {
+} else {
echo "PASSED: range min = 0 max = ", $default_max, "\n";
-}
+}
echo "\nrand() tests with defined min and max value\n";
@@ -28,28 +28,28 @@ $min = array(10,
10.5e3,
0x10,
0400);
-
+
$max = array(100,
1000,
19.5,
10.5e5,
0x10000,
- 0700);
+ 0700);
for ($x = 0; $x < count($min); $x++) {
for ($i = 0; $i < 100; $i++) {
$res = rand($min[$x], $max[$x]);
-
+
if (!is_int($res) || $res < intval($min[$x]) || $res > intval($max[$x])) {
- echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
+ echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
break;
}
}
if ($i == 100) {
- echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
+ echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
}
-}
+}
echo "\nNon-numeric cases\n";
$min = array(true,
@@ -57,7 +57,7 @@ $min = array(true,
null,
"10",
"10.5");
-
+
// Eexepcted numerical equivalent of above non-numerics
$minval = array(1,
0,
@@ -67,16 +67,16 @@ $minval = array(1,
for ($x = 0; $x < count($min); $x++) {
for ($i = 0; $i < 100; $i++) {
$res = rand($min[$x], 100);
-
+
if (!is_int($res) || $res < intval($minval[$x]) || $res > 100) {
- echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
+ echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
break;
}
}
-
+
if ($i == 100) {
- echo "PASSED range min = ", intval($min[$x]), " max = 100\n";
- }
+ echo "PASSED range min = ", intval($min[$x]), " max = 100\n";
+ }
}
?>
--EXPECTF--
diff --git a/ext/standard/tests/math/rand_variation1.phpt b/ext/standard/tests/math/rand_variation1.phpt
index d688524b6e..a84292e598 100644
--- a/ext/standard/tests/math/rand_variation1.phpt
+++ b/ext/standard/tests/math/rand_variation1.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -63,10 +63,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/rand_variation2.phpt b/ext/standard/tests/math/rand_variation2.phpt
index ed9c9a61c3..7c11e39bc9 100644
--- a/ext/standard/tests/math/rand_variation2.phpt
+++ b/ext/standard/tests/math/rand_variation2.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -63,10 +63,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/round_basic.phpt b/ext/standard/tests/math/round_basic.phpt
index 72ab13fc3e..1d9d6bf8d5 100644
--- a/ext/standard/tests/math/round_basic.phpt
+++ b/ext/standard/tests/math/round_basic.phpt
@@ -19,9 +19,9 @@ $values = array(123456789,
-4.567E3,
0x234567,
067777777,
- "1.234567",
+ "1.234567",
"2.3456789e8");
-
+
$precision = array(2,
8,
0x3,
@@ -33,7 +33,7 @@ $precision = array(2,
"2.1e1",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
echo "round: $values[$i]\n";
@@ -41,7 +41,7 @@ for ($i = 0; $i < count($values); $i++) {
$res = round($values[$i], $precision[$j]);
echo "...with precision $precision[$j]-> ";
var_dump($res);
- }
+ }
}
?>
===Done===
diff --git a/ext/standard/tests/math/round_basiclong_64bit.phpt b/ext/standard/tests/math/round_basiclong_64bit.phpt
index 19db12ed81..fbae95437f 100644
--- a/ext/standard/tests/math/round_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/round_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(round($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/round_error.phpt b/ext/standard/tests/math/round_error.phpt
index 28a6d5cf79..eb80722d92 100644
--- a/ext/standard/tests/math/round_error.phpt
+++ b/ext/standard/tests/math/round_error.phpt
@@ -7,11 +7,11 @@ Test round() function : error conditions - incorrect number of args
* after the decimal point)
* Source code: ext/standard/math.c
*/
-
+
/*
* Pass incorrect number of arguments to round() to test behaviour
*/
-
+
echo "*** Testing round() : error conditions ***\n";
echo "\n-- Wrong nmumber of arguments --\n";
diff --git a/ext/standard/tests/math/round_variation1.phpt b/ext/standard/tests/math/round_variation1.phpt
index c1883a5c1b..48070e967f 100644
--- a/ext/standard/tests/math/round_variation1.phpt
+++ b/ext/standard/tests/math/round_variation1.phpt
@@ -35,7 +35,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -54,7 +54,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -64,10 +64,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/round_variation2.phpt b/ext/standard/tests/math/round_variation2.phpt
index aec4c7f27b..3ace9f3966 100644
--- a/ext/standard/tests/math/round_variation2.phpt
+++ b/ext/standard/tests/math/round_variation2.phpt
@@ -35,7 +35,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -54,7 +54,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -64,10 +64,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/sin_basic.phpt b/ext/standard/tests/math/sin_basic.phpt
index 2b55ad7355..27579cd289 100644
--- a/ext/standard/tests/math/sin_basic.phpt
+++ b/ext/standard/tests/math/sin_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input sin()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float sin(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
@@ -64,7 +64,7 @@ var_dump(sin($twoseventy));
if (allowed_rounding_error(sin($twoseventy),-1.0)) {
echo "Pass\n";
}
-else {
+else {
echo "Fail\n";
}
diff --git a/ext/standard/tests/math/sin_basiclong_64bit.phpt b/ext/standard/tests/math/sin_basiclong_64bit.phpt
index 55b859a6fd..f335b3bd62 100644
--- a/ext/standard/tests/math/sin_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/sin_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(sin($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/sin_error.phpt b/ext/standard/tests/math/sin_error.phpt
index 41a4b2e7af..c6b9f086cd 100644
--- a/ext/standard/tests/math/sin_error.phpt
+++ b/ext/standard/tests/math/sin_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for sin()
--FILE--
<?php
-/*
+/*
* proto float sin(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/sin_variation.phpt b/ext/standard/tests/math/sin_variation.phpt
index 5d4b5583cc..9f79ca1c3c 100644
--- a/ext/standard/tests/math/sin_variation.phpt
+++ b/ext/standard/tests/math/sin_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of sin()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float sin(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test sin with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = sin($values[$i]);
diff --git a/ext/standard/tests/math/sinh_basic.phpt b/ext/standard/tests/math/sinh_basic.phpt
index 79bef6314c..2bcf42f9fd 100644
--- a/ext/standard/tests/math/sinh_basic.phpt
+++ b/ext/standard/tests/math/sinh_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input sinh()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float sinh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/sinh_basiclong_64bit.phpt b/ext/standard/tests/math/sinh_basiclong_64bit.phpt
index 52068146ea..a52a48a8db 100644
--- a/ext/standard/tests/math/sinh_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/sinh_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(sinh($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/sinh_error.phpt b/ext/standard/tests/math/sinh_error.phpt
index 70decf252f..3f7ba923c3 100644
--- a/ext/standard/tests/math/sinh_error.phpt
+++ b/ext/standard/tests/math/sinh_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for sinh()
--FILE--
<?php
-/*
+/*
* proto float sinh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/sinh_variation.phpt b/ext/standard/tests/math/sinh_variation.phpt
index 860f809b88..a212a09975 100644
--- a/ext/standard/tests/math/sinh_variation.phpt
+++ b/ext/standard/tests/math/sinh_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of sinh()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float sinh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test sinh with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = sinh($values[$i]);
diff --git a/ext/standard/tests/math/sqrt_basic.phpt b/ext/standard/tests/math/sqrt_basic.phpt
index 076a113016..ef665a0216 100644
--- a/ext/standard/tests/math/sqrt_basic.phpt
+++ b/ext/standard/tests/math/sqrt_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input sqrt()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float sqrt(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 9.0;
diff --git a/ext/standard/tests/math/sqrt_basiclong_64bit.phpt b/ext/standard/tests/math/sqrt_basiclong_64bit.phpt
index 99091e2c4b..44fe578548 100644
--- a/ext/standard/tests/math/sqrt_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/sqrt_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(sqrt($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/sqrt_error.phpt b/ext/standard/tests/math/sqrt_error.phpt
index 66d6d27355..ac66091838 100644
--- a/ext/standard/tests/math/sqrt_error.phpt
+++ b/ext/standard/tests/math/sqrt_error.phpt
@@ -4,10 +4,10 @@ Test wrong number of arguments for sqrt()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float sqrt(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/sqrt_variation.phpt b/ext/standard/tests/math/sqrt_variation.phpt
index e5629ee55c..a35730552d 100644
--- a/ext/standard/tests/math/sqrt_variation.phpt
+++ b/ext/standard/tests/math/sqrt_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of sqrt()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float sqrt(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test sqrt with a different input values
@@ -27,7 +27,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = sqrt($values[$i]);
diff --git a/ext/standard/tests/math/srand_error.phpt b/ext/standard/tests/math/srand_error.phpt
index 92140af82a..420698d0b1 100644
--- a/ext/standard/tests/math/srand_error.phpt
+++ b/ext/standard/tests/math/srand_error.phpt
@@ -6,11 +6,11 @@ Test srand() function : error conditions - incorrect number of args
* Description: Seed the random number generator.
* Source code: ext/standard/rand.c
*/
-
+
/*
* Pass incorrect number of arguments to srand() to test behaviour
*/
-
+
echo "*** Testing srand() : error conditions ***\n";
var_dump(srand(500, 0, true));
diff --git a/ext/standard/tests/math/srand_variation1.phpt b/ext/standard/tests/math/srand_variation1.phpt
index 3a681e647a..8b73eafc20 100644
--- a/ext/standard/tests/math/srand_variation1.phpt
+++ b/ext/standard/tests/math/srand_variation1.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12345,
- -2345,
+ -2345,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
@@ -63,10 +63,10 @@ $inputs = array(
/*20*/ "abcxyz",
'abcxyz',
$heredoc,
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
diff --git a/ext/standard/tests/math/tan_basic.phpt b/ext/standard/tests/math/tan_basic.phpt
index e2934fb388..b804a662de 100644
--- a/ext/standard/tests/math/tan_basic.phpt
+++ b/ext/standard/tests/math/tan_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input tan()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float tan(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
@@ -23,7 +23,7 @@ if (allowed_rounding_error(tan($sixty),1.7320508075689)) {
else {
echo "Fail\n";
}
-
+
echo "tan 30 = ";
var_dump(tan($thirty));
if (allowed_rounding_error(tan($thirty),0.57735026918963)) {
diff --git a/ext/standard/tests/math/tan_basiclong_64bit.phpt b/ext/standard/tests/math/tan_basiclong_64bit.phpt
index 3c8abe9d27..bdc97b0732 100644
--- a/ext/standard/tests/math/tan_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/tan_basiclong_64bit.phpt
@@ -8,7 +8,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -25,7 +25,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(tan($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/tan_error.phpt b/ext/standard/tests/math/tan_error.phpt
index b3d4cf83c1..f36e633b16 100644
--- a/ext/standard/tests/math/tan_error.phpt
+++ b/ext/standard/tests/math/tan_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for tan()
--FILE--
<?php
-/*
+/*
* proto float tan(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/tan_variation.phpt b/ext/standard/tests/math/tan_variation.phpt
index b88d66acdf..6f54f95234 100644
--- a/ext/standard/tests/math/tan_variation.phpt
+++ b/ext/standard/tests/math/tan_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of tan()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float tan(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test tan with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = tan($values[$i]);
diff --git a/ext/standard/tests/math/tanh_basic.phpt b/ext/standard/tests/math/tanh_basic.phpt
index 6b6a9dff7d..30eacca4cc 100644
--- a/ext/standard/tests/math/tanh_basic.phpt
+++ b/ext/standard/tests/math/tanh_basic.phpt
@@ -4,10 +4,10 @@ Test return type and value for expected input tanh()
precision = 14
--FILE--
<?php
-/*
+/*
* proto float tanh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$file_path = dirname(__FILE__);
require($file_path."/allowed_rounding_error.inc");
diff --git a/ext/standard/tests/math/tanh_basiclong_64bit.phpt b/ext/standard/tests/math/tanh_basiclong_64bit.phpt
index 02e6c102fe..f3563f81fc 100644
--- a/ext/standard/tests/math/tanh_basiclong_64bit.phpt
+++ b/ext/standard/tests/math/tanh_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(tanh($longVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/math/tanh_error.phpt b/ext/standard/tests/math/tanh_error.phpt
index cc92cb4aca..1e38a6cdcf 100644
--- a/ext/standard/tests/math/tanh_error.phpt
+++ b/ext/standard/tests/math/tanh_error.phpt
@@ -2,10 +2,10 @@
Test wrong number of arguments for tanh()
--FILE--
<?php
-/*
+/*
* proto float tanh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
$arg_0 = 1.0;
$extra_arg = 1;
diff --git a/ext/standard/tests/math/tanh_variation.phpt b/ext/standard/tests/math/tanh_variation.phpt
index 0c9371e938..e15b70cc0f 100644
--- a/ext/standard/tests/math/tanh_variation.phpt
+++ b/ext/standard/tests/math/tanh_variation.phpt
@@ -4,10 +4,10 @@ Test variations in usage of tanh()
precision = 10
--FILE--
<?php
-/*
+/*
* proto float tanh(float number)
* Function is implemented in ext/standard/math.c
-*/
+*/
//Test tanh with a different input values
@@ -26,7 +26,7 @@ $values = array(23,
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = tanh($values[$i]);
diff --git a/ext/standard/tests/misc/get_browser_basic.phpt b/ext/standard/tests/misc/get_browser_basic.phpt
index 69db7345a5..eb480680ee 100644
--- a/ext/standard/tests/misc/get_browser_basic.phpt
+++ b/ext/standard/tests/misc/get_browser_basic.phpt
@@ -20,7 +20,7 @@ browscap={PWD}/browscap.ini
* Returns an object by default; if return_array is true, returns an array.
*
* Source code: ext/standard/browscap.c
- * Alias to functions:
+ * Alias to functions:
*/
$browsers = include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'browsernames.inc';
diff --git a/ext/standard/tests/misc/get_browser_error.phpt b/ext/standard/tests/misc/get_browser_error.phpt
index d5e7abdd34..c9c367bb1a 100644
--- a/ext/standard/tests/misc/get_browser_error.phpt
+++ b/ext/standard/tests/misc/get_browser_error.phpt
@@ -20,7 +20,7 @@ browscap={PWD}/browscap.ini
* Returns an object by default; if return_array is true, returns an array.
*
* Source code: ext/standard/browscap.c
- * Alias to functions:
+ * Alias to functions:
*/
$browsers = include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'browsernames.inc';
diff --git a/ext/standard/tests/misc/get_browser_variation1.phpt b/ext/standard/tests/misc/get_browser_variation1.phpt
index 6cc77e6765..7bde709888 100644
--- a/ext/standard/tests/misc/get_browser_variation1.phpt
+++ b/ext/standard/tests/misc/get_browser_variation1.phpt
@@ -20,7 +20,7 @@ browscap={PWD}/browscap.ini
* Returns an object by default; if return_array is true, returns an array.
*
* Source code: ext/standard/browscap.c
- * Alias to functions:
+ * Alias to functions:
*/
$browsers = include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'browsernames.inc';
diff --git a/ext/standard/tests/misc/time_nanosleep_error3.phpt b/ext/standard/tests/misc/time_nanosleep_error3.phpt
index b6365f364f..d10ef922d0 100644
--- a/ext/standard/tests/misc/time_nanosleep_error3.phpt
+++ b/ext/standard/tests/misc/time_nanosleep_error3.phpt
@@ -1,7 +1,7 @@
--TEST--
time_nanosleep — Delay for a number of seconds and nanoseconds
--SKIPIF--
-<?php
+<?php
if (strpos(strtoupper(PHP_OS), 'WIN') !== false) die("skip Test is not valid for Windows");
if (!function_exists('time_nanosleep')) die("skip");
?>
diff --git a/ext/standard/tests/network/closelog_basic.phpt b/ext/standard/tests/network/closelog_basic.phpt
index 06798a5c1d..0430582181 100644
--- a/ext/standard/tests/network/closelog_basic.phpt
+++ b/ext/standard/tests/network/closelog_basic.phpt
@@ -5,7 +5,7 @@ Test closelog() function : basic functionality
/* Prototype : bool closelog(void)
* Description: Close connection to system logger
* Source code: ext/standard/syslog.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing closelog() : basic functionality ***\n";
diff --git a/ext/standard/tests/network/closelog_error.phpt b/ext/standard/tests/network/closelog_error.phpt
index 442f9a6249..5dac063cf6 100644
--- a/ext/standard/tests/network/closelog_error.phpt
+++ b/ext/standard/tests/network/closelog_error.phpt
@@ -5,7 +5,7 @@ Test closelog() function : error conditions
/* Prototype : bool closelog(void)
* Description: Close connection to system logger
* Source code: ext/standard/syslog.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing closelog() : error conditions ***\n";
diff --git a/ext/standard/tests/network/fsockopen_basic.phpt b/ext/standard/tests/network/fsockopen_basic.phpt
index 227762f899..5131651db8 100644
--- a/ext/standard/tests/network/fsockopen_basic.phpt
+++ b/ext/standard/tests/network/fsockopen_basic.phpt
@@ -5,7 +5,7 @@ Test fsockopen() function : basic functionality
/* Prototype : proto resource fsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])
* Description: Open Internet or Unix domain socket connection
* Source code: ext/standard/fsock.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing fsockopen() : basic functionality ***\n";
diff --git a/ext/standard/tests/network/fsockopen_error.phpt b/ext/standard/tests/network/fsockopen_error.phpt
index 3b13b8cf39..dbbbb6765c 100644
--- a/ext/standard/tests/network/fsockopen_error.phpt
+++ b/ext/standard/tests/network/fsockopen_error.phpt
@@ -5,7 +5,7 @@ Test fsockopen() function : error conditions
/* Prototype : proto resource fsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])
* Description: Open Internet or Unix domain socket connection
* Source code: ext/standard/fsock.c
- * Alias to functions:
+ * Alias to functions:
*/
diff --git a/ext/standard/tests/network/gethostbyaddr_error.phpt b/ext/standard/tests/network/gethostbyaddr_error.phpt
index 8909a30328..68a0cc7147 100644
--- a/ext/standard/tests/network/gethostbyaddr_error.phpt
+++ b/ext/standard/tests/network/gethostbyaddr_error.phpt
@@ -5,7 +5,7 @@ Test gethostbyaddr() function : error conditions
/* Prototype : proto string gethostbyaddr(string ip_address)
* Description: Get the Internet host name corresponding to a given IP address
* Source code: ext/standard/dns.c
- * Alias to functions:
+ * Alias to functions:
*/
diff --git a/ext/standard/tests/network/gethostbynamel_error.phpt b/ext/standard/tests/network/gethostbynamel_error.phpt
index 7aa00e537e..0ce348187e 100644
--- a/ext/standard/tests/network/gethostbynamel_error.phpt
+++ b/ext/standard/tests/network/gethostbynamel_error.phpt
@@ -5,7 +5,7 @@ Test gethostbynamel() function : error conditions
/* Prototype : proto array gethostbynamel(string hostname)
* Description: Return a list of IP addresses that a given hostname resolves to.
* Source code: ext/standard/dns.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing gethostbynamel() : error conditions ***\n";
diff --git a/ext/standard/tests/network/inet.phpt b/ext/standard/tests/network/inet.phpt
index 1bbcae4ef8..a1e70a0020 100644
--- a/ext/standard/tests/network/inet.phpt
+++ b/ext/standard/tests/network/inet.phpt
@@ -1,9 +1,9 @@
--TEST--
inet_ntop() & inet_pton() tests
--SKIPIF--
-<?php
-if (!function_exists("inet_ntop")) die("skip no inet_ntop()");
-if (!function_exists("inet_pton")) die("skip no inet_pton()");
+<?php
+if (!function_exists("inet_ntop")) die("skip no inet_ntop()");
+if (!function_exists("inet_pton")) die("skip no inet_pton()");
?>
--FILE--
<?php
@@ -37,7 +37,7 @@ foreach ($array as $val) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
string(9) "127.0.0.1"
string(13) "255.255.255.0"
diff --git a/ext/standard/tests/network/inet_ipv6.phpt b/ext/standard/tests/network/inet_ipv6.phpt
index 3b9782f994..55323688de 100644
--- a/ext/standard/tests/network/inet_ipv6.phpt
+++ b/ext/standard/tests/network/inet_ipv6.phpt
@@ -1,9 +1,9 @@
--TEST--
inet_ntop() & inet_pton() IPv6 tests
--SKIPIF--
-<?php
-if (!function_exists("inet_ntop")) die("skip no inet_ntop()");
-if (!function_exists("inet_pton")) die("skip no inet_pton()");
+<?php
+if (!function_exists("inet_ntop")) die("skip no inet_ntop()");
+if (!function_exists("inet_pton")) die("skip no inet_pton()");
$packed = str_repeat(chr(0), 15) . chr(1);
if (@inet_ntop($packed) === false) {
@@ -33,7 +33,7 @@ foreach ($a as $address) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
string(3) "::1"
string(3) "::2"
string(4) "::35"
diff --git a/ext/standard/tests/network/ip.phpt b/ext/standard/tests/network/ip.phpt
index 6c00824410..5237c89776 100644
--- a/ext/standard/tests/network/ip.phpt
+++ b/ext/standard/tests/network/ip.phpt
@@ -34,7 +34,7 @@ var_dump(long2ip(array()));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(2130706433)
string(9) "127.0.0.1"
int(167772161)
diff --git a/ext/standard/tests/network/ip2long_error.phpt b/ext/standard/tests/network/ip2long_error.phpt
index 65e7315595..7c4722d3c7 100644
--- a/ext/standard/tests/network/ip2long_error.phpt
+++ b/ext/standard/tests/network/ip2long_error.phpt
@@ -5,7 +5,7 @@ Test ip2long() function : error conditions
/* Prototype : int ip2long(string ip_address)
* Description: Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing ip2long() : error conditions ***\n";
diff --git a/ext/standard/tests/network/ip2long_variation1.phpt b/ext/standard/tests/network/ip2long_variation1.phpt
index b228c9bd14..58494a1f17 100644
--- a/ext/standard/tests/network/ip2long_variation1.phpt
+++ b/ext/standard/tests/network/ip2long_variation1.phpt
@@ -5,7 +5,7 @@ Test ip2long() function : usage variation 1
/* Prototype : int ip2long(string ip_address)
* Description: Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing ip2long() : usage variation ***\n";
@@ -94,7 +94,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// resource
'resource' => $res,
);
diff --git a/ext/standard/tests/network/ip2long_variation2.phpt b/ext/standard/tests/network/ip2long_variation2.phpt
index 0ca156a67b..e6414ee902 100644
--- a/ext/standard/tests/network/ip2long_variation2.phpt
+++ b/ext/standard/tests/network/ip2long_variation2.phpt
@@ -8,7 +8,7 @@ Test ip2long() function : usage variation 2, 32 bit
/* Prototype : int ip2long(string ip_address)
* Description: Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
$ips = array(
diff --git a/ext/standard/tests/network/ip_x86_64.phpt b/ext/standard/tests/network/ip_x86_64.phpt
index 7dc726e8c2..3c530b8371 100644
--- a/ext/standard/tests/network/ip_x86_64.phpt
+++ b/ext/standard/tests/network/ip_x86_64.phpt
@@ -34,7 +34,7 @@ var_dump(long2ip(array()));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(2130706433)
string(9) "127.0.0.1"
int(167772161)
diff --git a/ext/standard/tests/network/long2ip_error.phpt b/ext/standard/tests/network/long2ip_error.phpt
index d56397cdd5..f217d71f88 100644
--- a/ext/standard/tests/network/long2ip_error.phpt
+++ b/ext/standard/tests/network/long2ip_error.phpt
@@ -5,7 +5,7 @@ Test long2ip() function : error conditions
/* Prototype : string long2ip(int proper_address)
* Description: Converts an (IPv4) Internet network address into a string in Internet standard dotted format
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing long2ip() : error conditions ***\n";
diff --git a/ext/standard/tests/network/long2ip_variation1.phpt b/ext/standard/tests/network/long2ip_variation1.phpt
index 6fc4f57ee4..fbed4cf146 100644
--- a/ext/standard/tests/network/long2ip_variation1.phpt
+++ b/ext/standard/tests/network/long2ip_variation1.phpt
@@ -4,13 +4,13 @@ Test long2ip() function : usage variation
<?php
if(substr(PHP_OS, 0, 3) == "WIN")
die("skip don't run on Windows");
-?>
+?>
--FILE--
<?php
/* Prototype : string long2ip(int proper_address)
* Description: Converts an (IPv4) Internet network address into a string in Internet standard dotted format
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing long2ip() : usage variation ***\n";
@@ -97,7 +97,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
-
+
// resource
'resource' => $res,
);
diff --git a/ext/standard/tests/network/shutdown.phpt b/ext/standard/tests/network/shutdown.phpt
index 1ce77fb80e..1e79b059b1 100644
--- a/ext/standard/tests/network/shutdown.phpt
+++ b/ext/standard/tests/network/shutdown.phpt
@@ -6,7 +6,7 @@ stream_socket_shutdown() test on IPv4 TCP Loopback
?>
--FILE--
<?php
-
+
for ($i=0; $i<100; $i++) {
$port = rand(10000, 65000);
/* Setup socket server */
@@ -15,7 +15,7 @@ stream_socket_shutdown() test on IPv4 TCP Loopback
break;
}
}
-
+
if (!$server) {
die('Unable to create AF_INET socket [server]');
}
diff --git a/ext/standard/tests/network/syslog_basic.phpt b/ext/standard/tests/network/syslog_basic.phpt
index 30f21cfb7a..973fa95844 100644
--- a/ext/standard/tests/network/syslog_basic.phpt
+++ b/ext/standard/tests/network/syslog_basic.phpt
@@ -5,7 +5,7 @@ Test syslog() function : basic functionality
/* Prototype : bool syslog(int priority, string message)
* Description: Generate a system log message
* Source code: ext/standard/syslog.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing syslog() : basic functionality ***\n";
diff --git a/ext/standard/tests/network/syslog_error.phpt b/ext/standard/tests/network/syslog_error.phpt
index a99fd5314a..d42be51556 100644
--- a/ext/standard/tests/network/syslog_error.phpt
+++ b/ext/standard/tests/network/syslog_error.phpt
@@ -5,7 +5,7 @@ Test syslog() function : error conditions
/* Prototype : bool syslog(int priority, string message)
* Description: Generate a system log message
* Source code: ext/standard/syslog.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing syslog() : error conditions ***\n";
diff --git a/ext/standard/tests/network/tcp6loop.phpt b/ext/standard/tests/network/tcp6loop.phpt
index 30b1d7bcd2..c8223633ca 100644
--- a/ext/standard/tests/network/tcp6loop.phpt
+++ b/ext/standard/tests/network/tcp6loop.phpt
@@ -3,7 +3,7 @@ Streams Based IPv6 TCP Loopback test
--SKIPIF--
<?php
/* If IPv6 is supported on the platform this will error out with code 111 - Connection refused.
- If IPv6 is NOT supported, $errno will be set to something else (indicating parse/getaddrinfo error)
+ If IPv6 is NOT supported, $errno will be set to something else (indicating parse/getaddrinfo error)
Note: Might be a good idea to export an IPv6 support indicator (such as AF_INET6 exported by ext/sockets) */
@stream_socket_client('tcp://[::1]:0', $errno);
if ($errno != 111) die('skip IPv6 not supported.');
diff --git a/ext/standard/tests/network/udgloop.phpt b/ext/standard/tests/network/udgloop.phpt
index a61d082c18..61f8f25135 100644
--- a/ext/standard/tests/network/udgloop.phpt
+++ b/ext/standard/tests/network/udgloop.phpt
@@ -3,7 +3,7 @@ Streams Based Unix Domain Datagram Loopback test
--SKIPIF--
<?php # vim:ft=php:
if (array_search("udg",stream_get_transports()) === false)
- die('SKIP No support for UNIX domain sockets.');
+ die('SKIP No support for UNIX domain sockets.');
?>
--FILE--
<?php
diff --git a/ext/standard/tests/network/unixloop.phpt b/ext/standard/tests/network/unixloop.phpt
index abb103b0d1..83bfbb0667 100644
--- a/ext/standard/tests/network/unixloop.phpt
+++ b/ext/standard/tests/network/unixloop.phpt
@@ -3,7 +3,7 @@ Streams Based Unix Domain Loopback test
--SKIPIF--
<?php # vim:ft=php:
if (array_search("unix",stream_get_transports()) === false)
- die('SKIP No support for UNIX domain sockets.');
+ die('SKIP No support for UNIX domain sockets.');
?>
--FILE--
<?php
diff --git a/ext/standard/tests/serialize/001.phpt b/ext/standard/tests/serialize/001.phpt
index e83b9af002..5551956e92 100644
--- a/ext/standard/tests/serialize/001.phpt
+++ b/ext/standard/tests/serialize/001.phpt
@@ -3,7 +3,7 @@ serialize()/unserialize()/var_dump()
--INI--
serialize_precision=100
--FILE--
-<?php
+<?php
class t
{
function __construct()
diff --git a/ext/standard/tests/serialize/002.phpt b/ext/standard/tests/serialize/002.phpt
index 3085d1cf4f..635e728968 100644
--- a/ext/standard/tests/serialize/002.phpt
+++ b/ext/standard/tests/serialize/002.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #25378 (unserialize() crashes with invalid data)
--FILE--
-<?php
+<?php
var_dump(unserialize('b:0;'));
var_dump(unserialize('b:1;'));
var_dump(unserialize('i:823;'));
diff --git a/ext/standard/tests/serialize/003.phpt b/ext/standard/tests/serialize/003.phpt
index edbcb1f0f0..5011412809 100644
--- a/ext/standard/tests/serialize/003.phpt
+++ b/ext/standard/tests/serialize/003.phpt
@@ -4,7 +4,7 @@ unserialize() floats with E notation (#18654)
precision=12
serialize_precision=100
--FILE--
-<?php
+<?php
foreach(array(1e2, 5.2e25, 85.29e-23, 9e-9) AS $value) {
echo ($ser = serialize($value))."\n";
var_dump(unserialize($ser));
diff --git a/ext/standard/tests/serialize/005.phpt b/ext/standard/tests/serialize/005.phpt
index 9123e4020e..b152b91aad 100644
--- a/ext/standard/tests/serialize/005.phpt
+++ b/ext/standard/tests/serialize/005.phpt
@@ -46,17 +46,17 @@ class TestOld
{
echo __METHOD__ . "()\n";
}
-
+
function unserialize($serialized)
{
echo __METHOD__ . "()\n";
}
-
+
function __wakeup()
{
echo __METHOD__ . "()\n";
}
-
+
function __sleep()
{
echo __METHOD__ . "()\n";
@@ -79,17 +79,17 @@ class TestNew implements Serializable
return "2";
}
}
-
+
function unserialize($serialized)
{
echo __METHOD__ . "()\n";
}
-
+
function __wakeup()
{
echo __METHOD__ . "()\n";
}
-
+
function __sleep()
{
echo __METHOD__ . "()\n";
diff --git a/ext/standard/tests/serialize/bug14293.phpt b/ext/standard/tests/serialize/bug14293.phpt
index 8e7b8a9d7d..73636ba56d 100644
--- a/ext/standard/tests/serialize/bug14293.phpt
+++ b/ext/standard/tests/serialize/bug14293.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #14293 (serialize() and __sleep())
--FILE--
-<?php
+<?php
class t
{
function __construct()
@@ -13,7 +13,7 @@ class t
{
echo "__sleep called\n";
return array('a','b');
- }
+ }
}
$t = new t();
diff --git a/ext/standard/tests/serialize/bug21957.phpt b/ext/standard/tests/serialize/bug21957.phpt
index 2084503d24..070eda3f4c 100644
--- a/ext/standard/tests/serialize/bug21957.phpt
+++ b/ext/standard/tests/serialize/bug21957.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #21957 (serialize() mangles objects with __sleep)
--FILE--
-<?php
+<?php
class test
{
public $a, $b;
diff --git a/ext/standard/tests/serialize/bug23298.phpt b/ext/standard/tests/serialize/bug23298.phpt
index a5305cf37c..fe56fccc45 100644
--- a/ext/standard/tests/serialize/bug23298.phpt
+++ b/ext/standard/tests/serialize/bug23298.phpt
@@ -3,7 +3,7 @@ Bug #23298 (serialize() and floats/doubles)
--INI--
serialize_precision=100
--FILE--
-<?php
+<?php
ini_set('precision', 12);
$foo = 1.428571428571428647642857142;
$bar = unserialize(serialize($foo));
diff --git a/ext/standard/tests/serialize/bug24063.phpt b/ext/standard/tests/serialize/bug24063.phpt
index 3cca101cbb..38c9d6ed24 100644
--- a/ext/standard/tests/serialize/bug24063.phpt
+++ b/ext/standard/tests/serialize/bug24063.phpt
@@ -4,7 +4,7 @@ Bug #24063 (serialize() missing 0 after the . on scientific notation)
serialize_precision=100
precision=12
--FILE--
-<?php
+<?php
$v = 1;
for ($i = 1; $i < 10; $i++) {
$v /= 10;
diff --git a/ext/standard/tests/serialize/bug25378.phpt b/ext/standard/tests/serialize/bug25378.phpt
index e95a427006..70bfbb46a3 100644
--- a/ext/standard/tests/serialize/bug25378.phpt
+++ b/ext/standard/tests/serialize/bug25378.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #25378 (unserialize() crashes with invalid data)
--FILE--
-<?php
+<?php
var_dump(unserialize("s:-1:\"\";"));
var_dump(unserialize("i:823"));
var_dump(unserialize("O:8:\"stdClass :0:{}"));
diff --git a/ext/standard/tests/serialize/bug26762.phpt b/ext/standard/tests/serialize/bug26762.phpt
index 74aeb46e80..ad6c0e0b41 100644
--- a/ext/standard/tests/serialize/bug26762.phpt
+++ b/ext/standard/tests/serialize/bug26762.phpt
@@ -1,11 +1,11 @@
--TEST--
Bug #26762 (unserialize() produces lowercase classnames)
--SKIPIF--
-<?php
+<?php
if (class_exists('autoload_root')) die('skip Autoload test classes exist already');
?>
--FILE--
-<?php
+<?php
ini_set('unserialize_callback_func','check');
diff --git a/ext/standard/tests/serialize/bug30234.phpt b/ext/standard/tests/serialize/bug30234.phpt
index aee42b28a1..1a46fc7851 100644
--- a/ext/standard/tests/serialize/bug30234.phpt
+++ b/ext/standard/tests/serialize/bug30234.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #30234 (__autoload() not invoked for interfaces)
--SKIPIF--
-<?php
+<?php
if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already');
?>
--FILE--
diff --git a/ext/standard/tests/serialize/bug31402.phpt b/ext/standard/tests/serialize/bug31402.phpt
index 404d57eb3e..566e959554 100644
--- a/ext/standard/tests/serialize/bug31402.phpt
+++ b/ext/standard/tests/serialize/bug31402.phpt
@@ -3,7 +3,7 @@ Bug #31402 (unserialize() generates references when it should not)
--INI--
error_reporting=E_ALL
--FILE--
-<?php
+<?php
class TestX {
var $i;
diff --git a/ext/standard/tests/serialize/bug49649.phpt b/ext/standard/tests/serialize/bug49649.phpt
index 2e0a505930..d6acb80764 100644
--- a/ext/standard/tests/serialize/bug49649.phpt
+++ b/ext/standard/tests/serialize/bug49649.phpt
@@ -7,11 +7,11 @@ Bug #49649 (unserialize() doesn't handle changes in property visibility) - to pu
*class Foo
*{
* private $private = 1;
- *
+ *
* protected $protected = 2;
- *
+ *
* public $public = 3;
- *
+ *
* public $notThere = 'old';
* }
*
diff --git a/ext/standard/tests/serialize/bug49649_1.phpt b/ext/standard/tests/serialize/bug49649_1.phpt
index 1ca840a9b6..fb6d6dba52 100644
--- a/ext/standard/tests/serialize/bug49649_1.phpt
+++ b/ext/standard/tests/serialize/bug49649_1.phpt
@@ -7,11 +7,11 @@ Bug #49649 (unserialize() doesn't handle changes in property visibility) - to pr
*class Foo
*{
* private $private = 1;
- *
+ *
* protected $protected = 2;
- *
+ *
* public $public = 3;
- *
+ *
* public $notThere = 'old';
* }
*
diff --git a/ext/standard/tests/serialize/bug49649_2.phpt b/ext/standard/tests/serialize/bug49649_2.phpt
index e9fe4290de..fe5b43a6ad 100644
--- a/ext/standard/tests/serialize/bug49649_2.phpt
+++ b/ext/standard/tests/serialize/bug49649_2.phpt
@@ -7,11 +7,11 @@ Bug #49649 (unserialize() doesn't handle changes in property visibility) - to pr
*class Foo
*{
* private $private = 1;
- *
+ *
* protected $protected = 2;
- *
+ *
* public $public = 3;
- *
+ *
* public $notThere = 'old';
* }
*
diff --git a/ext/standard/tests/serialize/bug62373.phpt b/ext/standard/tests/serialize/bug62373.phpt
index 666c33ebdb..996e4c024c 100644
--- a/ext/standard/tests/serialize/bug62373.phpt
+++ b/ext/standard/tests/serialize/bug62373.phpt
@@ -14,7 +14,7 @@ for ($i = 0; $i < $period * 3; $i++) {
$s = unserialize(serialize(array($b, $a)));
if ($s[0] === $s[1]) {
echo "OOPS\n";
- break;
+ break;
}
$dummy[] = $a;
}
diff --git a/ext/standard/tests/serialize/bug64354_1.phpt b/ext/standard/tests/serialize/bug64354_1.phpt
index ae6f0383d2..499b66466f 100644
--- a/ext/standard/tests/serialize/bug64354_1.phpt
+++ b/ext/standard/tests/serialize/bug64354_1.phpt
@@ -10,13 +10,13 @@ spl_autoload_register(
try {
var_dump(unserialize('O:1:"A":0:{}'));
-} catch (Exception $e) {
+} catch (Exception $e) {
var_dump($e->getMessage());
}
try {
var_dump(unserialize('a:2:{i:0;O:1:"A":0:{}i:1;O:1:"A":0:{}}'));
-} catch (Exception $e) {
+} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
diff --git a/ext/standard/tests/serialize/bug64354_2.phpt b/ext/standard/tests/serialize/bug64354_2.phpt
index a9a252d09a..6753051321 100644
--- a/ext/standard/tests/serialize/bug64354_2.phpt
+++ b/ext/standard/tests/serialize/bug64354_2.phpt
@@ -16,7 +16,7 @@ spl_autoload_register(
try {
var_dump(unserialize('a:2:{i:0;O:1:"A":0:{}i:1;O:1:"B":0:{}}'));
-} catch (Exception $e) {
+} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
diff --git a/ext/standard/tests/serialize/bug64354_3.phpt b/ext/standard/tests/serialize/bug64354_3.phpt
index c7eea59be5..24ee346e4c 100644
--- a/ext/standard/tests/serialize/bug64354_3.phpt
+++ b/ext/standard/tests/serialize/bug64354_3.phpt
@@ -21,7 +21,7 @@ $data = array(new A, new B);
try {
serialize($data);
-} catch (Exception $e) {
+} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
diff --git a/ext/standard/tests/serialize/bug68545.phpt b/ext/standard/tests/serialize/bug68545.phpt
index e7250b37bc..c33155d269 100644
--- a/ext/standard/tests/serialize/bug68545.phpt
+++ b/ext/standard/tests/serialize/bug68545.phpt
@@ -1,8 +1,8 @@
--TEST--
Bug #68545 NULL pointer dereference in unserialize.c:var_push_dtor
--FILE--
-<?php
-var_dump(unserialize('a:6:{a:6:{s:3:"322";s:3:"bar";s:3:"bar";s:3:"foo";a:6:{a:6:{s:3:"322";s:3:"bar";s:3:"bar";s:3:"foo";s:3:"bar";a:6:{a:6:{s:3:"322";s:3:"bar";s:3:"bar";s:3:"foo";a:6:{a:6:{s:3:"322";s:3:"bar";s:3:"b22";s:3:"bar";s:3:"bar";s:3:"foo";s:3:"bar";a:6:{a:6:{s:3:"322";s:3:"bar";s:3:"bar";s:3:"foo";s:3:"bar";s:3:"bar";'));
+<?php
+var_dump(unserialize('a:6:{a:6:{s:3:"322";s:3:"bar";s:3:"bar";s:3:"foo";a:6:{a:6:{s:3:"322";s:3:"bar";s:3:"bar";s:3:"foo";s:3:"bar";a:6:{a:6:{s:3:"322";s:3:"bar";s:3:"bar";s:3:"foo";a:6:{a:6:{s:3:"322";s:3:"bar";s:3:"b22";s:3:"bar";s:3:"bar";s:3:"foo";s:3:"bar";a:6:{a:6:{s:3:"322";s:3:"bar";s:3:"bar";s:3:"foo";s:3:"bar";s:3:"bar";'));
?>
===DONE===
--EXPECTF--
diff --git a/ext/standard/tests/serialize/bug69425.phpt b/ext/standard/tests/serialize/bug69425.phpt
index e39f855f23..c7f4265789 100644
--- a/ext/standard/tests/serialize/bug69425.phpt
+++ b/ext/standard/tests/serialize/bug69425.phpt
@@ -7,7 +7,7 @@ Bug #69425: Use After Free in unserialize()
class test
{
var $ryat;
-
+
function __wakeup()
{
$this->ryat = 1;
diff --git a/ext/standard/tests/serialize/bug70219.phpt b/ext/standard/tests/serialize/bug70219.phpt
index a002bdfbb0..ddd2f317df 100644
--- a/ext/standard/tests/serialize/bug70219.phpt
+++ b/ext/standard/tests/serialize/bug70219.phpt
@@ -28,7 +28,7 @@ for ($i = 0; $i < 5; $i++) {
$v[$i] = 'hi'.$i;
}
-var_dump($data);
+var_dump($data);
?>
--EXPECTF--
Warning: session_decode(): Failed to decode session object. Session has been destroyed in %s on line %d
diff --git a/ext/standard/tests/serialize/bug70436.phpt b/ext/standard/tests/serialize/bug70436.phpt
index 8b0df73d60..1bbf3b98ab 100644
--- a/ext/standard/tests/serialize/bug70436.phpt
+++ b/ext/standard/tests/serialize/bug70436.phpt
@@ -6,12 +6,12 @@ Bug #70436: Use After Free Vulnerability in unserialize()
class obj implements Serializable
{
var $data;
-
+
function serialize()
{
return serialize($this->data);
}
-
+
function unserialize($data)
{
$this->data = unserialize($data);
@@ -35,12 +35,12 @@ var_dump($data);
function ptr2str($ptr)
{
$out = '';
-
+
for ($i = 0; $i < 8; $i++) {
$out .= chr($ptr & 0xff);
$ptr >>= 8;
}
-
+
return $out;
}
?>
diff --git a/ext/standard/tests/serialize/bug70513.phpt b/ext/standard/tests/serialize/bug70513.phpt
index 2ac4ef6626..cbdbdb8222 100644
--- a/ext/standard/tests/serialize/bug70513.phpt
+++ b/ext/standard/tests/serialize/bug70513.phpt
@@ -8,7 +8,7 @@ Bug #70513: GMP Deserialization Type Confusion Vulnerability
class obj
{
var $ryat;
-
+
function __wakeup()
{
$this->ryat = 1;
diff --git a/ext/standard/tests/serialize/incomplete_class.phpt b/ext/standard/tests/serialize/incomplete_class.phpt
index 7e6aa7b39f..948a31e166 100644
--- a/ext/standard/tests/serialize/incomplete_class.phpt
+++ b/ext/standard/tests/serialize/incomplete_class.phpt
@@ -13,7 +13,7 @@ var_dump($o->test2);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
object(__PHP_Incomplete_Class)#%d (0) {
}
diff --git a/ext/standard/tests/serialize/serialization_arrays_001.phpt b/ext/standard/tests/serialize/serialization_arrays_001.phpt
index 4b142344f9..3de28f3326 100644
--- a/ext/standard/tests/serialize/serialization_arrays_001.phpt
+++ b/ext/standard/tests/serialize/serialization_arrays_001.phpt
@@ -3,16 +3,16 @@ Test serialize() & unserialize() functions: arrays (circular references)
--INI--
serialize_precision=100
--FILE--
-<?php
+<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "\n--- Testing Circular reference of an array ---\n";
diff --git a/ext/standard/tests/serialize/serialization_arrays_002.phpt b/ext/standard/tests/serialize/serialization_arrays_002.phpt
index b7348b969b..f03041f6a9 100644
--- a/ext/standard/tests/serialize/serialization_arrays_002.phpt
+++ b/ext/standard/tests/serialize/serialization_arrays_002.phpt
@@ -3,21 +3,21 @@ serialization: arrays with references amonst elements
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
function check(&$a) {
var_dump($a);
$ser = serialize($a);
var_dump($ser);
-
+
$b = unserialize($ser);
var_dump($b);
$b[0] = "b0.changed";
@@ -25,7 +25,7 @@ function check(&$a) {
$b[1] = "b1.changed";
var_dump($b);
$b[2] = "b2.changed";
- var_dump($b);
+ var_dump($b);
}
echo "\n\n--- No references:\n";
diff --git a/ext/standard/tests/serialize/serialization_arrays_003.phpt b/ext/standard/tests/serialize/serialization_arrays_003.phpt
index 08f5ead4e5..55e34f3762 100644
--- a/ext/standard/tests/serialize/serialization_arrays_003.phpt
+++ b/ext/standard/tests/serialize/serialization_arrays_003.phpt
@@ -3,21 +3,21 @@ serialization: arrays with references to an external variable
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
function check(&$a) {
var_dump($a);
$ser = serialize($a);
var_dump($ser);
-
+
$b = unserialize($ser);
var_dump($b);
$b[0] = "b0.changed";
@@ -25,7 +25,7 @@ function check(&$a) {
$b[1] = "b1.changed";
var_dump($b);
$b[2] = "b2.changed";
- var_dump($b);
+ var_dump($b);
}
echo "\n\n--- 0 refs external:\n";
diff --git a/ext/standard/tests/serialize/serialization_arrays_004.phpt b/ext/standard/tests/serialize/serialization_arrays_004.phpt
index 7ebacce98d..02726d20ea 100644
--- a/ext/standard/tests/serialize/serialization_arrays_004.phpt
+++ b/ext/standard/tests/serialize/serialization_arrays_004.phpt
@@ -3,21 +3,21 @@ serialization: arrays with references to the containing array
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
function check(&$a) {
var_dump($a);
$ser = serialize($a);
var_dump($ser);
-
+
$b = unserialize($ser);
var_dump($b);
$b[0] = "b0.changed";
@@ -25,7 +25,7 @@ function check(&$a) {
$b[1] = "b1.changed";
var_dump($b);
$b[2] = "b2.changed";
- var_dump($b);
+ var_dump($b);
}
echo "\n\n--- 1 refs container:\n";
diff --git a/ext/standard/tests/serialize/serialization_arrays_005.phpt b/ext/standard/tests/serialize/serialization_arrays_005.phpt
index a22c04b8be..f941a5caec 100644
--- a/ext/standard/tests/serialize/serialization_arrays_005.phpt
+++ b/ext/standard/tests/serialize/serialization_arrays_005.phpt
@@ -3,23 +3,23 @@ serialization: arrays with references, nested
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
function check(&$a) {
var_dump($a);
$ser = serialize($a);
var_dump($ser);
-
+
$b = unserialize($ser);
-
+
// Change each element and dump result.
foreach($b as $k=>$v) {
if (is_array($v)){
diff --git a/ext/standard/tests/serialize/serialization_error_001.phpt b/ext/standard/tests/serialize/serialization_error_001.phpt
index 014128b19f..4d615fddc6 100644
--- a/ext/standard/tests/serialize/serialization_error_001.phpt
+++ b/ext/standard/tests/serialize/serialization_error_001.phpt
@@ -3,14 +3,14 @@ Test serialize() & unserialize() functions: error conditions - wrong number of a
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing serialize()/unserialize() : error conditions ***\n";
diff --git a/ext/standard/tests/serialize/serialization_objects_003.phpt b/ext/standard/tests/serialize/serialization_objects_003.phpt
index 5e6773a2ae..30bb34fafb 100644
--- a/ext/standard/tests/serialize/serialization_objects_003.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_003.phpt
@@ -3,16 +3,16 @@ Test serialize() & unserialize() functions: objects (abstract classes)
--INI--
serialize_precision=100
--FILE--
-<?php
+<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "\n--- Testing Abstract Class ---\n";
@@ -27,7 +27,7 @@ abstract class Name
abstract protected function getClassName();
public function printClassName () {
return $this->getClassName();
- }
+ }
}
// implement abstract class
class extendName extends Name
diff --git a/ext/standard/tests/serialize/serialization_objects_004.phpt b/ext/standard/tests/serialize/serialization_objects_004.phpt
index ec3713e844..bc58ce29e9 100644
--- a/ext/standard/tests/serialize/serialization_objects_004.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_004.phpt
@@ -3,14 +3,14 @@ Test serialize() & unserialize() functions: objects - ensure that COW references
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
$x = new stdClass;
diff --git a/ext/standard/tests/serialize/serialization_objects_005.phpt b/ext/standard/tests/serialize/serialization_objects_005.phpt
index fd58b0323a..9619a2949e 100644
--- a/ext/standard/tests/serialize/serialization_objects_005.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_005.phpt
@@ -3,14 +3,14 @@ Check behaviour of incomplete class
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
$serialized = 'O:1:"C":1:{s:1:"p";i:1;}';
diff --git a/ext/standard/tests/serialize/serialization_objects_006.phpt b/ext/standard/tests/serialize/serialization_objects_006.phpt
index 918e59d0aa..345ce0a77e 100644
--- a/ext/standard/tests/serialize/serialization_objects_006.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_006.phpt
@@ -3,14 +3,14 @@ Behaviour of incomplete class is preserved even when it was not created by unser
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
$a = new __PHP_Incomplete_Class;
diff --git a/ext/standard/tests/serialize/serialization_objects_007.phpt b/ext/standard/tests/serialize/serialization_objects_007.phpt
index 2837e1ec46..4de50afd6b 100644
--- a/ext/standard/tests/serialize/serialization_objects_007.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_007.phpt
@@ -3,14 +3,14 @@ Ensure __autoload is called twice if unserialize_callback_func is defined.
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
spl_autoload_register(function ($name) {
@@ -20,7 +20,7 @@ spl_autoload_register(function ($name) {
ini_set('unserialize_callback_func','check');
function check($name) {
- echo "in check($name)\n";
+ echo "in check($name)\n";
}
$o = unserialize('O:3:"FOO":0:{}');
diff --git a/ext/standard/tests/serialize/serialization_objects_008.phpt b/ext/standard/tests/serialize/serialization_objects_008.phpt
index b963872f28..6d1c0e038d 100644
--- a/ext/standard/tests/serialize/serialization_objects_008.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_008.phpt
@@ -1,16 +1,16 @@
--TEST--
Bad unserialize_callback_func
--FILE--
-<?php
+<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
ini_set('unserialize_callback_func','Nonexistent');
diff --git a/ext/standard/tests/serialize/serialization_objects_009.phpt b/ext/standard/tests/serialize/serialization_objects_009.phpt
index 595692d2f0..8ec0588784 100644
--- a/ext/standard/tests/serialize/serialization_objects_009.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_009.phpt
@@ -3,14 +3,14 @@ Custom unserialization of classes with no custom unserializer.
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
$ser = 'C:1:"C":6:{dasdas}';
diff --git a/ext/standard/tests/serialize/serialization_objects_010.phpt b/ext/standard/tests/serialize/serialization_objects_010.phpt
index 9c7926a0d4..e03440fb7a 100644
--- a/ext/standard/tests/serialize/serialization_objects_010.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_010.phpt
@@ -3,21 +3,21 @@ Serialize() must return a string or NULL
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
Class C implements Serializable {
- public function serialize() {
+ public function serialize() {
return $this;
}
-
+
public function unserialize($blah) {
}
}
diff --git a/ext/standard/tests/serialize/serialization_objects_011.phpt b/ext/standard/tests/serialize/serialization_objects_011.phpt
index 1dc48390c2..bd1e75449f 100644
--- a/ext/standard/tests/serialize/serialization_objects_011.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_011.phpt
@@ -3,50 +3,50 @@ Object serialization / unserialization with inherited and hidden properties.
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
Class A {
private $APriv = "A.APriv";
protected $AProt = "A.AProt";
public $APub = "A.APub";
-
+
function audit() {
- return isset($this->APriv, $this->AProt, $this->APub);
- }
+ return isset($this->APriv, $this->AProt, $this->APub);
+ }
}
Class B extends A {
private $BPriv = "B.BPriv";
protected $BProt = "B.BProt";
public $BPub = "B.BPub";
-
+
function audit() {
return parent::audit() && isset($this->AProt, $this->APub,
- $this->BPriv, $this->BProt, $this->BPub);
- }
+ $this->BPriv, $this->BProt, $this->BPub);
+ }
}
Class C extends B {
private $APriv = "C.APriv";
protected $AProt = "C.AProt";
public $APub = "C.APub";
-
+
private $CPriv = "C.CPriv";
protected $CProt = "C.BProt";
public $CPub = "C.CPub";
-
+
function audit() {
return parent::audit() && isset($this->APriv, $this->AProt, $this->APub,
$this->BProt, $this->BPub,
- $this->CPriv, $this->CProt, $this->CPub);
+ $this->CPriv, $this->CProt, $this->CPub);
}
}
@@ -58,11 +58,11 @@ function prettyPrint($obj) {
$ser = serialize($obj);
$serPrintable = str_replace("\0", '\0', $ser);
var_dump($serPrintable);
-
+
echo "Unserialized:\n";
$uobj = unserialize($ser);
var_dump($uobj);
-
+
echo "Sanity check: ";
var_dump($uobj->audit());
}
diff --git a/ext/standard/tests/serialize/serialization_objects_012.phpt b/ext/standard/tests/serialize/serialization_objects_012.phpt
index f994d8e260..90d9e8f99d 100644
--- a/ext/standard/tests/serialize/serialization_objects_012.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_012.phpt
@@ -3,14 +3,14 @@ Object serialization / unserialization: real references and COW references
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "\n\nArray containing same object twice:\n";
@@ -20,7 +20,7 @@ $a[1] = $a[0];
var_dump($a);
$ser = serialize($a);
-var_dump($ser);
+var_dump($ser);
$ua = unserialize($ser);
var_dump($ua);
@@ -37,7 +37,7 @@ $a[1] = &$a[0];
var_dump($a);
$ser = serialize($a);
-var_dump($ser);
+var_dump($ser);
$ua = unserialize($ser);
var_dump($ua);
@@ -50,11 +50,11 @@ echo "\n\nObject containing same object twice:";
$obj = new stdclass;
$contaner = new stdclass;
$contaner->a = $obj;
-$contaner->b = $contaner->a;
+$contaner->b = $contaner->a;
var_dump($contaner);
$ser = serialize($contaner);
-var_dump($ser);
+var_dump($ser);
$ucontainer = unserialize($ser);
var_dump($ucontainer);
@@ -68,11 +68,11 @@ echo "\n\nObject containing object and reference to that object:\n";
$obj = new stdclass;
$contaner = new stdclass;
$contaner->a = $obj;
-$contaner->b = &$contaner->a;
+$contaner->b = &$contaner->a;
var_dump($contaner);
$ser = serialize($contaner);
-var_dump($ser);
+var_dump($ser);
$ucontainer = unserialize($ser);
var_dump($ucontainer);
diff --git a/ext/standard/tests/serialize/serialization_objects_013.phpt b/ext/standard/tests/serialize/serialization_objects_013.phpt
index c48be9ea79..eaaf05e7c5 100644
--- a/ext/standard/tests/serialize/serialization_objects_013.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_013.phpt
@@ -3,21 +3,21 @@ Object serialization / unserialization: references amongst properties
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
function check(&$obj) {
var_dump($obj);
$ser = serialize($obj);
var_dump($ser);
-
+
$uobj = unserialize($ser);
var_dump($uobj);
$uobj->a = "obj->a.changed";
@@ -25,7 +25,7 @@ function check(&$obj) {
$uobj->b = "obj->b.changed";
var_dump($uobj);
$uobj->c = "obj->c.changed";
- var_dump($uobj);
+ var_dump($uobj);
}
echo "\n\n--- a refs b:\n";
diff --git a/ext/standard/tests/serialize/serialization_objects_014.phpt b/ext/standard/tests/serialize/serialization_objects_014.phpt
index 0b60413d25..d4cfc770db 100644
--- a/ext/standard/tests/serialize/serialization_objects_014.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_014.phpt
@@ -3,21 +3,21 @@ Object serialization / unserialization: references to external values
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
function check(&$obj) {
var_dump($obj);
$ser = serialize($obj);
var_dump($ser);
-
+
$uobj = unserialize($ser);
var_dump($uobj);
$uobj->a = "obj->a.changed";
@@ -25,7 +25,7 @@ function check(&$obj) {
$uobj->b = "obj->b.changed";
var_dump($uobj);
$uobj->c = "obj->c.changed";
- var_dump($uobj);
+ var_dump($uobj);
}
echo "\n\n--- a refs external:\n";
diff --git a/ext/standard/tests/serialize/serialization_objects_015.phpt b/ext/standard/tests/serialize/serialization_objects_015.phpt
index b47920e879..9e9e6ae07d 100644
--- a/ext/standard/tests/serialize/serialization_objects_015.phpt
+++ b/ext/standard/tests/serialize/serialization_objects_015.phpt
@@ -7,7 +7,7 @@ function check(&$obj) {
var_dump($obj);
$ser = serialize($obj);
var_dump($ser);
-
+
$uobj = unserialize($ser);
var_dump($uobj);
$uobj->a = "obj->a.changed";
@@ -15,7 +15,7 @@ function check(&$obj) {
$uobj->b = "obj->b.changed";
var_dump($uobj);
$uobj->c = "obj->c.changed";
- var_dump($uobj);
+ var_dump($uobj);
}
echo "\n\n--- a refs container:\n";
diff --git a/ext/standard/tests/serialize/serialization_precision_001.phpt b/ext/standard/tests/serialize/serialization_precision_001.phpt
index 0be0c68a89..11b86cdf70 100644
--- a/ext/standard/tests/serialize/serialization_precision_001.phpt
+++ b/ext/standard/tests/serialize/serialization_precision_001.phpt
@@ -5,14 +5,14 @@ serialize_precision=10
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
var_dump(serialize(0.1));
diff --git a/ext/standard/tests/serialize/serialization_precision_002.phpt b/ext/standard/tests/serialize/serialization_precision_002.phpt
index 91091e72a2..d17865f329 100644
--- a/ext/standard/tests/serialize/serialization_precision_002.phpt
+++ b/ext/standard/tests/serialize/serialization_precision_002.phpt
@@ -5,14 +5,14 @@ serialize_precision=75
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
var_dump(serialize(0.1));
diff --git a/ext/standard/tests/serialize/serialization_resources_001.phpt b/ext/standard/tests/serialize/serialization_resources_001.phpt
index dbb7d3d3e9..089ad13fa7 100644
--- a/ext/standard/tests/serialize/serialization_resources_001.phpt
+++ b/ext/standard/tests/serialize/serialization_resources_001.phpt
@@ -1,16 +1,16 @@
--TEST--
Test serialize() & unserialize() functions: resources
--FILE--
-<?php
+<?php
/* Prototype : proto string serialize(mixed variable)
- * Description: Returns a string representation of variable (which can later be unserialized)
+ * Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "\n--- Testing Resource ---\n";
diff --git a/ext/standard/tests/setrawcookie_basic_001.phpt b/ext/standard/tests/setrawcookie_basic_001.phpt
index 0cf36b635a..7b9c108bab 100644
--- a/ext/standard/tests/setrawcookie_basic_001.phpt
+++ b/ext/standard/tests/setrawcookie_basic_001.phpt
@@ -4,7 +4,7 @@ Test setrawcookie basic functionality
PHP TestFEst 2017 - PHPDublin, PHPSP - Joao P V Martins <jp.joao@gmail.com>
--FILE--
<?php
-var_dump(setrawcookie('cookie_name', rawurlencode('cookie_content')));
+var_dump(setrawcookie('cookie_name', rawurlencode('cookie_content')));
?>
--EXPECT--
bool(true)
diff --git a/ext/standard/tests/streams/bug40459.phpt b/ext/standard/tests/streams/bug40459.phpt
index 902a1f9111..ce06a3f804 100644
--- a/ext/standard/tests/streams/bug40459.phpt
+++ b/ext/standard/tests/streams/bug40459.phpt
@@ -48,7 +48,7 @@ class testwrapper {
echo $this->constructorCalled ? 'yes' : 'no';
return TRUE;
}
- function stream_metadata()
+ function stream_metadata()
{
echo $this->constructorCalled ? 'yes' : 'no';
return TRUE;
diff --git a/ext/standard/tests/streams/bug46024.phpt b/ext/standard/tests/streams/bug46024.phpt
index 8aae912809..548768283c 100644
--- a/ext/standard/tests/streams/bug46024.phpt
+++ b/ext/standard/tests/streams/bug46024.phpt
@@ -4,7 +4,7 @@ Bug #46024 stream_select() doesn't return the correct number
<?php if (!getenv('TEST_PHP_EXECUTABLE')) die("skip TEST_PHP_EXECUTABLE not defined"); ?>
--FILE--
<?php
-$php = realpath(getenv('TEST_PHP_EXECUTABLE'));
+$php = realpath(getenv('TEST_PHP_EXECUTABLE'));
$pipes = array();
$proc = proc_open(
"$php -n -i"
diff --git a/ext/standard/tests/streams/bug60455_02.phpt b/ext/standard/tests/streams/bug60455_02.phpt
index 0ddf346eba..c68a1a07ab 100644
--- a/ext/standard/tests/streams/bug60455_02.phpt
+++ b/ext/standard/tests/streams/bug60455_02.phpt
@@ -10,13 +10,13 @@ class TestStream {
function stream_read($count) {
if ($this->s++ == 0)
return "a\n";
-
+
return "";
}
function stream_eof() {
return $this->s >= 2;
}
-
+
}
stream_wrapper_register("test", "TestStream");
diff --git a/ext/standard/tests/streams/bug60455_03.phpt b/ext/standard/tests/streams/bug60455_03.phpt
index 2429d31008..131da852b7 100644
--- a/ext/standard/tests/streams/bug60455_03.phpt
+++ b/ext/standard/tests/streams/bug60455_03.phpt
@@ -22,7 +22,7 @@ class TestStream {
function stream_eof() {
return $this->s >= $this->eofth;
}
-
+
}
stream_wrapper_register("test", "TestStream");
diff --git a/ext/standard/tests/streams/bug60455_04.phpt b/ext/standard/tests/streams/bug60455_04.phpt
index 3a82298dbc..123a8653d3 100644
--- a/ext/standard/tests/streams/bug60455_04.phpt
+++ b/ext/standard/tests/streams/bug60455_04.phpt
@@ -11,13 +11,13 @@ class TestStream {
function stream_read($count) {
if ($this->s++ == 0)
return "a\n";
-
+
return "";
}
function stream_eof() {
return $this->s >= 2;
}
-
+
}
stream_wrapper_register("test", "TestStream");
diff --git a/ext/standard/tests/streams/bug60602.phpt b/ext/standard/tests/streams/bug60602.phpt
index f0a3cf83e8..82917ecbd6 100644
--- a/ext/standard/tests/streams/bug60602.phpt
+++ b/ext/standard/tests/streams/bug60602.phpt
@@ -17,7 +17,7 @@ $p = proc_open($cmd, $descs, $pipes, '.', $environment);
if (is_resource($p)) {
$data = '';
- while (1) {
+ while (1) {
$w = $e = NULL;
$n = stream_select($pipes, $w, $e, 300);
diff --git a/ext/standard/tests/streams/bug61019.phpt b/ext/standard/tests/streams/bug61019.phpt
index 45b207ea9e..84e818f9aa 100644
--- a/ext/standard/tests/streams/bug61019.phpt
+++ b/ext/standard/tests/streams/bug61019.phpt
@@ -23,17 +23,17 @@ if(is_resource($process))
$stdin_stream="";
$stderr_stream="";
- echo "External command executed\n";
+ echo "External command executed\n";
do
{
$process_state=proc_get_status($process);
- $tmp_stdin=stream_get_contents($pipes[1]);
- if($tmp_stdin)
+ $tmp_stdin=stream_get_contents($pipes[1]);
+ if($tmp_stdin)
{
$stdin_stream=$stdin_stream.$tmp_stdin;
}
$tmp_stderr=stream_get_contents($pipes[2]);
- if($tmp_stderr)
+ if($tmp_stderr)
{
$stderr_stream=$stderr_stream.$tmp_stderr;
}
@@ -42,13 +42,13 @@ if(is_resource($process))
echo "External command exit: ".$process_state['exitcode']."\n";
//read outstanding data
- $tmp_stdin=stream_get_contents($pipes[1]);
- if($tmp_stdin)
+ $tmp_stdin=stream_get_contents($pipes[1]);
+ if($tmp_stdin)
{
$stdin_stream=$stdin_stream.$tmp_stdin;
}
$tmp_stderr=stream_get_contents($pipes[2]);
- if($tmp_stderr)
+ if($tmp_stderr)
{
$stderr_stream=$stderr_stream.$tmp_stderr;
}
@@ -57,7 +57,7 @@ if(is_resource($process))
fclose ($pipes[1]);
fclose ($pipes[2]);
- proc_close($process);
+ proc_close($process);
echo "STDOUT: ".$stdin_stream."\n";
echo "STDERR: ".$stderr_stream."\n";
diff --git a/ext/standard/tests/streams/bug61115-1.phpt b/ext/standard/tests/streams/bug61115-1.phpt
index 99e2f7929c..892b0f80e5 100644
--- a/ext/standard/tests/streams/bug61115-1.phpt
+++ b/ext/standard/tests/streams/bug61115-1.phpt
@@ -5,7 +5,7 @@ Bug #61115: Stream related segfault on fatal error in php_stream_context_del_lin
if (getenv("USE_ZEND_ALLOC") === "0") {
die("skip Zend MM disabled");
}
-?>
+?>
--FILE--
<?php
diff --git a/ext/standard/tests/streams/bug64166_2.phpt b/ext/standard/tests/streams/bug64166_2.phpt
index 9d6655d5c1..b4224662ee 100644
--- a/ext/standard/tests/streams/bug64166_2.phpt
+++ b/ext/standard/tests/streams/bug64166_2.phpt
@@ -13,7 +13,7 @@ function test_64166($data) {
'line-length' => 74
));
$str = "";
- while(($c = fread($fd, 1))!= "") $str .= $c;
+ while(($c = fread($fd, 1))!= "") $str .= $c;
var_dump($str);
stream_filter_remove($res);
diff --git a/ext/standard/tests/streams/bug64433.phpt b/ext/standard/tests/streams/bug64433.phpt
index f973768f81..bd04a5e6b2 100644
--- a/ext/standard/tests/streams/bug64433.phpt
+++ b/ext/standard/tests/streams/bug64433.phpt
@@ -2,7 +2,7 @@
Bug #60180 ($_SERVER["PHP_SELF"] incorrect)
--SKIPIF--
<?php
-if(!file_exists(dirname(__FILE__)."/../../../../sapi/cli/tests/php_cli_server.inc"))
+if(!file_exists(dirname(__FILE__)."/../../../../sapi/cli/tests/php_cli_server.inc"))
die("skip could not found cli server script");
$res = @include dirname(__FILE__)."/../../../../sapi/cli/tests/php_cli_server.inc";
if(!$res) {
diff --git a/ext/standard/tests/streams/bug64770.phpt b/ext/standard/tests/streams/bug64770.phpt
index 24817e620f..bb904d7446 100644
--- a/ext/standard/tests/streams/bug64770.phpt
+++ b/ext/standard/tests/streams/bug64770.phpt
@@ -1,5 +1,5 @@
--TEST--
-Bug #64770 stream_select() fails with pipes from proc_open()
+Bug #64770 stream_select() fails with pipes from proc_open()
--FILE--
<?php
@@ -17,7 +17,7 @@ $p = proc_open($cmd, $descs, $pipes, '.', NULL, $other_opts);
if (is_resource($p)) {
$data = '';
- while (1) {
+ while (1) {
$w = $e = NULL;
$n = stream_select($pipes, $w, $e, 300);
diff --git a/ext/standard/tests/streams/bug67626.phpt b/ext/standard/tests/streams/bug67626.phpt
index fefe6c1f0a..7a47456bdf 100644
--- a/ext/standard/tests/streams/bug67626.phpt
+++ b/ext/standard/tests/streams/bug67626.phpt
@@ -5,18 +5,18 @@ Bug #67626: Exceptions not properly handled in user stream handlers
class MyStream
{
public function stream_open() { return true; }
-
+
public function stream_read()
{
throw new Exception('stream_read_exception');
return 'read';
}
-
+
public function stream_eof()
{
return true;
}
-
+
public function stream_write()
{
throw new Exception('stream_write_exception');
diff --git a/ext/standard/tests/streams/bug72857.phpt b/ext/standard/tests/streams/bug72857.phpt
index 97d145b595..e91e6fa4ea 100644
--- a/ext/standard/tests/streams/bug72857.phpt
+++ b/ext/standard/tests/streams/bug72857.phpt
@@ -8,7 +8,7 @@ Bug #72857 stream_socket_recvfrom read access violation
$v3=STREAM_PEEK;
$v4="A";
- var_dump(stream_socket_recvfrom($fp0,$v2,$v3,$v4), $v4);
+ var_dump(stream_socket_recvfrom($fp0,$v2,$v3,$v4), $v4);
fclose($fp0);
unlink($fname);
diff --git a/ext/standard/tests/streams/proc_open_bug69900.phpt b/ext/standard/tests/streams/proc_open_bug69900.phpt
index a3fdfa6c55..8049fb68ff 100644
--- a/ext/standard/tests/streams/proc_open_bug69900.phpt
+++ b/ext/standard/tests/streams/proc_open_bug69900.phpt
@@ -33,7 +33,7 @@ for($i = 0; $i < 10; $i++){
$s = fgets($pipes[1]);
$t1 = microtime(1);
- echo $s;
+ echo $s;
echo "fgets() took ", (($t1 - $t0)*1000 > $max_ms ? 'more' : 'less'), " than $max_ms ms\n";
}
diff --git a/ext/standard/tests/streams/set_file_buffer.phpt b/ext/standard/tests/streams/set_file_buffer.phpt
index 04d0fb121d..79df5a441a 100644
--- a/ext/standard/tests/streams/set_file_buffer.phpt
+++ b/ext/standard/tests/streams/set_file_buffer.phpt
@@ -10,16 +10,16 @@ class test_wrapper {
function stream_open($path, $mode, $openedpath) {
return true;
}
-
+
function stream_eof() {
return false;
}
-
+
function stream_write($data) {
echo "size: ", strlen($data), "\n";
return strlen($data);
}
-
+
function stream_set_option($option, $arg1, $arg2) {
echo "option: ", $option, ", ", $arg1, ", ", $arg2, "\n";
return false;
diff --git a/ext/standard/tests/streams/stream_context_tcp_nodelay_server.phpt b/ext/standard/tests/streams/stream_context_tcp_nodelay_server.phpt
index 6606a15052..ed7f7fb0ac 100644
--- a/ext/standard/tests/streams/stream_context_tcp_nodelay_server.phpt
+++ b/ext/standard/tests/streams/stream_context_tcp_nodelay_server.phpt
@@ -38,7 +38,7 @@ $clientCode = <<<'CODE'
CODE;
include sprintf(
- "%s/../../../openssl/tests/ServerClientTestCase.inc",
+ "%s/../../../openssl/tests/ServerClientTestCase.inc",
dirname(__FILE__));
ServerClientTestCase::getInstance()->run($serverCode, $clientCode);
?>
diff --git a/ext/standard/tests/streams/stream_get_line_NUL_delimiter.phpt b/ext/standard/tests/streams/stream_get_line_NUL_delimiter.phpt
index 32756d7618..8cdd5c1779 100644
--- a/ext/standard/tests/streams/stream_get_line_NUL_delimiter.phpt
+++ b/ext/standard/tests/streams/stream_get_line_NUL_delimiter.phpt
@@ -10,13 +10,13 @@ class TestStream {
function stream_read($count) {
if ($this->s++ == 0)
return "a\0";
-
+
return "";
}
function stream_eof() {
return $this->s >= 2;
}
-
+
}
stream_wrapper_register("test", "TestStream");
diff --git a/ext/standard/tests/streams/stream_get_meta_data_process_basic.phpt b/ext/standard/tests/streams/stream_get_meta_data_process_basic.phpt
index b7ab37c7c5..02a6ae8cc8 100644
--- a/ext/standard/tests/streams/stream_get_meta_data_process_basic.phpt
+++ b/ext/standard/tests/streams/stream_get_meta_data_process_basic.phpt
@@ -2,8 +2,8 @@
Testing stream_get_meta_data() on a process stream.
--FILE--
<?php
-
-$output_file = __FILE__.'.tmp';
+
+$output_file = __FILE__.'.tmp';
$cmd = "echo here is some output";
$mode = 'rb';
$handle = popen($cmd, $mode);
diff --git a/ext/standard/tests/streams/stream_socket_enable_crypto.phpt b/ext/standard/tests/streams/stream_socket_enable_crypto.phpt
index 3e1aedcd82..4b0d9a1923 100644
--- a/ext/standard/tests/streams/stream_socket_enable_crypto.phpt
+++ b/ext/standard/tests/streams/stream_socket_enable_crypto.phpt
@@ -19,7 +19,7 @@ if (is_resource($sock)) {
var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_SSLv23_CLIENT));
var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_SSLv3_CLIENT));
var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_SSLv2_CLIENT));
- var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_TLS_CLIENT));
+ var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_TLS_CLIENT));
var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_SSLv23_SERVER));
var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_SSLv2_SERVER));
var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_SSLv3_SERVER));
diff --git a/ext/standard/tests/strings/004.phpt b/ext/standard/tests/strings/004.phpt
index e1414db46c..9a0ea18861 100644
--- a/ext/standard/tests/strings/004.phpt
+++ b/ext/standard/tests/strings/004.phpt
@@ -15,7 +15,7 @@ for ($i = 0; $i < $times; $i++) {
$p = range(1,4);
shuffle($p);
$s = join('', $p);
- if (empty($a[$s])) $a[$s] = 0;
+ if (empty($a[$s])) $a[$s] = 0;
$a[$s]++;
}
diff --git a/ext/standard/tests/strings/005.phpt b/ext/standard/tests/strings/005.phpt
index ebfbe221d8..8595bbfaac 100644
--- a/ext/standard/tests/strings/005.phpt
+++ b/ext/standard/tests/strings/005.phpt
@@ -16,7 +16,7 @@ var_dump(error_reporting());
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
hello
int(8192)
bool(false)
diff --git a/ext/standard/tests/strings/006.phpt b/ext/standard/tests/strings/006.phpt
index afb5d24dbf..7665aa20f5 100644
--- a/ext/standard/tests/strings/006.phpt
+++ b/ext/standard/tests/strings/006.phpt
@@ -12,7 +12,7 @@ var_dump(ob_get_contents());
?>
===DONE===
---EXPECTF--
+--EXPECTF--
Warning: highlight_file(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA): failed to open stream: %s006.php on line %d
Warning: highlight_file(): Failed opening 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' for highlighting in %s006.php on line %d
diff --git a/ext/standard/tests/strings/007-win32.phpt b/ext/standard/tests/strings/007-win32.phpt
index b16c566eaa..7d06f018a5 100644
--- a/ext/standard/tests/strings/007-win32.phpt
+++ b/ext/standard/tests/strings/007-win32.phpt
@@ -13,7 +13,7 @@ var_dump(ob_get_contents());
?>
===DONE===
---EXPECTF--
+--EXPECTF--
Warning: php_strip_whitespace(%s): failed to open stream: No such file or directory in %s on line %d
string(0) ""
bool(false)
diff --git a/ext/standard/tests/strings/007.phpt b/ext/standard/tests/strings/007.phpt
index 804b455167..a0fd8acdf4 100644
--- a/ext/standard/tests/strings/007.phpt
+++ b/ext/standard/tests/strings/007.phpt
@@ -13,7 +13,7 @@ var_dump(ob_get_contents());
?>
===DONE===
---EXPECTF--
+--EXPECTF--
Warning: php_strip_whitespace(%s): failed to open stream: File name too long in %s007.php on line %d
string(0) ""
bool(false)
diff --git a/ext/standard/tests/strings/addcslashes_002.phpt b/ext/standard/tests/strings/addcslashes_002.phpt
index fa5b3028fb..256d39f11a 100644
--- a/ext/standard/tests/strings/addcslashes_002.phpt
+++ b/ext/standard/tests/strings/addcslashes_002.phpt
@@ -21,7 +21,7 @@ class string1
$obj = new string1;
var_dump( addcslashes($obj, "b") );
-echo "Done\n";
+echo "Done\n";
?>
--EXPECT--
diff --git a/ext/standard/tests/strings/addcslashes_004.phpt b/ext/standard/tests/strings/addcslashes_004.phpt
index db2b6f8858..a787845506 100644
--- a/ext/standard/tests/strings/addcslashes_004.phpt
+++ b/ext/standard/tests/strings/addcslashes_004.phpt
@@ -13,7 +13,7 @@ var_dump( addcslashes() );
var_dump( addcslashes("foo[]") );
var_dump( addcslashes('foo[]', "o", "foo") );
-echo "Done\n";
+echo "Done\n";
?>
--EXPECTF--
diff --git a/ext/standard/tests/strings/addslashes_variation1.phpt b/ext/standard/tests/strings/addslashes_variation1.phpt
index 6dfeb7e69b..1120cdf494 100644
--- a/ext/standard/tests/strings/addslashes_variation1.phpt
+++ b/ext/standard/tests/strings/addslashes_variation1.phpt
@@ -22,7 +22,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "obj'ct";
- }
+ }
}
// Defining resource
@@ -36,43 +36,43 @@ $values = array (
1,
12345,
-2345,
-
+
// float values
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.7654321E-10,
.5,
-
+
// array values
/*10*/ array(),
array(0),
array(1),
array(1, 2),
array('color' => 'red', 'item' => 'pen'),
-
+
// boolean values
/*15*/ true,
false,
TRUE,
FALSE,
-
+
// empty string
/*19*/ "",
'',
-
+
// undefined variable
/*21*/ $undefined_var,
-
+
// unset variable
/*22*/ $unset_var,
-
+
// objects
/*23*/ new sample(),
-
+
// resource
/*24*/ $file_handle,
-
+
/*25*/ NULL,
null
);
diff --git a/ext/standard/tests/strings/addslashes_variation2.phpt b/ext/standard/tests/strings/addslashes_variation2.phpt
index 792c2c30b6..260b1f0653 100644
--- a/ext/standard/tests/strings/addslashes_variation2.phpt
+++ b/ext/standard/tests/strings/addslashes_variation2.phpt
@@ -21,21 +21,21 @@ EOT;
$heredoc_null_string =<<<EOT
EOT;
-
+
// initialising the string array
-$str_array = array(
+$str_array = array(
// string without any characters that can be backslashed
'Hello world',
-
+
// string with single quotes
- "how're you doing?",
+ "how're you doing?",
"don't disturb u'r neighbours",
"don't disturb u'r neighbours''",
'',
'\'',
"'",
-
+
// string with double quotes
'he said, "he will be on leave"',
'he said, ""he will be on leave"',
@@ -44,7 +44,7 @@ $str_array = array(
"\"",
'"',
"hello\"",
-
+
// string with backslash characters
'Is your name Ram\Krishna?',
'\\0.0.0.0',
diff --git a/ext/standard/tests/strings/basename_variation.phpt b/ext/standard/tests/strings/basename_variation.phpt
index a0e8ebc744..e958a2c8f4 100644
--- a/ext/standard/tests/strings/basename_variation.phpt
+++ b/ext/standard/tests/strings/basename_variation.phpt
@@ -62,7 +62,7 @@ $file_path_variations = array (
/* path with spaces */
array(" "),
array(' '),
-
+
/* empty paths */
array(""),
array(''),
@@ -76,8 +76,8 @@ function check_basename( $path_arrays ) {
if( 1 == count($path) ) { // no suffix provided
var_dump( basename($path[0]) );
} else { // path as well as suffix provided,
- var_dump( basename($path[0], $path[1]) );
- }
+ var_dump( basename($path[0], $path[1]) );
+ }
}
}
diff --git a/ext/standard/tests/strings/bin2hex_basic.phpt b/ext/standard/tests/strings/bin2hex_basic.phpt
index 5d667a7ff6..7a0f3dde0d 100644
--- a/ext/standard/tests/strings/bin2hex_basic.phpt
+++ b/ext/standard/tests/strings/bin2hex_basic.phpt
@@ -17,20 +17,20 @@ $strings = array (
/*1*/ "Here is a simple string",
"\t This String contains \t\t some control characters\r\n",
"\x90\x91\x00\x93\x94\x90\x91\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
-
+
//single quoted strings
/*4*/ 'Here is a simple string',
'\t This String contains \t\t some control characters\r\n',
'\x90\x91\x00\x93\x94\x90\x91\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f',
-);
+);
// loop through with each element of the $strings array to test bin2hex() function
$count = 1;
foreach($strings as $string) {
- echo "-- Iteration $count --\n";
+ echo "-- Iteration $count --\n";
var_dump(bin2hex($string));
$count ++;
-}
+}
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/strings/bin2hex_variation1.phpt b/ext/standard/tests/strings/bin2hex_variation1.phpt
index e73ff5de6a..2b8513879c 100644
--- a/ext/standard/tests/strings/bin2hex_variation1.phpt
+++ b/ext/standard/tests/strings/bin2hex_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -31,36 +31,36 @@ $inputs = array (
/*1*/ 0,
1,
123456,
-
+
// float values
/*4*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*7*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*10*/true,
false,
TRUE,
FALSE,
-
+
// null values
/*14*/NULL,
null,
-
+
// objects
/*16*/new sample(),
-
+
// resource
/*17*/$file_handle,
-
+
// undefined variable
/*18*/@$undefined_var,
-
+
// unset variable
/*19*/@$unset_var
);
diff --git a/ext/standard/tests/strings/bug22207.phpt b/ext/standard/tests/strings/bug22207.phpt
index 32a15d73cd..956acd2103 100644
--- a/ext/standard/tests/strings/bug22207.phpt
+++ b/ext/standard/tests/strings/bug22207.phpt
@@ -2,7 +2,7 @@
Bug #22207 (missing 0 when using the e notation in *printf functions)
--FILE--
<?php
- printf("%10.5e\n", 1.1);
+ printf("%10.5e\n", 1.1);
var_dump(sprintf("%10.5e\n", 1.1));
?>
--EXPECT--
diff --git a/ext/standard/tests/strings/bug22224.phpt b/ext/standard/tests/strings/bug22224.phpt
index c30f222f32..0ab00a6c42 100644
--- a/ext/standard/tests/strings/bug22224.phpt
+++ b/ext/standard/tests/strings/bug22224.phpt
@@ -14,7 +14,7 @@ class foo
$a = new foo();
-
+
$arr = array(0=>&$a, 1=>&$a);
var_dump(implode(",",$arr));
var_dump($arr)
diff --git a/ext/standard/tests/strings/bug26817.phpt b/ext/standard/tests/strings/bug26817.phpt
index 228348708c..2e31d30be9 100644
--- a/ext/standard/tests/strings/bug26817.phpt
+++ b/ext/standard/tests/strings/bug26817.phpt
@@ -2,7 +2,7 @@
Bug #26817 (http_build_query() did not handle private & protected object properties)
--FILE--
<?php
-class test {
+class test {
protected $foo;
private $bar;
public $test;
diff --git a/ext/standard/tests/strings/bug33076.phpt b/ext/standard/tests/strings/bug33076.phpt
index dafb8161b0..95525ff2e8 100644
--- a/ext/standard/tests/strings/bug33076.phpt
+++ b/ext/standard/tests/strings/bug33076.phpt
@@ -9,6 +9,6 @@ var_dump($value);
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
string(6) "bzexbz"
Done
diff --git a/ext/standard/tests/strings/bug36944.phpt b/ext/standard/tests/strings/bug36944.phpt
index 2a43d060e2..a9f117fe3f 100644
--- a/ext/standard/tests/strings/bug36944.phpt
+++ b/ext/standard/tests/strings/bug36944.phpt
@@ -13,7 +13,7 @@ var_dump(strncasecmp("test ", "E", 0));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: Length must be greater than or equal to 0 in %s on line %d
bool(false)
int(%d)
diff --git a/ext/standard/tests/strings/bug37262.phpt b/ext/standard/tests/strings/bug37262.phpt
index ffdc994f46..b964c4a659 100644
--- a/ext/standard/tests/strings/bug37262.phpt
+++ b/ext/standard/tests/strings/bug37262.phpt
@@ -5,6 +5,6 @@ Bug #37262 (var_export() does not escape \0 character)
$func = create_function('$a', 'return $a;');
var_export($func);
?>
---EXPECTF--
+--EXPECTF--
Deprecated: Function create_function() is deprecated in %s on line %d
'' . "\0" . 'lambda_%d'
diff --git a/ext/standard/tests/strings/bug38322.phpt b/ext/standard/tests/strings/bug38322.phpt
index fd7165894c..88b4caf471 100644
--- a/ext/standard/tests/strings/bug38322.phpt
+++ b/ext/standard/tests/strings/bug38322.phpt
@@ -8,6 +8,6 @@ var_dump(sscanf("a ",'%1$s',$str));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
int(1)
Done
diff --git a/ext/standard/tests/strings/bug38770.phpt b/ext/standard/tests/strings/bug38770.phpt
index 1821639aca..76ec33572b 100644
--- a/ext/standard/tests/strings/bug38770.phpt
+++ b/ext/standard/tests/strings/bug38770.phpt
@@ -13,7 +13,7 @@ foreach (array('N','l') as $v) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
Array
(
[1] => 4294937296
diff --git a/ext/standard/tests/strings/bug39032.phpt b/ext/standard/tests/strings/bug39032.phpt
index 1628b9df7d..f01df3ff4c 100644
--- a/ext/standard/tests/strings/bug39032.phpt
+++ b/ext/standard/tests/strings/bug39032.phpt
@@ -10,7 +10,7 @@ var_dump(strcspn(chr(1),"qweqwe"));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
int(1)
int(0)
int(1)
diff --git a/ext/standard/tests/strings/bug39350.phpt b/ext/standard/tests/strings/bug39350.phpt
index 53d58b7099..8cc51e9592 100644
--- a/ext/standard/tests/strings/bug39350.phpt
+++ b/ext/standard/tests/strings/bug39350.phpt
@@ -9,5 +9,5 @@ implode('', array(""));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
Done
diff --git a/ext/standard/tests/strings/bug39873.phpt b/ext/standard/tests/strings/bug39873.phpt
index e73f3c8516..527b7d3c92 100644
--- a/ext/standard/tests/strings/bug39873.phpt
+++ b/ext/standard/tests/strings/bug39873.phpt
@@ -9,7 +9,7 @@ if (!setlocale(LC_ALL, "ita","it","Italian","it_IT","it_IT.ISO8859-1","it_IT.ISO
--FILE--
<?php
setlocale(LC_ALL, "ita","it","Italian","it_IT","it_IT.ISO8859-1","it_IT.ISO_8859-1");
- $num = 0+"1234.56";
+ $num = 0+"1234.56";
echo number_format($num,2);
echo "\n";
?>
diff --git a/ext/standard/tests/strings/bug40637.phpt b/ext/standard/tests/strings/bug40637.phpt
index bdd5a0f816..3f6fc834d8 100644
--- a/ext/standard/tests/strings/bug40637.phpt
+++ b/ext/standard/tests/strings/bug40637.phpt
@@ -8,6 +8,6 @@ var_dump(strip_tags($html));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
string(4) "Text"
Done
diff --git a/ext/standard/tests/strings/bug40704.phpt b/ext/standard/tests/strings/bug40704.phpt
index 82e91b5c87..b2f6cf89cc 100644
--- a/ext/standard/tests/strings/bug40704.phpt
+++ b/ext/standard/tests/strings/bug40704.phpt
@@ -8,6 +8,6 @@ var_dump(strip_tags($html));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
string(26) "Bug ' Trigger Missing Text"
Done
diff --git a/ext/standard/tests/strings/bug40754.phpt b/ext/standard/tests/strings/bug40754.phpt
index b30042e939..26ea5bc770 100644
--- a/ext/standard/tests/strings/bug40754.phpt
+++ b/ext/standard/tests/strings/bug40754.phpt
@@ -26,7 +26,7 @@ var_dump(chunk_split("abcde", $v, "abc"));
var_dump(substr("abcde", $v, $v));
?>
---EXPECTF--
+--EXPECTF--
string(4) "bcde"
string(6) "abcdex"
bool(false)
diff --git a/ext/standard/tests/strings/bug45166.phpt b/ext/standard/tests/strings/bug45166.phpt
index 60449e04f0..eb32e739e0 100644
--- a/ext/standard/tests/strings/bug45166.phpt
+++ b/ext/standard/tests/strings/bug45166.phpt
@@ -2,7 +2,7 @@
Bug #45166 (substr() )
--FILE--
<?php
- echo substr('cd', -3) . "\n";
+ echo substr('cd', -3) . "\n";
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/strings/bug48709.phpt b/ext/standard/tests/strings/bug48709.phpt
index 999a2c6513..6a93b8dae4 100644
--- a/ext/standard/tests/strings/bug48709.phpt
+++ b/ext/standard/tests/strings/bug48709.phpt
@@ -13,8 +13,8 @@ $exceptions = array(
'x', // s
'wh', // w
'wa' // w
-);
-
+);
+
foreach ($exceptions as $letter) {
printf("%s => %s\n", $letter, metaphone($letter));
}
diff --git a/ext/standard/tests/strings/bug54721.phpt b/ext/standard/tests/strings/bug54721.phpt
index 3851df1542..f21d65fddf 100644
--- a/ext/standard/tests/strings/bug54721.phpt
+++ b/ext/standard/tests/strings/bug54721.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #54721 (Different Hashes on Windows, BSD and Linux on wrong Salt size)
--FILE--
-<?php
+<?php
echo crypt("", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n";
echo crypt("b", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n";
echo crypt("bu", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n";
diff --git a/ext/standard/tests/strings/bug55871.phpt b/ext/standard/tests/strings/bug55871.phpt
index 0044f50ce7..0c8fd4c6e6 100644
--- a/ext/standard/tests/strings/bug55871.phpt
+++ b/ext/standard/tests/strings/bug55871.phpt
@@ -17,7 +17,7 @@ class test2 {
}
class test3 {
- public function __toString() {
+ public function __toString() {
$GLOBALS['my_var'] .= "AAAAAAAA";
return '';
}
diff --git a/ext/standard/tests/strings/bug64879.phpt b/ext/standard/tests/strings/bug64879.phpt
index ac19ce6a04..6135fbbb52 100644
--- a/ext/standard/tests/strings/bug64879.phpt
+++ b/ext/standard/tests/strings/bug64879.phpt
@@ -3,10 +3,10 @@ Bug #64879: quoted_printable_encode() wrong size calculation (CVE-2013-2110)
--FILE--
<?php
-quoted_printable_encode(str_repeat("\xf4", 1000));
-quoted_printable_encode(str_repeat("\xf4", 100000));
+quoted_printable_encode(str_repeat("\xf4", 1000));
+quoted_printable_encode(str_repeat("\xf4", 100000));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
Done
diff --git a/ext/standard/tests/strings/bug65230.phpt b/ext/standard/tests/strings/bug65230.phpt
index c92e558c49..87f9ed4459 100644
--- a/ext/standard/tests/strings/bug65230.phpt
+++ b/ext/standard/tests/strings/bug65230.phpt
@@ -11,7 +11,7 @@ date.timezone=Europe/Berlin
--FILE--
<?php
-function test($locale, $value)
+function test($locale, $value)
{
$newlocale = setlocale(LC_ALL, $locale);
$conv = localeconv();
diff --git a/ext/standard/tests/strings/bug65947.phpt b/ext/standard/tests/strings/bug65947.phpt
index b9ac8a474b..e6011dd5f7 100644
--- a/ext/standard/tests/strings/bug65947.phpt
+++ b/ext/standard/tests/strings/bug65947.phpt
@@ -7,9 +7,9 @@ $filename = 'test.toto';
$csv = base64_decode('6Q==');
$adata = str_getcsv($csv,";");
$b2 = basename($filename);
-if ($filename != $b2)
+if ($filename != $b2)
print "BUG";
else
print "OKEY";
---EXPECT--
+--EXPECT--
OKEY
diff --git a/ext/standard/tests/strings/bug67252.phpt b/ext/standard/tests/strings/bug67252.phpt
index 80a6ebcf1c..576524f1d2 100644
--- a/ext/standard/tests/strings/bug67252.phpt
+++ b/ext/standard/tests/strings/bug67252.phpt
@@ -7,7 +7,7 @@ $a = "M86%A86%A86%A86%A86%A86%A86%A86%A86%A86%A86%A86%A86%A86%A86%A"."\n"."a.";
var_dump(convert_uudecode($a));
?>
---EXPECTF--
+--EXPECTF--
Warning: convert_uudecode(): The given parameter is not a valid uuencoded string in %s on line %d
bool(false)
diff --git a/ext/standard/tests/strings/chop_variation1.phpt b/ext/standard/tests/strings/chop_variation1.phpt
index 13e735d02e..a5bf0afc48 100644
--- a/ext/standard/tests/strings/chop_variation1.phpt
+++ b/ext/standard/tests/strings/chop_variation1.phpt
@@ -72,10 +72,10 @@ $values = array (
// unset variable
$unset_var,
-
+
// object
$sample_obj,
-
+
// resource
$file_handle
);
diff --git a/ext/standard/tests/strings/chop_variation2.phpt b/ext/standard/tests/strings/chop_variation2.phpt
index 02d32306ec..cad8ec75f5 100644
--- a/ext/standard/tests/strings/chop_variation2.phpt
+++ b/ext/standard/tests/strings/chop_variation2.phpt
@@ -71,13 +71,13 @@ $values = array (
// resource
$file_handle,
-
+
// undefined variable
$undefined_var,
// unset variable
$unset_var
-
+
);
diff --git a/ext/standard/tests/strings/chr_variation1.phpt b/ext/standard/tests/strings/chr_variation1.phpt
index 3da03316c9..85a2219ecb 100644
--- a/ext/standard/tests/strings/chr_variation1.phpt
+++ b/ext/standard/tests/strings/chr_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -32,36 +32,36 @@ $inputs = array (
1,
255,
256,
-
+
// float values
/*5*/ 10.5,
-20.5,
1.1234e6,
-
+
// array values
/*8*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*11*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*15*/ NULL,
null,
-
+
// objects
/*17*/ new sample(),
-
+
// resource
/*18*/ $file_handle,
-
+
// undefined variable
/*19*/ @$undefined_var,
-
+
// unset variable
/*20*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/chunk_split_basic.phpt b/ext/standard/tests/strings/chunk_split_basic.phpt
index da4720a187..a1a269080e 100644
--- a/ext/standard/tests/strings/chunk_split_basic.phpt
+++ b/ext/standard/tests/strings/chunk_split_basic.phpt
@@ -5,7 +5,7 @@ Test chunk_split() function : basic functionality
/* Prototype : string chunk_split(string $str [, int $chunklen [, string $ending]])
* Description: Returns split line
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
@@ -22,7 +22,7 @@ $chunklen = 2;
$ending = '##';
// Calling chunk_split() with all possible arguments
-echo "-- Testing chunk_split() with all possible arguments --\n";
+echo "-- Testing chunk_split() with all possible arguments --\n";
var_dump( chunk_split($str, $chunklen, $ending) );
@@ -34,7 +34,7 @@ var_dump( chunk_split($str, $chunklen) );
//Calling chunk_split() with default chunklen and ending string
echo "-- Testing chunk_split() with default chunklen and ending string --\n";
var_dump( chunk_split($str) );
-
+
echo "Done"
?>
--EXPECT--
diff --git a/ext/standard/tests/strings/chunk_split_variation10.phpt b/ext/standard/tests/strings/chunk_split_variation10.phpt
index 99bb623c33..755d4ab46a 100644
--- a/ext/standard/tests/strings/chunk_split_variation10.phpt
+++ b/ext/standard/tests/strings/chunk_split_variation10.phpt
@@ -28,12 +28,12 @@ $values = array (
'ENDING', //String
'@#$%^', //Special chars
-
- '\t',
+
+ '\t',
'\n',
'\r',
'\r\n',
-
+
'\0', //Null char
'123', //Numeric
'(MSG)', //With ( and )
diff --git a/ext/standard/tests/strings/chunk_split_variation12.phpt b/ext/standard/tests/strings/chunk_split_variation12.phpt
index 6a025f1abb..2162b96522 100644
--- a/ext/standard/tests/strings/chunk_split_variation12.phpt
+++ b/ext/standard/tests/strings/chunk_split_variation12.phpt
@@ -9,7 +9,7 @@ Test chunk_split() function : usage variations - different heredoc strings for '
*/
/*
-* passing different heredoc strings as 'ending' argument to chunk_split()
+* passing different heredoc strings as 'ending' argument to chunk_split()
* 'chunklen' argument is set to 10
*/
@@ -80,7 +80,7 @@ foreach($heredoc_arr as $value) {
var_dump( chunk_split( $str, $chunklen, $value) );
$count++;
};
-
+
echo "Done"
?>
--EXPECT--
diff --git a/ext/standard/tests/strings/chunk_split_variation13.phpt b/ext/standard/tests/strings/chunk_split_variation13.phpt
index 38b8f9568a..8e4da96e7b 100644
--- a/ext/standard/tests/strings/chunk_split_variation13.phpt
+++ b/ext/standard/tests/strings/chunk_split_variation13.phpt
@@ -5,7 +5,7 @@ Test chunk_split() function : usage variations - default 'chunklen' with long st
/* Prototype : string chunk_split(string $str [, int $chunklen [, string $ending]])
* Description: Returns split line
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/strings/chunk_split_variation2.phpt b/ext/standard/tests/strings/chunk_split_variation2.phpt
index 195e2d2605..b5d58b0d00 100644
--- a/ext/standard/tests/strings/chunk_split_variation2.phpt
+++ b/ext/standard/tests/strings/chunk_split_variation2.phpt
@@ -40,7 +40,7 @@ $values = array(
(float) PHP_INT_MAX + 1,
(float) -PHP_INT_MAX - 1,
.5,
-
+
// array data
array(),
array(0),
diff --git a/ext/standard/tests/strings/chunk_split_variation3.phpt b/ext/standard/tests/strings/chunk_split_variation3.phpt
index 758bec088b..408d8c8afb 100644
--- a/ext/standard/tests/strings/chunk_split_variation3.phpt
+++ b/ext/standard/tests/strings/chunk_split_variation3.phpt
@@ -75,7 +75,7 @@ $values = array(
// unset data
@$unset_var,
-
+
// resource data
$fp
);
diff --git a/ext/standard/tests/strings/chunk_split_variation4.phpt b/ext/standard/tests/strings/chunk_split_variation4.phpt
index 9f9a8b75ba..640df405f7 100644
--- a/ext/standard/tests/strings/chunk_split_variation4.phpt
+++ b/ext/standard/tests/strings/chunk_split_variation4.phpt
@@ -9,7 +9,7 @@ Test chunk_split() function : usage variations - different heredoc strings as 's
*/
/*
-* Passing different heredoc strings as 'str' argument to the chunk_split()
+* Passing different heredoc strings as 'str' argument to the chunk_split()
* with 'chunklen' 4 and default value of 'ending' that is "\r\n"
*/
@@ -81,7 +81,7 @@ foreach($heredoc_arr as $str) {
var_dump( chunk_split( $str, $chunklen) );
$count++;
};
-
+
echo "Done"
?>
--EXPECT--
diff --git a/ext/standard/tests/strings/chunk_split_variation6.phpt b/ext/standard/tests/strings/chunk_split_variation6.phpt
index ccfc08a569..84a3a5ab67 100644
--- a/ext/standard/tests/strings/chunk_split_variation6.phpt
+++ b/ext/standard/tests/strings/chunk_split_variation6.phpt
@@ -24,18 +24,18 @@ $values = array(
'', //empty
' ', //space
'This is simple string', //regular string
- 'It\'s string with quotes',
+ 'It\'s string with quotes',
'This contains @ # $ % ^ & chars', //special characters
'This string\tcontains\rwhite space\nchars', //with white space chars
- 'This is string with 1234 numbers',
+ 'This is string with 1234 numbers',
'This is string with \0 and ".chr(0)."null chars', //for binary safe
- 'This is string with multiple space char',
- 'This is to check string with ()',
- ' Testing with multiple spaces ',
- 'Testing invalid \k and \m escape char',
+ 'This is string with multiple space char',
+ 'This is to check string with ()',
+ ' Testing with multiple spaces ',
+ 'Testing invalid \k and \m escape char',
'This is to check with \\n and \\t'
-);
-
+);
+
//Loop through each element of values for 'str'
for($count = 0;$count < count($values);$count++) {
diff --git a/ext/standard/tests/strings/chunk_split_variation8.phpt b/ext/standard/tests/strings/chunk_split_variation8.phpt
index e97b1e9036..bfafd1af0b 100644
--- a/ext/standard/tests/strings/chunk_split_variation8.phpt
+++ b/ext/standard/tests/strings/chunk_split_variation8.phpt
@@ -9,7 +9,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
/* Prototype : string chunk_split(string $str [, int $chunklen [, string $ending]])
* Description: Returns split line
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
@@ -31,8 +31,8 @@ $ending = ':::';
// different values for 'chunklen'
$values = array (
- 0,
- 1,
+ 0,
+ 1,
-123, //negative integer
0234, //octal number
0x1A, //hexadecimal number
diff --git a/ext/standard/tests/strings/convert_cyr_string.phpt b/ext/standard/tests/strings/convert_cyr_string.phpt
index b62768eff4..af239543c5 100644
--- a/ext/standard/tests/strings/convert_cyr_string.phpt
+++ b/ext/standard/tests/strings/convert_cyr_string.phpt
@@ -19,7 +19,7 @@ var_dump(convert_cyr_string("", "d", "i"));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: convert_cyr_string() expects exactly 3 parameters, 0 given in %s on line %d
NULL
diff --git a/ext/standard/tests/strings/convert_cyr_string_variation1.phpt b/ext/standard/tests/strings/convert_cyr_string_variation1.phpt
index 9986ac214d..47174defef 100644
--- a/ext/standard/tests/strings/convert_cyr_string_variation1.phpt
+++ b/ext/standard/tests/strings/convert_cyr_string_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/convert_uudecode_basic.phpt b/ext/standard/tests/strings/convert_uudecode_basic.phpt
index 1d7e373512..3552f6d674 100644
--- a/ext/standard/tests/strings/convert_uudecode_basic.phpt
+++ b/ext/standard/tests/strings/convert_uudecode_basic.phpt
@@ -20,27 +20,27 @@ $strings = array (
"Here is a simple string to test convert_uuencode/decode",
"\t This String contains \t\t some control characters\r\n",
"\x90\x91\x00\x93\x94\x90\x91\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
-
+
//single quoted strings
'123',
'abc',
'1a2b3c',
'\t This String contains \t\t some control characters\r\n',
-
-);
+
+);
// loop through with each element of the $strings array to test convert_uudecode() function
$count = 1;
foreach($strings as $string) {
-
+
$encode = convert_uuencode($string);
$decode = convert_uudecode($encode);
-
- if ($decode != $string) {
- var_dump($encode, $decode, $string);
+
+ if ($decode != $string) {
+ var_dump($encode, $decode, $string);
exit("TEST FAILED on iteration $count\n");
- }
-
+ }
+
$count ++;
}
diff --git a/ext/standard/tests/strings/convert_uudecode_variation1.phpt b/ext/standard/tests/strings/convert_uudecode_variation1.phpt
index 049fd7f65b..4c66f076a5 100644
--- a/ext/standard/tests/strings/convert_uudecode_variation1.phpt
+++ b/ext/standard/tests/strings/convert_uudecode_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/convert_uuencode_basic.phpt b/ext/standard/tests/strings/convert_uuencode_basic.phpt
index 9849997d41..2d4851945e 100644
--- a/ext/standard/tests/strings/convert_uuencode_basic.phpt
+++ b/ext/standard/tests/strings/convert_uuencode_basic.phpt
@@ -20,14 +20,14 @@ $strings = array (
"Here is a simple string to test convert_uuencode/decode",
"\t This String contains \t\t some control characters\r\n",
"\x90\x91\x00\x93\x94\x90\x91\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
-
+
//single quoted strings
'123',
'abc',
'1a2b3c',
'\t This String contains \t\t some control characters\r\n',
-
-);
+
+);
// loop through with each element of the $strings array to test convert_uuencode() function
$count = 1;
diff --git a/ext/standard/tests/strings/convert_uuencode_variation1.phpt b/ext/standard/tests/strings/convert_uuencode_variation1.phpt
index 12ca281960..c9ef4335be 100644
--- a/ext/standard/tests/strings/convert_uuencode_variation1.phpt
+++ b/ext/standard/tests/strings/convert_uuencode_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/count_chars_error.phpt b/ext/standard/tests/strings/count_chars_error.phpt
index 45c1163398..f87b6e532e 100644
--- a/ext/standard/tests/strings/count_chars_error.phpt
+++ b/ext/standard/tests/strings/count_chars_error.phpt
@@ -14,7 +14,7 @@ echo "\n-- Testing count_chars() function with no arguments --\n";
var_dump( count_chars() );
echo "\n-- Testing count_chars() function with more than expected no. of arguments --\n";
-$string = "Hello World\n";
+$string = "Hello World\n";
$mode = 1;
$extra_arg = 10;
var_dump( count_chars($string, $mode, $extra_arg) );
diff --git a/ext/standard/tests/strings/count_chars_variation1.phpt b/ext/standard/tests/strings/count_chars_variation1.phpt
index 18e23f95b6..9e78219dbe 100644
--- a/ext/standard/tests/strings/count_chars_variation1.phpt
+++ b/ext/standard/tests/strings/count_chars_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/* 7 */ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/* 10 */ array(),
array(0),
array(1, 2),
-
+
// boolean values
/* 13 */ true,
false,
TRUE,
FALSE,
-
+
// null values
/* 17 */ NULL,
null,
-
+
// objects
/* 19 */ new sample(),
-
+
// resource
/* 20 */ $file_handle,
-
+
// undefined variable
/* 21 */ @$undefined_var,
-
+
// unset variable
/* 22 */ @$unset_var
);
diff --git a/ext/standard/tests/strings/count_chars_variation2.phpt b/ext/standard/tests/strings/count_chars_variation2.phpt
index fb3305bbbd..986312a930 100644
--- a/ext/standard/tests/strings/count_chars_variation2.phpt
+++ b/ext/standard/tests/strings/count_chars_variation2.phpt
@@ -29,40 +29,40 @@ $inputs = array (
255,
2147483647,
-2147483648,
-
+
// float values
/* 6 */ 0.0,
1.3,
10.5,
-20.5,
10.1234567e10,
-
+
// array values
/* 11 */ array(),
array(1, 2, 3, 4, 5, 6, 7, 8, 9),
-
+
// boolean values
/* 14 */ true,
false,
TRUE,
FALSE,
-
+
// null values
/* 18 */ NULL,
null,
-
+
// string values
/* 20 */ "ABCD",
'abcd',
"1ABC",
"5ABC",
-
+
// objects
/* 24 */ new sample(),
-
+
// undefined variable
/* 25 */ @$undefined_var,
-
+
// unset variable
/* 26 */ @$unset_var
);
diff --git a/ext/standard/tests/strings/crc32_variation1.phpt b/ext/standard/tests/strings/crc32_variation1.phpt
index cfd4779091..28f01e0f7c 100644
--- a/ext/standard/tests/strings/crc32_variation1.phpt
+++ b/ext/standard/tests/strings/crc32_variation1.phpt
@@ -2,7 +2,7 @@
Test crc32() function : usage variations - unexpected values
--SKIPIF--
<?php
-if (PHP_INT_SIZE != 4)
+if (PHP_INT_SIZE != 4)
die("skip this test is for 32bit platform only");
?>
diff --git a/ext/standard/tests/strings/crc32_variation2.phpt b/ext/standard/tests/strings/crc32_variation2.phpt
index 7473194f1b..51ccca8beb 100644
--- a/ext/standard/tests/strings/crc32_variation2.phpt
+++ b/ext/standard/tests/strings/crc32_variation2.phpt
@@ -63,7 +63,7 @@ $string_array = array(
// looping to check the behaviour of the function for each string in the array
-$count = 1;
+$count = 1;
foreach($string_array as $str) {
echo "\n-- Iteration $count --\n";
var_dump( crc32($str) );
diff --git a/ext/standard/tests/strings/crc32_variation3.phpt b/ext/standard/tests/strings/crc32_variation3.phpt
index 639254a5f4..505446a1bd 100644
--- a/ext/standard/tests/strings/crc32_variation3.phpt
+++ b/ext/standard/tests/strings/crc32_variation3.phpt
@@ -65,7 +65,7 @@ $string_array = array(
// looping to check the behaviour of the function for each string in the array
-$count = 1;
+$count = 1;
foreach($string_array as $str) {
echo "\n-- Iteration $count --\n";
var_dump( crc32($str) );
diff --git a/ext/standard/tests/strings/dirname_basic.phpt b/ext/standard/tests/strings/dirname_basic.phpt
index 33fee611e0..9006b27619 100644
--- a/ext/standard/tests/strings/dirname_basic.phpt
+++ b/ext/standard/tests/strings/dirname_basic.phpt
@@ -16,18 +16,18 @@ $file_paths = array (
"/foo/bar/",
"foo/bar/",
"/bar/",
-
+
/* path with only files and trailing slashes*/
"/foo/bar.gz",
"foo/bar.gz",
"bar.gz",
"bar.gz/",
- "/bar.gz",
+ "/bar.gz",
"/bar.gz/",
"/foo/bar.gz/",
"foo/bar.gz/",
- "/bar.gz/",
-
+ "/bar.gz/",
+
/* path with file extension and trailing slashes */
"/.gz",
".gz",
@@ -49,7 +49,7 @@ function check_dirname( $paths ) {
$noOfPaths = count($paths);
for( ; $loop_counter < $noOfPaths; $loop_counter++ ) {
echo "\n--Iteration ";
- echo $loop_counter + 1;
+ echo $loop_counter + 1;
echo " --\n";
var_dump( dirname($paths[$loop_counter]) );
}
diff --git a/ext/standard/tests/strings/dirname_variation.phpt b/ext/standard/tests/strings/dirname_variation.phpt
index da66f0fc55..71a2e4db2e 100644
--- a/ext/standard/tests/strings/dirname_variation.phpt
+++ b/ext/standard/tests/strings/dirname_variation.phpt
@@ -6,7 +6,7 @@ Test dirname() function : usage variations
Description: Returns directory name component of path.
*/
class temp
-{
+{
function __toString() {
return "Object";
}
@@ -26,7 +26,7 @@ $file_path_variations = array (
"hostname:/home/user/My Pics.gz/",
"hostname:/home/user/My Pics/",
"hostname:/home/user/My Pics",
-
+
/* path containing numeric string */
"10.5",
"/10.5",
@@ -35,7 +35,7 @@ $file_path_variations = array (
"10/10.gz",
'0',
"0",
-
+
/* object */
new temp,
@@ -56,7 +56,7 @@ function check_dirname( $paths ) {
for( ; $loop_counter < $noOfPaths; $loop_counter++ ) {
echo "\n--Iteration ";
echo $loop_counter +1;
- echo " --\n";
+ echo " --\n";
var_dump( dirname($paths[$loop_counter]) );
}
}
diff --git a/ext/standard/tests/strings/explode1.phpt b/ext/standard/tests/strings/explode1.phpt
index 669b66272d..f4a90573f3 100644
--- a/ext/standard/tests/strings/explode1.phpt
+++ b/ext/standard/tests/strings/explode1.phpt
@@ -51,7 +51,7 @@ echo "\n-- Passing limit values 0 and 1 to explode() --\n";
var_dump( explode(":", "Name:Phone:Address:City:State", 0) );
var_dump( explode(":", "Name:Phone:Address:City:State", 1) );
-/* to check the maximum limit of string that can be given with limit<=0,
+/* to check the maximum limit of string that can be given with limit<=0,
default size is 50 but increases dynamically */
echo "\n*** Testing explode() for maximum limit of string with Limit = -1 ***\n";
var_dump( explode(":", "1:2:3:4:5:6:7:7:5:6:7:3:4:5:2:8:9:0:5:5:5:5:5:5:5:5:5:5:5:5:55:5:5:5%:%:%:%:5:5:5:%:%:5:5:5:5:5%:%:%:55:1:1", -1) );
diff --git a/ext/standard/tests/strings/explode_variation1.phpt b/ext/standard/tests/strings/explode_variation1.phpt
index f16f69bece..7ced1dc822 100644
--- a/ext/standard/tests/strings/explode_variation1.phpt
+++ b/ext/standard/tests/strings/explode_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $delimiters = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/explode_variation2.phpt b/ext/standard/tests/strings/explode_variation2.phpt
index 4de4637ac1..9377f30842 100644
--- a/ext/standard/tests/strings/explode_variation2.phpt
+++ b/ext/standard/tests/strings/explode_variation2.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $strings = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/explode_variation3.phpt b/ext/standard/tests/strings/explode_variation3.phpt
index b139058844..2addd0436d 100644
--- a/ext/standard/tests/strings/explode_variation3.phpt
+++ b/ext/standard/tests/strings/explode_variation3.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $limits = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e5,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/explode_variation6.phpt b/ext/standard/tests/strings/explode_variation6.phpt
index d1b34e3ef8..14b6d401a2 100644
--- a/ext/standard/tests/strings/explode_variation6.phpt
+++ b/ext/standard/tests/strings/explode_variation6.phpt
@@ -33,10 +33,10 @@ $e = test_explode("\x00", $str, 100);
function test_explode($delim, $string, $limit)
{
$e = explode($delim, $string, $limit);
- foreach ( $e as $v)
+ foreach ( $e as $v)
{
var_dump(bin2hex($v));
- }
+ }
}
?>
===DONE===
diff --git a/ext/standard/tests/strings/get_html_translation_table_basic5.phpt b/ext/standard/tests/strings/get_html_translation_table_basic5.phpt
index e60443050d..86f19f3a66 100644
--- a/ext/standard/tests/strings/get_html_translation_table_basic5.phpt
+++ b/ext/standard/tests/strings/get_html_translation_table_basic5.phpt
@@ -22,7 +22,7 @@ $tt = get_html_translation_table($table, ENT_NOQUOTES | ENT_HTML5, "UTF-8");
var_dump( count($tt) );
echo "-- with table = HTML_SPECIALCHARS, ENT_COMPAT --\n";
-$table = HTML_SPECIALCHARS;
+$table = HTML_SPECIALCHARS;
$tt = get_html_translation_table($table, ENT_COMPAT, "UTF-8");
asort( $tt );
var_dump( count($tt) );
diff --git a/ext/standard/tests/strings/get_html_translation_table_basic7.phpt b/ext/standard/tests/strings/get_html_translation_table_basic7.phpt
index 98ebbb9ac4..4e5c5afc14 100644
--- a/ext/standard/tests/strings/get_html_translation_table_basic7.phpt
+++ b/ext/standard/tests/strings/get_html_translation_table_basic7.phpt
@@ -23,7 +23,7 @@ $tt = get_html_translation_table($table, ENT_NOQUOTES | ENT_XHTML, "UTF-8");
var_dump( count($tt) );
echo "-- with table = HTML_SPECIALCHARS, ENT_COMPAT --\n";
-$table = HTML_SPECIALCHARS;
+$table = HTML_SPECIALCHARS;
$tt = get_html_translation_table($table, ENT_COMPAT, "UTF-8");
asort( $tt );
var_dump( count($tt) );
diff --git a/ext/standard/tests/strings/get_html_translation_table_basic8.phpt b/ext/standard/tests/strings/get_html_translation_table_basic8.phpt
index 8f8ca580ea..a3813262f7 100644
--- a/ext/standard/tests/strings/get_html_translation_table_basic8.phpt
+++ b/ext/standard/tests/strings/get_html_translation_table_basic8.phpt
@@ -22,7 +22,7 @@ $tt = get_html_translation_table($table, ENT_NOQUOTES | ENT_XML1, "UTF-8");
var_dump( count($tt) );
echo "-- with table = HTML_SPECIALCHARS, ENT_COMPAT --\n";
-$table = HTML_SPECIALCHARS;
+$table = HTML_SPECIALCHARS;
$tt = get_html_translation_table($table, ENT_COMPAT, "UTF-8");
asort( $tt );
var_dump( count($tt) );
diff --git a/ext/standard/tests/strings/get_html_translation_table_basic9.phpt b/ext/standard/tests/strings/get_html_translation_table_basic9.phpt
index cd32cccd5f..6e144c0c51 100644
--- a/ext/standard/tests/strings/get_html_translation_table_basic9.phpt
+++ b/ext/standard/tests/strings/get_html_translation_table_basic9.phpt
@@ -23,7 +23,7 @@ $tt = get_html_translation_table($table, ENT_NOQUOTES | ENT_HTML5, "SJIS");
var_dump( count($tt) );
echo "-- with table = HTML_SPECIALCHARS, ENT_COMPAT --\n";
-$table = HTML_SPECIALCHARS;
+$table = HTML_SPECIALCHARS;
$tt = get_html_translation_table($table, ENT_COMPAT, "SJIS");
asort( $tt );
var_dump( count($tt) );
diff --git a/ext/standard/tests/strings/get_html_translation_table_variation1.phpt b/ext/standard/tests/strings/get_html_translation_table_variation1.phpt
index a20d10c654..b7fd6f5775 100644
--- a/ext/standard/tests/strings/get_html_translation_table_variation1.phpt
+++ b/ext/standard/tests/strings/get_html_translation_table_variation1.phpt
@@ -81,7 +81,7 @@ for($index = 0; $index < count($values); $index ++) {
} else {
var_dump($v);
}
-
+
$v = get_html_translation_table($table, $quote_style, "UTF-8");
if (is_array($v) && count($v) > 100)
var_dump(count($v));
diff --git a/ext/standard/tests/strings/get_meta_tags.phpt b/ext/standard/tests/strings/get_meta_tags.phpt
index 1fb9bf41a1..cc29995046 100644
--- a/ext/standard/tests/strings/get_meta_tags.phpt
+++ b/ext/standard/tests/strings/get_meta_tags.phpt
@@ -55,7 +55,7 @@ foreach ($array as $html) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
array(4) {
["author"]=>
string(4) "name"
diff --git a/ext/standard/tests/strings/hebrev_variation1.phpt b/ext/standard/tests/strings/hebrev_variation1.phpt
index 23a4c23145..33fd974eb7 100644
--- a/ext/standard/tests/strings/hebrev_variation1.phpt
+++ b/ext/standard/tests/strings/hebrev_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $texts = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e5,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var,
diff --git a/ext/standard/tests/strings/hebrev_variation2.phpt b/ext/standard/tests/strings/hebrev_variation2.phpt
index a577d1ee89..f312472c82 100644
--- a/ext/standard/tests/strings/hebrev_variation2.phpt
+++ b/ext/standard/tests/strings/hebrev_variation2.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,43 +34,43 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e5,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// string values
/*19*/ "abc",
'abc',
"3abc",
"0abc",
"0x3",
-
+
// objects
/*24*/ new sample(),
-
+
// resource
/*25*/ $file_handle,
-
+
// undefined variable
/*26*/ @$undefined_var,
-
+
// unset variable
/*27*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/hebrevc_variation1.phpt b/ext/standard/tests/strings/hebrevc_variation1.phpt
index 92c6ffabb9..c16780e769 100644
--- a/ext/standard/tests/strings/hebrevc_variation1.phpt
+++ b/ext/standard/tests/strings/hebrevc_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $texts = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e5,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/hebrevc_variation2.phpt b/ext/standard/tests/strings/hebrevc_variation2.phpt
index 75ebc30cd8..334d128989 100644
--- a/ext/standard/tests/strings/hebrevc_variation2.phpt
+++ b/ext/standard/tests/strings/hebrevc_variation2.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,43 +34,43 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e5,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// string values
/*19*/ "abc",
'abc',
"3abc",
"0abc",
"0x3",
-
+
// objects
/*24*/ new sample(),
-
+
// resource
/*25*/ $file_handle,
-
+
// undefined variable
/*26*/ @$undefined_var,
-
+
// unset variable
/*27*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/html_entity_decode_cp866.phpt b/ext/standard/tests/strings/html_entity_decode_cp866.phpt
index 76323be30b..18f6f3c90b 100644
--- a/ext/standard/tests/strings/html_entity_decode_cp866.phpt
+++ b/ext/standard/tests/strings/html_entity_decode_cp866.phpt
@@ -138,7 +138,7 @@ foreach ($arr as $u => $v) {
$res = html_entity_decode($ent, ENT_QUOTES, 'CP866');
$d = unpack("H*", $res);
echo sprintf("%s: %s => %s\n", $v[1], $ent, $d[1]);
-
+
$ent = sprintf("&#x%X;", $v[0]);
$res = html_entity_decode($ent, ENT_QUOTES, 'CP866');
if ($res[0] != "&" || $res[1] != "#")
diff --git a/ext/standard/tests/strings/html_entity_decode_iso8859-15.phpt b/ext/standard/tests/strings/html_entity_decode_iso8859-15.phpt
index a3be8f3668..09fd5df02b 100644
--- a/ext/standard/tests/strings/html_entity_decode_iso8859-15.phpt
+++ b/ext/standard/tests/strings/html_entity_decode_iso8859-15.phpt
@@ -106,7 +106,7 @@ foreach ($arr as $u => $v) {
$res = html_entity_decode($ent, ENT_QUOTES, 'ISO-8859-15');
$d = unpack("H*", $res);
echo sprintf("%s: %s => %s\n", $v[1], $ent, $d[1]);
-
+
$ent = sprintf("&#x%X;", $v[0]);
$res = html_entity_decode($ent, ENT_QUOTES, 'ISO-8859-15');
if ($res[0] != "&" || $res[1] != "#")
diff --git a/ext/standard/tests/strings/html_entity_decode_iso8859-5.phpt b/ext/standard/tests/strings/html_entity_decode_iso8859-5.phpt
index 6a65413c9c..070ed536f4 100644
--- a/ext/standard/tests/strings/html_entity_decode_iso8859-5.phpt
+++ b/ext/standard/tests/strings/html_entity_decode_iso8859-5.phpt
@@ -106,7 +106,7 @@ foreach ($arr as $u => $v) {
$res = html_entity_decode($ent, ENT_QUOTES, 'ISO-8859-5');
$d = unpack("H*", $res);
echo sprintf("%s: %s => %s\n", $v[1], $ent, $d[1]);
-
+
$ent = sprintf("&#x%X;", $v[0]);
$res = html_entity_decode($ent, ENT_QUOTES, 'ISO-8859-5');
if ($res[0] != "&" || $res[1] != "#")
diff --git a/ext/standard/tests/strings/html_entity_decode_koi8-r.phpt b/ext/standard/tests/strings/html_entity_decode_koi8-r.phpt
index cb7fc7d1d8..e8523f6a09 100644
--- a/ext/standard/tests/strings/html_entity_decode_koi8-r.phpt
+++ b/ext/standard/tests/strings/html_entity_decode_koi8-r.phpt
@@ -138,7 +138,7 @@ foreach ($arr as $u => $v) {
$res = html_entity_decode($ent, ENT_QUOTES, 'KOI8-R');
$d = unpack("H*", $res);
echo sprintf("%s: %s => %s\n", $v[1], $ent, $d[1]);
-
+
$ent = sprintf("&#x%X;", $v[0]);
$res = html_entity_decode($ent, ENT_QUOTES, 'KOI8-R');
if ($res[0] != "&" || $res[1] != "#")
diff --git a/ext/standard/tests/strings/html_entity_decode_macroman.phpt b/ext/standard/tests/strings/html_entity_decode_macroman.phpt
index 4691bcf1a7..4f500dc4e7 100644
--- a/ext/standard/tests/strings/html_entity_decode_macroman.phpt
+++ b/ext/standard/tests/strings/html_entity_decode_macroman.phpt
@@ -142,7 +142,7 @@ foreach ($arr as $u => $v) {
$res = html_entity_decode($ent, ENT_QUOTES, 'MacRoman');
$d = unpack("H*", $res);
echo sprintf("%s: %s => %s\n", $v[1], $ent, $d[1]);
-
+
$ent = sprintf("&#x%X;", $v[0]);
$res = html_entity_decode($ent, ENT_QUOTES, 'MacRoman');
if ($res[0] != "&" || $res[1] != "#")
diff --git a/ext/standard/tests/strings/html_entity_decode_win1251.phpt b/ext/standard/tests/strings/html_entity_decode_win1251.phpt
index e47392623c..e60d7074bf 100644
--- a/ext/standard/tests/strings/html_entity_decode_win1251.phpt
+++ b/ext/standard/tests/strings/html_entity_decode_win1251.phpt
@@ -142,7 +142,7 @@ foreach ($arr as $u => $v) {
$res = html_entity_decode($ent, ENT_QUOTES, 'WINDOWS-1251');
$d = unpack("H*", $res);
echo sprintf("%s: %s => %s\n", $v[1], $ent, $d[1]);
-
+
$ent = sprintf("&#x%X;", $v[0]);
$res = html_entity_decode($ent, ENT_QUOTES, 'WINDOWS-1251');
if ($res[0] != "&" || $res[1] != "#")
diff --git a/ext/standard/tests/strings/html_entity_decode_win1252.phpt b/ext/standard/tests/strings/html_entity_decode_win1252.phpt
index 2a7a6981dc..6163ef24ae 100644
--- a/ext/standard/tests/strings/html_entity_decode_win1252.phpt
+++ b/ext/standard/tests/strings/html_entity_decode_win1252.phpt
@@ -62,7 +62,7 @@ foreach ($arr as $u => $v) {
$res = html_entity_decode($ent, ENT_QUOTES, 'WINDOWS-1252');
$d = unpack("H*", $res);
echo sprintf("%s: %s => %s\n", $v[1], $ent, $d[1]);
-
+
$ent = sprintf("&#x%X;", $v[0]);
$res = html_entity_decode($ent, ENT_QUOTES, 'WINDOWS-1252');
if ($res[0] != "&" || $res[1] != "#")
diff --git a/ext/standard/tests/strings/htmlentities-utf-2.phpt b/ext/standard/tests/strings/htmlentities-utf-2.phpt
index e6aa817276..3c0b9dde71 100644
--- a/ext/standard/tests/strings/htmlentities-utf-2.phpt
+++ b/ext/standard/tests/strings/htmlentities-utf-2.phpt
@@ -3,9 +3,9 @@ HTML entities with invalid chars and ENT_IGNORE
--INI--
output_handler=
--FILE--
-<?php
+<?php
@setlocale (LC_CTYPE, "C");
-$strings = array("<", "\xD0", "\xD0\x90", "\xD0\x90\xD0", "\xD0\x90\xD0\xB0", "\xE0", "A\xE0", "\xE0\x80", "\xE0\x79", "\xE0\x80\xBE",
+$strings = array("<", "\xD0", "\xD0\x90", "\xD0\x90\xD0", "\xD0\x90\xD0\xB0", "\xE0", "A\xE0", "\xE0\x80", "\xE0\x79", "\xE0\x80\xBE",
"Voil\xE0", "Clich\xE9s",
"\xFE", "\xFE\x41", "\xC3\xA9", "\xC3\x79", "\xF7\xBF\xBF\xBF", "\xFB\xBF\xBF\xBF\xBF", "\xFD\xBF\xBF\xBF\xBF\xBF",
"\x41\xF7\xF7\x42", "\x42\xFB\xFB\x42", "\x43\xFD\xFD\x42", "\x44\xF7\xF7", "\x45\xFB\xFB", "\x46\xFD\xFD"
diff --git a/ext/standard/tests/strings/htmlentities-utf.phpt b/ext/standard/tests/strings/htmlentities-utf.phpt
index dafec86b9a..215f500c91 100644
--- a/ext/standard/tests/strings/htmlentities-utf.phpt
+++ b/ext/standard/tests/strings/htmlentities-utf.phpt
@@ -3,7 +3,7 @@ HTML entities with invalid chars
--INI--
output_handler=
--FILE--
-<?php
+<?php
@setlocale (LC_CTYPE, "C");
$strings = array("<", "\xD0", "\xD0\x90", "\xD0\x90\xD0", "\xD0\x90\xD0\xB0", "\xE0", "A\xE0", "\xE0\x80", "\xE0\x79", "\xE0\x80\xBE",
"Voil\xE0", "Clich\xE9s",
diff --git a/ext/standard/tests/strings/htmlentities02.phpt b/ext/standard/tests/strings/htmlentities02.phpt
index 5d708c21c8..161f02e24a 100644
--- a/ext/standard/tests/strings/htmlentities02.phpt
+++ b/ext/standard/tests/strings/htmlentities02.phpt
@@ -1,5 +1,5 @@
--TEST--
-htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15)
+htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15)
--SKIPIF--
<?php
$result = (bool)setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro');
diff --git a/ext/standard/tests/strings/htmlentities20.phpt b/ext/standard/tests/strings/htmlentities20.phpt
index 92c996bcb4..ff52aca07a 100644
--- a/ext/standard/tests/strings/htmlentities20.phpt
+++ b/ext/standard/tests/strings/htmlentities20.phpt
@@ -6,7 +6,7 @@ function codepoint_to_utf8($k) {
if ($k < 0x80) {
$retval = pack('C', $k);
} else if ($k < 0x800) {
- $retval = pack('C2',
+ $retval = pack('C2',
0xc0 | ($k >> 6),
0x80 | ($k & 0x3f));
} else if ($k < 0x10000) {
diff --git a/ext/standard/tests/strings/htmlentities22.phpt b/ext/standard/tests/strings/htmlentities22.phpt
index f11982044d..82dae2ba08 100644
--- a/ext/standard/tests/strings/htmlentities22.phpt
+++ b/ext/standard/tests/strings/htmlentities22.phpt
@@ -40,7 +40,7 @@ function test($flag, $flag2=ENT_DISALLOWED, $charset="UTF-8") {
$i++;
$a = htmlentities($test, $flag | $flag2, $charset, FALSE);
$b = htmlspecialchars($test, $flag | $flag2, $charset, FALSE);
-
+
if ($a == $b)
echo sprintf("%s\t%s", $test, $a==$test?"NOT CHANGED":"CHANGED"), "\n";
else
diff --git a/ext/standard/tests/strings/htmlentities_html4.phpt b/ext/standard/tests/strings/htmlentities_html4.phpt
index 22b0305ced..5d784c2af5 100644
--- a/ext/standard/tests/strings/htmlentities_html4.phpt
+++ b/ext/standard/tests/strings/htmlentities_html4.phpt
@@ -6,7 +6,7 @@ function utf32_utf8($k) {
if ($k < 0x80) {
$retval = pack('C', $k);
} else if ($k < 0x800) {
- $retval = pack('C2',
+ $retval = pack('C2',
0xc0 | ($k >> 6),
0x80 | ($k & 0x3f));
} else if ($k < 0x10000) {
diff --git a/ext/standard/tests/strings/htmlentities_html5.phpt b/ext/standard/tests/strings/htmlentities_html5.phpt
index e7c216a292..427ba0bc35 100644
--- a/ext/standard/tests/strings/htmlentities_html5.phpt
+++ b/ext/standard/tests/strings/htmlentities_html5.phpt
@@ -6,7 +6,7 @@ function utf32_utf8($k) {
if ($k < 0x80) {
$retval = pack('C', $k);
} else if ($k < 0x800) {
- $retval = pack('C2',
+ $retval = pack('C2',
0xc0 | ($k >> 6),
0x80 | ($k & 0x3f));
} else if ($k < 0x10000) {
diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_basic.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_basic.phpt
index 9dba3c87c5..4e83b5de5c 100644
--- a/ext/standard/tests/strings/htmlspecialchars_decode_basic.phpt
+++ b/ext/standard/tests/strings/htmlspecialchars_decode_basic.phpt
@@ -21,7 +21,7 @@ var_dump( htmlspecialchars_decode($double_quote_string) );
// Calling htmlspecialchars_decode() with optional 'quote_style' argument
var_dump( htmlspecialchars_decode($single_quote_string, ENT_COMPAT) );
-var_dump( htmlspecialchars_decode($double_quote_string, ENT_COMPAT) );
+var_dump( htmlspecialchars_decode($double_quote_string, ENT_COMPAT) );
var_dump( htmlspecialchars_decode($single_quote_string, ENT_NOQUOTES) );
var_dump( htmlspecialchars_decode($double_quote_string, ENT_NOQUOTES) );
var_dump( htmlspecialchars_decode($single_quote_string, ENT_QUOTES) );
diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_variation3.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_variation3.phpt
index 007ff9e209..96a32351b4 100644
--- a/ext/standard/tests/strings/htmlspecialchars_decode_variation3.phpt
+++ b/ext/standard/tests/strings/htmlspecialchars_decode_variation3.phpt
@@ -7,7 +7,7 @@ Test htmlspecialchars_decode() function : usage variations - heredoc strings for
* Source code: ext/standard/html.c
*/
-/*
+/*
* testing htmlspecialchars_decode() with various heredoc strings as argument for $string
*/
diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_variation4.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_variation4.phpt
index 95889b3527..7520dee09c 100644
--- a/ext/standard/tests/strings/htmlspecialchars_decode_variation4.phpt
+++ b/ext/standard/tests/strings/htmlspecialchars_decode_variation4.phpt
@@ -21,7 +21,7 @@ $values = array (
'\r\tRoy&#039;s height &gt\r; Sam\t&#039;s height',
'\n 1\t3 &\tgt; 11 but 11 &\tlt; 12',
);
-
+
// loop through each element of the values array to check htmlspecialchars_decode() function with all possible arguments
$iterator = 1;
foreach($values as $value) {
diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_variation5.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_variation5.phpt
index ad86639576..85e34b8c8d 100644
--- a/ext/standard/tests/strings/htmlspecialchars_decode_variation5.phpt
+++ b/ext/standard/tests/strings/htmlspecialchars_decode_variation5.phpt
@@ -20,7 +20,7 @@ $strings = array (
"\r\tRoy&#039;s height &gt\r; Sam\t&#039;s height",
"\n 1\t3 &\tgt; 11 but 11 &\tlt; 12",
);
-
+
// loop through each element of the array to check htmlspecialchars_decode() function with all possible arguments
$iterator = 1;
foreach($strings as $value) {
diff --git a/ext/standard/tests/strings/http_build_query_variation2.phpt b/ext/standard/tests/strings/http_build_query_variation2.phpt
index 689db9e1fa..9edcf43e81 100644
--- a/ext/standard/tests/strings/http_build_query_variation2.phpt
+++ b/ext/standard/tests/strings/http_build_query_variation2.phpt
@@ -10,21 +10,21 @@ Adam Gegotek <adam [dot] gegotek [at] gmail [dot] com>
*/
$mDimensional = array(
- 20,
- 5 => 13,
+ 20,
+ 5 => 13,
"9" => array(
- 1 => "val1",
- 3 => "val2",
+ 1 => "val1",
+ 3 => "val2",
"string" => "string"
),
- "name" => "homepage",
+ "name" => "homepage",
"page" => 10,
"sort" => array(
- "desc",
+ "desc",
"admin" => array(
- "admin1",
+ "admin1",
"admin2" => array(
- "who" => "admin2",
+ "who" => "admin2",
2 => "test"
)
)
diff --git a/ext/standard/tests/strings/join_error.phpt b/ext/standard/tests/strings/join_error.phpt
index b283bf4cdb..3c72422907 100644
--- a/ext/standard/tests/strings/join_error.phpt
+++ b/ext/standard/tests/strings/join_error.phpt
@@ -25,7 +25,7 @@ var_dump( join($glue, $pieces, $extra_arg) );
// Less than expected number of arguments
echo "\n-- Testing join() with less than expected no. of arguments --\n";
$glue = 'string_val';
-
+
var_dump( join($glue));
echo "Done\n";
diff --git a/ext/standard/tests/strings/join_variation1.phpt b/ext/standard/tests/strings/join_variation1.phpt
index 6407f40dd0..1755df9edd 100644
--- a/ext/standard/tests/strings/join_variation1.phpt
+++ b/ext/standard/tests/strings/join_variation1.phpt
@@ -71,7 +71,7 @@ $values = array (
// null values
NULL,
null,
-
+
// resource variable
$fp,
diff --git a/ext/standard/tests/strings/join_variation2.phpt b/ext/standard/tests/strings/join_variation2.phpt
index ba21a25b12..03b3250b40 100644
--- a/ext/standard/tests/strings/join_variation2.phpt
+++ b/ext/standard/tests/strings/join_variation2.phpt
@@ -72,7 +72,7 @@ $values = array (
// resource variable
$fp,
-
+
// undefined variable
@$undefined_var,
diff --git a/ext/standard/tests/strings/join_variation3.phpt b/ext/standard/tests/strings/join_variation3.phpt
index 5b0ad5a528..93f9822e2a 100644
--- a/ext/standard/tests/strings/join_variation3.phpt
+++ b/ext/standard/tests/strings/join_variation3.phpt
@@ -22,21 +22,21 @@ $pieces_arrays = array (
array(), // empty array
array(NULL), // array with NULL
array("a","aaaa","b","bbbb","c","ccccc"),
-
+
// associative arrays
array(1 => "one", 2 => "two", 3 => "three"), // explicit numeric keys, string values
array("one" => 1, "two" => 2, "three" => 3 ), // string keys & numeric values
array( 1 => 10, 2 => 20, 4 => 40, 3 => 30), // explicit numeric keys and numeric values
array( "one" => "ten", "two" => "twenty", "three" => "thirty"), // string key/value
array("one" => 1, 2 => "two", 4 => "four"), //mixed
-
+
// associative array, containing null/empty/boolean values as key/value
array(NULL => "NULL", null => "null", "NULL" => NULL, "null" => null),
array(true => "true", false => "false", "false" => false, "true" => true),
array("" => "emptyd", '' => 'emptys', "emptyd" => "", 'emptys' => ''),
array(1 => '', 2 => "", 3 => NULL, 4 => null, 5 => false, 6 => true),
array('' => 1, "" => 2, NULL => 3, null => 4, false => 5, true => 6),
-
+
// array with repetative keys
array("One" => 1, "two" => 2, "One" => 10, "two" => 20, "three" => 3)
);
@@ -44,14 +44,14 @@ $pieces_arrays = array (
// a multichar glue value
$glue = "], [";
-// loop through each $pieces_arrays element and call join()
+// loop through each $pieces_arrays element and call join()
$iteration = 1;
for($index = 0; $index < count($pieces_arrays); $index ++) {
echo "-- Iteration $iteration --\n";
var_dump( join($glue, $pieces_arrays[$index]) );
$iteration ++;
}
-
+
echo "Done\n";
?>
--EXPECTF--
diff --git a/ext/standard/tests/strings/levenshtein.phpt b/ext/standard/tests/strings/levenshtein.phpt
index 249b532da7..1ac05cf2ae 100644
--- a/ext/standard/tests/strings/levenshtein.phpt
+++ b/ext/standard/tests/strings/levenshtein.phpt
@@ -1,11 +1,11 @@
--TEST--
levenshtein() function test
--FILE--
-<?php
-
+<?php
+
function test_me($title,$expect,$text1,$text2,$cost1="",$cost2="",$cost3="") {
-
- if ($cost1=="") {
+
+ if ($cost1=="") {
$result=levenshtein($text1,$text2);
}
elseif ($cost2=="") {
@@ -15,52 +15,52 @@ function test_me($title,$expect,$text1,$text2,$cost1="",$cost2="",$cost3="") {
$result=levenshtein($text1,$text2,$cost1,$cost2,$cost3);
}
if($result==$expect) return 0;
-
+
echo "$title: result is $result instead of $expect ";
echo "for '$text1'/'$text2' ";
if($cost1) echo "($cost1:$cost2:$cost3)";
echo "\n";
-
+
return 1;
}
-
+
$n=0;
-
+
$n += test_me("equal" , 0, "12345", "12345");
$n += test_me("1st empty" , 3, "", "xzy");
$n += test_me("2nd empty" , 3, "xzy", "");
$n += test_me("both empty" , 0, "", "");
$n += test_me("1 char" , 1, "1", "2");
$n += test_me("2 char swap", 2, "12", "21");
-
+
$n += test_me("inexpensive delete", 2, "2121", "11", 2, 1, 1);
$n += test_me("expensive delete" , 10, "2121", "11", 2, 1, 5);
$n += test_me("inexpensive insert", 2, "11", "2121", 1, 1, 1);
$n += test_me("expensive insert" , 10, "11", "2121", 5, 1, 1);
-
+
$n += test_me("expensive replace" , 3, "111", "121", 2, 3, 2);
$n += test_me("very expensive replace", 4, "111", "121", 2, 9, 2);
-
+
$n += test_me("bug #7368", 2, "13458", "12345");
$n += test_me("bug #7368", 2, "1345", "1234");
-
+
$n += test_me("bug #6562", 1, "debugg", "debug");
$n += test_me("bug #6562", 1, "ddebug", "debug");
$n += test_me("bug #6562", 2, "debbbug", "debug");
$n += test_me("bug #6562", 1, "debugging", "debuging");
-
+
$n += test_me("bug #16473", 2, "a", "bc");
$n += test_me("bug #16473", 2, "xa", "xbc");
$n += test_me("bug #16473", 2, "xax", "xbcx");
$n += test_me("bug #16473", 2, "ax", "bcx");
-
+
$n += test_me("custom", -1, "111", "121", "my_levcode");
$n += test_me("lt maxlength1", 254, "AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsu", "A");
$n += test_me("gt maxlength1", -1, "AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuv", "A");
-
+
$n += test_me("lt maxlength2", 254, "A", "AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsu");
$n += test_me("gt maxlength2", -1, "A", "AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuvwxyzAbcdefghijklmnopqrtsuv");
-
+
echo ($n==0)?"all passed\n":"$n failed\n";
var_dump(levenshtein(array(), array()));
diff --git a/ext/standard/tests/strings/ltrim.phpt b/ext/standard/tests/strings/ltrim.phpt
index cddce24688..638c93557f 100644
--- a/ext/standard/tests/strings/ltrim.phpt
+++ b/ext/standard/tests/strings/ltrim.phpt
@@ -36,7 +36,7 @@ var_dump( ltrim($str, "\nusi") );
var_dump ( ltrim("ABCXYZltrim test", "A..Z") ); /* with characters range as second Argument */
var_dump ( ltrim("0123456789ltrim test", "0..9") ); /* with numbers range as second Argument */
var_dump ( ltrim("@$#ltrim test", "#@$") ); /* with some special characters as second Argument */
-
+
echo "\n *** Output for scalar argument) ***\n";
var_dump( ltrim( 12345 ) ); /* Scalar argument */
diff --git a/ext/standard/tests/strings/ltrim_basic.phpt b/ext/standard/tests/strings/ltrim_basic.phpt
index 74769cac9f..0d0eae88f7 100644
--- a/ext/standard/tests/strings/ltrim_basic.phpt
+++ b/ext/standard/tests/strings/ltrim_basic.phpt
@@ -18,13 +18,13 @@ $alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
echo "\n-- Trim string with all white space characters --\n";
var_dump(ltrim($text));
-echo "\n-- Trim non-whitespace from a string --\n";
+echo "\n-- Trim non-whitespace from a string --\n";
var_dump(ltrim($hello, "=!"));
-echo "\n-- Trim some non-white space characters from a string --\n";
+echo "\n-- Trim some non-white space characters from a string --\n";
var_dump(ltrim($hello, "!oleH="));
-echo "\n-- Trim some non-white space characters from a string suing a character range --\n";
+echo "\n-- Trim some non-white space characters from a string suing a character range --\n";
var_dump(ltrim($alpha, "A..Z"));
diff --git a/ext/standard/tests/strings/ltrim_variation1.phpt b/ext/standard/tests/strings/ltrim_variation1.phpt
index 5e88526609..48b76e9be7 100644
--- a/ext/standard/tests/strings/ltrim_variation1.phpt
+++ b/ext/standard/tests/strings/ltrim_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return " sample object ";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/ltrim_variation2.phpt b/ext/standard/tests/strings/ltrim_variation2.phpt
index 194acd187f..40254843a1 100644
--- a/ext/standard/tests/strings/ltrim_variation2.phpt
+++ b/ext/standard/tests/strings/ltrim_variation2.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return " sample object ";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/md5_basic2.phpt b/ext/standard/tests/strings/md5_basic2.phpt
index 7098dc41b5..73bcc33bec 100644
--- a/ext/standard/tests/strings/md5_basic2.phpt
+++ b/ext/standard/tests/strings/md5_basic2.phpt
@@ -13,7 +13,7 @@ $md5_raw = md5($str, true);
var_dump(bin2hex($md5_raw));
$md5 = md5($str, false);
-
+
if (strcmp(bin2hex($md5_raw), $md5) == 0 ) {
echo "TEST PASSED\n";
} else {
diff --git a/ext/standard/tests/strings/metaphone.phpt b/ext/standard/tests/strings/metaphone.phpt
index d1aa9af543..ef1d23d89a 100644
--- a/ext/standard/tests/strings/metaphone.phpt
+++ b/ext/standard/tests/strings/metaphone.phpt
@@ -13,7 +13,7 @@ var_dump(metaphone("valid phrase", 0));
var_dump(metaphone("valid phrase", 10000));
$array = array(
-"They fell forward, grovelling heedlessly on the cold earth.",
+"They fell forward, grovelling heedlessly on the cold earth.",
"But the shadow of horror wheeled and returned, passing lower now, right above them, sweeping the fen-reek with its ghastly wings.",
"And then it was gone, flying back to Mordor with the speed of the wrath of Sauron; and behind it the wind roared away, leaving the Dead Marshes bare and bleak.",
"The naked waste, as far as the eye could pierce, even to the distant menace of the mountains, was dappled with the fitful moonlight."
@@ -25,7 +25,7 @@ foreach($array as $str) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: metaphone() expects at least 1 parameter, 0 given in %s on line %d
NULL
string(0) ""
diff --git a/ext/standard/tests/strings/money_format_basic1.phpt b/ext/standard/tests/strings/money_format_basic1.phpt
index 70b5ca574e..8b87c375ac 100644
--- a/ext/standard/tests/strings/money_format_basic1.phpt
+++ b/ext/standard/tests/strings/money_format_basic1.phpt
@@ -45,12 +45,12 @@ echo gettype(money_format('%=*14#8.2n', $value))."\n";
echo gettype(money_format('%=*14#8.2n', $negative_value))."\n";
// Same again but disable grouping character
-echo "Format again but disable grouping character\n";
+echo "Format again but disable grouping character\n";
echo gettype(money_format('%=*^14#8.2n', $value))."\n";
echo gettype(money_format('%=*^14#8.2n', $negative_value))."\n";
// Same again but suppress currency symbol
-echo "Format again suppress currency symbol\n";
+echo "Format again suppress currency symbol\n";
echo gettype(money_format('%=*!14#8.2n', $value))."\n";
echo gettype(money_format('%=*!14#8.2n', $negative_value))."\n";
diff --git a/ext/standard/tests/strings/money_format_variation1.phpt b/ext/standard/tests/strings/money_format_variation1.phpt
index d4fa687db3..4a381c183a 100644
--- a/ext/standard/tests/strings/money_format_variation1.phpt
+++ b/ext/standard/tests/strings/money_format_variation1.phpt
@@ -26,11 +26,11 @@ unset($unset_var);
//defining a couple of sample classes
class class_no_tostring {
}
-
+
class class_with_tostring {
public function __toString() {
return " sample object ";
- }
+ }
}
@@ -47,43 +47,43 @@ $formats = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// string values
/*19*/ "abcd",
'abcd',
"0x12f",
"%=*!14#8.2nabcd",
-
+
// objects
/*23*/ new class_no_tostring(),
new class_with_tostring(),
-
+
// resource
/*25*/ $file_handle,
-
+
// undefined variable
/*26*/ @$undefined_var,
-
+
// unset variable
/*27*/ @$unset_var
);
@@ -99,7 +99,7 @@ foreach($formats as $format) {
}
// close the file handle
-fclose($file_handle);
+fclose($file_handle);
?>
===Done===
diff --git a/ext/standard/tests/strings/money_format_variation2.phpt b/ext/standard/tests/strings/money_format_variation2.phpt
index 6e01bf03dd..c8de58bded 100644
--- a/ext/standard/tests/strings/money_format_variation2.phpt
+++ b/ext/standard/tests/strings/money_format_variation2.phpt
@@ -26,11 +26,11 @@ unset($unset_var);
//defining a couple of sample classes
class class_no_tostring {
}
-
+
class class_with_tostring {
public function __toString() {
return " sample object ";
- }
+ }
}
@@ -47,43 +47,43 @@ $numbers = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// string values
/*19*/ "abcd",
'abcd',
"0x12f",
"%=*!14#8.2nabcd",
-
+
// objects
/*23*/ new class_no_tostring(),
new class_with_tostring(),
-
+
// resource
/*25*/ $file_handle,
-
+
// undefined variable
/*26*/ @$undefined_var,
-
+
// unset variable
/*27*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/nl2br.phpt b/ext/standard/tests/strings/nl2br.phpt
index 6a3b94023c..728f3339a0 100644
--- a/ext/standard/tests/strings/nl2br.phpt
+++ b/ext/standard/tests/strings/nl2br.phpt
@@ -9,11 +9,11 @@ nl2br() function
var_dump(nl2br("\n"));
var_dump(nl2br("\r"));
var_dump(nl2br("\n\r"));
-
+
var_dump(nl2br("\n\r\r\n\r\r\r\r"));
var_dump(nl2br("\n\r\n\n\r\n\r\r\n\r\n"));
var_dump(nl2br("\n\r\n\n\n\n\r\r\r\r\n\r"));
-
+
?>
--EXPECT--
string(4) "test"
diff --git a/ext/standard/tests/strings/nl_langinfo_basic.phpt b/ext/standard/tests/strings/nl_langinfo_basic.phpt
index 7502e2d471..b6f9fecc91 100644
--- a/ext/standard/tests/strings/nl_langinfo_basic.phpt
+++ b/ext/standard/tests/strings/nl_langinfo_basic.phpt
@@ -2,7 +2,7 @@
Test nl_langinfo() function : basic functionality
--SKIPIF--
<?php
-if( substr(PHP_OS, 0, 3) == 'WIN'){
+if( substr(PHP_OS, 0, 3) == 'WIN'){
die('skip Not for Windows');
}
?>
@@ -24,7 +24,7 @@ var_dump(nl_langinfo(ABMON_7));
var_dump(nl_langinfo(MON_4));
var_dump(nl_langinfo(RADIXCHAR));
-setlocale(LC_ALL, $original);
+setlocale(LC_ALL, $original);
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/strings/nl_langinfo_error1.phpt b/ext/standard/tests/strings/nl_langinfo_error1.phpt
index 7702b012e9..0bfe2956cb 100644
--- a/ext/standard/tests/strings/nl_langinfo_error1.phpt
+++ b/ext/standard/tests/strings/nl_langinfo_error1.phpt
@@ -2,7 +2,7 @@
Test nl_langinfo() function : error conditions
--SKIPIF--
<?php
-if( substr(PHP_OS, 0, 3) == 'WIN'){
+if( substr(PHP_OS, 0, 3) == 'WIN'){
die('skip Not for Windows');
}
?>
diff --git a/ext/standard/tests/strings/nl_langinfo_variation1.phpt b/ext/standard/tests/strings/nl_langinfo_variation1.phpt
index c8c92855fc..180991e400 100644
--- a/ext/standard/tests/strings/nl_langinfo_variation1.phpt
+++ b/ext/standard/tests/strings/nl_langinfo_variation1.phpt
@@ -2,7 +2,7 @@
Test nl_langinfo() function : unexpected inputs for '$tem' argument
--SKIPIF--
<?php
-if( substr(PHP_OS, 0, 3) == 'WIN'){
+if( substr(PHP_OS, 0, 3) == 'WIN'){
die('skip Not for Windows');
}
?>
@@ -26,7 +26,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -38,15 +38,15 @@ $items = array (
/*1*/ 2147483647,
-2147483648,
-20,
-
+
// array values
/*4*/ array(),
array(0),
array(1, 2),
-
+
// objects
/*7*/ new sample(),
-
+
// resource
/*8*/ $file_handle,
);
@@ -63,7 +63,7 @@ foreach($items as $item) {
}
fclose($file_handle); //closing the file handle
-setlocale(LC_ALL, $original);
+setlocale(LC_ALL, $original);
?>
===DONE===
diff --git a/ext/standard/tests/strings/number_format_basic.phpt b/ext/standard/tests/strings/number_format_basic.phpt
index 0e467b70d0..631bba0558 100644
--- a/ext/standard/tests/strings/number_format_basic.phpt
+++ b/ext/standard/tests/strings/number_format_basic.phpt
@@ -7,7 +7,7 @@ Test number_format() - basic function test number_format()
* Description: Format a number with grouped thousands
* Source code: ext/standard/string.c
*/
-
+
echo "*** Testing number_format() : basic functionality ***\n";
$values = array(1234.5678,
@@ -21,7 +21,7 @@ $values = array(1234.5678,
"12.3456789e1",
null,
true,
- false);
+ false);
echo "\n-- number_format tests.....default --\n";
for ($i = 0; $i < count($values); $i++) {
diff --git a/ext/standard/tests/strings/number_format_error.phpt b/ext/standard/tests/strings/number_format_error.phpt
index 334b63eacc..933466d12b 100644
--- a/ext/standard/tests/strings/number_format_error.phpt
+++ b/ext/standard/tests/strings/number_format_error.phpt
@@ -7,7 +7,7 @@ Test number_format() - wrong params test number_format()
* Description: Format a number with grouped thousands
* Source code: ext/standard/string.c
*/
-
+
echo "*** Testing number_format() : error conditions ***\n";
echo "\n-- Testing number_format() function with less than expected no. of arguments --\n";
diff --git a/ext/standard/tests/strings/ord_basic.phpt b/ext/standard/tests/strings/ord_basic.phpt
index 19f3ea28d6..c445be1e49 100644
--- a/ext/standard/tests/strings/ord_basic.phpt
+++ b/ext/standard/tests/strings/ord_basic.phpt
@@ -26,7 +26,7 @@ var_dump(ord("Hello"));
for ($i = 0; $i < 255; $i++) {
if (ord(chr($i)) != $i) {
exit("TEST FAILED: $i does not round trip\n");
- }
+ }
}
?>
diff --git a/ext/standard/tests/strings/ord_variation1.phpt b/ext/standard/tests/strings/ord_variation1.phpt
index 06d9364a08..ffca230dba 100644
--- a/ext/standard/tests/strings/ord_variation1.phpt
+++ b/ext/standard/tests/strings/ord_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -33,36 +33,36 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/pack_float.phpt b/ext/standard/tests/strings/pack_float.phpt
index 4cfeb92e4b..b86c599299 100644
--- a/ext/standard/tests/strings/pack_float.phpt
+++ b/ext/standard/tests/strings/pack_float.phpt
@@ -19,7 +19,7 @@ var_dump(
bin2hex(pack("e", -10000000000000000)),
bin2hex(pack("e", -0.591234709823149)),
bin2hex(pack("e", -12345678901234567890.1234567898765432123456789)),
-
+
'pack E',
bin2hex(pack("E", "")),
bin2hex(pack("E", "a")),
@@ -36,7 +36,7 @@ var_dump(
bin2hex(pack("E", -10000000000000000)),
bin2hex(pack("E", -0.591234709823149)),
bin2hex(pack("E", -12345678901234567890.1234567898765432123456789)),
-
+
'pack g',
bin2hex(pack("g", "")),
bin2hex(pack("g", "a")),
@@ -53,7 +53,7 @@ var_dump(
bin2hex(pack("g", -10000000000000000)),
bin2hex(pack("g", -0.591234709823149)),
bin2hex(pack("g", -12345678901234567890.1234567898765432123456789)),
-
+
'pack G',
bin2hex(pack("G", "")),
bin2hex(pack("G", "a")),
@@ -70,7 +70,7 @@ var_dump(
bin2hex(pack("G", -10000000000000000)),
bin2hex(pack("G", -0.591234709823149)),
bin2hex(pack("G", -12345678901234567890.1234567898765432123456789)),
-
+
'unpack e',
unpack('e', hex2bin('0000000000000000')),
unpack('e', hex2bin('000000000000f03f')),
@@ -80,7 +80,7 @@ var_dump(
unpack('e', hex2bin('0080e03779c341c3')),
unpack('e', hex2bin('4a6ade0d65ebe2bf')),
unpack('e', hex2bin('e1639d31956ae5c3')),
-
+
'unpack E',
unpack('E', hex2bin('3ff0000000000000')),
unpack('E', hex2bin('4341c37937e08000')),
@@ -90,7 +90,7 @@ var_dump(
unpack('E', hex2bin('c341c37937e08000')),
unpack('E', hex2bin('bfe2eb650dde6a4a')),
unpack('E', hex2bin('c3e56a95319d63e1')),
-
+
'unpack g',
unpack('g', hex2bin('0000803f')),
unpack('g', hex2bin('ca1b0e5a')),
@@ -100,7 +100,7 @@ var_dump(
unpack('g', hex2bin('ca1b0eda')),
unpack('g', hex2bin('285b17bf')),
unpack('g', hex2bin('aa542bdf')),
-
+
'unpack G',
unpack('G', hex2bin('3f800000')),
unpack('G', hex2bin('5a0e1bca')),
@@ -110,7 +110,7 @@ var_dump(
unpack('G', hex2bin('da0e1bca')),
unpack('G', hex2bin('bf175b28')),
unpack('G', hex2bin('df2b54aa'))
-
+
);
?>
--EXPECT--
diff --git a/ext/standard/tests/strings/parse_str_basic1.phpt b/ext/standard/tests/strings/parse_str_basic1.phpt
index a1222814f7..d72fb2624c 100644
--- a/ext/standard/tests/strings/parse_str_basic1.phpt
+++ b/ext/standard/tests/strings/parse_str_basic1.phpt
@@ -2,7 +2,7 @@
Test parse_str() function : basic functionality
--FILE--
<?php
-
+
/* Prototype : void parse_str ( string $str [, array &$arr ] )
* Description: Parses the string into variables
* Source code: ext/standard/string.c
@@ -29,7 +29,7 @@ var_dump($res2);
echo "\nBasic test with an existing array as results array\n";
$res3_array = array(1,2,3,4);
var_dump(parse_str($s1, $res3_array));
-var_dump($res3_array);
+var_dump($res3_array);
?>
===DONE===
diff --git a/ext/standard/tests/strings/parse_str_error1.phpt b/ext/standard/tests/strings/parse_str_error1.phpt
index a9c902e807..a2402b7813 100644
--- a/ext/standard/tests/strings/parse_str_error1.phpt
+++ b/ext/standard/tests/strings/parse_str_error1.phpt
@@ -15,7 +15,7 @@ echo "\n-- Testing htmlentities() function with less than expected no. of argume
parse_str();
echo "\n-- Testing htmlentities() function with more than expected no. of arguments --\n";
$s1 = "first=val1&second=val2&third=val3";
-parse_str($s1, $res_array, true);
+parse_str($s1, $res_array, true);
?>
===DONE===
diff --git a/ext/standard/tests/strings/pathinfo.phpt b/ext/standard/tests/strings/pathinfo.phpt
index d9c3a2ed6c..a3d735069d 100644
--- a/ext/standard/tests/strings/pathinfo.phpt
+++ b/ext/standard/tests/strings/pathinfo.phpt
@@ -26,7 +26,7 @@ var_dump(pathinfo(__FILE__, PATHINFO_DIRNAME|PATHINFO_BASENAME));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: pathinfo() expects at least 1 parameter, 0 given in %s on line %d
NULL
array(2) {
diff --git a/ext/standard/tests/strings/php_strip_whitespace.phpt b/ext/standard/tests/strings/php_strip_whitespace.phpt
index 4f7ef909e9..d9376b101a 100644
--- a/ext/standard/tests/strings/php_strip_whitespace.phpt
+++ b/ext/standard/tests/strings/php_strip_whitespace.phpt
@@ -39,7 +39,7 @@ var_dump(php_strip_whitespace($filename));
@unlink($filename);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: php_strip_whitespace() expects exactly 1 parameter, 0 given in %s on line %d
bool(false)
diff --git a/ext/standard/tests/strings/print_basic.phpt b/ext/standard/tests/strings/print_basic.phpt
index a4bc8c239a..27862c74e8 100644
--- a/ext/standard/tests/strings/print_basic.phpt
+++ b/ext/standard/tests/strings/print_basic.phpt
@@ -50,7 +50,7 @@ echo "\n-- Iteration 9 --\n";
print $foo; // foobar
echo "\n-- Iteration 10 --\n";
-$variable = "VARIABLE";
+$variable = "VARIABLE";
print <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
diff --git a/ext/standard/tests/strings/print_variation1.phpt b/ext/standard/tests/strings/print_variation1.phpt
index 233a21c729..18ed423278 100644
--- a/ext/standard/tests/strings/print_variation1.phpt
+++ b/ext/standard/tests/strings/print_variation1.phpt
@@ -19,7 +19,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $inputs = array (
-2,
2147483647,
-2147483648,
-
+
// float values
/*6*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*9*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*12*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*16*/ NULL,
null,
-
+
// objects
/*18*/ new sample(),
-
+
// resource
/*19*/ $file_handle,
-
+
// undefined variable
/*20*/ @$undefined_var,
-
+
// unset variable
/*21*/ @$unset_var
);
@@ -74,7 +74,7 @@ foreach($inputs as $input) {
echo "-- Iteration $count --\n";
$res = print($input);
echo "\n";
- var_dump($res);
+ var_dump($res);
$count ++;
}
diff --git a/ext/standard/tests/strings/printf_basic2.phpt b/ext/standard/tests/strings/printf_basic2.phpt
index f57b263fbf..6448fe6609 100644
--- a/ext/standard/tests/strings/printf_basic2.phpt
+++ b/ext/standard/tests/strings/printf_basic2.phpt
@@ -19,7 +19,7 @@ $arg1 = 111;
$arg2 = 222;
$arg3 = 333;
-echo "\n-- Calling printf() with no arguments --\n";
+echo "\n-- Calling printf() with no arguments --\n";
$result = printf($format);
echo "\n";
var_dump($result);
diff --git a/ext/standard/tests/strings/printf_basic4.phpt b/ext/standard/tests/strings/printf_basic4.phpt
index da8f29e795..e5c07fd03c 100644
--- a/ext/standard/tests/strings/printf_basic4.phpt
+++ b/ext/standard/tests/strings/printf_basic4.phpt
@@ -19,7 +19,7 @@ $arg1 = TRUE;
$arg2 = FALSE;
$arg3 = true;
-echo "\n-- Calling printf() with no arguments --\n";
+echo "\n-- Calling printf() with no arguments --\n";
$result = printf($format);
echo "\n";
var_dump($result);
diff --git a/ext/standard/tests/strings/printf_basic7.phpt b/ext/standard/tests/strings/printf_basic7.phpt
index f7e0d2b4f6..6675ddb29e 100644
--- a/ext/standard/tests/strings/printf_basic7.phpt
+++ b/ext/standard/tests/strings/printf_basic7.phpt
@@ -25,7 +25,7 @@ $arg1 = -1111;
$arg2 = -1234567;
$arg3 = +2345432;
-echo "\n-- Calling printf() with no arguments --\n";
+echo "\n-- Calling printf() with no arguments --\n";
$result = printf($format);
echo "\n";
var_dump($result);
diff --git a/ext/standard/tests/strings/printf_basic8.phpt b/ext/standard/tests/strings/printf_basic8.phpt
index 626797ffbf..3ec0eda5ec 100644
--- a/ext/standard/tests/strings/printf_basic8.phpt
+++ b/ext/standard/tests/strings/printf_basic8.phpt
@@ -29,7 +29,7 @@ $result = printf($format);
echo "\n";
var_dump($result);
-echo "\n-- Calling printf() with one arguments --\n";
+echo "\n-- Calling printf() with one arguments --\n";
$result = printf($format1, $arg1);
echo "\n";
var_dump($result);
diff --git a/ext/standard/tests/strings/printf_basic9.phpt b/ext/standard/tests/strings/printf_basic9.phpt
index db1ebba2f7..cff579de03 100644
--- a/ext/standard/tests/strings/printf_basic9.phpt
+++ b/ext/standard/tests/strings/printf_basic9.phpt
@@ -25,12 +25,12 @@ $arg1 = 11;
$arg2 = 132;
$arg3 = 177;
-echo "\n-- Calling printf() with no arguments --\n";
+echo "\n-- Calling printf() with no arguments --\n";
$result = printf($format);
echo "\n";
var_dump($result);
-echo "\n-- Calling printf() with one arguments --\n";
+echo "\n-- Calling printf() with one arguments --\n";
$result = printf($format1, $arg1);
echo "\n";
var_dump($result);
@@ -38,7 +38,7 @@ $result = printf($format11, $arg1);
echo "\n";
var_dump($result);
-echo "\n-- Calling printf() with two arguments --\n";
+echo "\n-- Calling printf() with two arguments --\n";
$result = printf($format2, $arg1, $arg2);
echo "\n";
var_dump($result);
@@ -46,7 +46,7 @@ $result = printf($format22, $arg1, $arg2);
echo "\n";
var_dump($result);
-echo "\n-- Calling printf() with three arguments --\n";
+echo "\n-- Calling printf() with three arguments --\n";
$result = printf($format3, $arg1, $arg2, $arg3);
echo "\n";
var_dump($result);
diff --git a/ext/standard/tests/strings/printf_error.phpt b/ext/standard/tests/strings/printf_error.phpt
index 6645613c83..2e13f7ca16 100644
--- a/ext/standard/tests/strings/printf_error.phpt
+++ b/ext/standard/tests/strings/printf_error.phpt
@@ -21,7 +21,7 @@ $arg1 = 'one';
$arg2 = 'two';
echo "\n-- Call printf with one argument less than expected --\n";
-var_dump( printf($format1) );
+var_dump( printf($format1) );
var_dump( printf($format2,$arg1) );
var_dump( printf($format3,$arg1,$arg2) );
diff --git a/ext/standard/tests/strings/printf_variation1.phpt b/ext/standard/tests/strings/printf_variation1.phpt
index e71e564da2..fcf69ebaa7 100644
--- a/ext/standard/tests/strings/printf_variation1.phpt
+++ b/ext/standard/tests/strings/printf_variation1.phpt
@@ -40,44 +40,44 @@ $values = array(
1,
12345,
-2345,
-
+
// float data
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.7654321E-10,
.5,
-
+
// array data
/*10*/ array(),
array(0),
array(1),
array(1, 2),
array('color' => 'red', 'item' => 'pen'),
-
+
// null data
/*15*/ NULL,
null,
-
+
// boolean data
/*17*/ true,
false,
TRUE,
FALSE,
-
+
// empty data
/*21*/ "",
'',
-
+
// object data
/*23*/ new sample(),
-
+
// undefined data
/*24*/ @$undefined_var,
-
+
// unset data
/*25*/ @$unset_var,
-
+
// resource data
/*26*/ $file_handle
);
@@ -87,12 +87,12 @@ $values = array(
$count = 1;
foreach($values as $value) {
echo "\n-- Iteration $count --\n";
-
+
// with default argument
$result = printf($value);
echo "\n";
var_dump($result);
-
+
// with two arguments
$result = printf($value, $arg1);
echo "\n";
diff --git a/ext/standard/tests/strings/printf_variation2.phpt b/ext/standard/tests/strings/printf_variation2.phpt
index be66ad8fca..8e7d5ec910 100644
--- a/ext/standard/tests/strings/printf_variation2.phpt
+++ b/ext/standard/tests/strings/printf_variation2.phpt
@@ -24,7 +24,7 @@ class sample
{
public function __toString() {
return "Object";
- }
+ }
}
// creating a file resource
@@ -38,48 +38,48 @@ $values = array(
1,
12345,
-2345,
-
+
// float data
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.7654321E-10,
.5,
-
+
// array data
/*10*/ array(),
array(0),
array(1),
array(1, 2),
array('color' => 'red', 'item' => 'pen'),
-
+
// null data
/*15*/ NULL,
null,
-
+
// boolean data
/*17*/ true,
false,
TRUE,
FALSE,
-
+
// empty data
/*21*/ "",
'',
-
+
// string data
/*23*/ "string",
'string',
-
+
// object data
/*25*/ new sample(),
-
+
// undefined data
/*26*/ @$undefined_var,
-
+
// unset data
/*27*/ @$unset_var,
-
+
// resource data
/*28*/ $file_handle
);
@@ -89,7 +89,7 @@ $values = array(
$count = 1;
foreach($values as $value) {
echo "\n-- Iteration $count --\n";
-
+
// with two arguments
$result = printf($format, $value);
echo "\n";
@@ -99,8 +99,8 @@ foreach($values as $value) {
$result = printf($format, $value, $arg2);
echo "\n";
var_dump($result);
-
- $count++;
+
+ $count++;
};
// closing the resource
diff --git a/ext/standard/tests/strings/quoted_printable_decode_basic.phpt b/ext/standard/tests/strings/quoted_printable_decode_basic.phpt
index d58d3f9056..1720056912 100644
--- a/ext/standard/tests/strings/quoted_printable_decode_basic.phpt
+++ b/ext/standard/tests/strings/quoted_printable_decode_basic.phpt
@@ -13,7 +13,7 @@ $str = "=FAwow-factor=C1=d0=D5=DD=C5=CE=CE=D9=C5=0A=
=20=D4=cf=D2=C7=CF=D7=D9=C5=
=20=
=D0=
-=D2=CF=C5=CB=D4=D9";
+=D2=CF=C5=CB=D4=D9";
var_dump(bin2hex(quoted_printable_decode($str)));
diff --git a/ext/standard/tests/strings/quoted_printable_decode_error.phpt b/ext/standard/tests/strings/quoted_printable_decode_error.phpt
index 0515fea2a7..d823a89eaf 100644
--- a/ext/standard/tests/strings/quoted_printable_decode_error.phpt
+++ b/ext/standard/tests/strings/quoted_printable_decode_error.phpt
@@ -17,7 +17,7 @@ $str = "=FAwow-factor=C1=d0=D5=DD=C5=CE=CE=D9=C5=0A=
=20=D4=cf=D2=C7=CF=D7=D9=C5=
=20=
=D0=
-=D2=CF=C5=CB=D4=D9";
+=D2=CF=C5=CB=D4=D9";
$extra_arg = 10;
var_dump( quoted_printable_decode($str, $extra_arg) );
diff --git a/ext/standard/tests/strings/quoted_printable_decode_variation1.phpt b/ext/standard/tests/strings/quoted_printable_decode_variation1.phpt
index ce35cea6b8..8d147c0e67 100644
--- a/ext/standard/tests/strings/quoted_printable_decode_variation1.phpt
+++ b/ext/standard/tests/strings/quoted_printable_decode_variation1.phpt
@@ -40,44 +40,44 @@ $values = array(
1,
12345,
-2345,
-
+
// float data
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.7654321E-10,
.5,
-
+
// array data
/*10*/ array(),
array(0),
array(1),
array(1, 2),
array('color' => 'red', 'item' => 'pen'),
-
+
// null data
/*15*/ NULL,
null,
-
+
// boolean data
/*17*/ true,
false,
TRUE,
FALSE,
-
+
// empty data
/*21*/ "",
'',
-
+
// object data
/*23*/ new sample(),
-
+
// undefined data
/*24*/ @$undefined_var,
-
+
// unset data
/*25*/ @$unset_var,
-
+
// resource data
/*26*/ $file_handle
);
diff --git a/ext/standard/tests/strings/quoted_printable_encode_001.phpt b/ext/standard/tests/strings/quoted_printable_encode_001.phpt
index 6a22da8afc..1ce7d791dc 100644
--- a/ext/standard/tests/strings/quoted_printable_encode_001.phpt
+++ b/ext/standard/tests/strings/quoted_printable_encode_001.phpt
@@ -16,7 +16,7 @@ var_dump(quoted_printable_encode(false));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: quoted_printable_encode() expects exactly 1 parameter, 0 given in %s on line %d
NULL
string(0) ""
diff --git a/ext/standard/tests/strings/rtrim_basic.phpt b/ext/standard/tests/strings/rtrim_basic.phpt
index 7193b59866..53661a8e70 100644
--- a/ext/standard/tests/strings/rtrim_basic.phpt
+++ b/ext/standard/tests/strings/rtrim_basic.phpt
@@ -20,13 +20,13 @@ $binary = "Example string\x0A\x0D";
echo "\n-- Trim string with all white space characters --\n";
var_dump(rtrim($text));
-echo "\n-- Trim non-whitespace from a string --\n";
+echo "\n-- Trim non-whitespace from a string --\n";
var_dump(rtrim($hello, "=!"));
-echo "\n-- Trim some non-white space characters from a string --\n";
+echo "\n-- Trim some non-white space characters from a string --\n";
var_dump(rtrim($hello, "!dlWro="));
-echo "\n-- Trim some non-white space characters from a string using a character range --\n";
+echo "\n-- Trim some non-white space characters from a string using a character range --\n";
var_dump(rtrim($alpha, "A..Z"));
echo "\n-- Trim the ASCII control characters at the beginning of a string --\n";
diff --git a/ext/standard/tests/strings/rtrim_variation1.phpt b/ext/standard/tests/strings/rtrim_variation1.phpt
index 68c7bb9079..f07b7db3df 100644
--- a/ext/standard/tests/strings/rtrim_variation1.phpt
+++ b/ext/standard/tests/strings/rtrim_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return " !---sample object---! ";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/rtrim_variation2.phpt b/ext/standard/tests/strings/rtrim_variation2.phpt
index 9e3943dfe4..70efd09f2b 100644
--- a/ext/standard/tests/strings/rtrim_variation2.phpt
+++ b/ext/standard/tests/strings/rtrim_variation2.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return " sample object ";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/setlocale_basic1.phpt b/ext/standard/tests/strings/setlocale_basic1.phpt
index c806e6fabf..6ecc72c116 100644
--- a/ext/standard/tests/strings/setlocale_basic1.phpt
+++ b/ext/standard/tests/strings/setlocale_basic1.phpt
@@ -12,7 +12,7 @@ if (setlocale(LC_ALL, "en_US.utf8", "en_AU.utf8", "ko_KR.utf8", "zh_CN.utf8", "d
--FILE--
<?php
/* Prototype : string setlocale (int $category , string $locale [,string $..] )
- : string setlocale(int $category , array $locale);
+ : string setlocale(int $category , array $locale);
* Description: Sets locale information.Returns the new current locale ,
* or FALSE if locale functionality is not implemented in this platform.
* Source code: ext/standard/string.c
@@ -50,9 +50,9 @@ echo "*** Testing setlocale() : basic functionality - set to a specific locale *
//set of locales to be used
$common_locales = array(
- "english_US"=> "en_US.utf8",
- "english_AU" => "en_AU.utf8",
- "korean_KR" => "ko_KR.utf8",
+ "english_US"=> "en_US.utf8",
+ "english_AU" => "en_AU.utf8",
+ "korean_KR" => "ko_KR.utf8",
"Chinese_zh" => "zh_CN.utf8",
"germen_DE" => "de_DE.utf8",
"spanish_es" => "es_EC.utf8",
diff --git a/ext/standard/tests/strings/setlocale_basic2.phpt b/ext/standard/tests/strings/setlocale_basic2.phpt
index 7204c45911..4680941784 100644
--- a/ext/standard/tests/strings/setlocale_basic2.phpt
+++ b/ext/standard/tests/strings/setlocale_basic2.phpt
@@ -12,7 +12,7 @@ if (setlocale(LC_ALL, "en_US.utf8", "en_AU.utf8", "ko_KR.utf8", "zh_CN.utf8", "d
--FILE--
<?php
/* Prototype : string setlocale (int $category , string $locale [,string $..] )
- : string setlocale(int $category , array $locale);
+ : string setlocale(int $category , array $locale);
* Description: Sets locale information.Returns the new current locale , or FALSE
if locale functionality is not implemented in this platform.
* Source code: ext/standard/string.c
@@ -51,9 +51,9 @@ echo "*** Testing setlocale() with an array containing list of locales ***\n";
//set of locales to be used
$common_locales = array(
- "english_US"=> "en_US.utf8",
- "english_AU" => "en_AU.utf8",
- "korean_KR" => "ko_KR.utf8",
+ "english_US"=> "en_US.utf8",
+ "english_AU" => "en_AU.utf8",
+ "korean_KR" => "ko_KR.utf8",
"Chinese_zh" => "zh_CN.utf8",
"germen_DE" => "de_DE.utf8",
"spanish_es" => "es_EC.utf8",
@@ -111,7 +111,7 @@ if ( count($list_of_locales) > 0 ) {
if(trim($currency_symbol[$new_locale]) == $new_currency){
echo "PASSED.\n";
- } else {
+ } else {
echo "FAILED.\n";
}
} else {
diff --git a/ext/standard/tests/strings/setlocale_error.phpt b/ext/standard/tests/strings/setlocale_error.phpt
index a6a8e38205..30f7d6cca0 100644
--- a/ext/standard/tests/strings/setlocale_error.phpt
+++ b/ext/standard/tests/strings/setlocale_error.phpt
@@ -11,7 +11,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
/* Prototype : string setlocale (int $category , string $locale [,string $..] )
- : string setlocale(int $category , array $locale);
+ : string setlocale(int $category , array $locale);
* Description: Sets locale information.Returns the new current locale , or FALSE if locale functionality is not implemented in this platform.
* Source code: ext/standard/string.c
*/
diff --git a/ext/standard/tests/strings/setlocale_variation2.phpt b/ext/standard/tests/strings/setlocale_variation2.phpt
index 5ebdfe8d50..e138734920 100644
--- a/ext/standard/tests/strings/setlocale_variation2.phpt
+++ b/ext/standard/tests/strings/setlocale_variation2.phpt
@@ -9,7 +9,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
/* Prototype : string setlocale (int $category , string $locale [,string $..] )
- : string setlocale(int $category , array $locale);
+ : string setlocale(int $category , array $locale);
* Description: Sets locale information.Returns the new current locale , or FALSE
if locale functionality is not implemented in this platform.
* Source code: ext/standard/string.c
@@ -18,7 +18,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
/* setlocale() to set all available locales in the system and check the success count */
echo "*** Testing setlocale() : usage variations ***\n";
-function good_locale($locale) {
+function good_locale($locale) {
/**
* Note: no_NO is a bogus locale and should not be used, see https://bugzilla.redhat.com/971416
**/
diff --git a/ext/standard/tests/strings/setlocale_variation3.phpt b/ext/standard/tests/strings/setlocale_variation3.phpt
index 2b12d26d14..c68998fcfa 100644
--- a/ext/standard/tests/strings/setlocale_variation3.phpt
+++ b/ext/standard/tests/strings/setlocale_variation3.phpt
@@ -12,7 +12,7 @@ if (setlocale(LC_ALL,'en_US.utf8') === false) {
--FILE--
<?php
/* Prototype : string setlocale (int $category , string $locale [,string $..] )
- * : string setlocale(int $category , array $locale);
+ * : string setlocale(int $category , array $locale);
* Description: Sets locale information.Returns the new current locale , or FALSE
* if locale functionality is not implemented in this platform.
* Source code: ext/standard/string.c
diff --git a/ext/standard/tests/strings/setlocale_variation4.phpt b/ext/standard/tests/strings/setlocale_variation4.phpt
index 47ae8fcc97..d2bb0f13a6 100644
--- a/ext/standard/tests/strings/setlocale_variation4.phpt
+++ b/ext/standard/tests/strings/setlocale_variation4.phpt
@@ -14,7 +14,7 @@ LC_ALL=en_US.utf8;
--FILE--
<?php
/* Prototype : string setlocale (int $category , string $locale [,string $..] )
- * : string setlocale(int $category , array $locale);
+ * : string setlocale(int $category , array $locale);
* Description: Sets locale information.Returns the new current locale , or FALSE
* if locale functionality is not implemented in this platform.
* Source code: ext/standard/string.c
diff --git a/ext/standard/tests/strings/setlocale_variation5.phpt b/ext/standard/tests/strings/setlocale_variation5.phpt
index 85d06e1a74..f17c7e42b8 100644
--- a/ext/standard/tests/strings/setlocale_variation5.phpt
+++ b/ext/standard/tests/strings/setlocale_variation5.phpt
@@ -14,7 +14,7 @@ LC_ALL=en_US.utf8;
--FILE--
<?php
/* Prototype : string setlocale (int $category , string $locale [,string $..] )
- * : string setlocale(int $category , array $locale);
+ * : string setlocale(int $category , array $locale);
* Description: Sets locale information.Returns the new current locale , or FALSE
* if locale functionality is not implemented in this platform.
* Source code: ext/standard/string.c
diff --git a/ext/standard/tests/strings/sha1_error.phpt b/ext/standard/tests/strings/sha1_error.phpt
index bfc3e44fd5..e666351d20 100644
--- a/ext/standard/tests/strings/sha1_error.phpt
+++ b/ext/standard/tests/strings/sha1_error.phpt
@@ -7,7 +7,7 @@ Test sha1() function : error conditions
/* Prototype: string sha1 ( string $str [, bool $raw_output ] )
* Description: Calculate the sha1 hash of a string
*/
-
+
echo "*** Testing sha1() : error conditions ***\n";
echo "\n-- Testing sha1() function with no arguments --\n";
diff --git a/ext/standard/tests/strings/sha1_file.phpt b/ext/standard/tests/strings/sha1_file.phpt
index 20d62e6999..cb65572fcd 100644
--- a/ext/standard/tests/strings/sha1_file.phpt
+++ b/ext/standard/tests/strings/sha1_file.phpt
@@ -17,7 +17,7 @@ return false;
if (($handle2 = fopen( "DataFile.txt", "w+")) == FALSE)
return false;
-/* Writing into file */
+/* Writing into file */
$filename = "DataFile.txt";
$content = "Add this to the file\n";
if (is_writable($filename)) {
diff --git a/ext/standard/tests/strings/sha1_variation1.phpt b/ext/standard/tests/strings/sha1_variation1.phpt
index 044be46d98..e473585989 100644
--- a/ext/standard/tests/strings/sha1_variation1.phpt
+++ b/ext/standard/tests/strings/sha1_variation1.phpt
@@ -35,44 +35,44 @@ $values = array(
1,
12345,
-2345,
-
+
// float data
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.1234567E-10,
.5,
-
+
// array data
/*10*/ array(),
array(0),
array(1),
array(1, 2),
array('color' => 'red', 'item' => 'pen'),
-
+
// null data
/*15*/ NULL,
null,
-
+
// boolean data
/*17*/ true,
false,
TRUE,
FALSE,
-
+
// empty data
/*21*/ "",
'',
-
+
// object data
/*23*/ new MyClass(),
-
+
// undefined data
/*24*/ @$undefined_var,
-
+
// unset data
/*25*/ @$unset_var,
-
+
//resource data
/*26*/ $fp
);
diff --git a/ext/standard/tests/strings/sha1_variation2.phpt b/ext/standard/tests/strings/sha1_variation2.phpt
index eb11760b76..e7d8f01218 100644
--- a/ext/standard/tests/strings/sha1_variation2.phpt
+++ b/ext/standard/tests/strings/sha1_variation2.phpt
@@ -35,44 +35,44 @@ $values = array(
1,
12345,
-2345,
-
+
// float data
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.1234567E-10,
.5,
-
+
// array data
/*10*/ array(),
array(0),
array(1),
array(1, 2),
array('color' => 'red', 'item' => 'pen'),
-
+
// null data
/*15*/ NULL,
null,
-
+
// string data
/*17*/ "ABC",
'abc',
"0abc",
"123abc",
-
+
// empty data
/*21*/ "",
'',
-
+
// object data
/*23*/ new MyClass(),
-
+
// undefined data
/*24*/ @$undefined_var,
-
+
// unset data
/*25*/ @$unset_var,
-
+
//resource data
/*26*/ $fp
);
diff --git a/ext/standard/tests/strings/soundex.phpt b/ext/standard/tests/strings/soundex.phpt
index 55769ad57e..650236c2e5 100644
--- a/ext/standard/tests/strings/soundex.phpt
+++ b/ext/standard/tests/strings/soundex.phpt
@@ -11,10 +11,10 @@ $array = array(
"From",
"that",
"time",
-"on",
+"on",
"Sam",
-"thought",
-"that",
+"thought",
+"that",
"he",
"sensed",
"a",
@@ -31,7 +31,7 @@ foreach ($array as $str) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
bool(false)
string(4) "0000"
diff --git a/ext/standard/tests/strings/soundex_basic.phpt b/ext/standard/tests/strings/soundex_basic.phpt
index 9777473ee9..367ee60f15 100644
--- a/ext/standard/tests/strings/soundex_basic.phpt
+++ b/ext/standard/tests/strings/soundex_basic.phpt
@@ -9,9 +9,9 @@ Test soundex() function : basic functionality
echo "*** Testing soundex() : basic functionality ***\n";
var_dump(soundex("Euler"));
-var_dump(soundex("Gauss"));
-var_dump(soundex("Hilbert"));
-var_dump(soundex("Knuth"));
+var_dump(soundex("Gauss"));
+var_dump(soundex("Hilbert"));
+var_dump(soundex("Knuth"));
var_dump(soundex("Lloyd"));
var_dump(soundex("Lukasiewicz"));
@@ -23,7 +23,7 @@ var_dump(soundex("Lloyd") == soundex("Ladd")); // L300
var_dump(soundex("Lukasiewicz") == soundex("Lissajous")); // L222
var_dump(soundex("Lukasiewicz") == soundex("Ghosh"));
-var_dump(soundex("Hilbert") == soundex("Ladd"));
+var_dump(soundex("Hilbert") == soundex("Ladd"));
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/strings/sprintf_error.phpt b/ext/standard/tests/strings/sprintf_error.phpt
index f7f9e37e77..bed1108118 100644
--- a/ext/standard/tests/strings/sprintf_error.phpt
+++ b/ext/standard/tests/strings/sprintf_error.phpt
@@ -21,7 +21,7 @@ $arg1 = 'one';
$arg2 = 'two';
// with one argument less than expected
-var_dump( sprintf($format1) );
+var_dump( sprintf($format1) );
var_dump( sprintf($format2,$arg1) );
var_dump( sprintf($format3,$arg1,$arg2) );
diff --git a/ext/standard/tests/strings/sprintf_f_2.phpt b/ext/standard/tests/strings/sprintf_f_2.phpt
index 1c7cc7f924..9ee0aae17f 100644
--- a/ext/standard/tests/strings/sprintf_f_2.phpt
+++ b/ext/standard/tests/strings/sprintf_f_2.phpt
@@ -77,7 +77,7 @@ var_dump(sprintf("%01.2f", $money)); // output "123.10"
/* example#9: scientific notation */
$number = 362525200;
-
+
var_dump(sprintf("%.3e", $number)); // outputs 3.63e+8
?>
--EXPECTREGEX--
diff --git a/ext/standard/tests/strings/sprintf_variation1.phpt b/ext/standard/tests/strings/sprintf_variation1.phpt
index 2a5bdfdec9..ef66b68117 100644
--- a/ext/standard/tests/strings/sprintf_variation1.phpt
+++ b/ext/standard/tests/strings/sprintf_variation1.phpt
@@ -87,7 +87,7 @@ $values = array(
$count = 1;
foreach($values as $value) {
echo "\n-- Iteration $count --\n";
-
+
// with default argument
var_dump( sprintf($value) );
diff --git a/ext/standard/tests/strings/sprintf_variation10.phpt b/ext/standard/tests/strings/sprintf_variation10.phpt
index 2b338b238a..9bd1379589 100644
--- a/ext/standard/tests/strings/sprintf_variation10.phpt
+++ b/ext/standard/tests/strings/sprintf_variation10.phpt
@@ -42,7 +42,7 @@ $float_formats = array(
$count = 1;
foreach($integer_values as $int_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($float_formats as $format) {
// with two arguments
var_dump( sprintf($format, $int_value) );
diff --git a/ext/standard/tests/strings/sprintf_variation11.phpt b/ext/standard/tests/strings/sprintf_variation11.phpt
index 21e01883a6..5a7d22d1bf 100644
--- a/ext/standard/tests/strings/sprintf_variation11.phpt
+++ b/ext/standard/tests/strings/sprintf_variation11.phpt
@@ -21,8 +21,8 @@ $resource_values = array (
// various float formats
$float_formats = array(
- "%f", "%hf", "%lf",
- "%Lf", " %f", "%f ",
+ "%f", "%hf", "%lf",
+ "%Lf", " %f", "%f ",
"\t%f", "\n%f", "%4f",
"%30f", "%[0-9]", "%*f"
);
@@ -30,7 +30,7 @@ $float_formats = array(
$count = 1;
foreach($resource_values as $resource_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($float_formats as $format) {
// with two arguments
var_dump( sprintf($format, $resource_value) );
diff --git a/ext/standard/tests/strings/sprintf_variation12.phpt b/ext/standard/tests/strings/sprintf_variation12.phpt
index b11e5f5eb2..ab3c3d34e1 100644
--- a/ext/standard/tests/strings/sprintf_variation12.phpt
+++ b/ext/standard/tests/strings/sprintf_variation12.phpt
@@ -29,8 +29,8 @@ $array_values = array (
// various float formats
$float_formats = array(
- "%f", "%hf", "%lf",
- "%Lf", " %f", "%f ",
+ "%f", "%hf", "%lf",
+ "%Lf", " %f", "%f ",
"\t%f", "\n%f", "%4f",
"%30f", "%[0-9]", "%*f"
);
@@ -38,7 +38,7 @@ $float_formats = array(
$count = 1;
foreach($array_values as $array_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($float_formats as $format) {
// with two arguments
var_dump( sprintf($format, $array_value) );
diff --git a/ext/standard/tests/strings/sprintf_variation13.phpt b/ext/standard/tests/strings/sprintf_variation13.phpt
index ce1567a24d..8d39fb9e62 100644
--- a/ext/standard/tests/strings/sprintf_variation13.phpt
+++ b/ext/standard/tests/strings/sprintf_variation13.phpt
@@ -35,8 +35,8 @@ $string_values = array (
// various float formats
$float_formats = array(
- "%f", "%hf", "%lf",
- "%Lf", " %f", "%f ",
+ "%f", "%hf", "%lf",
+ "%Lf", " %f", "%f ",
"\t%f", "\n%f", "%4f",
"%30f", "%[0-9]", "%*f"
);
@@ -44,7 +44,7 @@ $float_formats = array(
$count = 1;
foreach($string_values as $string_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($float_formats as $format) {
var_dump( sprintf($format, $string_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation14.phpt b/ext/standard/tests/strings/sprintf_variation14.phpt
index 8c1278e9e0..7b34649426 100644
--- a/ext/standard/tests/strings/sprintf_variation14.phpt
+++ b/ext/standard/tests/strings/sprintf_variation14.phpt
@@ -19,8 +19,8 @@ $boolean_values = array (
// various float formats
$float_formats = array(
- "%f", "%hf", "%lf",
- "%Lf", " %f", "%f ",
+ "%f", "%hf", "%lf",
+ "%Lf", " %f", "%f ",
"\t%f", "\n%f", "%4f",
"%30f", "%[0-9]", "%*f"
);
@@ -28,7 +28,7 @@ $float_formats = array(
$count = 1;
foreach($boolean_values as $boolean_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($float_formats as $format) {
var_dump( sprintf($format, $boolean_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation16.phpt b/ext/standard/tests/strings/sprintf_variation16.phpt
index c89b651fdf..48b3cda464 100644
--- a/ext/standard/tests/strings/sprintf_variation16.phpt
+++ b/ext/standard/tests/strings/sprintf_variation16.phpt
@@ -29,9 +29,9 @@ $float_values = array(
);
// array of string formats
-$string_formats = array(
- "%s", "%hs", "%ls",
- "%Ls"," %s", "%s ",
+$string_formats = array(
+ "%s", "%hs", "%ls",
+ "%Ls"," %s", "%s ",
"\t%s", "\n%s", "%4s",
"%30s", "%[a-zA-Z0-9]", "%*s"
);
@@ -39,7 +39,7 @@ $string_formats = array(
$count = 1;
foreach($float_values as $float_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($string_formats as $format) {
var_dump( sprintf($format, $float_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation17.phpt b/ext/standard/tests/strings/sprintf_variation17.phpt
index 8ba55070e8..649a1f5cd1 100644
--- a/ext/standard/tests/strings/sprintf_variation17.phpt
+++ b/ext/standard/tests/strings/sprintf_variation17.phpt
@@ -20,9 +20,9 @@ $resource_values = array (
);
// array of string formats
-$string_formats = array(
- "%s", "%hs", "%ls",
- "%Ls"," %s", "%s ",
+$string_formats = array(
+ "%s", "%hs", "%ls",
+ "%Ls"," %s", "%s ",
"\t%s", "\n%s", "%4s",
"%30s", "%[a-zA-Z0-9]", "%*s"
);
@@ -30,7 +30,7 @@ $string_formats = array(
$count = 1;
foreach($resource_values as $resource_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($string_formats as $format) {
var_dump( sprintf($format, $resource_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation18.phpt b/ext/standard/tests/strings/sprintf_variation18.phpt
index 40fc7d9757..8f702e08b9 100644
--- a/ext/standard/tests/strings/sprintf_variation18.phpt
+++ b/ext/standard/tests/strings/sprintf_variation18.phpt
@@ -28,9 +28,9 @@ $array_values = array(
);
// array of string formats
-$string_formats = array(
- "%s", "%hs", "%ls",
- "%Ls"," %s", "%s ",
+$string_formats = array(
+ "%s", "%hs", "%ls",
+ "%Ls"," %s", "%s ",
"\t%s", "\n%s", "%4s",
"%30s", "%[a-zA-Z0-9]", "%*s"
);
@@ -38,7 +38,7 @@ $string_formats = array(
$count = 1;
foreach($array_values as $array_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($string_formats as $format) {
var_dump( sprintf($format, $array_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation19.phpt b/ext/standard/tests/strings/sprintf_variation19.phpt
index 916896e5fa..5c7c8b620f 100644
--- a/ext/standard/tests/strings/sprintf_variation19.phpt
+++ b/ext/standard/tests/strings/sprintf_variation19.phpt
@@ -32,9 +32,9 @@ $integer_values = array(
);
// array of string formats
-$string_formats = array(
- "%s", "%hs", "%ls",
- "%Ls"," %s", "%s ",
+$string_formats = array(
+ "%s", "%hs", "%ls",
+ "%Ls"," %s", "%s ",
"\t%s", "\n%s", "%4s",
"%30s", "%[a-zA-Z0-9]", "%*s"
);
@@ -42,7 +42,7 @@ $string_formats = array(
$count = 1;
foreach($integer_values as $integer_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($string_formats as $format) {
var_dump( sprintf($format, $integer_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation2.phpt b/ext/standard/tests/strings/sprintf_variation2.phpt
index a663df4444..858ae7402c 100644
--- a/ext/standard/tests/strings/sprintf_variation2.phpt
+++ b/ext/standard/tests/strings/sprintf_variation2.phpt
@@ -24,7 +24,7 @@ class sample
{
public function __toString() {
return "Object";
- }
+ }
}
// creating a file resource
@@ -89,14 +89,14 @@ $values = array(
$count = 1;
foreach($values as $value) {
echo "\n-- Iteration $count --\n";
-
+
// with two arguments
var_dump( sprintf($format, $value) );
// with three arguments
var_dump( sprintf($format, $value, $arg2) );
-
- $count++;
+
+ $count++;
};
// closing the resource
diff --git a/ext/standard/tests/strings/sprintf_variation20.phpt b/ext/standard/tests/strings/sprintf_variation20.phpt
index 6ac7cbb18a..5f44d6a42f 100644
--- a/ext/standard/tests/strings/sprintf_variation20.phpt
+++ b/ext/standard/tests/strings/sprintf_variation20.phpt
@@ -18,9 +18,9 @@ $boolean_values = array(
);
// array of string formats
-$string_formats = array(
- "%s", "%hs", "%ls",
- "%Ls"," %s", "%s ",
+$string_formats = array(
+ "%s", "%hs", "%ls",
+ "%Ls"," %s", "%s ",
"\t%s", "\n%s", "%4s",
"%30s", "%[a-zA-Z0-9]", "%*s"
);
@@ -28,7 +28,7 @@ $string_formats = array(
$count = 1;
foreach($boolean_values as $boolean_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($string_formats as $format) {
var_dump( sprintf($format, $boolean_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation23.phpt b/ext/standard/tests/strings/sprintf_variation23.phpt
index 09e5b9fbb2..e0d247346f 100644
--- a/ext/standard/tests/strings/sprintf_variation23.phpt
+++ b/ext/standard/tests/strings/sprintf_variation23.phpt
@@ -20,8 +20,8 @@ $resource_values = array (
);
// array of char formats
-$char_formats = array(
- "%c", "%hc", "%lc",
+$char_formats = array(
+ "%c", "%hc", "%lc",
"%Lc", " %c", "%c ",
"\t%c", "\n%c", "%4c",
"%30c", "%[a-bA-B@#$&]", "%*c"
@@ -30,7 +30,7 @@ $char_formats = array(
$count = 1;
foreach($resource_values as $resource_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($char_formats as $format) {
var_dump( sprintf($format, $resource_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation28.phpt b/ext/standard/tests/strings/sprintf_variation28.phpt
index 1474aad1bd..3586c262df 100644
--- a/ext/standard/tests/strings/sprintf_variation28.phpt
+++ b/ext/standard/tests/strings/sprintf_variation28.phpt
@@ -48,7 +48,7 @@ $octal_formats = array(
$count = 1;
foreach($integer_values as $integer_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($octal_formats as $format) {
var_dump( sprintf($format, $integer_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation28_64bit.phpt b/ext/standard/tests/strings/sprintf_variation28_64bit.phpt
index c13d5b9b8c..6e0d8eae93 100644
--- a/ext/standard/tests/strings/sprintf_variation28_64bit.phpt
+++ b/ext/standard/tests/strings/sprintf_variation28_64bit.phpt
@@ -44,7 +44,7 @@ $octal_formats = array(
$count = 1;
foreach($integer_values as $integer_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($octal_formats as $format) {
var_dump( sprintf($format, $integer_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation29.phpt b/ext/standard/tests/strings/sprintf_variation29.phpt
index 641db49518..2e686771ec 100644
--- a/ext/standard/tests/strings/sprintf_variation29.phpt
+++ b/ext/standard/tests/strings/sprintf_variation29.phpt
@@ -28,9 +28,9 @@ $float_values = array(
);
// array of octal formats
-$octal_formats = array(
- "%o", "%ho", "%lo",
- "%Lo", " %o", "%o ",
+$octal_formats = array(
+ "%o", "%ho", "%lo",
+ "%Lo", " %o", "%o ",
"\t%o", "\n%o", "%4o",
"%30o", "%[0-7]", "%*o"
);
@@ -38,7 +38,7 @@ $octal_formats = array(
$count = 1;
foreach($float_values as $float_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($octal_formats as $format) {
var_dump( sprintf($format, $float_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation29_64bit.phpt b/ext/standard/tests/strings/sprintf_variation29_64bit.phpt
index 6e7303521c..f758a673e4 100644
--- a/ext/standard/tests/strings/sprintf_variation29_64bit.phpt
+++ b/ext/standard/tests/strings/sprintf_variation29_64bit.phpt
@@ -24,9 +24,9 @@ $float_values = array(
);
// array of octal formats
-$octal_formats = array(
- "%o", "%ho", "%lo",
- "%Lo", " %o", "%o ",
+$octal_formats = array(
+ "%o", "%ho", "%lo",
+ "%Lo", " %o", "%o ",
"\t%o", "\n%o", "%4o",
"%30o", "%[0-7]", "%*o"
);
@@ -34,7 +34,7 @@ $octal_formats = array(
$count = 1;
foreach($float_values as $float_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($octal_formats as $format) {
var_dump( sprintf($format, $float_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation3.phpt b/ext/standard/tests/strings/sprintf_variation3.phpt
index ab4fbb1caf..905507e7a2 100644
--- a/ext/standard/tests/strings/sprintf_variation3.phpt
+++ b/ext/standard/tests/strings/sprintf_variation3.phpt
@@ -37,11 +37,11 @@ $int_formats = array(
"\t%d", "\n%d", "%4d",
"%30d", "%[0-9]", "%*d"
);
-
+
$count = 1;
foreach($valid_ints as $int_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($int_formats as $format) {
var_dump( sprintf($format, $int_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation30.phpt b/ext/standard/tests/strings/sprintf_variation30.phpt
index 78d8e133bf..4f91ad57f4 100644
--- a/ext/standard/tests/strings/sprintf_variation30.phpt
+++ b/ext/standard/tests/strings/sprintf_variation30.phpt
@@ -20,9 +20,9 @@ $resource_values = array (
);
// array of octal formats
-$octal_formats = array(
- "%o", "%ho", "%lo",
- "%Lo", " %o", "%o ",
+$octal_formats = array(
+ "%o", "%ho", "%lo",
+ "%Lo", " %o", "%o ",
"\t%o", "\n%o", "%4o",
"%30o", "%[0-7]", "%*o"
);
@@ -30,7 +30,7 @@ $octal_formats = array(
$count = 1;
foreach($resource_values as $resource_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($octal_formats as $format) {
var_dump( sprintf($format, $resource_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation31.phpt b/ext/standard/tests/strings/sprintf_variation31.phpt
index 59a9cfcbc1..31f211c795 100644
--- a/ext/standard/tests/strings/sprintf_variation31.phpt
+++ b/ext/standard/tests/strings/sprintf_variation31.phpt
@@ -27,9 +27,9 @@ $array_values = array(
);
// array of octal formats
-$octal_formats = array(
- "%o", "%ho", "%lo",
- "%Lo", " %o", "%o ",
+$octal_formats = array(
+ "%o", "%ho", "%lo",
+ "%Lo", " %o", "%o ",
"\t%o", "\n%o", "%4o",
"%30o", "%[0-7]", "%*o"
);
@@ -37,7 +37,7 @@ $octal_formats = array(
$count = 1;
foreach($array_values as $array_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($octal_formats as $format) {
var_dump( sprintf($format, $array_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation32.phpt b/ext/standard/tests/strings/sprintf_variation32.phpt
index ee72d0521c..e6ca521f72 100644
--- a/ext/standard/tests/strings/sprintf_variation32.phpt
+++ b/ext/standard/tests/strings/sprintf_variation32.phpt
@@ -33,9 +33,9 @@ $string_values = array(
);
// array of octal formats
-$octal_formats = array(
- "%o", "%ho", "%lo",
- "%Lo", " %o", "%o ",
+$octal_formats = array(
+ "%o", "%ho", "%lo",
+ "%Lo", " %o", "%o ",
"\t%o", "\n%o", "%4o",
"%30o", "%[0-7]", "%*o"
);
@@ -43,7 +43,7 @@ $octal_formats = array(
$count = 1;
foreach($string_values as $string_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($octal_formats as $format) {
var_dump( sprintf($format, $string_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation33.phpt b/ext/standard/tests/strings/sprintf_variation33.phpt
index acd4781c02..9b3e602a2f 100644
--- a/ext/standard/tests/strings/sprintf_variation33.phpt
+++ b/ext/standard/tests/strings/sprintf_variation33.phpt
@@ -18,9 +18,9 @@ $boolean_values = array(
);
// array of octal formats
-$octal_formats = array(
- "%o", "%ho", "%lo",
- "%Lo", " %o", "%o ",
+$octal_formats = array(
+ "%o", "%ho", "%lo",
+ "%Lo", " %o", "%o ",
"\t%o", "\n%o", "%4o",
"%30o", "%[0-7]", "%*o"
);
@@ -28,7 +28,7 @@ $octal_formats = array(
$count = 1;
foreach($boolean_values as $boolean_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($octal_formats as $format) {
var_dump( sprintf($format, $boolean_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation34.phpt b/ext/standard/tests/strings/sprintf_variation34.phpt
index ce2d01ca12..0dd38448ec 100644
--- a/ext/standard/tests/strings/sprintf_variation34.phpt
+++ b/ext/standard/tests/strings/sprintf_variation34.phpt
@@ -48,7 +48,7 @@ $hexa_formats = array(
$count = 1;
foreach($integer_values as $integer_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($hexa_formats as $format) {
var_dump( sprintf($format, $integer_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation34_64bit.phpt b/ext/standard/tests/strings/sprintf_variation34_64bit.phpt
index 2d095cd739..d5d8fe229d 100644
--- a/ext/standard/tests/strings/sprintf_variation34_64bit.phpt
+++ b/ext/standard/tests/strings/sprintf_variation34_64bit.phpt
@@ -44,7 +44,7 @@ $hexa_formats = array(
$count = 1;
foreach($integer_values as $integer_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($hexa_formats as $format) {
var_dump( sprintf($format, $integer_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation35.phpt b/ext/standard/tests/strings/sprintf_variation35.phpt
index c658a767bf..56afca215d 100644
--- a/ext/standard/tests/strings/sprintf_variation35.phpt
+++ b/ext/standard/tests/strings/sprintf_variation35.phpt
@@ -32,8 +32,8 @@ $float_values = array(
);
// array of hexa formats
-$hexa_formats = array(
- "%x", "%xx", "%lx",
+$hexa_formats = array(
+ "%x", "%xx", "%lx",
"%Lx", " %x", "%x ",
"\t%x", "\n%x", "%4x",
"%30x", "%[0-9A-Fa-f]", "%*x"
@@ -42,7 +42,7 @@ $hexa_formats = array(
$count = 1;
foreach($float_values as $float_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($hexa_formats as $format) {
// with two arguments
var_dump( sprintf($format, $float_value) );
diff --git a/ext/standard/tests/strings/sprintf_variation35_64bit.phpt b/ext/standard/tests/strings/sprintf_variation35_64bit.phpt
index 64beaf1368..4a2c701acd 100644
--- a/ext/standard/tests/strings/sprintf_variation35_64bit.phpt
+++ b/ext/standard/tests/strings/sprintf_variation35_64bit.phpt
@@ -28,8 +28,8 @@ $float_values = array(
);
// array of hexa formats
-$hexa_formats = array(
- "%x", "%xx", "%lx",
+$hexa_formats = array(
+ "%x", "%xx", "%lx",
"%Lx", " %x", "%x ",
"\t%x", "\n%x", "%4x",
"%30x", "%[0-9A-Fa-f]", "%*x"
@@ -38,7 +38,7 @@ $hexa_formats = array(
$count = 1;
foreach($float_values as $float_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($hexa_formats as $format) {
// with two arguments
var_dump( sprintf($format, $float_value) );
diff --git a/ext/standard/tests/strings/sprintf_variation36.phpt b/ext/standard/tests/strings/sprintf_variation36.phpt
index d7d6999de8..1cebffe129 100644
--- a/ext/standard/tests/strings/sprintf_variation36.phpt
+++ b/ext/standard/tests/strings/sprintf_variation36.phpt
@@ -20,8 +20,8 @@ $resource_values = array (
);
// array of hexa formats
-$hexa_formats = array(
- "%x", "%xx", "%lx",
+$hexa_formats = array(
+ "%x", "%xx", "%lx",
"%Lx", " %x", "%x ",
"\t%x", "\n%x", "%4x",
"%30x", "%[0-9A-Fa-f]", "%*x"
@@ -30,7 +30,7 @@ $hexa_formats = array(
$count = 1;
foreach($resource_values as $resource_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($hexa_formats as $format) {
var_dump( sprintf($format, $resource_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation37.phpt b/ext/standard/tests/strings/sprintf_variation37.phpt
index 4406be95d9..51fcaaa0d7 100644
--- a/ext/standard/tests/strings/sprintf_variation37.phpt
+++ b/ext/standard/tests/strings/sprintf_variation37.phpt
@@ -26,8 +26,8 @@ $array_values = array(
);
// array of hexa formats
-$hexa_formats = array(
- "%x", "%xx", "%lx",
+$hexa_formats = array(
+ "%x", "%xx", "%lx",
"%Lx", " %x", "%x ",
"\t%x", "\n%x", "%4x",
"%30x", "%[0-9A-Fa-f]", "%*x"
@@ -36,7 +36,7 @@ $hexa_formats = array(
$count = 1;
foreach($array_values as $array_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($hexa_formats as $format) {
var_dump( sprintf($format, $array_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation38.phpt b/ext/standard/tests/strings/sprintf_variation38.phpt
index 79948b24af..6b29c1fc09 100644
--- a/ext/standard/tests/strings/sprintf_variation38.phpt
+++ b/ext/standard/tests/strings/sprintf_variation38.phpt
@@ -32,8 +32,8 @@ $string_values = array(
);
// array of hexa formats
-$hexa_formats = array(
- "%x", "%xx", "%lx",
+$hexa_formats = array(
+ "%x", "%xx", "%lx",
"%Lx", " %x", "%x ",
"\t%x", "\n%x", "%4x",
"%30x", "%[0-9A-Fa-f]", "%*x"
@@ -42,7 +42,7 @@ $hexa_formats = array(
$count = 1;
foreach($string_values as $string_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($hexa_formats as $format) {
var_dump( sprintf($format, $string_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation39.phpt b/ext/standard/tests/strings/sprintf_variation39.phpt
index f3d0f8c21d..c799d169c2 100644
--- a/ext/standard/tests/strings/sprintf_variation39.phpt
+++ b/ext/standard/tests/strings/sprintf_variation39.phpt
@@ -18,8 +18,8 @@ $boolean_values = array(
);
// array of hexa formats
-$hexa_formats = array(
- "%x", "%xx", "%lx",
+$hexa_formats = array(
+ "%x", "%xx", "%lx",
"%Lx", " %x", "%x ",
"\t%x", "\n%x", "%4x",
"%30x", "%[0-9A-Fa-f]", "%*x"
@@ -28,7 +28,7 @@ $hexa_formats = array(
$count = 1;
foreach($boolean_values as $boolean_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($hexa_formats as $format) {
var_dump( sprintf($format, $boolean_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation4.phpt b/ext/standard/tests/strings/sprintf_variation4.phpt
index 848e26de13..9ab493ff37 100644
--- a/ext/standard/tests/strings/sprintf_variation4.phpt
+++ b/ext/standard/tests/strings/sprintf_variation4.phpt
@@ -39,11 +39,11 @@ $int_formats = array(
"\t%d", "\n%d", "%4d",
"%30d", "%[0-9]", "%*d"
);
-
+
$count = 1;
foreach($float_values as $float_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($int_formats as $format) {
var_dump( sprintf($format, $float_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation40.phpt b/ext/standard/tests/strings/sprintf_variation40.phpt
index 65f78fa7a2..da626a4d81 100644
--- a/ext/standard/tests/strings/sprintf_variation40.phpt
+++ b/ext/standard/tests/strings/sprintf_variation40.phpt
@@ -49,7 +49,7 @@ $unsigned_formats = array(
$count = 1;
foreach($integer_values as $integer_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($unsigned_formats as $format) {
var_dump( sprintf($format, $integer_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation40_64bit.phpt b/ext/standard/tests/strings/sprintf_variation40_64bit.phpt
index e4d36f439f..f887ff5afa 100644
--- a/ext/standard/tests/strings/sprintf_variation40_64bit.phpt
+++ b/ext/standard/tests/strings/sprintf_variation40_64bit.phpt
@@ -45,7 +45,7 @@ $unsigned_formats = array(
$count = 1;
foreach($integer_values as $integer_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($unsigned_formats as $format) {
var_dump( sprintf($format, $integer_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation41.phpt b/ext/standard/tests/strings/sprintf_variation41.phpt
index 713df9a2a3..a87c1dd33a 100644
--- a/ext/standard/tests/strings/sprintf_variation41.phpt
+++ b/ext/standard/tests/strings/sprintf_variation41.phpt
@@ -39,7 +39,7 @@ $float_values = array(
// array of unsigned formats
$unsigned_formats = array(
"%u", "%hu", "%lu",
- "%Lu", " %u", "%u ",
+ "%Lu", " %u", "%u ",
"\t%u", "\n%u", "%4u",
"%30u", "%[0-9]", "%*u"
);
@@ -47,7 +47,7 @@ $unsigned_formats = array(
$count = 1;
foreach($float_values as $float_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($unsigned_formats as $format) {
var_dump( sprintf($format, $float_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation41_64bit.phpt b/ext/standard/tests/strings/sprintf_variation41_64bit.phpt
index 79e6275fcb..02991cf3ea 100644
--- a/ext/standard/tests/strings/sprintf_variation41_64bit.phpt
+++ b/ext/standard/tests/strings/sprintf_variation41_64bit.phpt
@@ -35,7 +35,7 @@ $float_values = array(
// array of unsigned formats
$unsigned_formats = array(
"%u", "%hu", "%lu",
- "%Lu", " %u", "%u ",
+ "%Lu", " %u", "%u ",
"\t%u", "\n%u", "%4u",
"%30u", "%[0-9]", "%*u"
);
@@ -43,7 +43,7 @@ $unsigned_formats = array(
$count = 1;
foreach($float_values as $float_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($unsigned_formats as $format) {
var_dump( sprintf($format, $float_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation42.phpt b/ext/standard/tests/strings/sprintf_variation42.phpt
index f9f7dd631d..7f994e23d7 100644
--- a/ext/standard/tests/strings/sprintf_variation42.phpt
+++ b/ext/standard/tests/strings/sprintf_variation42.phpt
@@ -22,7 +22,7 @@ $resource_values = array (
// array of unsigned formats
$unsigned_formats = array(
"%u", "%hu", "%lu",
- "%Lu", " %u", "%u ",
+ "%Lu", " %u", "%u ",
"\t%u", "\n%u", "%4u",
"%30u", "%[0-9]", "%*u"
);
@@ -31,7 +31,7 @@ $unsigned_formats = array(
$count = 1;
foreach($resource_values as $resource_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($unsigned_formats as $format) {
var_dump( sprintf($format, $resource_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation43.phpt b/ext/standard/tests/strings/sprintf_variation43.phpt
index a828e6b892..4def644ace 100644
--- a/ext/standard/tests/strings/sprintf_variation43.phpt
+++ b/ext/standard/tests/strings/sprintf_variation43.phpt
@@ -28,17 +28,17 @@ $array_values = array(
);
// array of unsigned formats
-$unsigned_formats = array(
+$unsigned_formats = array(
"%u", "%hu", "%lu",
- "%Lu", " %u", "%u ",
- "\t%u", "\n%u", "%4u",
+ "%Lu", " %u", "%u ",
+ "\t%u", "\n%u", "%4u",
"%30u", "%[0-9]", "%*u"
);
$count = 1;
foreach($array_values as $array_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($unsigned_formats as $format) {
var_dump( sprintf($format, $array_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation44.phpt b/ext/standard/tests/strings/sprintf_variation44.phpt
index 73e786e3df..f4023546ee 100644
--- a/ext/standard/tests/strings/sprintf_variation44.phpt
+++ b/ext/standard/tests/strings/sprintf_variation44.phpt
@@ -40,10 +40,10 @@ $string_values = array(
);
// array of unsigned formats
-$unsigned_formats = array(
+$unsigned_formats = array(
"%u", "%hu", "%lu",
- "%Lu", " %u", "%u ",
- "\t%u", "\n%u", "%4u",
+ "%Lu", " %u", "%u ",
+ "\t%u", "\n%u", "%4u",
"%30u", "%[0-9]", "%*u"
);
@@ -51,7 +51,7 @@ $unsigned_formats = array(
$count = 1;
foreach($string_values as $string_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($unsigned_formats as $format) {
var_dump( sprintf($format, $string_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation44_64bit.phpt b/ext/standard/tests/strings/sprintf_variation44_64bit.phpt
index 1be1db709c..8aef09bdc9 100644
--- a/ext/standard/tests/strings/sprintf_variation44_64bit.phpt
+++ b/ext/standard/tests/strings/sprintf_variation44_64bit.phpt
@@ -36,10 +36,10 @@ $string_values = array(
);
// array of unsigned formats
-$unsigned_formats = array(
+$unsigned_formats = array(
"%u", "%hu", "%lu",
- "%Lu", " %u", "%u ",
- "\t%u", "\n%u", "%4u",
+ "%Lu", " %u", "%u ",
+ "\t%u", "\n%u", "%4u",
"%30u", "%[0-9]", "%*u"
);
@@ -47,7 +47,7 @@ $unsigned_formats = array(
$count = 1;
foreach($string_values as $string_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($unsigned_formats as $format) {
var_dump( sprintf($format, $string_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation45.phpt b/ext/standard/tests/strings/sprintf_variation45.phpt
index 85dcfceab7..a2a2f570f3 100644
--- a/ext/standard/tests/strings/sprintf_variation45.phpt
+++ b/ext/standard/tests/strings/sprintf_variation45.phpt
@@ -18,17 +18,17 @@ $boolean_values = array(
);
// array of unsigned formats
-$unsigned_formats = array(
+$unsigned_formats = array(
"%u", "%hu", "%lu",
- "%Lu", " %u", "%u ",
- "\t%u", "\n%u", "%4u",
+ "%Lu", " %u", "%u ",
+ "\t%u", "\n%u", "%4u",
"%30u", "%[0-9]", "%*u"
);
$count = 1;
foreach($boolean_values as $boolean_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($unsigned_formats as $format) {
var_dump( sprintf($format, $boolean_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation46.phpt b/ext/standard/tests/strings/sprintf_variation46.phpt
index 11bdb23cf6..79e2dff6f1 100644
--- a/ext/standard/tests/strings/sprintf_variation46.phpt
+++ b/ext/standard/tests/strings/sprintf_variation46.phpt
@@ -42,7 +42,7 @@ $scientific_formats = array(
$count = 1;
foreach($integer_values as $integer_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($scientific_formats as $format) {
var_dump( sprintf($format, $integer_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation47.phpt b/ext/standard/tests/strings/sprintf_variation47.phpt
index 78d68fa4f4..a935885242 100644
--- a/ext/standard/tests/strings/sprintf_variation47.phpt
+++ b/ext/standard/tests/strings/sprintf_variation47.phpt
@@ -44,7 +44,7 @@ $scientific_formats = array(
$count = 1;
foreach($float_values as $float_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($scientific_formats as $format) {
var_dump( sprintf($format, $float_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation48.phpt b/ext/standard/tests/strings/sprintf_variation48.phpt
index 758b705c0d..b3eccf7e13 100644
--- a/ext/standard/tests/strings/sprintf_variation48.phpt
+++ b/ext/standard/tests/strings/sprintf_variation48.phpt
@@ -20,17 +20,17 @@ $resource_values = array (
);
// array of scientific formats
-$scientific_formats = array(
+$scientific_formats = array(
"%e", "%he", "%le",
"%Le", " %e", "%e ",
- "\t%e", "\n%e", "%4e",
+ "\t%e", "\n%e", "%4e",
"%30e", "%[0-1]", "%*e"
);
$count = 1;
foreach($resource_values as $resource_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($scientific_formats as $format) {
var_dump( sprintf($format, $resource_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation49.phpt b/ext/standard/tests/strings/sprintf_variation49.phpt
index d4807b1a2a..bbd3ce7e34 100644
--- a/ext/standard/tests/strings/sprintf_variation49.phpt
+++ b/ext/standard/tests/strings/sprintf_variation49.phpt
@@ -29,17 +29,17 @@ $array_values = array(
);
// array of scientific formats
-$scientific_formats = array(
+$scientific_formats = array(
"%e", "%he", "%le",
"%Le", " %e", "%e ",
- "\t%e", "\n%e", "%4e",
+ "\t%e", "\n%e", "%4e",
"%30e", "%[0-1]", "%*e"
);
$count = 1;
foreach($array_values as $array_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($scientific_formats as $format) {
var_dump( sprintf($format, $array_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation4_64bit.phpt b/ext/standard/tests/strings/sprintf_variation4_64bit.phpt
index a5fd306fd5..990c0b28d4 100644
--- a/ext/standard/tests/strings/sprintf_variation4_64bit.phpt
+++ b/ext/standard/tests/strings/sprintf_variation4_64bit.phpt
@@ -35,11 +35,11 @@ $int_formats = array(
"\t%d", "\n%d", "%4d",
"%30d", "%[0-9]", "%*d"
);
-
+
$count = 1;
foreach($float_values as $float_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($int_formats as $format) {
var_dump( sprintf($format, $float_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation5.phpt b/ext/standard/tests/strings/sprintf_variation5.phpt
index ee13d3d64b..5fc863781a 100644
--- a/ext/standard/tests/strings/sprintf_variation5.phpt
+++ b/ext/standard/tests/strings/sprintf_variation5.phpt
@@ -15,7 +15,7 @@ $dfp = opendir ( dirname(__FILE__) );
$fp_copy = $fp;
$dfp_copy = $dfp;
-
+
// array of resource types
$resource_types = array (
$fp_copy,
@@ -28,11 +28,11 @@ $int_formats = array(
"\t%d", "\n%d", "%4d",
"%[0-9]", "%*d"
);
-
+
$count = 1;
foreach($resource_types as $res) {
echo "\n-- Iteration $count --\n";
-
+
foreach($int_formats as $format) {
var_dump( sprintf($format, $res) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation50.phpt b/ext/standard/tests/strings/sprintf_variation50.phpt
index fc27b2c932..bb4c96bb64 100644
--- a/ext/standard/tests/strings/sprintf_variation50.phpt
+++ b/ext/standard/tests/strings/sprintf_variation50.phpt
@@ -44,7 +44,7 @@ $scientific_formats = array(
$count = 1;
foreach($string_values as $string_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($scientific_formats as $format) {
var_dump( sprintf($format, $string_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation51.phpt b/ext/standard/tests/strings/sprintf_variation51.phpt
index 9ee693e142..ab245da1a1 100644
--- a/ext/standard/tests/strings/sprintf_variation51.phpt
+++ b/ext/standard/tests/strings/sprintf_variation51.phpt
@@ -18,17 +18,17 @@ $boolean_values = array(
);
// array of scientific formats
-$scientific_formats = array(
+$scientific_formats = array(
"%e", "%he", "%le",
"%Le", " %e", "%e ",
- "\t%e", "\n%e", "%4e",
+ "\t%e", "\n%e", "%4e",
"%30e", "%[0-1]", "%*e"
);
$count = 1;
foreach($boolean_values as $boolean_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($scientific_formats as $format) {
var_dump( sprintf($format, $boolean_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation6.phpt b/ext/standard/tests/strings/sprintf_variation6.phpt
index c41db4e637..361570ea91 100644
--- a/ext/standard/tests/strings/sprintf_variation6.phpt
+++ b/ext/standard/tests/strings/sprintf_variation6.phpt
@@ -32,14 +32,14 @@ $array_types = array (
$int_formats = array(
"%d", "%hd", "%ld",
"%Ld", " %d", "%d ",
- "\t%d", "\n%d", "%4d",
+ "\t%d", "\n%d", "%4d",
"%30d", "%[0-9]", "%*d"
);
-
+
$count = 1;
foreach($array_types as $arr) {
echo "\n-- Iteration $count --\n";
-
+
foreach($int_formats as $format) {
var_dump( sprintf($format, $arr) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation7.phpt b/ext/standard/tests/strings/sprintf_variation7.phpt
index b7ce8d94d2..49bb8932a7 100644
--- a/ext/standard/tests/strings/sprintf_variation7.phpt
+++ b/ext/standard/tests/strings/sprintf_variation7.phpt
@@ -21,14 +21,14 @@ $boolean_values = array (
$int_formats = array(
"%d", "%hd", "%ld",
"%Ld", " %d", "%d ",
- "\t%d", "\n%d", "%4d",
+ "\t%d", "\n%d", "%4d",
"%30d", "%[0-9]", "%*d"
);
-
+
$count = 1;
foreach($boolean_values as $boolean_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($int_formats as $format) {
var_dump( sprintf($format, $boolean_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation8.phpt b/ext/standard/tests/strings/sprintf_variation8.phpt
index 7fd608b819..168f424a21 100644
--- a/ext/standard/tests/strings/sprintf_variation8.phpt
+++ b/ext/standard/tests/strings/sprintf_variation8.phpt
@@ -41,11 +41,11 @@ $int_formats = array(
"\t%d", "\n%d", "%4d",
"%30d", "%[0-9]", "%*d"
);
-
+
$count = 1;
foreach($string_values as $string_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($int_formats as $format) {
var_dump( sprintf($format, $string_value) );
}
diff --git a/ext/standard/tests/strings/sprintf_variation9.phpt b/ext/standard/tests/strings/sprintf_variation9.phpt
index 6be495aa42..6629a34f80 100644
--- a/ext/standard/tests/strings/sprintf_variation9.phpt
+++ b/ext/standard/tests/strings/sprintf_variation9.phpt
@@ -55,7 +55,7 @@ $float_formats = array(
$count = 1;
foreach($float_values as $float_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($float_formats as $format) {
var_dump( sprintf($format, $float_value) );
}
diff --git a/ext/standard/tests/strings/sscanf_basic1.phpt b/ext/standard/tests/strings/sscanf_basic1.phpt
index dadafbde2c..8a38f9d19e 100644
--- a/ext/standard/tests/strings/sscanf_basic1.phpt
+++ b/ext/standard/tests/strings/sscanf_basic1.phpt
@@ -16,15 +16,15 @@ echo "*** Testing sscanf() : basic functionality - using string format ***\n";
$str = "Part: Widget Serial Number: 1234789 Stock: 25";
$format = "Part: %s Serial Number: %s Stock: %s";
-echo "\n-- Try sccanf() WITHOUT optional args --\n";
+echo "\n-- Try sccanf() WITHOUT optional args --\n";
// extract details using short format
list($part, $number, $stock) = sscanf($str, $format);
var_dump($part, $number, $stock);
-echo "\n-- Try sccanf() WITH optional args --\n";
+echo "\n-- Try sccanf() WITH optional args --\n";
// extract details using long format
$res = sscanf($str, $format, $part, $number, $stock);
-var_dump($res, $part, $number, $stock);
+var_dump($res, $part, $number, $stock);
?>
===DONE===
diff --git a/ext/standard/tests/strings/sscanf_basic2.phpt b/ext/standard/tests/strings/sscanf_basic2.phpt
index 693a307c05..92f4d1051e 100644
--- a/ext/standard/tests/strings/sscanf_basic2.phpt
+++ b/ext/standard/tests/strings/sscanf_basic2.phpt
@@ -16,15 +16,15 @@ echo "*** Testing sscanf() : basic functionality - using integer format ***\n";
$str = "Part: Widget Serial Number: 1234789 Stock: 25";
$format = "Part: %s Serial Number: %d Stock: %d";
-echo "\n-- Try sccanf() WITHOUT optional args --\n";
+echo "\n-- Try sccanf() WITHOUT optional args --\n";
// extract details using short format
list($part, $number, $stock) = sscanf($str, $format);
var_dump($part, $number, $stock);
-echo "\n-- Try sccanf() WITH optional args --\n";
+echo "\n-- Try sccanf() WITH optional args --\n";
// extract details using long format
$res = sscanf($str, $format, $part, $number, $stock);
-var_dump($res, $part, $number, $stock);
+var_dump($res, $part, $number, $stock);
?>
===DONE===
diff --git a/ext/standard/tests/strings/sscanf_basic3.phpt b/ext/standard/tests/strings/sscanf_basic3.phpt
index de910ef4b8..b728dea34d 100644
--- a/ext/standard/tests/strings/sscanf_basic3.phpt
+++ b/ext/standard/tests/strings/sscanf_basic3.phpt
@@ -13,15 +13,15 @@ echo "*** Testing sscanf() : basic functionality -- using float format ***\n";
$str = "Part: Widget Length: 111.53 Width: 22.345 Depth: 12.4";
$format = "Part: %s Length: %f Width: %f Depth: %f";
-echo "\n-- Try sccanf() WITHOUT optional args --\n";
+echo "\n-- Try sccanf() WITHOUT optional args --\n";
// extract details using short format
list($part, $length, $width, $depth) = sscanf($str, $format);
var_dump($part, $length, $width, $depth);
-echo "\n-- Try sccanf() WITH optional args --\n";
+echo "\n-- Try sccanf() WITH optional args --\n";
// extract details using long format
$res = sscanf($str, $format, $part, $length, $width, $depth);
-var_dump($res, $part, $length, $width, $depth);
+var_dump($res, $part, $length, $width, $depth);
?>
===DONE===
diff --git a/ext/standard/tests/strings/sscanf_basic4.phpt b/ext/standard/tests/strings/sscanf_basic4.phpt
index 8ce44ff4c8..8ed760afde 100644
--- a/ext/standard/tests/strings/sscanf_basic4.phpt
+++ b/ext/standard/tests/strings/sscanf_basic4.phpt
@@ -13,15 +13,15 @@ echo "*** Testing sscanf() : basic functionality - using char format ***\n";
$str = "X = A + B - C";
$format = "%c = %c + %c - %c";
-echo "\n-- Try sccanf() WITHOUT optional args --\n";
+echo "\n-- Try sccanf() WITHOUT optional args --\n";
// extract details using short format
list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format);
var_dump($arg1, $arg2, $arg3, $arg4);
-echo "\n-- Try sccanf() WITH optional args --\n";
+echo "\n-- Try sccanf() WITH optional args --\n";
// extract details using long format
$res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4);
-var_dump($res, $arg1, $arg2, $arg3, $arg4);
+var_dump($res, $arg1, $arg2, $arg3, $arg4);
?>
===DONE===
diff --git a/ext/standard/tests/strings/sscanf_basic5.phpt b/ext/standard/tests/strings/sscanf_basic5.phpt
index 5dbbf44813..36c2feba9d 100644
--- a/ext/standard/tests/strings/sscanf_basic5.phpt
+++ b/ext/standard/tests/strings/sscanf_basic5.phpt
@@ -14,19 +14,19 @@ $str = "10.12345 10.12345E3 10.12345e3 -10.12345e4" ;
$format1 = "%e %e %e %e";
$format2 = "%E %E %E %E";
-echo "\n-- Try sccanf() WITHOUT optional args --\n";
+echo "\n-- Try sccanf() WITHOUT optional args --\n";
// extract details using short format
list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format1);
var_dump($arg1, $arg2, $arg3, $arg4);
list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format2);
var_dump($arg1, $arg2, $arg3, $arg4);
-echo "\n-- Try sccanf() WITH optional args --\n";
+echo "\n-- Try sccanf() WITH optional args --\n";
// extract details using long format
$res = sscanf($str, $format1, $arg1, $arg2, $arg3, $arg4);
-var_dump($res, $arg1, $arg2, $arg3, $arg4);
+var_dump($res, $arg1, $arg2, $arg3, $arg4);
$res = sscanf($str, $format2,$arg1, $arg2, $arg3, $arg4);
-var_dump($res, $arg1, $arg2, $arg3, $arg4);
+var_dump($res, $arg1, $arg2, $arg3, $arg4);
?>
diff --git a/ext/standard/tests/strings/sscanf_basic6.phpt b/ext/standard/tests/strings/sscanf_basic6.phpt
index 6efdd0b687..381ccc12c2 100644
--- a/ext/standard/tests/strings/sscanf_basic6.phpt
+++ b/ext/standard/tests/strings/sscanf_basic6.phpt
@@ -19,15 +19,15 @@ echo "*** Testing sscanf() : basic functionality - using unsigned format ***\n";
$str = "-11 +11 11 -11.234 +11.234 11.234";
$format = "%u %u %u %u %u %u";
-echo "\n-- Try sccanf() WITHOUT optional args --\n";
+echo "\n-- Try sccanf() WITHOUT optional args --\n";
// extract details using short format
list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format);
var_dump($arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
-echo "\n-- Try sccanf() WITH optional args --\n";
+echo "\n-- Try sccanf() WITH optional args --\n";
// extract details using long format
$res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
-var_dump($res, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
+var_dump($res, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
?>
===DONE===
diff --git a/ext/standard/tests/strings/sscanf_basic7.phpt b/ext/standard/tests/strings/sscanf_basic7.phpt
index 1d54054d4b..253dd1ba53 100644
--- a/ext/standard/tests/strings/sscanf_basic7.phpt
+++ b/ext/standard/tests/strings/sscanf_basic7.phpt
@@ -13,15 +13,15 @@ echo "*** Testing sscanf() : basic functionality - using octal format ***\n";
$str = "0123 -0123 +0123 0129 -0129 +0129";
$format = "%o %o %o %o %o %o";
-echo "\n-- Try sccanf() WITHOUT optional args --\n";
+echo "\n-- Try sccanf() WITHOUT optional args --\n";
// extract details using short format
list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format);
var_dump($arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
-echo "\n-- Try sccanf() WITH optional args --\n";
+echo "\n-- Try sccanf() WITH optional args --\n";
// extract details using long format
$res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
-var_dump($res, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
+var_dump($res, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
?>
===DONE===
diff --git a/ext/standard/tests/strings/sscanf_basic8.phpt b/ext/standard/tests/strings/sscanf_basic8.phpt
index 4773f026af..bcec81eab4 100644
--- a/ext/standard/tests/strings/sscanf_basic8.phpt
+++ b/ext/standard/tests/strings/sscanf_basic8.phpt
@@ -14,19 +14,19 @@ $str = "129 12F 123B -123B 01ABC 1G";
$format1 = "%x %x %x %x %x %x";
$format2 = "%X %X %X %X %X %X";
-echo "\n-- Try sccanf() WITHOUT optional args --\n";
+echo "\n-- Try sccanf() WITHOUT optional args --\n";
// extract details using short format
list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format1);
var_dump($arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format2);
var_dump($arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
-echo "\n-- Try sccanf() WITH optional args --\n";
+echo "\n-- Try sccanf() WITH optional args --\n";
// extract details using long format
$res = sscanf($str, $format1, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
-var_dump($res, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
+var_dump($res, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
$res = sscanf($str, $format2, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
-var_dump($res, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
+var_dump($res, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
?>
===DONE===
diff --git a/ext/standard/tests/strings/sscanf_variation1.phpt b/ext/standard/tests/strings/sscanf_variation1.phpt
index 9bbf2c8b79..f5c4664526 100644
--- a/ext/standard/tests/strings/sscanf_variation1.phpt
+++ b/ext/standard/tests/strings/sscanf_variation1.phpt
@@ -17,7 +17,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -32,36 +32,36 @@ $inputs = array (
-2,
2147483647,
-2147483648,
-
+
// float values
/*6*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*9*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*12*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*16*/ NULL,
null,
-
+
// objects
/*18*/ new sample(),
-
+
// resource
/*19*/ $file_handle,
-
+
// undefined variable
/*20*/ @$undefined_var,
-
+
// unset variable
/*21*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/sscanf_variation2.phpt b/ext/standard/tests/strings/sscanf_variation2.phpt
index ee3a41a7c3..9d2904ff72 100644
--- a/ext/standard/tests/strings/sscanf_variation2.phpt
+++ b/ext/standard/tests/strings/sscanf_variation2.phpt
@@ -17,7 +17,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -32,36 +32,36 @@ $inputs = array (
-2,
2147483647,
-2147483648,
-
+
// float values
/*6*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*9*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*12*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*16*/ NULL,
null,
-
+
// objects
/*18*/ new sample(),
-
+
// resource
/*19*/ $file_handle,
-
+
// undefined variable
/*20*/ @$undefined_var,
-
+
// unset variable
/*21*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/str_ireplace.phpt b/ext/standard/tests/strings/str_ireplace.phpt
index b127424dfe..526b8ac723 100644
--- a/ext/standard/tests/strings/str_ireplace.phpt
+++ b/ext/standard/tests/strings/str_ireplace.phpt
@@ -47,7 +47,7 @@ var_dump($Data = str_ireplace("\n", "<br>", $Data));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: str_ireplace() expects at least 3 parameters, 0 given in %s on line %d
NULL
diff --git a/ext/standard/tests/strings/str_pad_variation1.phpt b/ext/standard/tests/strings/str_pad_variation1.phpt
index a630b6ad26..e694fa9db7 100644
--- a/ext/standard/tests/strings/str_pad_variation1.phpt
+++ b/ext/standard/tests/strings/str_pad_variation1.phpt
@@ -21,7 +21,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -36,36 +36,36 @@ $inputs = array (
-2,
2147483647,
-2147483648,
-
+
// float values
/*6*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*9*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*12*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*16*/ NULL,
null,
-
+
// objects
/*18*/ new sample(),
-
+
// resource
/*19*/ $file_handle,
-
+
// undefined variable
/*20*/ @$undefined_var,
-
+
// unset variable
/*21*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/str_pad_variation2.phpt b/ext/standard/tests/strings/str_pad_variation2.phpt
index 2f082ea7a5..ec0aa959af 100644
--- a/ext/standard/tests/strings/str_pad_variation2.phpt
+++ b/ext/standard/tests/strings/str_pad_variation2.phpt
@@ -21,7 +21,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -35,36 +35,36 @@ $pad_lengths = array (
1,
-2,
255,
-
+
// float values
/*5*/ 10.5,
-20.5,
10.12345e2,
-
+
// array values
/*8*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*11*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*15*/ NULL,
null,
-
+
// objects
/*17*/ new sample(),
-
+
// resource
/*18*/ $file_handle,
-
+
// undefined variable
/*19*/ @$undefined_var,
-
+
// unset variable
/*20*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/str_pad_variation3.phpt b/ext/standard/tests/strings/str_pad_variation3.phpt
index 73fd79a8b9..1e924efe8a 100644
--- a/ext/standard/tests/strings/str_pad_variation3.phpt
+++ b/ext/standard/tests/strings/str_pad_variation3.phpt
@@ -21,7 +21,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -36,36 +36,36 @@ $pad_strings = array (
-2,
2147483647,
-2147483648,
-
+
// float values
/*6*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*9*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*12*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*16*/ NULL,
null,
-
+
// objects
/*18*/ new sample(),
-
+
// resource
/*19*/ $file_handle,
-
+
// undefined variable
/*20*/ @$undefined_var,
-
+
// unset variable
/*21*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/str_pad_variation4.phpt b/ext/standard/tests/strings/str_pad_variation4.phpt
index e5084b7e9b..b72ec20c02 100644
--- a/ext/standard/tests/strings/str_pad_variation4.phpt
+++ b/ext/standard/tests/strings/str_pad_variation4.phpt
@@ -23,7 +23,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
// array with different values for $input
@@ -33,43 +33,43 @@ $pad_types = array (
/*1*/ 0, // == STR_PAD_LEFT
1, // == STR_PAD_RIGHT
2, // == STR_PAD_BOTH
- -2,
+ -2,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// string data
/*10*/ "abc",
"STR_PAD_LEFT",
"2",
"0x2",
"02",
-
+
// array values
/*15*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*18*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*22*/ NULL,
null,
-
+
// objects
/*24*/ new sample(),
-
+
// undefined variable
/*25*/ @$undefined_var,
-
+
// unset variable
/*26*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/str_replace_basic.phpt b/ext/standard/tests/strings/str_replace_basic.phpt
index 10bf542342..a133fd8bd5 100644
--- a/ext/standard/tests/strings/str_replace_basic.phpt
+++ b/ext/standard/tests/strings/str_replace_basic.phpt
@@ -4,7 +4,7 @@ Test str_replace() function basic function
precision=14
--FILE--
<?php
-/*
+/*
Prototype: mixed str_replace(mixed $search, mixed $replace,
mixed $subject [, int &$count]);
Description: Replace all occurrences of the search string with
@@ -27,14 +27,14 @@ var_dump( str_replace("long string here", "", "", $count) );
var_dump( $count );
$fp = fopen( __FILE__, "r" );
-$fp_copy = $fp;
+$fp_copy = $fp;
var_dump( str_replace($fp_copy, $fp_copy, $fp_copy, $fp_copy) );
var_dump( $fp_copy );
fclose($fp);
?>
===DONE===
---EXPECTF--
+--EXPECTF--
*** Testing str_replace() on basic operations ***
string(0) ""
string(4) "tbst"
diff --git a/ext/standard/tests/strings/str_replace_error.phpt b/ext/standard/tests/strings/str_replace_error.phpt
index 9fafc57a39..38c62dc86c 100644
--- a/ext/standard/tests/strings/str_replace_error.phpt
+++ b/ext/standard/tests/strings/str_replace_error.phpt
@@ -4,7 +4,7 @@ Test str_replace() function error conditions
precision=14
--FILE--
<?php
-/*
+/*
Prototype: mixed str_replace(mixed $search, mixed $replace,
mixed $subject [, int &$count]);
Description: Replace all occurrences of the search string with
@@ -22,7 +22,7 @@ var_dump( str_replace(1,2,3,$var,5) );
?>
===DONE===
---EXPECTF--
+--EXPECTF--
*** Testing str_replace error conditions ***
Warning: str_replace() expects at least 3 parameters, 0 given in %sstr_replace_error.php on line 12
NULL
diff --git a/ext/standard/tests/strings/str_replace_variation1.phpt b/ext/standard/tests/strings/str_replace_variation1.phpt
index 279fb2201f..0dddd2f5d8 100644
--- a/ext/standard/tests/strings/str_replace_variation1.phpt
+++ b/ext/standard/tests/strings/str_replace_variation1.phpt
@@ -4,7 +4,7 @@ Test str_replace() function - test search values
precision=14
--FILE--
<?php
-/*
+/*
Prototype: mixed str_replace(mixed $search, mixed $replace,
mixed $subject [, int &$count]);
Description: Replace all occurrences of the search string with
@@ -21,14 +21,14 @@ $i = 0;
foreach( $search_arr as $value ) {
echo "\n-- Iteration $i --\n";
/* replace the string in array */
- var_dump( str_replace($value, "FOUND", $search_arr, $count) );
+ var_dump( str_replace($value, "FOUND", $search_arr, $count) );
var_dump( $count );
$i++;
}
?>
===DONE===
---EXPECT--
+--EXPECT--
*** Testing str_replace() with various search values ***
-- Iteration 0 --
array(12) {
diff --git a/ext/standard/tests/strings/str_replace_variation3.phpt b/ext/standard/tests/strings/str_replace_variation3.phpt
index 8f6f38f1f9..1042bc3099 100644
--- a/ext/standard/tests/strings/str_replace_variation3.phpt
+++ b/ext/standard/tests/strings/str_replace_variation3.phpt
@@ -4,7 +4,7 @@ Test str_replace() function
precision=14
--FILE--
<?php
-/*
+/*
Prototype: mixed str_replace(mixed $search, mixed $replace,
mixed $subject [, int &$count]);
Description: Replace all occurrences of the search string with
@@ -95,7 +95,7 @@ var_dump($count);
echo "\n-- Testing Resources --\n";
$resource1 = fopen( __FILE__, "r" );
$resource2 = opendir( "." );
-var_dump(str_replace("stream", "FOUND", $resource1, $count));
+var_dump(str_replace("stream", "FOUND", $resource1, $count));
var_dump($count);
var_dump(str_replace("stream", "FOUND", $resource2, $count));
var_dump($count);
@@ -142,7 +142,7 @@ closedir($resource2);
?>
===DONE===
---EXPECTF--
+--EXPECTF--
*** Testing Miscelleneous input data ***
string(3) "qqq"
int(5)
diff --git a/ext/standard/tests/strings/str_rot13_basic.phpt b/ext/standard/tests/strings/str_rot13_basic.phpt
index 696d380932..109fdc51cc 100644
--- a/ext/standard/tests/strings/str_rot13_basic.phpt
+++ b/ext/standard/tests/strings/str_rot13_basic.phpt
@@ -14,16 +14,16 @@ var_dump(str_rot13("abcdefghijklmnopqrstuvwxyz"));
echo "\nEnsure numeric characters are left untouched\n";
if (strcmp(str_rot13("0123456789"), "0123456789") == 0) {
- echo "Strings equal : TEST PASSED\n";
+ echo "Strings equal : TEST PASSED\n";
} else {
- echo "Strings unequal : TEST FAILED\n";
+ echo "Strings unequal : TEST FAILED\n";
}
echo "\nEnsure non-alphabetic characters are left untouched\n";
if (strcmp(str_rot13("!%^&*()_-+={}[]:;@~#<,>.?"), "!%^&*()_-+={}[]:;@~#<,>.?")) {
- echo "Strings equal : TEST PASSED\n";
+ echo "Strings equal : TEST PASSED\n";
} else {
- echo "Strings unequal : TEST FAILED\n";
+ echo "Strings unequal : TEST FAILED\n";
}
echo "\nEnsure strings round trip\n";
@@ -31,9 +31,9 @@ $str = "str_rot13() tests starting";
$encode = str_rot13($str);
$decode = str_rot13($encode);
if (strcmp($str, $decode) == 0) {
- echo "Strings equal : TEST PASSED\n";
+ echo "Strings equal : TEST PASSED\n";
} else {
- echo "Strings unequal : TEST FAILED\n";
+ echo "Strings unequal : TEST FAILED\n";
}
?>
===DONE===
diff --git a/ext/standard/tests/strings/str_shuffle_basic.phpt b/ext/standard/tests/strings/str_shuffle_basic.phpt
index b60a35f560..063ea0199e 100644
--- a/ext/standard/tests/strings/str_shuffle_basic.phpt
+++ b/ext/standard/tests/strings/str_shuffle_basic.phpt
@@ -27,17 +27,17 @@ $len_ip = strlen($ip);
for ($i = 0; $i < $trys; $i++) {
$op = str_shuffle($ip);
-
+
if (!is_string($op) || strlen($op) != $len_ip) {
- echo "TEST FAILED\n";
- }
-
+ echo "TEST FAILED\n";
+ }
+
// Combination already hit ?
if (empty($a[$op])) {
// No first time init
$a[$op] = 0;
}
-
+
// Increment count for this combination
$a[$op]++;
}
diff --git a/ext/standard/tests/strings/str_shuffle_variation1.phpt b/ext/standard/tests/strings/str_shuffle_variation1.phpt
index 5c9f5fc13b..367a25af0a 100644
--- a/ext/standard/tests/strings/str_shuffle_variation1.phpt
+++ b/ext/standard/tests/strings/str_shuffle_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -33,36 +33,36 @@ $inputs = array (
-2,
2147483647,
-2147483648,
-
+
// float values
/*6*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*9*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*12*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*16*/ NULL,
null,
-
+
// objects
/*18*/ new sample(),
-
+
// resource
/*19*/ $file_handle,
-
+
// undefined variable
/*20*/ @$undefined_var,
-
+
// unset variable
/*21*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/str_split_variation4.phpt b/ext/standard/tests/strings/str_split_variation4.phpt
index e06c7025d6..444384468a 100644
--- a/ext/standard/tests/strings/str_split_variation4.phpt
+++ b/ext/standard/tests/strings/str_split_variation4.phpt
@@ -28,7 +28,7 @@ $values = array(
'simple string', //regular string
'It\'s string with quote', //string containing single quote
'string\tcontains\rwhite space\nchars',
- 'containing @ # $ % ^ & chars',
+ 'containing @ # $ % ^ & chars',
'with 1234 numbers',
'with \0 and ".chr(0)."null chars', //for binary safe
'with multiple space char',
diff --git a/ext/standard/tests/strings/str_split_variation5.phpt b/ext/standard/tests/strings/str_split_variation5.phpt
index 3f8e640f89..b5a175757c 100644
--- a/ext/standard/tests/strings/str_split_variation5.phpt
+++ b/ext/standard/tests/strings/str_split_variation5.phpt
@@ -11,7 +11,7 @@ Test str_split() function : usage variations - different heredoc strings as 'str
*/
/*
-* Passing different heredoc strings as 'str' argument to the str_split()
+* Passing different heredoc strings as 'str' argument to the str_split()
* with 'split_length' 10
*/
@@ -83,7 +83,7 @@ foreach($heredoc_array as $str) {
var_dump( str_split($str, $split_length) );
$count++;
};
-
+
echo "Done"
?>
--EXPECT--
diff --git a/ext/standard/tests/strings/str_word_count.phpt b/ext/standard/tests/strings/str_word_count.phpt
index a0496cc2cf..f88646370b 100644
--- a/ext/standard/tests/strings/str_word_count.phpt
+++ b/ext/standard/tests/strings/str_word_count.phpt
@@ -5,11 +5,11 @@ str_word_count()
error_reporting(E_ALL);
$str = "Hello friend, you're
looking good today!";
-$b =& $str;
+$b =& $str;
var_dump(str_word_count($str, 1));
var_dump(str_word_count($str, 2));
var_dump(str_word_count($str));
-var_dump(str_word_count($str, 3));
+var_dump(str_word_count($str, 3));
var_dump(str_word_count($str, 123));
var_dump(str_word_count($str, -1));
var_dump(str_word_count($str, 999999999));
diff --git a/ext/standard/tests/strings/str_word_count1.phpt b/ext/standard/tests/strings/str_word_count1.phpt
index 5f49fcfbf3..e942a17385 100644
--- a/ext/standard/tests/strings/str_word_count1.phpt
+++ b/ext/standard/tests/strings/str_word_count1.phpt
@@ -10,7 +10,7 @@ var_dump($a);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(0)
Warning: str_word_count(): Invalid format value -1 in %s on line %d
diff --git a/ext/standard/tests/strings/strcspn_basic.phpt b/ext/standard/tests/strings/strcspn_basic.phpt
index 7ed9847edf..01ec5ea321 100644
--- a/ext/standard/tests/strings/strcspn_basic.phpt
+++ b/ext/standard/tests/strings/strcspn_basic.phpt
@@ -4,7 +4,7 @@ Test strcspn() function : basic functionality
<?php
/* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided, it works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided, it works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strcspn_error.phpt b/ext/standard/tests/strings/strcspn_error.phpt
index 03b4f2d2cf..4b69063881 100644
--- a/ext/standard/tests/strings/strcspn_error.phpt
+++ b/ext/standard/tests/strings/strcspn_error.phpt
@@ -4,7 +4,7 @@ Test strcspn() function : error conditions
<?php
/* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strcspn_variation1.phpt b/ext/standard/tests/strings/strcspn_variation1.phpt
index 219a12c4bf..81bd018a8a 100644
--- a/ext/standard/tests/strings/strcspn_variation1.phpt
+++ b/ext/standard/tests/strings/strcspn_variation1.phpt
@@ -4,7 +4,7 @@ Test strcspn() function : usage variations - unexpected values for str argument
<?php
/* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strcspn_variation10.phpt b/ext/standard/tests/strings/strcspn_variation10.phpt
index c82d9970fa..7f572283db 100644
--- a/ext/standard/tests/strings/strcspn_variation10.phpt
+++ b/ext/standard/tests/strings/strcspn_variation10.phpt
@@ -4,7 +4,7 @@ Test strcspn() function : usage variations - with varying mask & default start a
<?php
/* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -49,7 +49,7 @@ $mask_array = array(
" \t",
"\t\i\100\xa"
);
-
+
// loop through each element of the array for mask argument
$count = 1;
diff --git a/ext/standard/tests/strings/strcspn_variation11.phpt b/ext/standard/tests/strings/strcspn_variation11.phpt
index f970f6e3e9..96926564b0 100644
--- a/ext/standard/tests/strings/strcspn_variation11.phpt
+++ b/ext/standard/tests/strings/strcspn_variation11.phpt
@@ -4,7 +4,7 @@ Test strcspn() function : usage variations - with varying start and default len
<?php
/* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -61,7 +61,7 @@ $start_array = array(
2147483647, // max positive integer
-2147483648, // min negative integer
);
-
+
// loop through each element of the arrays for str,mask and start arguments
$count = 1;
diff --git a/ext/standard/tests/strings/strcspn_variation12.phpt b/ext/standard/tests/strings/strcspn_variation12.phpt
index f187788d94..55b6b6e2e2 100644
--- a/ext/standard/tests/strings/strcspn_variation12.phpt
+++ b/ext/standard/tests/strings/strcspn_variation12.phpt
@@ -4,7 +4,7 @@ Test strcspn() function : usage variations - with varying start and len args
<?php
/* Prototype : proto int strcspn(string str, string mask [,int start [,int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -50,7 +50,7 @@ $start_array = array(
2147483647, // max positive integer
-2147483648 // min negative integer
);
-
+
//defining array of len values
$len_array = array(
0,
@@ -60,7 +60,7 @@ $len_array = array(
2147483647, // max positive integer
-2147483648 // min negative integer
);
-
+
// loop through each element of the arrays for str,mask,start and len arguments
diff --git a/ext/standard/tests/strings/strcspn_variation2.phpt b/ext/standard/tests/strings/strcspn_variation2.phpt
index c21af6f256..4935cf4b30 100644
--- a/ext/standard/tests/strings/strcspn_variation2.phpt
+++ b/ext/standard/tests/strings/strcspn_variation2.phpt
@@ -4,7 +4,7 @@ Test strcspn() function : usage variations - unexpected values for mask argument
<?php
/* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strcspn_variation3.phpt b/ext/standard/tests/strings/strcspn_variation3.phpt
index ad09fdbbec..a330c1111a 100644
--- a/ext/standard/tests/strings/strcspn_variation3.phpt
+++ b/ext/standard/tests/strings/strcspn_variation3.phpt
@@ -4,7 +4,7 @@ Test strcspn() function : usage variations - unexpected values of start argument
<?php
/* Prototype : proto int strcspn(string str, string mask [,int start [,int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strcspn_variation4.phpt b/ext/standard/tests/strings/strcspn_variation4.phpt
index d7c6750233..0af1228293 100644
--- a/ext/standard/tests/strings/strcspn_variation4.phpt
+++ b/ext/standard/tests/strings/strcspn_variation4.phpt
@@ -6,7 +6,7 @@ Test strcspn() function : usage variations - unexpected values of len argument
<?php
/* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strcspn_variation6.phpt b/ext/standard/tests/strings/strcspn_variation6.phpt
index 712f139c55..4d6c81d0fb 100644
--- a/ext/standard/tests/strings/strcspn_variation6.phpt
+++ b/ext/standard/tests/strings/strcspn_variation6.phpt
@@ -4,7 +4,7 @@ Test strcspn() function : usage variations - with heredoc strings, varying mask
<?php
/* Prototype : proto int strcspn(string str, string mask [,int start [,int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -73,7 +73,7 @@ $mask_array = array(
" \t",
"\t\i\100\xaa"
);
-
+
// loop through each element of the arrays for string and mask arguments
diff --git a/ext/standard/tests/strings/strcspn_variation7.phpt b/ext/standard/tests/strings/strcspn_variation7.phpt
index 3c32fee7de..ada8681914 100644
--- a/ext/standard/tests/strings/strcspn_variation7.phpt
+++ b/ext/standard/tests/strings/strcspn_variation7.phpt
@@ -4,7 +4,7 @@ Test strcspn() function : usage variations - with heredoc strings, varying start
<?php
/* Prototype : proto int strcspn(string str, string mask [, int start [,int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -86,7 +86,7 @@ $start_array = array(
2147483647, // max positive integer
-2147483648, // min negative integer
);
-
+
// loop through each element of the arrays for str, mask and start arguments
diff --git a/ext/standard/tests/strings/strcspn_variation8.phpt b/ext/standard/tests/strings/strcspn_variation8.phpt
index fff6e1ab0c..6881b07e50 100644
--- a/ext/standard/tests/strings/strcspn_variation8.phpt
+++ b/ext/standard/tests/strings/strcspn_variation8.phpt
@@ -4,7 +4,7 @@ Test strcspn() function : usage variations - with heredoc strings, varying start
<?php
/* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters not found in mask.
- If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
+ If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -80,7 +80,7 @@ $start_array = array(
2147483647, // max positive integer
-2147483648, // min negative integer
);
-
+
// defining array of len values
$len_array = array(
0,
@@ -90,7 +90,7 @@ $len_array = array(
2147483647, // max positive integer
-2147483648, // min negative integer
);
-
+
// loop through each element of the arrays for all arguments
@@ -100,7 +100,7 @@ foreach($heredoc_strings as $str) {
foreach($mask_array as $mask) {
foreach($start_array as $start) {
foreach($len_array as $len) {
- var_dump( strcspn($str,$mask,$start,$len) );
+ var_dump( strcspn($str,$mask,$start,$len) );
}
}
}
diff --git a/ext/standard/tests/strings/strip_tags_basic1.phpt b/ext/standard/tests/strings/strip_tags_basic1.phpt
index d6d5d6e479..05380ddff5 100644
--- a/ext/standard/tests/strings/strip_tags_basic1.phpt
+++ b/ext/standard/tests/strings/strip_tags_basic1.phpt
@@ -28,8 +28,8 @@ $string_array = array (
"<html><!-- COMMENT --></html>",
'<html><!-- COMMENT --></html>'
);
-
-
+
+
// Calling strip_tags() with default arguments
// loop through the $string_array to test strip_tags on various inputs
$iteration = 1;
diff --git a/ext/standard/tests/strings/strip_tags_variation1.phpt b/ext/standard/tests/strings/strip_tags_variation1.phpt
index 56c8c28850..c02027d5df 100644
--- a/ext/standard/tests/strings/strip_tags_variation1.phpt
+++ b/ext/standard/tests/strings/strip_tags_variation1.phpt
@@ -37,44 +37,44 @@ $values = array(
1,
12345,
-2345,
-
+
// float data
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.7654321E-10,
.5,
-
+
// array data
/*10*/ array(),
array(0),
array(1),
array(1, 2),
array('color' => 'red', 'item' => 'pen'),
-
+
// null data
/*15*/ NULL,
null,
-
+
// boolean data
/*17*/ true,
false,
TRUE,
FALSE,
-
+
// empty data
/*21*/ "",
'',
-
+
// object data
/*23*/ new classA(),
-
+
// undefined data
/*24*/ @$undefined_var,
-
+
// unset data
/*25*/ @$unset_var,
-
+
// resource variable
/*26*/ $fp
diff --git a/ext/standard/tests/strings/strip_tags_variation11.phpt b/ext/standard/tests/strings/strip_tags_variation11.phpt
index e592166d5f..3c6200ee48 100644
--- a/ext/standard/tests/strings/strip_tags_variation11.phpt
+++ b/ext/standard/tests/strings/strip_tags_variation11.phpt
@@ -14,8 +14,8 @@ $string_array = array (
'hello <img title=">_<"> world',
"hello <img title='>_<'> world"
);
-
-
+
+
// Calling strip_tags() with default arguments
// loop through the $string_array to test strip_tags on various inputs
$iteration = 1;
diff --git a/ext/standard/tests/strings/stripcslashes_variation1.phpt b/ext/standard/tests/strings/stripcslashes_variation1.phpt
index a2754c6103..d08082e302 100644
--- a/ext/standard/tests/strings/stripcslashes_variation1.phpt
+++ b/ext/standard/tests/strings/stripcslashes_variation1.phpt
@@ -23,7 +23,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "obj'ct";
- }
+ }
}
// Defining resource
@@ -37,43 +37,43 @@ $values = array (
1,
12345,
-2345,
-
+
// float values
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.7654321E-10,
.5,
-
+
// array values
/*10*/ array(),
array(0),
array(1),
array(1, 2),
array('color' => 'red', 'item' => 'pen'),
-
+
// boolean values
/*15*/ true,
false,
TRUE,
FALSE,
-
+
// empty string
/*19*/ "",
'',
-
+
// undefined variable
/*21*/ $undefined_var,
-
+
// unset variable
/*22*/ $unset_var,
-
+
// objects
/*23*/ new sample(),
-
+
// resource
/*24*/ $file_handle,
-
+
// null values
/*25*/ NULL,
null
diff --git a/ext/standard/tests/strings/stripos_variation1.phpt b/ext/standard/tests/strings/stripos_variation1.phpt
index 1494076586..a3fc324dd7 100644
--- a/ext/standard/tests/strings/stripos_variation1.phpt
+++ b/ext/standard/tests/strings/stripos_variation1.phpt
@@ -70,7 +70,7 @@ $needle = array(
"456HEE", //numerics + chars
$haystack //haystack as needle
);
-
+
/* loop through to get the position of the needle in haystack string */
$count = 1;
for($index=0; $index<count($needle); $index++) {
diff --git a/ext/standard/tests/strings/stripos_variation10.phpt b/ext/standard/tests/strings/stripos_variation10.phpt
index 70291c48a3..409c041dbd 100644
--- a/ext/standard/tests/strings/stripos_variation10.phpt
+++ b/ext/standard/tests/strings/stripos_variation10.phpt
@@ -21,7 +21,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
diff --git a/ext/standard/tests/strings/stripos_variation11.phpt b/ext/standard/tests/strings/stripos_variation11.phpt
index d4fa84a613..b4b83a1641 100644
--- a/ext/standard/tests/strings/stripos_variation11.phpt
+++ b/ext/standard/tests/strings/stripos_variation11.phpt
@@ -19,11 +19,11 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
// array with different values
$values = array (
diff --git a/ext/standard/tests/strings/stripos_variation14.phpt b/ext/standard/tests/strings/stripos_variation14.phpt
index ecf9d47502..10b481fb71 100644
--- a/ext/standard/tests/strings/stripos_variation14.phpt
+++ b/ext/standard/tests/strings/stripos_variation14.phpt
@@ -19,11 +19,11 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
//definition of input args
$haystack = "hello world";
diff --git a/ext/standard/tests/strings/stripos_variation15.phpt b/ext/standard/tests/strings/stripos_variation15.phpt
index 819baf08c4..f8d4f029fe 100644
--- a/ext/standard/tests/strings/stripos_variation15.phpt
+++ b/ext/standard/tests/strings/stripos_variation15.phpt
@@ -21,11 +21,11 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
// array with different values
$values = array (
diff --git a/ext/standard/tests/strings/stripos_variation9.phpt b/ext/standard/tests/strings/stripos_variation9.phpt
index 8f44e2fcfd..c0713c57ab 100644
--- a/ext/standard/tests/strings/stripos_variation9.phpt
+++ b/ext/standard/tests/strings/stripos_variation9.phpt
@@ -19,7 +19,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
diff --git a/ext/standard/tests/strings/stripslashes_variation1.phpt b/ext/standard/tests/strings/stripslashes_variation1.phpt
index fb104199bd..6f2e928cd5 100644
--- a/ext/standard/tests/strings/stripslashes_variation1.phpt
+++ b/ext/standard/tests/strings/stripslashes_variation1.phpt
@@ -22,7 +22,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "obj\'ct";
- }
+ }
}
// Defining resource
@@ -36,43 +36,43 @@ $values = array (
1,
12345,
-2345,
-
+
// float values
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.7654321E-10,
.5,
-
+
// array values
/*10*/ array(),
array(0),
array(1),
array(1, 2),
array('color' => 'red', 'item' => 'pen'),
-
+
// boolean values
/*15*/ true,
false,
TRUE,
FALSE,
-
+
// empty string
/*19*/ "",
'',
-
+
// undefined variable
/*21*/ $undefined_var,
-
+
// unset variable
/*22*/ $unset_var,
-
+
// objects
/*23*/ new sample(),
-
+
// resource
/*24*/ $file_handle,
-
+
// null values
/*25*/ NULL,
null
diff --git a/ext/standard/tests/strings/stripslashes_variation3.phpt b/ext/standard/tests/strings/stripslashes_variation3.phpt
index 830d798c4a..61af9db836 100644
--- a/ext/standard/tests/strings/stripslashes_variation3.phpt
+++ b/ext/standard/tests/strings/stripslashes_variation3.phpt
@@ -25,7 +25,7 @@ This is line 2 \tof "heredoc" string
EOT;
// initialising the string array
-$str_array = array(
+$str_array = array(
// string with newline character
"\n",
"\\n",
@@ -36,7 +36,7 @@ $str_array = array(
'Hello \nworld',
'Hello \\nworld',
$heredoc_string_with_newline,
-
+
// string with tab character
"\t",
"\\t",
diff --git a/ext/standard/tests/strings/stripslashes_variation4.phpt b/ext/standard/tests/strings/stripslashes_variation4.phpt
index d78076e22c..32e0c2fdc3 100644
--- a/ext/standard/tests/strings/stripslashes_variation4.phpt
+++ b/ext/standard/tests/strings/stripslashes_variation4.phpt
@@ -15,7 +15,7 @@ echo "*** Testing stripslashes() : with double dimensional arrays ***\n";
// initialising the string array
-$str_array = array(
+$str_array = array(
array("", array()),
array("", array("")),
array("f\\'oo", "b\\'ar", array("fo\\'o", "b\\'ar")),
diff --git a/ext/standard/tests/strings/stristr_variation1.phpt b/ext/standard/tests/strings/stristr_variation1.phpt
index f1e78bc4bd..795bf09323 100644
--- a/ext/standard/tests/strings/stristr_variation1.phpt
+++ b/ext/standard/tests/strings/stristr_variation1.phpt
@@ -17,7 +17,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -31,36 +31,36 @@ $inputs = array (
1,
-2,
-PHP_INT_MAX,
-
+
// float values
/*5*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*8*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*11*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*15*/ NULL,
null,
-
+
// objects
/*17*/ new sample(),
-
+
// resource
/*18*/ $file_handle,
-
+
// undefined variable
/*19*/ @$undefined_var,
-
+
// unset variable
/*20*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/stristr_variation2.phpt b/ext/standard/tests/strings/stristr_variation2.phpt
index 644fe24b10..4a0b62f261 100644
--- a/ext/standard/tests/strings/stristr_variation2.phpt
+++ b/ext/standard/tests/strings/stristr_variation2.phpt
@@ -17,7 +17,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -31,36 +31,36 @@ $inputs = array (
1,
-2,
-PHP_INT_MAX,
-
+
// float values
/*5*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*8*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*11*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*15*/ NULL,
null,
-
+
// objects
/*17*/ new sample(),
-
+
// resource
/*18*/ $file_handle,
-
+
// undefined variable
/*19*/ @$undefined_var,
-
+
// unset variable
/*20*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/strlen_variation1.phpt b/ext/standard/tests/strings/strlen_variation1.phpt
index 9ba138e57c..f1d6b6b978 100644
--- a/ext/standard/tests/strings/strlen_variation1.phpt
+++ b/ext/standard/tests/strings/strlen_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -33,36 +33,36 @@ $inputs = array (
-2,
2147483647,
-2147483648,
-
+
// float values
/*6*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*9*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*12*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*16*/ NULL,
null,
-
+
// objects
/*18*/ new sample(),
-
+
// resource
/*19*/ $file_handle,
-
+
// undefined variable
/*20*/ @$undefined_var,
-
+
// unset variable
/*21*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/strnatcasecmp_basic.phpt b/ext/standard/tests/strings/strnatcasecmp_basic.phpt
index d385c1958a..da71edf79c 100644
--- a/ext/standard/tests/strings/strnatcasecmp_basic.phpt
+++ b/ext/standard/tests/strings/strnatcasecmp_basic.phpt
@@ -7,7 +7,7 @@ Felix De Vliegher <felix.devliegher@gmail.com>
/* Prototype : int strnatcasecmp(string s1, string s2)
* Description: Returns the result of case-insensitive string comparison using 'natural' algorithm
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
function str_dump($one, $two) {
diff --git a/ext/standard/tests/strings/strnatcasecmp_variation1.phpt b/ext/standard/tests/strings/strnatcasecmp_variation1.phpt
index e74f6b73e9..a2f7ad38ca 100644
--- a/ext/standard/tests/strings/strnatcasecmp_variation1.phpt
+++ b/ext/standard/tests/strings/strnatcasecmp_variation1.phpt
@@ -7,7 +7,7 @@ Felix De Vliegher <felix.devliegher@gmail.com>
/* Prototype : int strnatcasecmp(string s1, string s2)
* Description: Returns the result of case-insensitive string comparison using 'natural' algorithm
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
/* Preparation */
diff --git a/ext/standard/tests/strings/strnatcmp_basic.phpt b/ext/standard/tests/strings/strnatcmp_basic.phpt
index bef01de653..c80a8e062e 100644
--- a/ext/standard/tests/strings/strnatcmp_basic.phpt
+++ b/ext/standard/tests/strings/strnatcmp_basic.phpt
@@ -34,7 +34,7 @@ var_dump(strnatcmp($d1, $c2));
echo "Equal too tests\n";
var_dump(strnatcmp($b1, $b1));
-var_dump(strnatcmp($b1, $b2));
+var_dump(strnatcmp($b1, $b2));
echo "Greater than tests\n";
var_dump(strnatcmp($b1, $a1));
diff --git a/ext/standard/tests/strings/strncasecmp_variation10.phpt b/ext/standard/tests/strings/strncasecmp_variation10.phpt
index adc9253964..8eb03ee518 100644
--- a/ext/standard/tests/strings/strncasecmp_variation10.phpt
+++ b/ext/standard/tests/strings/strncasecmp_variation10.phpt
@@ -32,7 +32,7 @@ $values = array (
1,
12345,
-2345,
-
+
/* float values */
10.5,
-10.5,
@@ -43,7 +43,7 @@ $values = array (
/* hexadecimal values */
0x12,
-0x12,
-
+
/* octal values */
012,
-012,
diff --git a/ext/standard/tests/strings/strncasecmp_variation11.phpt b/ext/standard/tests/strings/strncasecmp_variation11.phpt
index 03cc837077..d382df0a8e 100644
--- a/ext/standard/tests/strings/strncasecmp_variation11.phpt
+++ b/ext/standard/tests/strings/strncasecmp_variation11.phpt
@@ -32,7 +32,7 @@ $values = array (
1,
12345,
-2345,
-
+
/* float values */
10.5,
-10.5,
@@ -43,7 +43,7 @@ $values = array (
/* hexadecimal values */
0x12,
-0x12,
-
+
/* octal values */
012,
-012,
diff --git a/ext/standard/tests/strings/strncasecmp_variation3.phpt b/ext/standard/tests/strings/strncasecmp_variation3.phpt
index 5db892cfa1..b6d0f2917b 100644
--- a/ext/standard/tests/strings/strncasecmp_variation3.phpt
+++ b/ext/standard/tests/strings/strncasecmp_variation3.phpt
@@ -20,7 +20,7 @@ for($len = strlen($str1); $len >= 0; $len--) {
}
echo "*** Done ***\n";
?>
---EXPECT--
+--EXPECT--
*** Test strncasecmp() function: with different lengths ***
int(0)
int(0)
diff --git a/ext/standard/tests/strings/strncasecmp_variation4.phpt b/ext/standard/tests/strings/strncasecmp_variation4.phpt
index 9d46db9ee1..bc680caa31 100644
--- a/ext/standard/tests/strings/strncasecmp_variation4.phpt
+++ b/ext/standard/tests/strings/strncasecmp_variation4.phpt
@@ -32,7 +32,7 @@ $values = array (
1,
12345,
-2345,
-
+
/* float values */
10.5,
-10.5,
@@ -43,7 +43,7 @@ $values = array (
/* hexadecimal values */
0x12,
-0x12,
-
+
/* octal values */
012,
-012,
diff --git a/ext/standard/tests/strings/strncasecmp_variation8.phpt b/ext/standard/tests/strings/strncasecmp_variation8.phpt
index 6011a7b0fd..680653af90 100644
--- a/ext/standard/tests/strings/strncasecmp_variation8.phpt
+++ b/ext/standard/tests/strings/strncasecmp_variation8.phpt
@@ -2,7 +2,7 @@
Test strncasecmp() function: usage variations - single quoted strings
--FILE--
<?php
-/* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
+/* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
* Description: Binary safe case-insensitive string comparison of the first n characters
* Source code: Zend/zend_builtin_functions.c
*/
diff --git a/ext/standard/tests/strings/strncmp_variation1.phpt b/ext/standard/tests/strings/strncmp_variation1.phpt
index 2fc3c3d4c7..7bc91784b3 100644
--- a/ext/standard/tests/strings/strncmp_variation1.phpt
+++ b/ext/standard/tests/strings/strncmp_variation1.phpt
@@ -23,7 +23,7 @@ for($ASCII = 97; $ASCII <= 122; $ASCII++) {
}
echo "*** Done ***";
?>
---EXPECTREGEX--
+--EXPECTREGEX--
\*\*\* Test strncmp\(\) function: with alphabets \*\*\*
-- Passing upper-case letters for 'str1' --
int\(0\)
diff --git a/ext/standard/tests/strings/strncmp_variation4.phpt b/ext/standard/tests/strings/strncmp_variation4.phpt
index 84684ea551..9958abcaec 100644
--- a/ext/standard/tests/strings/strncmp_variation4.phpt
+++ b/ext/standard/tests/strings/strncmp_variation4.phpt
@@ -32,7 +32,7 @@ $values = array (
1,
12345,
-2345,
-
+
/* float values */
10.5,
-10.5,
@@ -43,7 +43,7 @@ $values = array (
/* hexadecimal values */
0x12,
-0x12,
-
+
/* octal values */
012,
-012,
diff --git a/ext/standard/tests/strings/strncmp_variation6.phpt b/ext/standard/tests/strings/strncmp_variation6.phpt
index e34d42cefc..f71119faf5 100644
--- a/ext/standard/tests/strings/strncmp_variation6.phpt
+++ b/ext/standard/tests/strings/strncmp_variation6.phpt
@@ -25,7 +25,7 @@ for($ASCII = 0; $ASCII <= 255; $ASCII++) {
}
echo "\n-- Checking with out of character's range, given in binary format --\n";
-/* Checking with the out of range ASCII value(given in binary format) */
+/* Checking with the out of range ASCII value(given in binary format) */
$str1 = decbin(256);
$str2 = decbin( ord( chr(256) ));
var_dump( strncmp($str1, $str2, 8) ); //comparing all the 8-bits; expected: int(1)
diff --git a/ext/standard/tests/strings/strncmp_variation8.phpt b/ext/standard/tests/strings/strncmp_variation8.phpt
index bc000d171e..9d8c841d68 100644
--- a/ext/standard/tests/strings/strncmp_variation8.phpt
+++ b/ext/standard/tests/strings/strncmp_variation8.phpt
@@ -2,7 +2,7 @@
Test strncmp() function: usage variations - single quoted strings
--FILE--
<?php
-/* Prototype : int strncmp ( string $str1, string $str2, int $len );
+/* Prototype : int strncmp ( string $str1, string $str2, int $len );
* Description: Binary safe case-sensitive string comparison of the first n characters
* Source code: Zend/zend_builtin_functions.c
*/
diff --git a/ext/standard/tests/strings/strncmp_variation9.phpt b/ext/standard/tests/strings/strncmp_variation9.phpt
index 1c83e80f09..194642fad4 100644
--- a/ext/standard/tests/strings/strncmp_variation9.phpt
+++ b/ext/standard/tests/strings/strncmp_variation9.phpt
@@ -22,7 +22,7 @@ EOD;
$str2 = <<<identifier_str2
Example of heredoc
string, whose identifier
-having underscore("_")
+having underscore("_")
& numeric value.
identifier_str2;
diff --git a/ext/standard/tests/strings/strpbrk_basic.phpt b/ext/standard/tests/strings/strpbrk_basic.phpt
index 23d59c2ff4..7cc36bec7e 100644
--- a/ext/standard/tests/strings/strpbrk_basic.phpt
+++ b/ext/standard/tests/strings/strpbrk_basic.phpt
@@ -5,7 +5,7 @@ Test strpbrk() function : basic functionality
/* Prototype : array strpbrk(string haystack, string char_list)
* Description: Search a string for any of a set of characters
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing strpbrk() : basic functionality ***\n";
diff --git a/ext/standard/tests/strings/strpbrk_error.phpt b/ext/standard/tests/strings/strpbrk_error.phpt
index 85729ea112..009aac699a 100644
--- a/ext/standard/tests/strings/strpbrk_error.phpt
+++ b/ext/standard/tests/strings/strpbrk_error.phpt
@@ -5,7 +5,7 @@ Test strpbrk() function : error conditions
/* Prototype : array strpbrk(string haystack, string char_list)
* Description: Search a string for any of a set of characters
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing strpbrk() : error conditions ***\n";
diff --git a/ext/standard/tests/strings/strrchr.phpt b/ext/standard/tests/strings/strrchr.phpt
index e98119ad8b..2af3726480 100644
--- a/ext/standard/tests/strings/strrchr.phpt
+++ b/ext/standard/tests/strings/strrchr.phpt
@@ -12,7 +12,7 @@ var_dump(strrchr("test".chr(0)."string", "t"));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
bool(false)
bool(false)
bool(false)
diff --git a/ext/standard/tests/strings/strrchr_basic.phpt b/ext/standard/tests/strings/strrchr_basic.phpt
index 5c3be8c121..5a2f86619c 100644
--- a/ext/standard/tests/strings/strrchr_basic.phpt
+++ b/ext/standard/tests/strings/strrchr_basic.phpt
@@ -10,8 +10,8 @@ Test strrchr() function : basic functionality
echo "*** Testing strrchr() function: basic functionality ***\n";
var_dump( strrchr("Hello, World", "H") ); //needle as single char
var_dump( strrchr("Hello, World", "Hello") ); //needle as a first word of haystack
-var_dump( strrchr('Hello, World', 'H') );
-var_dump( strrchr('Hello, World', 'Hello') );
+var_dump( strrchr('Hello, World', 'H') );
+var_dump( strrchr('Hello, World', 'Hello') );
//considering case
var_dump( strrchr("Hello, World", "h") );
diff --git a/ext/standard/tests/strings/strrchr_variation10.phpt b/ext/standard/tests/strings/strrchr_variation10.phpt
index fc69a76b1a..35ca3c6330 100644
--- a/ext/standard/tests/strings/strrchr_variation10.phpt
+++ b/ext/standard/tests/strings/strrchr_variation10.phpt
@@ -21,7 +21,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
diff --git a/ext/standard/tests/strings/strrchr_variation11.phpt b/ext/standard/tests/strings/strrchr_variation11.phpt
index b30ecbf242..67939daba5 100644
--- a/ext/standard/tests/strings/strrchr_variation11.phpt
+++ b/ext/standard/tests/strings/strrchr_variation11.phpt
@@ -19,7 +19,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
diff --git a/ext/standard/tests/strings/strrchr_variation2.phpt b/ext/standard/tests/strings/strrchr_variation2.phpt
index 46d7e99e5f..4e42818938 100644
--- a/ext/standard/tests/strings/strrchr_variation2.phpt
+++ b/ext/standard/tests/strings/strrchr_variation2.phpt
@@ -71,7 +71,7 @@ $needle = array(
42, //needle as int(ASCII value of '*')
$haystack //haystack as needle
);
-
+
/* loop through to get the position of the needle in haystack string */
$count = 1;
for($index=0; $index<count($needle); $index++) {
diff --git a/ext/standard/tests/strings/strrchr_variation3.phpt b/ext/standard/tests/strings/strrchr_variation3.phpt
index 947d613ee2..be4a95468d 100644
--- a/ext/standard/tests/strings/strrchr_variation3.phpt
+++ b/ext/standard/tests/strings/strrchr_variation3.phpt
@@ -19,14 +19,14 @@ using heredoc syntax.
EOD;
$needles = array(
- "ing",
- "",
+ "ing",
+ "",
" ",
$multi_line_str //needle as haystack
);
//loop through to test strrchr() with each needle
-foreach($needles as $needle) {
+foreach($needles as $needle) {
var_dump( strrchr($multi_line_str, $needle) );
}
diff --git a/ext/standard/tests/strings/strrchr_variation9.phpt b/ext/standard/tests/strings/strrchr_variation9.phpt
index 4d80825c85..1a86ba0cb1 100644
--- a/ext/standard/tests/strings/strrchr_variation9.phpt
+++ b/ext/standard/tests/strings/strrchr_variation9.phpt
@@ -21,7 +21,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
@@ -108,7 +108,7 @@ $needles = array (
//empty string
"",
'',
-
+
//resource variable in string form
"\$file_handle",
diff --git a/ext/standard/tests/strings/strrev.phpt b/ext/standard/tests/strings/strrev.phpt
index 321aca5bd7..92c66817d9 100644
--- a/ext/standard/tests/strings/strrev.phpt
+++ b/ext/standard/tests/strings/strrev.phpt
@@ -8,7 +8,7 @@ strrev() function
while ($i<256) {
$str .= chr($i++);
}
-
+
var_dump(md5(strrev($str)));
var_dump(strrev(NULL));
var_dump(strrev(""));
diff --git a/ext/standard/tests/strings/strripos_basic1.phpt b/ext/standard/tests/strings/strripos_basic1.phpt
index 759c23114e..70bbdf94e5 100644
--- a/ext/standard/tests/strings/strripos_basic1.phpt
+++ b/ext/standard/tests/strings/strripos_basic1.phpt
@@ -23,7 +23,7 @@ echo "\n-- single char for needle --\n";
var_dump( strripos("Hello, World", "O") );
var_dump( strripos("Hello, World", ",") );
-echo "\n-- heredoc string for haystack & needle --\n";
+echo "\n-- heredoc string for haystack & needle --\n";
var_dump( strripos($heredoc_str, "Hello, WoRLd") );
var_dump( strripos($heredoc_str, 'HelLO') );
var_dump( strripos($heredoc_str, $heredoc_str) );
diff --git a/ext/standard/tests/strings/strripos_basic2.phpt b/ext/standard/tests/strings/strripos_basic2.phpt
index d4a1a73f06..72d02d5c80 100644
--- a/ext/standard/tests/strings/strripos_basic2.phpt
+++ b/ext/standard/tests/strings/strripos_basic2.phpt
@@ -12,25 +12,25 @@ $heredoc_str = <<<EOD
Hello, World
EOD;
-echo "\n-- regular string for haystack & needle, with various offsets --\n";
+echo "\n-- regular string for haystack & needle, with various offsets --\n";
var_dump( strripos("Hello, World", "HeLLo", 0) );
var_dump( strripos("Hello, World", 'Hello', 1) );
var_dump( strripos('Hello, World', 'world', 1) );
var_dump( strripos('Hello, World', "WorLD", 5) );
-echo "\n-- heredoc string for haystack & needle, with various offsets --\n";
+echo "\n-- heredoc string for haystack & needle, with various offsets --\n";
var_dump( strripos($heredoc_str, "Hello, WORLD", 0) );
var_dump( strripos($heredoc_str, 'HelLo', 0) );
var_dump( strripos($heredoc_str, 'HeLLo', 1) );
var_dump( strripos($heredoc_str, $heredoc_str, 0) );
var_dump( strripos($heredoc_str, $heredoc_str, 1) );
-echo "\n-- various +ve offsets --\n";
+echo "\n-- various +ve offsets --\n";
var_dump( strripos("Hello, World", "O", 3) );
var_dump( strripos("Hello, World", "O", 6) );
var_dump( strripos("Hello, World", "O", 10) );
-echo "\n-- various -ve offsets --\n";
+echo "\n-- various -ve offsets --\n";
var_dump( strripos("Hello, World", "O", -1) );
var_dump( strripos("Hello, World", "O", -5) );
var_dump( strripos("Hello, World", "O", -9) );
diff --git a/ext/standard/tests/strings/strripos_offset.phpt b/ext/standard/tests/strings/strripos_offset.phpt
index 81e4e2ba8a..70a9534ebd 100644
--- a/ext/standard/tests/strings/strripos_offset.phpt
+++ b/ext/standard/tests/strings/strripos_offset.phpt
@@ -15,7 +15,7 @@ var_dump(strripos(1024, "te", -PHP_INT_MAX-1));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: strripos() expects parameter 3 to be int, float given in %s on line %d
bool(false)
diff --git a/ext/standard/tests/strings/strripos_variation1.phpt b/ext/standard/tests/strings/strripos_variation1.phpt
index 9ba4091633..0495f6c5f2 100644
--- a/ext/standard/tests/strings/strripos_variation1.phpt
+++ b/ext/standard/tests/strings/strripos_variation1.phpt
@@ -13,46 +13,46 @@ echo "*** Testing strripos() function: with double quoted strings ***\n";
$haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
$needles = array(
//regular strings
-/*1*/ "l",
+/*1*/ "l",
"L",
"HELLO",
"hEllo",
-
+
//escape characters
-/*5*/ "\t",
+/*5*/ "\t",
"\T", //invalid input
" ",
"\n",
"\N", //invalid input
"
", //new line
-
+
//nulls
-/*11*/ "\0",
+/*11*/ "\0",
NULL,
null,
-
+
//boolean false
/*14*/ FALSE,
false,
-
+
//empty string
/*16*/ "",
-
+
//special chars
-/*17*/ " ",
+/*17*/ " ",
"$",
" $",
"&",
- "!#",
+ "!#",
"()",
- "<=>",
- ">",
+ "<=>",
+ ">",
"=>",
"?",
"@",
"@hEllo",
-
+
/*29*/ "12345", //decimal numeric string
"\x23", //hexadecimal numeric string
"#", //respective ASCII char of \x23
@@ -61,7 +61,7 @@ $needles = array(
"456HEE", //numerics + chars
$haystack //haystack as needle
);
-
+
/* loop through to get the position of the needle in haystack string */
$count = 1;
foreach ($needles as $needle) {
diff --git a/ext/standard/tests/strings/strripos_variation2.phpt b/ext/standard/tests/strings/strripos_variation2.phpt
index 1711537d66..4222b06855 100644
--- a/ext/standard/tests/strings/strripos_variation2.phpt
+++ b/ext/standard/tests/strings/strripos_variation2.phpt
@@ -13,46 +13,46 @@ echo "*** Testing strripos() function: with single quoted strings ***\n";
$haystack = 'Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ';
$needles = array(
//regular strings
-/*1*/ 'l',
+/*1*/ 'l',
'L',
'HELLO',
'hEllo',
-
+
//escape characters
-/*5*/ '\t',
+/*5*/ '\t',
'\T',
' ',
'\n',
'\N',
'
', //new line
-
+
//nulls
-/*11*/ '\0',
+/*11*/ '\0',
NULL,
null,
-
+
//boolean false
/*14*/ FALSE,
false,
-
+
//empty string
/*16*/ '',
-
+
//special chars
-/*17*/ ' ',
+/*17*/ ' ',
'$',
' $',
'&',
'!#',
'()',
- '<=>',
+ '<=>',
'>',
'=>',
'?',
'@',
'@hEllo',
-
+
/*29*/ '12345', //decimal numeric string
'\x23', //hexadecimal numeric string
'#', //respective ASCII char of \x23
diff --git a/ext/standard/tests/strings/strrpos_offset.phpt b/ext/standard/tests/strings/strrpos_offset.phpt
index 6ecab108dc..9ef4f42d18 100644
--- a/ext/standard/tests/strings/strrpos_offset.phpt
+++ b/ext/standard/tests/strings/strrpos_offset.phpt
@@ -14,7 +14,7 @@ var_dump(strrpos(1024, "te", -PHP_INT_MAX-1));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: strrpos() expects parameter 3 to be int, float given in %s on line %d
bool(false)
diff --git a/ext/standard/tests/strings/strrpos_variation1.phpt b/ext/standard/tests/strings/strrpos_variation1.phpt
index 88da3d8230..ceb49df819 100644
--- a/ext/standard/tests/strings/strrpos_variation1.phpt
+++ b/ext/standard/tests/strings/strrpos_variation1.phpt
@@ -13,13 +13,13 @@ echo "*** Testing strrpos() function: with double quoted strings ***\n";
$haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
$needle = array(
//regular strings
- "l",
+ "l",
"L",
"HELLO",
"hEllo",
//escape characters
- "\t",
+ "\t",
"\T", //invalid input
" ",
"\n",
@@ -28,7 +28,7 @@ $needle = array(
", //new line
//nulls
- "\0",
+ "\0",
NULL,
null,
@@ -40,14 +40,14 @@ $needle = array(
"",
//special chars
- " ",
+ " ",
"$",
" $",
"&",
- "!#",
+ "!#",
"()",
- "<=>",
- ">",
+ "<=>",
+ ">",
"=>",
"?",
"@",
@@ -61,7 +61,7 @@ $needle = array(
"456HEE", //numerics + chars
$haystack //haystack as needle
);
-
+
/* loop through to get the position of the needle in haystack string */
$count = 1;
for($index=0; $index<count($needle); $index++) {
diff --git a/ext/standard/tests/strings/strrpos_variation10.phpt b/ext/standard/tests/strings/strrpos_variation10.phpt
index 1fc97ad4bd..c2e78f15cd 100644
--- a/ext/standard/tests/strings/strrpos_variation10.phpt
+++ b/ext/standard/tests/strings/strrpos_variation10.phpt
@@ -21,7 +21,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
diff --git a/ext/standard/tests/strings/strrpos_variation11.phpt b/ext/standard/tests/strings/strrpos_variation11.phpt
index a5d24220ea..7822b759e2 100644
--- a/ext/standard/tests/strings/strrpos_variation11.phpt
+++ b/ext/standard/tests/strings/strrpos_variation11.phpt
@@ -19,11 +19,11 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
// array with different values
$values = array (
diff --git a/ext/standard/tests/strings/strrpos_variation14.phpt b/ext/standard/tests/strings/strrpos_variation14.phpt
index a0586db20f..db4a0590d0 100644
--- a/ext/standard/tests/strings/strrpos_variation14.phpt
+++ b/ext/standard/tests/strings/strrpos_variation14.phpt
@@ -21,11 +21,11 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
//definition of input args
$haystack = "hello world";
diff --git a/ext/standard/tests/strings/strrpos_variation15.phpt b/ext/standard/tests/strings/strrpos_variation15.phpt
index 1b8983ed1f..798a6877e4 100644
--- a/ext/standard/tests/strings/strrpos_variation15.phpt
+++ b/ext/standard/tests/strings/strrpos_variation15.phpt
@@ -21,11 +21,11 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
// array with different values
$values = array (
diff --git a/ext/standard/tests/strings/strrpos_variation2.phpt b/ext/standard/tests/strings/strrpos_variation2.phpt
index 510f92ae0b..7027c069c7 100644
--- a/ext/standard/tests/strings/strrpos_variation2.phpt
+++ b/ext/standard/tests/strings/strrpos_variation2.phpt
@@ -13,13 +13,13 @@ echo "*** Testing strrpos() function: with single quoted strings ***\n";
$haystack = 'Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ';
$needle = array(
//regular strings
- 'l',
+ 'l',
'L',
'HELLO',
'hEllo',
//escape characters
- '\t',
+ '\t',
'\T',
' ',
'\n',
@@ -28,7 +28,7 @@ $needle = array(
', //new line
//nulls
- '\0',
+ '\0',
NULL,
null,
@@ -40,13 +40,13 @@ $needle = array(
'',
//special chars
- ' ',
+ ' ',
'$',
' $',
'&',
'!#',
'()',
- '<=>',
+ '<=>',
'>',
'=>',
'?',
diff --git a/ext/standard/tests/strings/strrpos_variation9.phpt b/ext/standard/tests/strings/strrpos_variation9.phpt
index 04d8f44e8b..576d5b41e4 100644
--- a/ext/standard/tests/strings/strrpos_variation9.phpt
+++ b/ext/standard/tests/strings/strrpos_variation9.phpt
@@ -19,7 +19,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "object";
- }
+ }
}
//getting the resource
diff --git a/ext/standard/tests/strings/strspn_basic.phpt b/ext/standard/tests/strings/strspn_basic.phpt
index dd43470826..2da0f528e3 100644
--- a/ext/standard/tests/strings/strspn_basic.phpt
+++ b/ext/standard/tests/strings/strspn_basic.phpt
@@ -4,7 +4,7 @@ Test strspn() function : basic functionality
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided, it works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided, it works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strspn_error.phpt b/ext/standard/tests/strings/strspn_error.phpt
index caa1f901a1..494bcd6a05 100644
--- a/ext/standard/tests/strings/strspn_error.phpt
+++ b/ext/standard/tests/strings/strspn_error.phpt
@@ -4,7 +4,7 @@ Test strspn() function : error conditions
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strspn_variation1.phpt b/ext/standard/tests/strings/strspn_variation1.phpt
index 45e71edc28..6b73b212ea 100644
--- a/ext/standard/tests/strings/strspn_variation1.phpt
+++ b/ext/standard/tests/strings/strspn_variation1.phpt
@@ -4,7 +4,7 @@ Test strspn() function : usage variations - unexpected values for str argument
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strspn_variation10.phpt b/ext/standard/tests/strings/strspn_variation10.phpt
index 6c87eb01db..63071e3320 100644
--- a/ext/standard/tests/strings/strspn_variation10.phpt
+++ b/ext/standard/tests/strings/strspn_variation10.phpt
@@ -4,7 +4,7 @@ Test strspn() function : usage variations - with varying mask & default start an
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -50,7 +50,7 @@ $mask_array = array(
" \t",
"fhel\t\i\100\xa"
);
-
+
// loop through each element of the array for mask argument
diff --git a/ext/standard/tests/strings/strspn_variation11.phpt b/ext/standard/tests/strings/strspn_variation11.phpt
index 8f85e979a7..41dd46e4f6 100644
--- a/ext/standard/tests/strings/strspn_variation11.phpt
+++ b/ext/standard/tests/strings/strspn_variation11.phpt
@@ -4,7 +4,7 @@ Test strspn() function : usage variations - with varying start and default len a
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -61,7 +61,7 @@ $start_array = array(
2147483647, // max positive integer
-2147483648, // min negative integer
);
-
+
// loop through each element of the arrays for str, mask and start argument
$count = 1;
diff --git a/ext/standard/tests/strings/strspn_variation12.phpt b/ext/standard/tests/strings/strspn_variation12.phpt
index df353ec040..c8dd29f214 100644
--- a/ext/standard/tests/strings/strspn_variation12.phpt
+++ b/ext/standard/tests/strings/strspn_variation12.phpt
@@ -4,7 +4,7 @@ Test strspn() function : usage variations - with varying start and len args
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -51,7 +51,7 @@ $start_array = array(
2147483647, // max positive integer
-2147483648, // min negative integer
);
-
+
// defining an array of len values
$len_array = array(
0,
@@ -61,7 +61,7 @@ $len_array = array(
2147483647, // max positive integer
-2147483648, // min negative integer
);
-
+
// loop through each element of the array for len argument
$count = 1;
diff --git a/ext/standard/tests/strings/strspn_variation2.phpt b/ext/standard/tests/strings/strspn_variation2.phpt
index 57929fa352..b968ce1436 100644
--- a/ext/standard/tests/strings/strspn_variation2.phpt
+++ b/ext/standard/tests/strings/strspn_variation2.phpt
@@ -4,7 +4,7 @@ Test strspn() function : usage variations - unexpected values for mask argument
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strspn_variation3.phpt b/ext/standard/tests/strings/strspn_variation3.phpt
index db1a51abf4..11a37c6f94 100644
--- a/ext/standard/tests/strings/strspn_variation3.phpt
+++ b/ext/standard/tests/strings/strspn_variation3.phpt
@@ -4,7 +4,7 @@ Test strspn() function : usage variations - unexpected values of start argument
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strspn_variation4.phpt b/ext/standard/tests/strings/strspn_variation4.phpt
index 74c7db421b..82da538057 100644
--- a/ext/standard/tests/strings/strspn_variation4.phpt
+++ b/ext/standard/tests/strings/strspn_variation4.phpt
@@ -4,7 +4,7 @@ Test strspn() function : usage variations - unexpected values of len argument
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
diff --git a/ext/standard/tests/strings/strspn_variation6.phpt b/ext/standard/tests/strings/strspn_variation6.phpt
index 3e039909e0..b202bb8234 100644
--- a/ext/standard/tests/strings/strspn_variation6.phpt
+++ b/ext/standard/tests/strings/strspn_variation6.phpt
@@ -4,7 +4,7 @@ Test strspn() function : usage variations - with heredoc strings, varying mask &
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -74,7 +74,7 @@ $mask_array = array(
"l \te",
"lf\the\i\100\xaa"
);
-
+
// loop through each element of the array for different heredoc and mask strings
diff --git a/ext/standard/tests/strings/strspn_variation7.phpt b/ext/standard/tests/strings/strspn_variation7.phpt
index b3a4dbe7c3..5b229dad3c 100644
--- a/ext/standard/tests/strings/strspn_variation7.phpt
+++ b/ext/standard/tests/strings/strspn_variation7.phpt
@@ -4,7 +4,7 @@ Test strspn() function : usage variations - with heredoc strings, varying start
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -85,7 +85,7 @@ $start_array = array(
2147483647, // max positive integer
-2147483648, // min negative integer
);
-
+
// loop through each element of the array for heredoc strings, mask strings and start values
diff --git a/ext/standard/tests/strings/strspn_variation8.phpt b/ext/standard/tests/strings/strspn_variation8.phpt
index 0033aea837..57e0f80ed6 100644
--- a/ext/standard/tests/strings/strspn_variation8.phpt
+++ b/ext/standard/tests/strings/strspn_variation8.phpt
@@ -4,7 +4,7 @@ Test strspn() function : usage variations - with heredoc strings, varying start
<?php
/* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
* Description: Finds length of initial segment consisting entirely of characters found in mask.
- If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
+ If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
* Source code: ext/standard/string.c
* Alias to functions: none
*/
@@ -81,7 +81,7 @@ $start_array = array(
2147483647, // max positive integer
-2147483648, // min negative integer
);
-
+
// defining array of different len values
$len_array = array(
0,
@@ -91,13 +91,13 @@ $len_array = array(
2147483647, // max positive integer
-2147483648, // min negative integer
);
-
+
// loop through each element of the array for heredoc str, mask str , start values and len values
$count = 1;
-foreach($heredoc_strings as $str) {
+foreach($heredoc_strings as $str) {
echo "\n-- Iteration $count --\n";
foreach($mask_array as $mask) {
foreach($start_array as $start) {
@@ -107,7 +107,7 @@ foreach($heredoc_strings as $str) {
}
}
$count++;
-};
+};
echo "Done"
?>
diff --git a/ext/standard/tests/strings/strtok_error.phpt b/ext/standard/tests/strings/strtok_error.phpt
index 58044e7b62..b05a86c5fd 100644
--- a/ext/standard/tests/strings/strtok_error.phpt
+++ b/ext/standard/tests/strings/strtok_error.phpt
@@ -29,7 +29,7 @@ var_dump( $str );
// Less than expected number of arguments
echo "\n-- Testing strtok() with less than expected no. of arguments --\n";
$str = 'string val';
-
+
var_dump( strtok($str));
var_dump( $str );
diff --git a/ext/standard/tests/strings/strtok_variation2.phpt b/ext/standard/tests/strings/strtok_variation2.phpt
index 68fec53fb6..26de1ae0b5 100644
--- a/ext/standard/tests/strings/strtok_variation2.phpt
+++ b/ext/standard/tests/strings/strtok_variation2.phpt
@@ -24,7 +24,7 @@ class sample {
public function __toString() {
return "obj-ect";
}
-}
+}
// Defining resource
$file_handle = fopen(__FILE__, 'r');
@@ -74,7 +74,7 @@ $values = array (
// unset variable
$unset_var,
-
+
// resource
$file_handle
);
diff --git a/ext/standard/tests/strings/strtok_variation5.phpt b/ext/standard/tests/strings/strtok_variation5.phpt
index 699c7a9695..a99d13eb7a 100644
--- a/ext/standard/tests/strings/strtok_variation5.phpt
+++ b/ext/standard/tests/strings/strtok_variation5.phpt
@@ -27,7 +27,7 @@ $string_array = array(
chr(0).'hello'.chr(0),
'hello'.chr(0).'world'
);
-$token_array = array(
+$token_array = array(
"wr",
"hello world",
"__",
@@ -47,13 +47,13 @@ $token_array = array(
$counter =1;
foreach( $string_array as $string ) {
echo "\n--- Iteration $counter ---\n";
- var_dump( strtok($string, $token_array[$counter-1]) );
+ var_dump( strtok($string, $token_array[$counter-1]) );
for( $count = 1; $count <=5; $count++ ) {
var_dump( strtok($token_array[$counter-1]) );
}
$counter++;
-}
-
+}
+
echo "Done\n";
?>
diff --git a/ext/standard/tests/strings/strtok_variation6.phpt b/ext/standard/tests/strings/strtok_variation6.phpt
index 4b379ec86f..16b64c876c 100644
--- a/ext/standard/tests/strings/strtok_variation6.phpt
+++ b/ext/standard/tests/strings/strtok_variation6.phpt
@@ -20,7 +20,7 @@ $string_array = array(
"/khello\k world/k",
"/hellok/ world"
);
-$token_array = array(
+$token_array = array(
"k",
"/ ",
"/k",
@@ -34,16 +34,16 @@ $token_array = array(
$counter =1;
foreach( $string_array as $string ) {
echo "\n--- Iteration $counter ---\n";
- foreach( $token_array as $token ) {
- var_dump( strtok($string, $token) );
+ foreach( $token_array as $token ) {
+ var_dump( strtok($string, $token) );
for( $count = 1; $count <=3; $count++ ) {
var_dump( strtok($token) );
}
echo "\n";
}
$counter++;
-}
-
+}
+
echo "Done\n";
?>
diff --git a/ext/standard/tests/strings/strtok_variation7.phpt b/ext/standard/tests/strings/strtok_variation7.phpt
index 9a88c93668..aeb6820f2a 100644
--- a/ext/standard/tests/strings/strtok_variation7.phpt
+++ b/ext/standard/tests/strings/strtok_variation7.phpt
@@ -17,7 +17,7 @@ $str = "this is a sample string";
$token = " ";
echo "\n*** Testing strtok() when string being tokenised is prefixed with another string in between the process ***\n";
-var_dump( strtok($str, $token) );
+var_dump( strtok($str, $token) );
// adding a string to the input string which is being tokenised
$str = "extra string ".$str;
for( $count = 1; $count <=6; $count++ ) {
@@ -25,9 +25,9 @@ for( $count = 1; $count <=6; $count++ ) {
var_dump( strtok($token) );
echo "\n-- Input str is \"$str\" --\n";
}
-
+
echo "\n*** Testing strtok() when string being tokenised is suffixed with another string in between the process ***\n";
-var_dump( strtok($str, $token) );
+var_dump( strtok($str, $token) );
// adding a string to the input string which is being tokenised
$str = $str." extra string";
for( $count = 1; $count <=10; $count++ ) {
diff --git a/ext/standard/tests/strings/strtr_basic.phpt b/ext/standard/tests/strings/strtr_basic.phpt
index 8f4ccdc326..5660be9f9b 100644
--- a/ext/standard/tests/strings/strtr_basic.phpt
+++ b/ext/standard/tests/strings/strtr_basic.phpt
@@ -27,7 +27,7 @@ var_dump( strtr('test strtr', 'test', 'TEST') );
var_dump( strtr($heredoc_str, "test", "TEST") );
//$from and $to are of different lengths, extra chars in the longer one are ignored
-var_dump( strtr("test strtr", "test", "TESTz") );
+var_dump( strtr("test strtr", "test", "TESTz") );
var_dump( strtr('test strtr', 'testz', 'TEST') );
var_dump( strtr($heredoc_str, "test", "TESTz") );
diff --git a/ext/standard/tests/strings/strtr_variation5.phpt b/ext/standard/tests/strings/strtr_variation5.phpt
index 7f398cfe65..bac7903fa0 100644
--- a/ext/standard/tests/strings/strtr_variation5.phpt
+++ b/ext/standard/tests/strings/strtr_variation5.phpt
@@ -22,7 +22,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -35,36 +35,36 @@ $strings = array (
/*1*/ 0,
1,
-2,
-
+
// float values
/*4*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*7*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*10*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*14*/ NULL,
null,
-
+
// objects
/*16*/ new sample(),
-
+
// resource
/*17*/ $file_handle,
-
+
// undefined variable
/*18*/ @$undefined_var,
-
+
// unset variable
/*19*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/strtr_variation6.phpt b/ext/standard/tests/strings/strtr_variation6.phpt
index ba7c72c215..831d81d3fb 100644
--- a/ext/standard/tests/strings/strtr_variation6.phpt
+++ b/ext/standard/tests/strings/strtr_variation6.phpt
@@ -22,7 +22,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -38,36 +38,36 @@ $from_arr = array (
/*1*/ 0,
1,
-2,
-
+
// float values
/*4*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*7*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*10*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*14*/ NULL,
null,
-
+
// objects
/*16*/ new sample(),
-
+
// resource
/*17*/ $file_handle,
-
+
// undefined variable
/*18*/ @$undefined_var,
-
+
// unset variable
/*19*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/strtr_variation7.phpt b/ext/standard/tests/strings/strtr_variation7.phpt
index b8d8de7de0..5842795273 100644
--- a/ext/standard/tests/strings/strtr_variation7.phpt
+++ b/ext/standard/tests/strings/strtr_variation7.phpt
@@ -22,7 +22,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -41,36 +41,36 @@ $to_arr = array (
/*1*/ 0,
1,
-2,
-
+
// float values
/*4*/ 10.5,
-20.5,
10.12345675e10,
-
+
// array values
/*7*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*10*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*14*/ NULL,
null,
-
+
// objects
/*16*/ new sample(),
-
+
// resource
/*17*/ $file_handle,
-
+
// undefined variable
/*18*/ @$undefined_var,
-
+
// unset variable
/*19*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/strtr_variation8.phpt b/ext/standard/tests/strings/strtr_variation8.phpt
index dd10c814f0..646e4b4b22 100644
--- a/ext/standard/tests/strings/strtr_variation8.phpt
+++ b/ext/standard/tests/strings/strtr_variation8.phpt
@@ -22,7 +22,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
diff --git a/ext/standard/tests/strings/strtr_variation9.phpt b/ext/standard/tests/strings/strtr_variation9.phpt
index 107258e2ef..427fde5f75 100644
--- a/ext/standard/tests/strings/strtr_variation9.phpt
+++ b/ext/standard/tests/strings/strtr_variation9.phpt
@@ -20,7 +20,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
@@ -33,38 +33,38 @@ $values = array (
/*1*/ 0,
1,
-2,
-
+
// float values
/*4*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*7*/ array(),
array(0),
array(1),
array(1, 2),
array('color' => 'red', 'item' => 'pen'),
-
+
// boolean values
/*12*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*16*/ NULL,
null,
-
+
// objects
/*18*/ new sample(),
-
+
// resource
/*19*/ $file_handle,
-
+
// undefined variable
/*20*/ @$undefined_var,
-
+
// unset variable
/*21*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/strtr_with_reference.phpt b/ext/standard/tests/strings/strtr_with_reference.phpt
index a28d1e7be9..21cdc20318 100644
--- a/ext/standard/tests/strings/strtr_with_reference.phpt
+++ b/ext/standard/tests/strings/strtr_with_reference.phpt
@@ -4,7 +4,7 @@ strtr() with references
<?php
$foo = 'foo';
-$arr = ['bar' => &$foo];
+$arr = ['bar' => &$foo];
var_dump(strtr('foobar', $arr));
?>
diff --git a/ext/standard/tests/strings/strval_basic.phpt b/ext/standard/tests/strings/strval_basic.phpt
index 70a12c7f36..94d1d92331 100644
--- a/ext/standard/tests/strings/strval_basic.phpt
+++ b/ext/standard/tests/strings/strval_basic.phpt
@@ -21,19 +21,19 @@ $values = array(
// Simple strings
/*1*/ "Hello World",
'Hello World',
-
+
// String with control chars
/*3*/ "String\nwith\ncontrol\ncharacters\r\n",
-
+
// String with quotes
/*4*/ "String with \"quotes\"",
-
+
//Numeric String
/*5*/ "123456",
-
+
// Hexadecimal string
/*6*/ "0xABC",
-
+
//Heredoc String
/*7*/ $simple_heredoc
);
diff --git a/ext/standard/tests/strings/strval_variation1.phpt b/ext/standard/tests/strings/strval_variation1.phpt
index 430a4362bd..e17d9941d5 100644
--- a/ext/standard/tests/strings/strval_variation1.phpt
+++ b/ext/standard/tests/strings/strval_variation1.phpt
@@ -32,53 +32,53 @@ $values = array(
1,
12345,
-12345,
-
+
//Octal values
/*5*/ 02,
010,
030071,
-030071,
-
+
//Hexadecimal values
/*9*/ 0x0,
0x1,
0xABCD,
-0xABCD,
-
+
// float data
/*13*/ 100.5,
-100.5,
100.1234567e10,
100.7654321E-10,
.5,
-
+
// array data
/*18*/ array(),
array('color' => 'red', 'item' => 'pen'),
-
+
// null data
/*20*/ NULL,
null,
-
+
// boolean data
/*22*/ true,
false,
TRUE,
FALSE,
-
+
// empty data
/*26*/ "",
'',
-
+
// object data
/*28*/ new MyClass(),
-
+
// resource
/*29*/ $file_handle,
-
+
// undefined data
/*30*/ @$undefined_var,
-
+
// unset data
/*31*/ @$unset_var,
);
diff --git a/ext/standard/tests/strings/substr_count_basic.phpt b/ext/standard/tests/strings/substr_count_basic.phpt
index a3b3553dfc..4023a774d8 100644
--- a/ext/standard/tests/strings/substr_count_basic.phpt
+++ b/ext/standard/tests/strings/substr_count_basic.phpt
@@ -21,7 +21,7 @@ var_dump(substr_count($a, "bca", -200));
var_dump(substr_count($a, "bca", -200, 50));
var_dump(substr_count($a, "bca", -200, -50));
-echo "Done\n";
+echo "Done\n";
?>
--EXPECT--
diff --git a/ext/standard/tests/strings/substr_count_error.phpt b/ext/standard/tests/strings/substr_count_error.phpt
index c086582caa..9ea1d95121 100644
--- a/ext/standard/tests/strings/substr_count_error.phpt
+++ b/ext/standard/tests/strings/substr_count_error.phpt
@@ -11,7 +11,7 @@ var_dump( substr_count() );
/* more than expected no. of args */
var_dump( substr_count($str, "t", 0, 15, 30) );
-
+
/* offset before start */
var_dump(substr_count($str, "t", -20));
diff --git a/ext/standard/tests/strings/substr_count_variation_001.phpt b/ext/standard/tests/strings/substr_count_variation_001.phpt
index c2644ce89b..71f2d223e1 100644
--- a/ext/standard/tests/strings/substr_count_variation_001.phpt
+++ b/ext/standard/tests/strings/substr_count_variation_001.phpt
@@ -19,8 +19,8 @@ var_dump( substr_count($str, "I", NULL) );
var_dump( substr_count($str, "i", NULL, 10) );
echo "\n-- overlapped substrings --\n";
-var_dump( substr_count("abcabcabcabcabc", "abca") );
-var_dump( substr_count("abcabcabcabcabc", "abca", 2) );
+var_dump( substr_count("abcabcabcabcabc", "abca") );
+var_dump( substr_count("abcabcabcabcabc", "abca", 2) );
echo "\n-- complex strings containing other than 7-bit chars --\n";
$str = chr(128).chr(129).chr(128).chr(256).chr(255).chr(254).chr(255);
@@ -49,7 +49,7 @@ var_dump(substr_count($str, "\0"));
var_dump(substr_count($str, "\x000"));
var_dump(substr_count($str, "0"));
-echo "Done\n";
+echo "Done\n";
?>
--EXPECTF--
diff --git a/ext/standard/tests/strings/substr_count_variation_002.phpt b/ext/standard/tests/strings/substr_count_variation_002.phpt
index a1310a22b5..29b8afd9f5 100644
--- a/ext/standard/tests/strings/substr_count_variation_002.phpt
+++ b/ext/standard/tests/strings/substr_count_variation_002.phpt
@@ -31,7 +31,7 @@ var_dump(substr_count($str, "\0"));
var_dump(substr_count($str, "\x000"));
var_dump(substr_count($str, "0"));
-echo "Done\n";
+echo "Done\n";
?>
--EXPECT--
diff --git a/ext/standard/tests/strings/substr_replace_error.phpt b/ext/standard/tests/strings/substr_replace_error.phpt
index 0a15035af2..31fdae3397 100644
--- a/ext/standard/tests/strings/substr_replace_error.phpt
+++ b/ext/standard/tests/strings/substr_replace_error.phpt
@@ -23,15 +23,15 @@ echo "\n-- Testing substr_replace() function with more than expected no. of argu
var_dump(substr_replace($s1, "evening", 5, 7, true));
echo "\n-- Testing substr_replace() function with start and length different types --\n";
-var_dump(substr_replace($s1, "evening", array(5)));
-var_dump(substr_replace($s1, "evening", 5, array(8)));
-
+var_dump(substr_replace($s1, "evening", array(5)));
+var_dump(substr_replace($s1, "evening", 5, array(8)));
+
echo "\n-- Testing substr_replace() function with start and length with a different number of elements --\n";
-var_dump(substr_replace($s1, "evening", array(5, 1), array(8)));
+var_dump(substr_replace($s1, "evening", array(5, 1), array(8)));
echo "\n-- Testing substr_replace() function with start and length as arrays but string not--\n";
-var_dump(substr_replace($s1, "evening", array(5), array(8)));
-
+var_dump(substr_replace($s1, "evening", array(5), array(8)));
+
?>
===DONE===
--EXPECTF--
diff --git a/ext/standard/tests/strings/trim_basic.phpt b/ext/standard/tests/strings/trim_basic.phpt
index 501b477420..87f261ca7b 100644
--- a/ext/standard/tests/strings/trim_basic.phpt
+++ b/ext/standard/tests/strings/trim_basic.phpt
@@ -17,10 +17,10 @@ $binary = "\x0A\x0DExample string\x0A\x0D";
echo "\n-- Trim string with all white space characters --\n";
var_dump(trim($text));
-echo "\n-- Trim non-whitespace from a string --\n";
+echo "\n-- Trim non-whitespace from a string --\n";
var_dump(trim($hello, "=!"));
-echo "\n-- Trim some non-white space characters from a string --\n";
+echo "\n-- Trim some non-white space characters from a string --\n";
var_dump(trim($hello, "Hdle"));
echo "\n-- Trim the ASCII control characters at the beginning of a string --\n";
diff --git a/ext/standard/tests/strings/trim_variation1.phpt b/ext/standard/tests/strings/trim_variation1.phpt
index 4ef40c6801..cbbd5b9e4c 100644
--- a/ext/standard/tests/strings/trim_variation1.phpt
+++ b/ext/standard/tests/strings/trim_variation1.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return " !---sample object---! ";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/trim_variation2.phpt b/ext/standard/tests/strings/trim_variation2.phpt
index 11b2aaf1cc..b4c0352404 100644
--- a/ext/standard/tests/strings/trim_variation2.phpt
+++ b/ext/standard/tests/strings/trim_variation2.phpt
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return " sample object ";
- }
+ }
}
//getting the resource
@@ -34,36 +34,36 @@ $inputs = array (
256,
2147483647,
-2147483648,
-
+
// float values
/*7*/ 10.5,
-20.5,
10.1234567e10,
-
+
// array values
/*10*/ array(),
array(0),
array(1, 2),
-
+
// boolean values
/*13*/ true,
false,
TRUE,
FALSE,
-
+
// null values
/*17*/ NULL,
null,
-
+
// objects
/*19*/ new sample(),
-
+
// resource
/*20*/ $file_handle,
-
+
// undefined variable
/*21*/ @$undefined_var,
-
+
// unset variable
/*22*/ @$unset_var
);
diff --git a/ext/standard/tests/strings/ucwords_variation1.phpt b/ext/standard/tests/strings/ucwords_variation1.phpt
index 02edf05131..c0107e1300 100644
--- a/ext/standard/tests/strings/ucwords_variation1.phpt
+++ b/ext/standard/tests/strings/ucwords_variation1.phpt
@@ -82,7 +82,7 @@ $values = array (
'0x123',
"0xFF12",
"-0xFF12",
-
+
// undefined variable
@$undefined_var,
diff --git a/ext/standard/tests/strings/ucwords_variation3.phpt b/ext/standard/tests/strings/ucwords_variation3.phpt
index 8b38bb9401..c807990091 100644
--- a/ext/standard/tests/strings/ucwords_variation3.phpt
+++ b/ext/standard/tests/strings/ucwords_variation3.phpt
@@ -29,7 +29,7 @@ $str_array = array(
'"testing",ucword,"test"',
'"t""t",test, t',
'\'t \'t\',test',
-
+
// using other white spaces
'\ttesting\ttesting\tucwords',
'testing\rucwords testing ucwords',
@@ -41,7 +41,7 @@ $str_array = array(
't@@#$% %test ^test &test *test +test -test',
'!test ~test `test` =test= @test@test.com',
'/test/r\test\ucwords\t\y\y\u\3 \yy\ /uu/',
-
+
//only special chars
'!@#$%^&*()_+=-`~'
);
diff --git a/ext/standard/tests/strings/ucwords_variation4.phpt b/ext/standard/tests/strings/ucwords_variation4.phpt
index 023efd3d46..be6764bc5f 100644
--- a/ext/standard/tests/strings/ucwords_variation4.phpt
+++ b/ext/standard/tests/strings/ucwords_variation4.phpt
@@ -31,7 +31,7 @@ $str_array = array(
"\'t \'t\',test",
"Jack's pen",
"P't'y 't it's ",
-
+
// using other white spaces
"\ttesting\ttesting\tucwords",
"\\ttesting\\ttesting\tucwords",
@@ -48,7 +48,7 @@ $str_array = array(
"t@@#$% %test ^test &test *test +test -test",
"!test ~test `test` =test= @test@test.com",
"/test/r\test\\ucwords\t\y\y\\u\3 \yy\ /uu/",
-
+
//only special chars
"!@#$%^&*()_+=-`~"
);
diff --git a/ext/standard/tests/strings/utf8_decode_error.phpt b/ext/standard/tests/strings/utf8_decode_error.phpt
index 911cc15cfc..201459edab 100644
--- a/ext/standard/tests/strings/utf8_decode_error.phpt
+++ b/ext/standard/tests/strings/utf8_decode_error.phpt
@@ -5,7 +5,7 @@ Test utf8_decode() function : error conditions
/* Prototype : proto string utf8_decode(string data)
* Description: Converts a UTF-8 encoded string to ISO-8859-1
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing utf8_decode() : error conditions ***\n";
diff --git a/ext/standard/tests/strings/utf8_decode_variation1.phpt b/ext/standard/tests/strings/utf8_decode_variation1.phpt
index f564b87da0..5b03723be0 100644
--- a/ext/standard/tests/strings/utf8_decode_variation1.phpt
+++ b/ext/standard/tests/strings/utf8_decode_variation1.phpt
@@ -5,7 +5,7 @@ Test utf8_decode() function : usage variations - different types for data
/* Prototype : proto string utf8_decode(string data)
* Description: Converts a UTF-8 encoded string to ISO-8859-1
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing utf8_decode() : usage variations ***\n";
diff --git a/ext/standard/tests/strings/utf8_encode_error.phpt b/ext/standard/tests/strings/utf8_encode_error.phpt
index e12f0978b6..1aabeedd81 100644
--- a/ext/standard/tests/strings/utf8_encode_error.phpt
+++ b/ext/standard/tests/strings/utf8_encode_error.phpt
@@ -5,7 +5,7 @@ Test utf8_encode() function : error conditions
/* Prototype : proto string utf8_encode(string data)
* Description: Encodes an ISO-8859-1 string to UTF-8
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing utf8_encode() : error conditions ***\n";
diff --git a/ext/standard/tests/strings/utf8_encode_variation1.phpt b/ext/standard/tests/strings/utf8_encode_variation1.phpt
index fa4b79976e..80edc9ac68 100644
--- a/ext/standard/tests/strings/utf8_encode_variation1.phpt
+++ b/ext/standard/tests/strings/utf8_encode_variation1.phpt
@@ -5,7 +5,7 @@ Test utf8_encode() function : usage variations - <type here specifics of this v
/* Prototype : proto string utf8_encode(string data)
* Description: Encodes an ISO-8859-1 string to UTF-8
* Source code: ext/standard/string.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing utf8_encode() : usage variations ***\n";
diff --git a/ext/standard/tests/strings/uuencode.phpt b/ext/standard/tests/strings/uuencode.phpt
index 3671cd736c..5a1f3d2a24 100644
--- a/ext/standard/tests/strings/uuencode.phpt
+++ b/ext/standard/tests/strings/uuencode.phpt
@@ -17,7 +17,7 @@ var_dump(convert_uudecode(substr($enc, 0, -10)));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: convert_uuencode() expects parameter 1 to be string, array given in %s on line %d
bool(false)
diff --git a/ext/standard/tests/strings/vfprintf_basic.phpt b/ext/standard/tests/strings/vfprintf_basic.phpt
index 5ba2b91007..37d91a7b60 100644
--- a/ext/standard/tests/strings/vfprintf_basic.phpt
+++ b/ext/standard/tests/strings/vfprintf_basic.phpt
@@ -9,7 +9,7 @@ precision=14
/* Prototype : int vfprintf(resource stream, string format, array args)
* Description: Output a formatted string into a stream
* Source code: ext/standard/formatted_print.c
- * Alias to functions:
+ * Alias to functions:
*/
function writeAndDump($fp, $format, $args)
diff --git a/ext/standard/tests/strings/vfprintf_basic2.phpt b/ext/standard/tests/strings/vfprintf_basic2.phpt
index 36d6577bbd..db28f5fb70 100644
--- a/ext/standard/tests/strings/vfprintf_basic2.phpt
+++ b/ext/standard/tests/strings/vfprintf_basic2.phpt
@@ -28,13 +28,13 @@ if (!($fp = fopen($data_file, 'wt')))
return;
vfprintf($fp, $format1, $arg1);
-fprintf($fp, "\n");
+fprintf($fp, "\n");
vfprintf($fp, $format2, $arg2);
-fprintf($fp, "\n");
+fprintf($fp, "\n");
vfprintf($fp, $format3, $arg3);
-fprintf($fp, "\n");
+fprintf($fp, "\n");
fclose($fp);
print_r(file_get_contents($data_file));
diff --git a/ext/standard/tests/strings/vfprintf_basic3.phpt b/ext/standard/tests/strings/vfprintf_basic3.phpt
index 565079dc60..bd9efaa2e0 100644
--- a/ext/standard/tests/strings/vfprintf_basic3.phpt
+++ b/ext/standard/tests/strings/vfprintf_basic3.phpt
@@ -29,22 +29,22 @@ if (!($fp = fopen($data_file, 'wt')))
return;
vfprintf($fp, $format1,$arg1);
-fprintf($fp, "\n");
+fprintf($fp, "\n");
vfprintf($fp,$format11,$arg1);
-fprintf($fp, "\n");
+fprintf($fp, "\n");
vfprintf($fp,$format2,$arg2);
-fprintf($fp, "\n");
+fprintf($fp, "\n");
vfprintf($fp,$format22,$arg2);
-fprintf($fp, "\n");
+fprintf($fp, "\n");
vfprintf($fp,$format3,$arg3);
-fprintf($fp, "\n");
+fprintf($fp, "\n");
vfprintf($fp, $format33,$arg3);
-fprintf($fp, "\n");
+fprintf($fp, "\n");
fclose($fp);
print_r(file_get_contents($data_file));
diff --git a/ext/standard/tests/strings/vfprintf_basic5.phpt b/ext/standard/tests/strings/vfprintf_basic5.phpt
index 84fbe33f1c..a7a7697dc2 100644
--- a/ext/standard/tests/strings/vfprintf_basic5.phpt
+++ b/ext/standard/tests/strings/vfprintf_basic5.phpt
@@ -22,7 +22,7 @@ $arg3 = array(65,66,67);
$data_file = dirname(__FILE__) . '/vfprintf_basic5.txt';
if (!($fp = fopen($data_file, 'wt')))
return;
-
+
vfprintf($fp, $format1,$arg1);
fprintf($fp, "\n");
diff --git a/ext/standard/tests/strings/vfprintf_basic6.phpt b/ext/standard/tests/strings/vfprintf_basic6.phpt
index 6c1bbf02a2..332370b5de 100644
--- a/ext/standard/tests/strings/vfprintf_basic6.phpt
+++ b/ext/standard/tests/strings/vfprintf_basic6.phpt
@@ -23,7 +23,7 @@ $arg3 = array(1000,2000,3000);
$data_file = dirname(__FILE__) . '/vfprintf_basic6.txt';
if (!($fp = fopen($data_file, 'wt')))
return;
-
+
vfprintf($fp, $format1,$arg1);
fprintf($fp, "\n");
diff --git a/ext/standard/tests/strings/vfprintf_basic7.phpt b/ext/standard/tests/strings/vfprintf_basic7.phpt
index f4c11edc15..f235c1cd6f 100644
--- a/ext/standard/tests/strings/vfprintf_basic7.phpt
+++ b/ext/standard/tests/strings/vfprintf_basic7.phpt
@@ -26,7 +26,7 @@ $arg3 = array(-1111,-1234567,-2345432);
$data_file = dirname(__FILE__) . '/vfprintf_basic7.txt';
if (!($fp = fopen($data_file, 'wt')))
return;
-
+
vfprintf($fp, $format1,$arg1);
fprintf($fp, "\n");
diff --git a/ext/standard/tests/strings/vfprintf_basic7_64bit.phpt b/ext/standard/tests/strings/vfprintf_basic7_64bit.phpt
index 14cd31ddd2..b5526a652f 100644
--- a/ext/standard/tests/strings/vfprintf_basic7_64bit.phpt
+++ b/ext/standard/tests/strings/vfprintf_basic7_64bit.phpt
@@ -26,7 +26,7 @@ $arg3 = array(-1111,-1234567,-2345432);
$data_file = dirname(__FILE__) . '/vfprintf_basic7_64bit.txt';
if (!($fp = fopen($data_file, 'wt')))
return;
-
+
vfprintf($fp, $format1,$arg1);
fprintf($fp, "\n");
diff --git a/ext/standard/tests/strings/vfprintf_basic8.phpt b/ext/standard/tests/strings/vfprintf_basic8.phpt
index aad883c6e9..ed9d23c2ad 100644
--- a/ext/standard/tests/strings/vfprintf_basic8.phpt
+++ b/ext/standard/tests/strings/vfprintf_basic8.phpt
@@ -22,7 +22,7 @@ $arg3 = array(021,0347,0567);
$data_file = dirname(__FILE__) . '/vfprintf_basic8.txt';
if (!($fp = fopen($data_file, 'wt')))
return;
-
+
vfprintf($fp, $format1,$arg1);
fprintf($fp, "\n");
diff --git a/ext/standard/tests/strings/vfprintf_error1.phpt b/ext/standard/tests/strings/vfprintf_error1.phpt
index 8ef086d353..520c8eac3b 100644
--- a/ext/standard/tests/strings/vfprintf_error1.phpt
+++ b/ext/standard/tests/strings/vfprintf_error1.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test vfprintf() function : error conditions (more than expected arguments)
+Test vfprintf() function : error conditions (more than expected arguments)
--CREDITS--
Felix De Vliegher <felix.devliegher@gmail.com>
--INI--
@@ -9,7 +9,7 @@ precision=14
/* Prototype : int vfprintf(resource stream, string format, array args)
* Description: Output a formatted string into a stream
* Source code: ext/standard/formatted_print.c
- * Alias to functions:
+ * Alias to functions:
*/
// Open handle
diff --git a/ext/standard/tests/strings/vfprintf_error2.phpt b/ext/standard/tests/strings/vfprintf_error2.phpt
index bcf7e27690..746652fc5f 100644
--- a/ext/standard/tests/strings/vfprintf_error2.phpt
+++ b/ext/standard/tests/strings/vfprintf_error2.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test vfprintf() function : error conditions (less than expected arguments)
+Test vfprintf() function : error conditions (less than expected arguments)
--CREDITS--
Felix De Vliegher <felix.devliegher@gmail.com>
--INI--
@@ -9,7 +9,7 @@ precision=14
/* Prototype : int vfprintf(resource stream, string format, array args)
* Description: Output a formatted string into a stream
* Source code: ext/standard/formatted_print.c
- * Alias to functions:
+ * Alias to functions:
*/
// Open handle
diff --git a/ext/standard/tests/strings/vfprintf_error3.phpt b/ext/standard/tests/strings/vfprintf_error3.phpt
index 5a20780672..5afbdf706f 100644
--- a/ext/standard/tests/strings/vfprintf_error3.phpt
+++ b/ext/standard/tests/strings/vfprintf_error3.phpt
@@ -9,7 +9,7 @@ precision=14
/* Prototype : int vfprintf(resource stream, string format, array args)
* Description: Output a formatted string into a stream
* Source code: ext/standard/formatted_print.c
- * Alias to functions:
+ * Alias to functions:
*/
// Open handle
diff --git a/ext/standard/tests/strings/vfprintf_error4.phpt b/ext/standard/tests/strings/vfprintf_error4.phpt
index 131b0477c4..8975d01a0f 100644
--- a/ext/standard/tests/strings/vfprintf_error4.phpt
+++ b/ext/standard/tests/strings/vfprintf_error4.phpt
@@ -9,7 +9,7 @@ precision=14
/* Prototype : int vfprintf(resource stream, string format, array args)
* Description: Output a formatted string into a stream
* Source code: ext/standard/formatted_print.c
- * Alias to functions:
+ * Alias to functions:
*/
// Open handle
diff --git a/ext/standard/tests/strings/vfprintf_variation1.phpt b/ext/standard/tests/strings/vfprintf_variation1.phpt
index 0d3e70b3fe..184aa0e3f4 100644
--- a/ext/standard/tests/strings/vfprintf_variation1.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation1.phpt
@@ -9,7 +9,7 @@ precision=14
/* Prototype : int vfprintf(resource stream, string format, array args)
* Description: Output a formatted string into a stream
* Source code: ext/standard/formatted_print.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing vfprintf() : variation functionality ***\n";
diff --git a/ext/standard/tests/strings/vfprintf_variation12.phpt b/ext/standard/tests/strings/vfprintf_variation12.phpt
index f0fa354ea6..0afe7c8ac2 100644
--- a/ext/standard/tests/strings/vfprintf_variation12.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation12.phpt
@@ -64,7 +64,7 @@ $args_array = array(
true, false, TRUE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
/* creating dumping file */
@@ -86,7 +86,7 @@ print_r(file_get_contents($data_file));
echo "\n";
unlink($data_file);
-
+
?>
===DONE===
--EXPECT--
@@ -95,31 +95,31 @@ unlink($data_file);
-- Iteration 1 --
2 0 12
361100 o 37777775456 2322
-
+
30071 14 37777777764 37777416700
12 361100 2 0
-- Iteration 2 --
2 37777777776 2
361100 o 37720715133 57062645
-
+
57060664 4475347 37721631371 37720717336
2 361100 2 37777777776
-- Iteration 3 --
0 0 0
173 o 37777777605 173
-
+
2322 0 $0 _0
0 173 0 0
-- Iteration 4 --
1 1 1
1 o 1 1
-
+
#1 1 $1 _1
1 1 1 1
-- Iteration 5 --
1 1 0
1 o 0 1
-
+
#0 1 $1 _0
0 1 1 1
===DONE===
diff --git a/ext/standard/tests/strings/vfprintf_variation14.phpt b/ext/standard/tests/strings/vfprintf_variation14.phpt
index 0173a27fb7..03253b1917 100644
--- a/ext/standard/tests/strings/vfprintf_variation14.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation14.phpt
@@ -64,7 +64,7 @@ $args_array = array(
true, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
/* creating dumping file */
@@ -95,31 +95,31 @@ unlink($data_file);
-- Iteration 1 --
2 0 a
1e240 x fffffb2e 4d2
-
+
3039 c fffffff4 fffe1dc0
a 1e240 2 0
-- Iteration 2 --
2 fffffffe 2
1e240 x ff439a5b bc65a5
-
+
bc61b4 127ae7 ff4732f9 ff439ede
2 1e240 2 fffffffe
-- Iteration 3 --
0 0 0
7b x ffffff85 7b
-
+
4d2 0 $0 _0
0 7b 0 0
-- Iteration 4 --
1 1 1
1 x 1 1
-
+
#1 1 $1 _1
1 1 1 1
-- Iteration 5 --
1 1 0
1 x 0 1
-
+
#0 1 $1 _0
0 1 1 1
===DONE===
diff --git a/ext/standard/tests/strings/vfprintf_variation15.phpt b/ext/standard/tests/strings/vfprintf_variation15.phpt
index 19e319a557..b513227836 100644
--- a/ext/standard/tests/strings/vfprintf_variation15.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation15.phpt
@@ -20,9 +20,9 @@ echo "*** Testing vfprintf() : unsigned formats and unsigned values ***\n";
// defining array of unsigned formats
$formats = array(
- '%u %+u %-u',
+ '%u %+u %-u',
'%lu %Lu %4u %-4u',
- '%10.4u %-10.4u %.4u',
+ '%10.4u %-10.4u %.4u',
'%\'#2u %\'2u %\'$2u %\'_2u',
'%3$u %4$u %1$u %2$u'
);
@@ -55,7 +55,7 @@ fclose($fp);
print_r(file_get_contents($data_file));
echo "\n";
-unlink($data_file);
+unlink($data_file);
?>
===DONE===
diff --git a/ext/standard/tests/strings/vfprintf_variation15_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation15_64bit.phpt
index 7bb0d150e0..b31ffd3eb4 100644
--- a/ext/standard/tests/strings/vfprintf_variation15_64bit.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation15_64bit.phpt
@@ -20,9 +20,9 @@ echo "*** Testing vfprintf() : unsigned formats and unsigned values ***\n";
// defining array of unsigned formats
$formats = array(
- '%u %+u %-u',
+ '%u %+u %-u',
'%lu %Lu %4u %-4u',
- '%10.4u %-10.4u %.4u',
+ '%10.4u %-10.4u %.4u',
'%\'#2u %\'2u %\'$2u %\'_2u',
'%3$u %4$u %1$u %2$u'
);
@@ -55,7 +55,7 @@ fclose($fp);
print_r(file_get_contents($data_file));
echo "\n";
-unlink($data_file);
+unlink($data_file);
?>
===DONE===
diff --git a/ext/standard/tests/strings/vfprintf_variation16.phpt b/ext/standard/tests/strings/vfprintf_variation16.phpt
index 4995ab02a4..fa81daee71 100644
--- a/ext/standard/tests/strings/vfprintf_variation16.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation16.phpt
@@ -57,9 +57,9 @@ $args_array = array(
true, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
/* creating dumping file */
$data_file = dirname(__FILE__) . '/vfprintf_variation16.txt';
if (!($fp = fopen($data_file, 'wt')))
@@ -78,7 +78,7 @@ fclose($fp);
print_r(file_get_contents($data_file));
echo "\n";
-unlink($data_file);
+unlink($data_file);
?>
===DONE===
diff --git a/ext/standard/tests/strings/vfprintf_variation16_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation16_64bit.phpt
index 16d0624018..15b55a97dc 100644
--- a/ext/standard/tests/strings/vfprintf_variation16_64bit.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation16_64bit.phpt
@@ -57,9 +57,9 @@ $args_array = array(
true, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
/* creating dumping file */
$data_file = dirname(__FILE__) . '/vfprintf_variation16_64bit.txt';
if (!($fp = fopen($data_file, 'wt')))
@@ -78,7 +78,7 @@ fclose($fp);
print_r(file_get_contents($data_file));
echo "\n";
-unlink($data_file);
+unlink($data_file);
?>
===DONE===
diff --git a/ext/standard/tests/strings/vfprintf_variation17.phpt b/ext/standard/tests/strings/vfprintf_variation17.phpt
index 6c17b801f6..545ae6d43d 100644
--- a/ext/standard/tests/strings/vfprintf_variation17.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation17.phpt
@@ -16,9 +16,9 @@ echo "*** Testing vfprintf() : scientific formats and scientific values ***\n";
// defining array of scientific formats
$formats = array(
- '%e %+e %-e',
+ '%e %+e %-e',
'%le %Le %4e %-4e',
- '%10.4e %-10.4e %.4e',
+ '%10.4e %-10.4e %.4e',
'%\'#20e %\'20e %\'$20e %\'_20e',
'%3$e %4$e %1$e %2$e'
);
@@ -37,7 +37,7 @@ $args_array = array(
$data_file = dirname(__FILE__) . '/vfprintf_variation17.txt';
if (!($fp = fopen($data_file, 'wt')))
return;
-
+
// looping to test vfprintf() with different scientific formats from the above $format array
// and with signed and other types of values from the above $args_array array
$counter = 1;
@@ -51,7 +51,7 @@ fclose($fp);
print_r(file_get_contents($data_file));
echo "\n";
-unlink($data_file);
+unlink($data_file);
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/strings/vfprintf_variation18.phpt b/ext/standard/tests/strings/vfprintf_variation18.phpt
index 5467753dc0..df43b2eeed 100644
--- a/ext/standard/tests/strings/vfprintf_variation18.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation18.phpt
@@ -53,14 +53,14 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
/* creating dumping file */
$data_file = dirname(__FILE__) . '/vfprintf_variation18.txt';
if (!($fp = fopen($data_file, 'wt')))
return;
-
+
// looping to test vfprintf() with different scientific formats from the above $format array
// and with non-scientific values from the above $args_array array
$counter = 1;
@@ -74,7 +74,7 @@ fclose($fp);
print_r(file_get_contents($data_file));
echo "\n";
-unlink($data_file);
+unlink($data_file);
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/strings/vfprintf_variation19.phpt b/ext/standard/tests/strings/vfprintf_variation19.phpt
index b2fbdd88cf..19aac7738b 100644
--- a/ext/standard/tests/strings/vfprintf_variation19.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation19.phpt
@@ -49,7 +49,7 @@ $args_array = array(
$data_file = dirname(__FILE__) . '/vfprintf_variation19.txt';
if (!($fp = fopen($data_file, 'wt')))
return;
-
+
// looping to test vfprintf() with different scientific formats from the above $format array
// and with non-scientific values from the above $args_array array
$counter = 1;
@@ -63,7 +63,7 @@ fclose($fp);
print_r(file_get_contents($data_file));
echo "\n";
-unlink($data_file);
+unlink($data_file);
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/strings/vfprintf_variation19_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation19_64bit.phpt
index 8153ce8129..8ad2df0947 100644
--- a/ext/standard/tests/strings/vfprintf_variation19_64bit.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation19_64bit.phpt
@@ -49,7 +49,7 @@ $args_array = array(
$data_file = dirname(__FILE__) . '/vfprintf_variation19_64bit.txt';
if (!($fp = fopen($data_file, 'wt')))
return;
-
+
// looping to test vfprintf() with different scientific formats from the above $format array
// and with non-scientific values from the above $args_array array
$counter = 1;
@@ -63,7 +63,7 @@ fclose($fp);
print_r(file_get_contents($data_file));
echo "\n";
-unlink($data_file);
+unlink($data_file);
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/strings/vfprintf_variation20.phpt b/ext/standard/tests/strings/vfprintf_variation20.phpt
index 48fea341ed..3bc9bf6b29 100644
--- a/ext/standard/tests/strings/vfprintf_variation20.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation20.phpt
@@ -41,44 +41,44 @@ $values = array(
1,
12345,
-2345,
-
+
// float data
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.7654321E-10,
.5,
-
+
// array data
/*10*/ array(),
array(0),
array(1),
array(1,2),
array('color' => 'red', 'item' => 'pen'),
-
+
// null data
/*15*/ NULL,
null,
-
+
// boolean data
/*17*/ true,
false,
TRUE,
FALSE,
-
+
// empty data
/*21*/ "",
'',
-
+
// object data
/*23*/ new sample(),
-
+
// undefined data
/*24*/ @$undefined_var,
-
+
// unset data
/*25*/ @$unset_var,
-
+
// resource data
/*26*/ $file_handle
);
diff --git a/ext/standard/tests/strings/vfprintf_variation21.phpt b/ext/standard/tests/strings/vfprintf_variation21.phpt
index 09bf703957..5d8c63e207 100644
--- a/ext/standard/tests/strings/vfprintf_variation21.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation21.phpt
@@ -41,41 +41,41 @@ $values = array(
1,
12345,
-2345,
-
+
// float data
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.7654321E-10,
.5,
-
+
// null data
/*10*/ NULL,
null,
-
+
// boolean data
/*12*/ true,
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
-
+
// string data
/*18*/ "string",
'string',
-
+
// object data
/*20*/ new sample(),
-
+
// undefined data
/*21*/ @$undefined_var,
-
+
// unset data
/*22*/ @$unset_var,
-
+
// resource data
/*23*/ $file_handle
);
diff --git a/ext/standard/tests/strings/vfprintf_variation4.phpt b/ext/standard/tests/strings/vfprintf_variation4.phpt
index 642f35c46a..76ba79fca2 100644
--- a/ext/standard/tests/strings/vfprintf_variation4.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation4.phpt
@@ -57,7 +57,7 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
diff --git a/ext/standard/tests/strings/vfprintf_variation4_64bit.phpt b/ext/standard/tests/strings/vfprintf_variation4_64bit.phpt
index 6bf814003a..cbc74bfc69 100644
--- a/ext/standard/tests/strings/vfprintf_variation4_64bit.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation4_64bit.phpt
@@ -57,7 +57,7 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
diff --git a/ext/standard/tests/strings/vfprintf_variation6.phpt b/ext/standard/tests/strings/vfprintf_variation6.phpt
index b5b82bbc62..465c21980b 100644
--- a/ext/standard/tests/strings/vfprintf_variation6.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation6.phpt
@@ -53,7 +53,7 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
/* creating dumping file */
diff --git a/ext/standard/tests/strings/vfprintf_variation8.phpt b/ext/standard/tests/strings/vfprintf_variation8.phpt
index a72e260e09..084947de45 100644
--- a/ext/standard/tests/strings/vfprintf_variation8.phpt
+++ b/ext/standard/tests/strings/vfprintf_variation8.phpt
@@ -34,7 +34,7 @@ $args_array = array(
2.1234567e10, +2.7654321e10, -2.7654321e10,
12345.780, 12.000000011111, -12.00000111111, -123456.234,
3.33, +4.44, 1.11,-2.22 ),
-
+
// array of int values
array(2, -2, +2,
123456, 123456234, -12346789, +12346789,
@@ -56,7 +56,7 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
/* creating dumping file */
@@ -78,7 +78,7 @@ print_r(file_get_contents($data_file));
echo "\n";
unlink($data_file);
-
+
?>
===DONE===
--EXPECT--
diff --git a/ext/standard/tests/strings/vprintf_basic8.phpt b/ext/standard/tests/strings/vprintf_basic8.phpt
index d5f6e222d0..64047882ec 100644
--- a/ext/standard/tests/strings/vprintf_basic8.phpt
+++ b/ext/standard/tests/strings/vprintf_basic8.phpt
@@ -20,15 +20,15 @@ $arg3 = array(021,0347,0567);
$result = vprintf($format1,$arg1);
echo "\n";
-var_dump($result);
+var_dump($result);
$result = vprintf($format2,$arg2);
echo "\n";
-var_dump($result);
+var_dump($result);
$result = vprintf($format3,$arg3);
echo "\n";
-var_dump($result);
+var_dump($result);
?>
===DONE===
diff --git a/ext/standard/tests/strings/vprintf_error.phpt b/ext/standard/tests/strings/vprintf_error.phpt
index 91fc1bdc32..0bd1e248ef 100644
--- a/ext/standard/tests/strings/vprintf_error.phpt
+++ b/ext/standard/tests/strings/vprintf_error.phpt
@@ -19,7 +19,7 @@ echo "\n-- Testing vprintf() function with Zero arguments --\n";
var_dump( vprintf() );
echo "\n-- Testing vprintf() function with less than expected no. of arguments --\n";
-var_dump( vprintf($format) );
+var_dump( vprintf($format) );
echo "\n-- testing vprintf() function with more than expected no. of arguments --\n";
var_dump( vprintf($format, $args, $extra_arg) );
diff --git a/ext/standard/tests/strings/vprintf_variation1.phpt b/ext/standard/tests/strings/vprintf_variation1.phpt
index 18f314f284..d6bedcf1aa 100644
--- a/ext/standard/tests/strings/vprintf_variation1.phpt
+++ b/ext/standard/tests/strings/vprintf_variation1.phpt
@@ -41,44 +41,44 @@ $values = array(
1,
12345,
-2345,
-
+
// float data
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.7654321E-10,
.5,
-
+
// array data
/*10*/ array(),
array(0),
array(1),
array(1,2),
array('color' => 'red', 'item' => 'pen'),
-
+
// null data
/*15*/ NULL,
null,
-
+
// boolean data
/*17*/ true,
false,
TRUE,
FALSE,
-
+
// empty data
/*21*/ "",
'',
-
+
// object data
/*23*/ new sample(),
-
+
// undefined data
/*24*/ @$undefined_var,
-
+
// unset data
/*25*/ @$unset_var,
-
+
// resource data
/*26*/ $file_handle
);
@@ -90,9 +90,9 @@ foreach($values as $value) {
echo "\n -- Iteration $counter --\n";
$result = vprintf($value,$args);
echo "\n";
- var_dump($result);
+ var_dump($result);
$counter++;
-
+
};
// closing the resource
diff --git a/ext/standard/tests/strings/vprintf_variation11.phpt b/ext/standard/tests/strings/vprintf_variation11.phpt
index 4207bc294e..d058e91687 100644
--- a/ext/standard/tests/strings/vprintf_variation11.phpt
+++ b/ext/standard/tests/strings/vprintf_variation11.phpt
@@ -48,10 +48,10 @@ $args_array = array(
// and with octal values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
$result = vprintf($format, $args_array[$counter-1]);
echo "\n";
- var_dump($result);
+ var_dump($result);
$counter++;
}
diff --git a/ext/standard/tests/strings/vprintf_variation11_64bit.phpt b/ext/standard/tests/strings/vprintf_variation11_64bit.phpt
index 039006fdc6..76819386fd 100644
--- a/ext/standard/tests/strings/vprintf_variation11_64bit.phpt
+++ b/ext/standard/tests/strings/vprintf_variation11_64bit.phpt
@@ -48,10 +48,10 @@ $args_array = array(
// and with octal values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
$result = vprintf($format, $args_array[$counter-1]);
echo "\n";
- var_dump($result);
+ var_dump($result);
$counter++;
}
diff --git a/ext/standard/tests/strings/vprintf_variation12.phpt b/ext/standard/tests/strings/vprintf_variation12.phpt
index 99938502d5..13b43624a1 100644
--- a/ext/standard/tests/strings/vprintf_variation12.phpt
+++ b/ext/standard/tests/strings/vprintf_variation12.phpt
@@ -64,16 +64,16 @@ $args_array = array(
true, false, TRUE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
// looping to test vprintf() with different octal formats from the above $format array
// and with non-octal values from the above $args_array array
$counter = 1;
foreach($args_array as $args) {
echo "\n-- Iteration $counter --\n";
$result = vprintf($formats, $args);
- echo "\n";
+ echo "\n";
var_dump($result);
$counter++;
}
@@ -86,7 +86,7 @@ foreach($args_array as $args) {
-- Iteration 1 --
2 0 12
361100 o 37777775456 2322
-
+
30071 14 37777777764 37777416700
12 361100 2 0
int(116)
@@ -94,7 +94,7 @@ int(116)
-- Iteration 2 --
2 37777777776 2
361100 o 37720715133 57062645
-
+
57060664 4475347 37721631371 37720717336
2 361100 2 37777777776
int(146)
@@ -102,7 +102,7 @@ int(146)
-- Iteration 3 --
0 0 0
173 o 37777777605 173
-
+
2322 0 $0 _0
0 173 0 0
int(88)
@@ -110,7 +110,7 @@ int(88)
-- Iteration 4 --
1 1 1
1 o 1 1
-
+
#1 1 $1 _1
1 1 1 1
int(75)
@@ -118,7 +118,7 @@ int(75)
-- Iteration 5 --
1 1 0
1 o 0 1
-
+
#0 1 $1 _0
0 1 1 1
int(75)
diff --git a/ext/standard/tests/strings/vprintf_variation13.phpt b/ext/standard/tests/strings/vprintf_variation13.phpt
index 240db721e8..480faa12c9 100644
--- a/ext/standard/tests/strings/vprintf_variation13.phpt
+++ b/ext/standard/tests/strings/vprintf_variation13.phpt
@@ -48,7 +48,7 @@ $args_array = array(
// and with octal values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
$result = vprintf($format, $args_array[$counter-1]);
echo "\n";
var_dump($result);
diff --git a/ext/standard/tests/strings/vprintf_variation13_64bit.phpt b/ext/standard/tests/strings/vprintf_variation13_64bit.phpt
index 06d2bec26d..1fca830023 100644
--- a/ext/standard/tests/strings/vprintf_variation13_64bit.phpt
+++ b/ext/standard/tests/strings/vprintf_variation13_64bit.phpt
@@ -48,7 +48,7 @@ $args_array = array(
// and with octal values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
$result = vprintf($format, $args_array[$counter-1]);
echo "\n";
var_dump($result);
diff --git a/ext/standard/tests/strings/vprintf_variation14.phpt b/ext/standard/tests/strings/vprintf_variation14.phpt
index bbb15e149a..a8ee21f4f8 100644
--- a/ext/standard/tests/strings/vprintf_variation14.phpt
+++ b/ext/standard/tests/strings/vprintf_variation14.phpt
@@ -64,12 +64,12 @@ $args_array = array(
true, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
// looping to test vprintf() with different hexa formats from the above $format array
// and with non-hexa values from the above $args_array array
-
+
$counter = 1;
foreach($args_array as $args) {
echo "\n-- Iteration $counter --\n";
@@ -87,7 +87,7 @@ foreach($args_array as $args) {
-- Iteration 1 --
2 0 a
1e240 x fffffb2e 4d2
-
+
3039 c fffffff4 fffe1dc0
a 1e240 2 0
int(101)
@@ -95,7 +95,7 @@ int(101)
-- Iteration 2 --
2 fffffffe 2
1e240 x ff439a5b bc65a5
-
+
bc61b4 127ae7 ff4732f9 ff439ede
2 1e240 2 fffffffe
int(124)
@@ -103,7 +103,7 @@ int(124)
-- Iteration 3 --
0 0 0
7b x ffffff85 7b
-
+
4d2 0 $0 _0
0 7b 0 0
int(82)
@@ -111,7 +111,7 @@ int(82)
-- Iteration 4 --
1 1 1
1 x 1 1
-
+
#1 1 $1 _1
1 1 1 1
int(75)
@@ -119,7 +119,7 @@ int(75)
-- Iteration 5 --
1 1 0
1 x 0 1
-
+
#0 1 $1 _0
0 1 1 1
int(75)
diff --git a/ext/standard/tests/strings/vprintf_variation14_64bit.phpt b/ext/standard/tests/strings/vprintf_variation14_64bit.phpt
index 51b2f477b8..c3308be017 100644
--- a/ext/standard/tests/strings/vprintf_variation14_64bit.phpt
+++ b/ext/standard/tests/strings/vprintf_variation14_64bit.phpt
@@ -75,7 +75,7 @@ foreach($args_array as $args) {
echo "\n-- Iteration $counter --\n";
$result = vprintf($formats, $args);
echo "\n";
- var_dump($result);
+ var_dump($result);
$counter++;
}
diff --git a/ext/standard/tests/strings/vprintf_variation15.phpt b/ext/standard/tests/strings/vprintf_variation15.phpt
index 97b1bc5c64..32618c00e1 100644
--- a/ext/standard/tests/strings/vprintf_variation15.phpt
+++ b/ext/standard/tests/strings/vprintf_variation15.phpt
@@ -20,9 +20,9 @@ echo "*** Testing vprintf() : unsigned formats and unsigned values ***\n";
// defining array of unsigned formats
$formats = array(
- '%u %+u %-u',
+ '%u %+u %-u',
'%lu %Lu %4u %-4u',
- '%10.4u %-10.4u %.4u',
+ '%10.4u %-10.4u %.4u',
'%\'#2u %\'2u %\'$2u %\'_2u',
'%3$u %4$u %1$u %2$u'
);
@@ -36,7 +36,7 @@ $args_array = array(
array(1, 0, 00, "10_"),
array(3, 4, 1, 2)
);
-
+
// looping to test vprintf() with different unsigned formats from the above $format array
// and with signed and other types of values from the above $args_array array
$counter = 1;
@@ -44,7 +44,7 @@ foreach($formats as $format) {
echo "\n-- Iteration $counter --\n";
$result = vprintf($format, $args_array[$counter-1]);
echo "\n";
- var_dump($result);
+ var_dump($result);
$counter++;
}
diff --git a/ext/standard/tests/strings/vprintf_variation15_64bit.phpt b/ext/standard/tests/strings/vprintf_variation15_64bit.phpt
index 97bc9dcd8c..07dc6909bf 100644
--- a/ext/standard/tests/strings/vprintf_variation15_64bit.phpt
+++ b/ext/standard/tests/strings/vprintf_variation15_64bit.phpt
@@ -20,9 +20,9 @@ echo "*** Testing vprintf() : unsigned formats and unsigned values ***\n";
// defining array of unsigned formats
$formats = array(
- '%u %+u %-u',
+ '%u %+u %-u',
'%lu %Lu %4u %-4u',
- '%10.4u %-10.4u %.4u',
+ '%10.4u %-10.4u %.4u',
'%\'#2u %\'2u %\'$2u %\'_2u',
'%3$u %4$u %1$u %2$u'
);
@@ -36,7 +36,7 @@ $args_array = array(
array(1, 0, 00, "10_"),
array(3, 4, 1, 2)
);
-
+
// looping to test vprintf() with different unsigned formats from the above $format array
// and with signed and other types of values from the above $args_array array
$counter = 1;
diff --git a/ext/standard/tests/strings/vprintf_variation16.phpt b/ext/standard/tests/strings/vprintf_variation16.phpt
index 8c3d66d02d..8c4fe3b260 100644
--- a/ext/standard/tests/strings/vprintf_variation16.phpt
+++ b/ext/standard/tests/strings/vprintf_variation16.phpt
@@ -57,9 +57,9 @@ $args_array = array(
true, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
// looping to test vprintf() with different unsigned formats from the above $format array
// and with signed and other types of values from the above $args_array array
$counter = 1;
diff --git a/ext/standard/tests/strings/vprintf_variation16_64bit.phpt b/ext/standard/tests/strings/vprintf_variation16_64bit.phpt
index dab90d1e45..7b72080e0a 100644
--- a/ext/standard/tests/strings/vprintf_variation16_64bit.phpt
+++ b/ext/standard/tests/strings/vprintf_variation16_64bit.phpt
@@ -57,9 +57,9 @@ $args_array = array(
true, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
// looping to test vprintf() with different unsigned formats from the above $format array
// and with signed and other types of values from the above $args_array array
$counter = 1;
@@ -67,7 +67,7 @@ foreach($args_array as $args) {
echo "\n-- Iteration $counter --\n";
$result = vprintf($formats, $args);
echo "\n";
- var_dump($result);
+ var_dump($result);
$counter++;
}
diff --git a/ext/standard/tests/strings/vprintf_variation17.phpt b/ext/standard/tests/strings/vprintf_variation17.phpt
index e2e8530153..657225af9e 100644
--- a/ext/standard/tests/strings/vprintf_variation17.phpt
+++ b/ext/standard/tests/strings/vprintf_variation17.phpt
@@ -16,9 +16,9 @@ echo "*** Testing vprintf() : scientific formats and scientific values ***\n";
// defining array of scientific formats
$formats = array(
- '%e %+e %-e',
+ '%e %+e %-e',
'%le %Le %4e %-4e',
- '%10.4e %-10.4e %.4e',
+ '%10.4e %-10.4e %.4e',
'%\'#20e %\'20e %\'$20e %\'_20e',
'%3$e %4$e %1$e %2$e'
);
@@ -32,7 +32,7 @@ $args_array = array(
array(1e1, +1e2, -1e3, "1e2_"),
array(3e3, 4e3, 1e3, 2e3)
);
-
+
// looping to test vprintf() with different scientific formats from the above $format array
// and with signed and other types of values from the above $args_array array
$counter = 1;
diff --git a/ext/standard/tests/strings/vprintf_variation18.phpt b/ext/standard/tests/strings/vprintf_variation18.phpt
index 8b30ae78d9..961287f2a3 100644
--- a/ext/standard/tests/strings/vprintf_variation18.phpt
+++ b/ext/standard/tests/strings/vprintf_variation18.phpt
@@ -53,7 +53,7 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
// looping to test vprintf() with different scientific formats from the above $format array
diff --git a/ext/standard/tests/strings/vprintf_variation19_64bit.phpt b/ext/standard/tests/strings/vprintf_variation19_64bit.phpt
index 6abc134549..ae9552021e 100644
--- a/ext/standard/tests/strings/vprintf_variation19_64bit.phpt
+++ b/ext/standard/tests/strings/vprintf_variation19_64bit.phpt
@@ -49,7 +49,7 @@ foreach($formats as $format) {
echo"\n-- Iteration $counter --\n";
$result = vprintf($format, $args_array[$counter-1]);
echo "\n";
- var_dump($result);
+ var_dump($result);
$counter++;
}
diff --git a/ext/standard/tests/strings/vprintf_variation2.phpt b/ext/standard/tests/strings/vprintf_variation2.phpt
index 63c3dfe39e..97ddc67cb7 100644
--- a/ext/standard/tests/strings/vprintf_variation2.phpt
+++ b/ext/standard/tests/strings/vprintf_variation2.phpt
@@ -41,41 +41,41 @@ $values = array(
1,
12345,
-2345,
-
+
// float data
/*5*/ 10.5,
-10.5,
10.1234567e10,
10.7654321E-10,
.5,
-
+
// null data
/*10*/ NULL,
null,
-
+
// boolean data
/*12*/ true,
false,
TRUE,
FALSE,
-
+
// empty data
/*16*/ "",
'',
-
+
// string data
/*18*/ "string",
'string',
-
+
// object data
/*20*/ new sample(),
-
+
// undefined data
/*21*/ @$undefined_var,
-
+
// unset data
/*22*/ @$unset_var,
-
+
// resource data
/*23*/ $file_handle
);
diff --git a/ext/standard/tests/strings/vprintf_variation3.phpt b/ext/standard/tests/strings/vprintf_variation3.phpt
index 0b59ddda1f..8ec00844eb 100644
--- a/ext/standard/tests/strings/vprintf_variation3.phpt
+++ b/ext/standard/tests/strings/vprintf_variation3.phpt
@@ -45,7 +45,7 @@ $args_array = array(
// and with int values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
$result = vprintf($format, $args_array[$counter-1]);
echo "\n";
var_dump($result);
diff --git a/ext/standard/tests/strings/vprintf_variation4.phpt b/ext/standard/tests/strings/vprintf_variation4.phpt
index 8d56fc9cb1..d9566e2bf6 100644
--- a/ext/standard/tests/strings/vprintf_variation4.phpt
+++ b/ext/standard/tests/strings/vprintf_variation4.phpt
@@ -57,7 +57,7 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
// looping to test vprintf() with different int formats from the above $format array
diff --git a/ext/standard/tests/strings/vprintf_variation4_64bit.phpt b/ext/standard/tests/strings/vprintf_variation4_64bit.phpt
index f81dba32a1..27ab3f7ed1 100644
--- a/ext/standard/tests/strings/vprintf_variation4_64bit.phpt
+++ b/ext/standard/tests/strings/vprintf_variation4_64bit.phpt
@@ -57,7 +57,7 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
// looping to test vprintf() with different int formats from the above $format array
@@ -67,7 +67,7 @@ foreach($args_array as $args) {
echo "\n-- Iteration $counter --\n";
$result = vprintf($formats, $args);
echo "\n";
- var_dump($result);
+ var_dump($result);
$counter++;
}
diff --git a/ext/standard/tests/strings/vprintf_variation5.phpt b/ext/standard/tests/strings/vprintf_variation5.phpt
index f54d1e19c5..654f989267 100644
--- a/ext/standard/tests/strings/vprintf_variation5.phpt
+++ b/ext/standard/tests/strings/vprintf_variation5.phpt
@@ -45,7 +45,7 @@ $args_array = array(
// and with float values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
$result = vprintf($format, $args_array[$counter-1]);
echo "\n";
var_dump($result);
diff --git a/ext/standard/tests/strings/vprintf_variation6.phpt b/ext/standard/tests/strings/vprintf_variation6.phpt
index 265948b565..4614b9d1e1 100644
--- a/ext/standard/tests/strings/vprintf_variation6.phpt
+++ b/ext/standard/tests/strings/vprintf_variation6.phpt
@@ -53,9 +53,9 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
// looping to test vprintf() with different float formats from the above $format array
// and with non-float values from the above $args_array array
$counter = 1;
diff --git a/ext/standard/tests/strings/vprintf_variation8.phpt b/ext/standard/tests/strings/vprintf_variation8.phpt
index c0558ff6b7..bd472aca7d 100644
--- a/ext/standard/tests/strings/vprintf_variation8.phpt
+++ b/ext/standard/tests/strings/vprintf_variation8.phpt
@@ -34,7 +34,7 @@ $args_array = array(
2.1234567e10, +2.7654321e10, -2.7654321e10,
12345.780, 12.000000011111, -12.00000111111, -123456.234,
3.33, +4.44, 1.11,-2.22 ),
-
+
// array of int values
array(2, -2, +2,
123456, 123456234, -12346789, +12346789,
@@ -56,9 +56,9 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
// looping to test vprintf() with different string formats from the above $format array
// and with non-string values from the above $args_array array
$counter = 1;
@@ -66,7 +66,7 @@ foreach($args_array as $args) {
echo "\n-- Iteration $counter --\n";
$result = vprintf($formats, $args);
echo "\n";
- var_dump($result);
+ var_dump($result);
$counter++;
}
diff --git a/ext/standard/tests/strings/vsprintf_error.phpt b/ext/standard/tests/strings/vsprintf_error.phpt
index 8d581474b4..774779f2e5 100644
--- a/ext/standard/tests/strings/vsprintf_error.phpt
+++ b/ext/standard/tests/strings/vsprintf_error.phpt
@@ -19,7 +19,7 @@ echo "\n-- Testing vsprintf() function with Zero arguments --\n";
var_dump( vsprintf() );
echo "\n-- Testing vsprintf() function with less than expected no. of arguments --\n";
-var_dump( vsprintf($format) );
+var_dump( vsprintf($format) );
echo "\n-- testing vsprintf() function with more than expected no. of arguments --\n";
var_dump( vsprintf($format, $args, $extra_arg) );
diff --git a/ext/standard/tests/strings/vsprintf_variation1.phpt b/ext/standard/tests/strings/vsprintf_variation1.phpt
index 3911587620..7e810d344d 100644
--- a/ext/standard/tests/strings/vsprintf_variation1.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation1.phpt
@@ -78,7 +78,7 @@ $values = array(
// unset data
@$unset_var,
-
+
// resource data
$file_handle
);
@@ -90,7 +90,7 @@ foreach($values as $value) {
echo "\n -- Iteration $counter --\n";
var_dump( vsprintf($value,$args) );
$counter++;
-
+
};
// closing the resource
diff --git a/ext/standard/tests/strings/vsprintf_variation11.phpt b/ext/standard/tests/strings/vsprintf_variation11.phpt
index 3d5eb1cfc3..5845c8b0ca 100644
--- a/ext/standard/tests/strings/vsprintf_variation11.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation11.phpt
@@ -48,7 +48,7 @@ $args_array = array(
// and with octal values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
var_dump( vsprintf($format, $args_array[$counter-1]) );
$counter++;
}
diff --git a/ext/standard/tests/strings/vsprintf_variation11_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation11_64bit.phpt
index 6d9c4c4b79..879c05b98b 100644
--- a/ext/standard/tests/strings/vsprintf_variation11_64bit.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation11_64bit.phpt
@@ -48,7 +48,7 @@ $args_array = array(
// and with octal values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
var_dump( vsprintf($format, $args_array[$counter-1]) );
$counter++;
}
diff --git a/ext/standard/tests/strings/vsprintf_variation12.phpt b/ext/standard/tests/strings/vsprintf_variation12.phpt
index 8437487904..ae625bd895 100644
--- a/ext/standard/tests/strings/vsprintf_variation12.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation12.phpt
@@ -64,9 +64,9 @@ $args_array = array(
true, false, TRUE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
// looping to test vsprintf() with different octal formats from the above $format array
// and with non-octal values from the above $args_array array
$counter = 1;
@@ -84,35 +84,35 @@ echo "Done";
-- Iteration 1 --
string(116) "2 0 12
361100 o 37777775456 2322
-
+
30071 14 37777777764 37777416700
12 361100 2 0"
-- Iteration 2 --
string(146) "2 37777777776 2
361100 o 37720715133 57062645
-
+
57060664 4475347 37721631371 37720717336
2 361100 2 37777777776"
-- Iteration 3 --
string(88) "0 0 0
173 o 37777777605 173
-
+
2322 0 $0 _0
0 173 0 0"
-- Iteration 4 --
string(75) "1 1 1
1 o 1 1
-
+
#1 1 $1 _1
1 1 1 1"
-- Iteration 5 --
string(75) "1 1 0
1 o 0 1
-
+
#0 1 $1 _0
0 1 1 1"
Done
diff --git a/ext/standard/tests/strings/vsprintf_variation13.phpt b/ext/standard/tests/strings/vsprintf_variation13.phpt
index 6be9d4a9a8..e6509d08b0 100644
--- a/ext/standard/tests/strings/vsprintf_variation13.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation13.phpt
@@ -48,7 +48,7 @@ $args_array = array(
// and with octal values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
var_dump( vsprintf($format, $args_array[$counter-1]) );
$counter++;
}
diff --git a/ext/standard/tests/strings/vsprintf_variation13_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation13_64bit.phpt
index 59efbf9d22..0ec7a2ad77 100644
--- a/ext/standard/tests/strings/vsprintf_variation13_64bit.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation13_64bit.phpt
@@ -48,7 +48,7 @@ $args_array = array(
// and with octal values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
var_dump( vsprintf($format, $args_array[$counter-1]) );
$counter++;
}
diff --git a/ext/standard/tests/strings/vsprintf_variation14.phpt b/ext/standard/tests/strings/vsprintf_variation14.phpt
index d63165046c..37898cfff9 100644
--- a/ext/standard/tests/strings/vsprintf_variation14.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation14.phpt
@@ -64,12 +64,12 @@ $args_array = array(
true, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
// looping to test vsprintf() with different hexa formats from the above $format array
// and with non-hexa values from the above $args_array array
-
+
$counter = 1;
foreach($args_array as $args) {
echo "\n-- Iteration $counter --\n";
@@ -85,35 +85,35 @@ echo "Done";
-- Iteration 1 --
string(101) "2 0 a
1e240 x fffffb2e 4d2
-
+
3039 c fffffff4 fffe1dc0
a 1e240 2 0"
-- Iteration 2 --
string(124) "2 fffffffe 2
1e240 x ff439a5b bc65a5
-
+
bc61b4 127ae7 ff4732f9 ff439ede
2 1e240 2 fffffffe"
-- Iteration 3 --
string(82) "0 0 0
7b x ffffff85 7b
-
+
4d2 0 $0 _0
0 7b 0 0"
-- Iteration 4 --
string(75) "1 1 1
1 x 1 1
-
+
#1 1 $1 _1
1 1 1 1"
-- Iteration 5 --
string(75) "1 1 0
1 x 0 1
-
+
#0 1 $1 _0
0 1 1 1"
Done
diff --git a/ext/standard/tests/strings/vsprintf_variation15.phpt b/ext/standard/tests/strings/vsprintf_variation15.phpt
index bc1d786920..ee5b620491 100644
--- a/ext/standard/tests/strings/vsprintf_variation15.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation15.phpt
@@ -20,9 +20,9 @@ echo "*** Testing vsprintf() : unsigned formats and unsigned values ***\n";
// defining array of unsigned formats
$formats = array(
- '%u %+u %-u',
+ '%u %+u %-u',
'%lu %Lu %4u %-4u',
- '%10.4u %-10.4u %.4u',
+ '%10.4u %-10.4u %.4u',
'%\'#2u %\'2u %\'$2u %\'_2u',
'%3$u %4$u %1$u %2$u'
);
@@ -36,7 +36,7 @@ $args_array = array(
array(1, 0, 00, "10_"),
array(3, 4, 1, 2)
);
-
+
// looping to test vsprintf() with different unsigned formats from the above $format array
// and with signed and other types of values from the above $args_array array
$counter = 1;
diff --git a/ext/standard/tests/strings/vsprintf_variation15_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation15_64bit.phpt
index 35a78200a6..82660ea419 100644
--- a/ext/standard/tests/strings/vsprintf_variation15_64bit.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation15_64bit.phpt
@@ -20,9 +20,9 @@ echo "*** Testing vsprintf() : unsigned formats and unsigned values ***\n";
// defining array of unsigned formats
$formats = array(
- '%u %+u %-u',
+ '%u %+u %-u',
'%lu %Lu %4u %-4u',
- '%10.4u %-10.4u %.4u',
+ '%10.4u %-10.4u %.4u',
'%\'#2u %\'2u %\'$2u %\'_2u',
'%3$u %4$u %1$u %2$u'
);
@@ -36,7 +36,7 @@ $args_array = array(
array(1, 0, 00, "10_"),
array(3, 4, 1, 2)
);
-
+
// looping to test vsprintf() with different unsigned formats from the above $format array
// and with signed and other types of values from the above $args_array array
$counter = 1;
diff --git a/ext/standard/tests/strings/vsprintf_variation16.phpt b/ext/standard/tests/strings/vsprintf_variation16.phpt
index 8fb03d609d..e0933a3aa3 100644
--- a/ext/standard/tests/strings/vsprintf_variation16.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation16.phpt
@@ -57,9 +57,9 @@ $args_array = array(
true, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
// looping to test vsprintf() with different unsigned formats from the above $format array
// and with signed and other types of values from the above $args_array array
$counter = 1;
diff --git a/ext/standard/tests/strings/vsprintf_variation16_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation16_64bit.phpt
index b138c32614..542202d95f 100644
--- a/ext/standard/tests/strings/vsprintf_variation16_64bit.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation16_64bit.phpt
@@ -57,9 +57,9 @@ $args_array = array(
true, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
// looping to test vsprintf() with different unsigned formats from the above $format array
// and with signed and other types of values from the above $args_array array
$counter = 1;
diff --git a/ext/standard/tests/strings/vsprintf_variation17.phpt b/ext/standard/tests/strings/vsprintf_variation17.phpt
index 81dec4d89c..5346bd4a06 100644
--- a/ext/standard/tests/strings/vsprintf_variation17.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation17.phpt
@@ -16,9 +16,9 @@ echo "*** Testing vsprintf() : scientific formats and scientific values ***\n";
// defining array of scientific formats
$formats = array(
- '%e %+e %-e',
+ '%e %+e %-e',
'%le %Le %4e %-4e',
- '%10.4e %-10.4e %.4e',
+ '%10.4e %-10.4e %.4e',
'%\'#20e %\'20e %\'$20e %\'_20e',
'%3$e %4$e %1$e %2$e'
);
@@ -32,7 +32,7 @@ $args_array = array(
array(1e1, +1e2, -1e3, "1e2_"),
array(3e3, 4e3, 1e3, 2e3)
);
-
+
// looping to test vsprintf() with different scientific formats from the above $format array
// and with signed and other types of values from the above $args_array array
$counter = 1;
diff --git a/ext/standard/tests/strings/vsprintf_variation18.phpt b/ext/standard/tests/strings/vsprintf_variation18.phpt
index 87ba0440e4..d2232d8fdc 100644
--- a/ext/standard/tests/strings/vsprintf_variation18.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation18.phpt
@@ -53,7 +53,7 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
// looping to test vsprintf() with different scientific formats from the above $format array
diff --git a/ext/standard/tests/strings/vsprintf_variation3.phpt b/ext/standard/tests/strings/vsprintf_variation3.phpt
index e71bf1c178..195e4f1d60 100644
--- a/ext/standard/tests/strings/vsprintf_variation3.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation3.phpt
@@ -45,7 +45,7 @@ $args_array = array(
// and with int values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
var_dump( vsprintf($format, $args_array[$counter-1]) );
$counter++;
}
diff --git a/ext/standard/tests/strings/vsprintf_variation4.phpt b/ext/standard/tests/strings/vsprintf_variation4.phpt
index 3decee6310..9291b04f37 100644
--- a/ext/standard/tests/strings/vsprintf_variation4.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation4.phpt
@@ -57,7 +57,7 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
// looping to test vsprintf() with different int formats from the above $format array
diff --git a/ext/standard/tests/strings/vsprintf_variation4_64bit.phpt b/ext/standard/tests/strings/vsprintf_variation4_64bit.phpt
index 83f0327423..4698a1dbc4 100644
--- a/ext/standard/tests/strings/vsprintf_variation4_64bit.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation4_64bit.phpt
@@ -57,7 +57,7 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
// looping to test vsprintf() with different int formats from the above $format array
diff --git a/ext/standard/tests/strings/vsprintf_variation5.phpt b/ext/standard/tests/strings/vsprintf_variation5.phpt
index 42db3d4405..0be56f1f96 100644
--- a/ext/standard/tests/strings/vsprintf_variation5.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation5.phpt
@@ -45,7 +45,7 @@ $args_array = array(
// and with float values from the above $args_array array
$counter = 1;
foreach($formats as $format) {
- echo "\n-- Iteration $counter --\n";
+ echo "\n-- Iteration $counter --\n";
var_dump( vsprintf($format, $args_array[$counter-1]) );
$counter++;
}
diff --git a/ext/standard/tests/strings/vsprintf_variation6.phpt b/ext/standard/tests/strings/vsprintf_variation6.phpt
index f638e51726..b10e3b11ba 100644
--- a/ext/standard/tests/strings/vsprintf_variation6.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation6.phpt
@@ -53,9 +53,9 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
// looping to test vsprintf() with different float formats from the above $format array
// and with non-float values from the above $args_array array
$counter = 1;
diff --git a/ext/standard/tests/strings/vsprintf_variation8.phpt b/ext/standard/tests/strings/vsprintf_variation8.phpt
index f44eae2db2..0b6e3800bd 100644
--- a/ext/standard/tests/strings/vsprintf_variation8.phpt
+++ b/ext/standard/tests/strings/vsprintf_variation8.phpt
@@ -34,7 +34,7 @@ $args_array = array(
2.1234567e10, +2.7654321e10, -2.7654321e10, 2.1234567e10,
12345.780, 12.000000011111, -12.00000111111, -123456.234,
3.33, +4.44, 1.11,-2.22 ),
-
+
// array of int values
array(2, -2, +2,
123456, -12346789, +12346789,
@@ -56,9 +56,9 @@ $args_array = array(
true, false, TRUE, FALSE,
0, 1, 1, 0,
1, TRUE, 0, FALSE),
-
+
);
-
+
// looping to test vsprintf() with different string formats from the above $format array
// and with non-string values from the above $args_array array
$counter = 1;
diff --git a/ext/standard/tests/strings/wordwrap_variation5.phpt b/ext/standard/tests/strings/wordwrap_variation5.phpt
index ebfffe4040..9efa096555 100644
--- a/ext/standard/tests/strings/wordwrap_variation5.phpt
+++ b/ext/standard/tests/strings/wordwrap_variation5.phpt
@@ -37,7 +37,7 @@ echo "-- with cut value as true --\n";
$cut = true;
var_dump( wordwrap($str, $width, $break, $cut) );
var_dump( wordwrap($str, $width, $break1, $cut) );
-
+
echo "Done\n";
?>
--EXPECT--
diff --git a/ext/standard/tests/time/001.phpt b/ext/standard/tests/time/001.phpt
index 0b76404ccb..b8498850f1 100644
--- a/ext/standard/tests/time/001.phpt
+++ b/ext/standard/tests/time/001.phpt
@@ -1,8 +1,8 @@
--TEST--
microtime() function
--SKIPIF--
-<?php
- if (!function_exists('microtime')) die('skip microtime() not available');
+<?php
+ if (!function_exists('microtime')) die('skip microtime() not available');
?>
--FILE--
<?php
diff --git a/ext/standard/tests/time/strptime_basic.phpt b/ext/standard/tests/time/strptime_basic.phpt
index 8fbe37cd82..d8456cd3de 100644
--- a/ext/standard/tests/time/strptime_basic.phpt
+++ b/ext/standard/tests/time/strptime_basic.phpt
@@ -1,10 +1,10 @@
--TEST--
Test strptime() function : basic functionality
--SKIPIF--
-<?php
- if (!function_exists('strptime')) {
- die("skip - strptime() function not available in this build");
- }
+<?php
+ if (!function_exists('strptime')) {
+ die("skip - strptime() function not available in this build");
+ }
if(PHP_OS == 'Darwin') die("skip - strptime() behaves differently on Darwin");
?>
@@ -16,13 +16,13 @@ Test strptime() function : basic functionality
*/
$orig = setlocale(LC_ALL, 'C');
-date_default_timezone_set("GMT");
+date_default_timezone_set("GMT");
echo "*** Testing strptime() : basic functionality ***\n";
$input = "10:00:00 AM July 2 1963";
$tstamp = strtotime($input);
-
+
$str = strftime("%r %B%e %Y %Z", $tstamp);
var_dump(strptime($str, '%H:%M:%S %p %B %d %Y'));
diff --git a/ext/standard/tests/time/strptime_error.phpt b/ext/standard/tests/time/strptime_error.phpt
index ae55028cb2..655204de62 100644
--- a/ext/standard/tests/time/strptime_error.phpt
+++ b/ext/standard/tests/time/strptime_error.phpt
@@ -1,17 +1,17 @@
--TEST--
Test localtime() function : error conditions
--SKIPIF--
-<?php
+<?php
if (!function_exists('strptime')) {
echo "SKIP strptime function not available in build";
-}
-?>
+}
+?>
--FILE--
<?php
/* Prototype : array strptime ( string $date , string $format )
* Description: Parse a time/date generated with strftime()
* Source code: ext/standard/datetime.c
- * Alias to functions:
+ * Alias to functions:
*/
//Set the default time zone
diff --git a/ext/standard/tests/time/strptime_parts.phpt b/ext/standard/tests/time/strptime_parts.phpt
index fbe684b863..75609a70e8 100644
--- a/ext/standard/tests/time/strptime_parts.phpt
+++ b/ext/standard/tests/time/strptime_parts.phpt
@@ -1,10 +1,10 @@
--TEST--
Test strptime() function : basic functionality
--SKIPIF--
-<?php
- if (!function_exists('strptime')) {
- die("skip - strptime() function not available in this build");
- }
+<?php
+ if (!function_exists('strptime')) {
+ die("skip - strptime() function not available in this build");
+ }
?>
--FILE--
@@ -15,14 +15,14 @@ Test strptime() function : basic functionality
*/
$orig = setlocale(LC_ALL, 'C');
-date_default_timezone_set("GMT");
+date_default_timezone_set("GMT");
putenv("TZ=GMT");
echo "*** Testing strptime() : basic functionality ***\n";
$input = "10:01:20 AM July 2 1963";
$tstamp = strtotime($input);
-
+
$str = strftime("%r %B%e %Y %Z", $tstamp);
$res = strptime($str, '%H:%M:%S %p %B %d %Y %Z');
var_dump($res["tm_sec"]);
diff --git a/ext/standard/tests/url/base64_decode_basic_001.phpt b/ext/standard/tests/url/base64_decode_basic_001.phpt
index 516666c53c..452b79cf3e 100644
--- a/ext/standard/tests/url/base64_decode_basic_001.phpt
+++ b/ext/standard/tests/url/base64_decode_basic_001.phpt
@@ -5,7 +5,7 @@ Test base64_decode() function : basic functionality - ensure all base64 alphabet
/* Prototype : proto string base64_decode(string str[, bool strict])
* Description: Decodes string using MIME base64 algorithm
* Source code: ext/standard/base64.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Decode an input string containing the whole base64 alphabet:\n";
diff --git a/ext/standard/tests/url/base64_decode_basic_002.phpt b/ext/standard/tests/url/base64_decode_basic_002.phpt
index c6afffd389..05ff5606f9 100644
--- a/ext/standard/tests/url/base64_decode_basic_002.phpt
+++ b/ext/standard/tests/url/base64_decode_basic_002.phpt
@@ -5,7 +5,7 @@ Test base64_decode() function : basic functionality - strict vs non-strict with
/* Prototype : proto string base64_decode(string str[, bool strict])
* Description: Decodes string using MIME base64 algorithm
* Source code: ext/standard/base64.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Decode 'hello world!':\n";
diff --git a/ext/standard/tests/url/base64_decode_error_001.phpt b/ext/standard/tests/url/base64_decode_error_001.phpt
index 2725164464..d36482eacd 100644
--- a/ext/standard/tests/url/base64_decode_error_001.phpt
+++ b/ext/standard/tests/url/base64_decode_error_001.phpt
@@ -5,7 +5,7 @@ Test base64_decode() function : error conditions - wrong number of args
/* Prototype : proto string base64_decode(string str[, bool strict])
* Description: Decodes string using MIME base64 algorithm
* Source code: ext/standard/base64.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing base64_decode() : error conditions ***\n";
diff --git a/ext/standard/tests/url/base64_decode_variation_001.phpt b/ext/standard/tests/url/base64_decode_variation_001.phpt
index f4906a774a..605267e143 100644
--- a/ext/standard/tests/url/base64_decode_variation_001.phpt
+++ b/ext/standard/tests/url/base64_decode_variation_001.phpt
@@ -5,7 +5,7 @@ Test base64_decode() function : usage variations - unexpected types for arg 1
/* Prototype : proto string base64_decode(string str[, bool strict])
* Description: Decodes string using MIME base64 algorithm
* Source code: ext/standard/base64.c
- * Alias to functions:
+ * Alias to functions:
*/
function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
@@ -32,44 +32,44 @@ $values = array (
"1" => 1,
"12345" => 12345,
"-2345" => -2345,
-
+
// float data
"10.5" => 10.5,
"-10.5" => -10.5,
"10.1234567e10" => 10.1234567e10,
"10.7654321E-10" => 10.7654321E-10,
".5" => .5,
-
+
// array data
"array()" => array(),
"array(0)" => array(0),
"array(1)" => array(1),
"array(1, 2)" => array(1, 2),
"array('color' => 'red', 'item' => 'pen'" => array('color' => 'red', 'item' => 'pen'),
-
+
// null data
"NULL" => NULL,
"null" => null,
-
+
// boolean data
"true" => true,
"false" => false,
"TRUE" => TRUE,
"FALSE" => FALSE,
-
+
// empty data
"\"\"" => "",
"''" => '',
-
+
// object data
"stdClass object" => new stdclass(),
-
+
// undefined data
"undefined variable" => $undefined_var,
-
+
// unset data
"unset variable" => $unset_var,
-
+
// resource data
"resource" => $file_handle
);
@@ -79,12 +79,12 @@ $values = array (
foreach($values as $key=>$value) {
echo "\n-- Arg value $key --\n";
$output = base64_decode($value, $strict);
-
- if (is_string($output)) {
+
+ if (is_string($output)) {
var_dump(bin2hex($output));
} else {
- var_dump($output);
- }
+ var_dump($output);
+ }
};
?>
diff --git a/ext/standard/tests/url/base64_decode_variation_002.phpt b/ext/standard/tests/url/base64_decode_variation_002.phpt
index 0443eefaf8..810becfd24 100644
--- a/ext/standard/tests/url/base64_decode_variation_002.phpt
+++ b/ext/standard/tests/url/base64_decode_variation_002.phpt
@@ -5,7 +5,7 @@ Test base64_decode() function : usage variations - unexpected types for arg 2
/* Prototype : proto string base64_decode(string str[, bool strict])
* Description: Decodes string using MIME base64 algorithm
* Source code: ext/standard/base64.c
- * Alias to functions:
+ * Alias to functions:
*/
function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
@@ -32,44 +32,44 @@ $values = array (
"1" => 1,
"12345" => 12345,
"-2345" => -2345,
-
+
// float data
"10.5" => 10.5,
"-10.5" => -10.5,
"10.1234567e10" => 10.1234567e10,
"10.7654321E-10" => 10.7654321E-10,
".5" => .5,
-
+
// array data
"array()" => array(),
"array(0)" => array(0),
"array(1)" => array(1),
"array(1, 2)" => array(1, 2),
"array('color' => 'red', 'item' => 'pen'" => array('color' => 'red', 'item' => 'pen'),
-
+
// null data
"NULL" => NULL,
"null" => null,
-
+
// boolean data
"true" => true,
"false" => false,
"TRUE" => TRUE,
"FALSE" => FALSE,
-
+
// empty data
"\"\"" => "",
"''" => '',
-
+
// object data
"stdClass object" => new stdclass(),
-
+
// undefined data
"undefined variable" => $undefined_var,
-
+
// unset data
"unset variable" => $unset_var,
-
+
// resource data
"resource" => $file_handle
);
diff --git a/ext/standard/tests/url/base64_encode_basic_001.phpt b/ext/standard/tests/url/base64_encode_basic_001.phpt
index 6f5e0a28da..825fabe8c5 100644
--- a/ext/standard/tests/url/base64_encode_basic_001.phpt
+++ b/ext/standard/tests/url/base64_encode_basic_001.phpt
@@ -5,7 +5,7 @@ Test base64_encode() function : basic functionality
/* Prototype : proto string base64_encode(string str)
* Description: Encodes string using MIME base64 algorithm
* Source code: ext/standard/base64.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/url/base64_encode_basic_002.phpt b/ext/standard/tests/url/base64_encode_basic_002.phpt
index e2304ec06e..cd066f9193 100644
--- a/ext/standard/tests/url/base64_encode_basic_002.phpt
+++ b/ext/standard/tests/url/base64_encode_basic_002.phpt
@@ -5,7 +5,7 @@ Test base64_encode() function : basic functionality - check algorithm round trip
/* Prototype : proto string base64_encode(string str)
* Description: Encodes string using MIME base64 algorithm
* Source code: ext/standard/base64.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
@@ -27,7 +27,7 @@ echo "\n--- Testing base64_encode() with binary string input ---\n";
$counter = 1;
foreach($values as $str) {
echo "-- Iteration $counter --\n";
-
+
$enc = base64_encode($str);
$dec = base64_decode($enc);
@@ -35,7 +35,7 @@ foreach($values as $str) {
echo "TEST FAILED\n";
} else {
echo "TEST PASSED\n";
- }
+ }
$counter ++;
}
diff --git a/ext/standard/tests/url/base64_encode_error_001.phpt b/ext/standard/tests/url/base64_encode_error_001.phpt
index a8883ac8f9..fbf595fcef 100644
--- a/ext/standard/tests/url/base64_encode_error_001.phpt
+++ b/ext/standard/tests/url/base64_encode_error_001.phpt
@@ -5,7 +5,7 @@ Test base64_encode() function : error conditions - wrong number of args
/* Prototype : proto string base64_encode(string str)
* Description: Encodes string using MIME base64 algorithm
* Source code: ext/standard/base64.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing base64_encode() : error conditions - wrong number of args ***\n";
diff --git a/ext/standard/tests/url/base64_encode_variation_001.phpt b/ext/standard/tests/url/base64_encode_variation_001.phpt
index f632bebf5d..d28eb13471 100644
--- a/ext/standard/tests/url/base64_encode_variation_001.phpt
+++ b/ext/standard/tests/url/base64_encode_variation_001.phpt
@@ -5,7 +5,7 @@ Test base64_encode() function : usage variations - unexpected types for argument
/* Prototype : proto string base64_encode(string str)
* Description: Encodes string using MIME base64 algorithm
* Source code: ext/standard/base64.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing base64_encode() : usage variations ***\n";
diff --git a/ext/standard/tests/url/parse_url_basic_001.phpt b/ext/standard/tests/url/parse_url_basic_001.phpt
index e963da377c..9d426f969f 100644
--- a/ext/standard/tests/url/parse_url_basic_001.phpt
+++ b/ext/standard/tests/url/parse_url_basic_001.phpt
@@ -5,7 +5,7 @@ Test parse_url() function: Parse a load of URLs without specifying the component
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/url/parse_url_basic_002.phpt b/ext/standard/tests/url/parse_url_basic_002.phpt
index fafc877502..c6027bd026 100644
--- a/ext/standard/tests/url/parse_url_basic_002.phpt
+++ b/ext/standard/tests/url/parse_url_basic_002.phpt
@@ -5,7 +5,7 @@ Test parse_url() function: Parse a load of URLs without specifying PHP_URL_SCHEM
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/url/parse_url_basic_003.phpt b/ext/standard/tests/url/parse_url_basic_003.phpt
index 76f70da4d8..e2c5c3767d 100644
--- a/ext/standard/tests/url/parse_url_basic_003.phpt
+++ b/ext/standard/tests/url/parse_url_basic_003.phpt
@@ -5,7 +5,7 @@ Test parse_url() function: Parse a load of URLs without specifying PHP_URL_HOST
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/url/parse_url_basic_004.phpt b/ext/standard/tests/url/parse_url_basic_004.phpt
index 5dda51372a..29049aa88d 100644
--- a/ext/standard/tests/url/parse_url_basic_004.phpt
+++ b/ext/standard/tests/url/parse_url_basic_004.phpt
@@ -5,7 +5,7 @@ Test parse_url() function: Parse a load of URLs without specifying PHP_URL_PORT
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/url/parse_url_basic_005.phpt b/ext/standard/tests/url/parse_url_basic_005.phpt
index 65ae06a469..fabee8cff3 100644
--- a/ext/standard/tests/url/parse_url_basic_005.phpt
+++ b/ext/standard/tests/url/parse_url_basic_005.phpt
@@ -5,7 +5,7 @@ Test parse_url() function: Parse a load of URLs without specifying PHP_URL_USER
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/url/parse_url_basic_006.phpt b/ext/standard/tests/url/parse_url_basic_006.phpt
index 3f06a50aef..5e91367ef3 100644
--- a/ext/standard/tests/url/parse_url_basic_006.phpt
+++ b/ext/standard/tests/url/parse_url_basic_006.phpt
@@ -5,7 +5,7 @@ Test parse_url() function: Parse a load of URLs without specifying PHP_URL_PASS
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/url/parse_url_basic_007.phpt b/ext/standard/tests/url/parse_url_basic_007.phpt
index 67827e05c0..ccf48970b9 100644
--- a/ext/standard/tests/url/parse_url_basic_007.phpt
+++ b/ext/standard/tests/url/parse_url_basic_007.phpt
@@ -5,7 +5,7 @@ Test parse_url() function: Parse a load of URLs without specifying PHP_URL_PATH
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/url/parse_url_basic_008.phpt b/ext/standard/tests/url/parse_url_basic_008.phpt
index f2b64da280..bc54c0bab1 100644
--- a/ext/standard/tests/url/parse_url_basic_008.phpt
+++ b/ext/standard/tests/url/parse_url_basic_008.phpt
@@ -5,7 +5,7 @@ Test parse_url() function: Parse a load of URLs without specifying PHP_URL_QUERY
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/url/parse_url_basic_009.phpt b/ext/standard/tests/url/parse_url_basic_009.phpt
index c38a69d0dd..e031d500bd 100644
--- a/ext/standard/tests/url/parse_url_basic_009.phpt
+++ b/ext/standard/tests/url/parse_url_basic_009.phpt
@@ -5,7 +5,7 @@ Test parse_url() function: Parse a load of URLs without specifying PHP_URL_FRAGM
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/url/parse_url_basic_010.phpt b/ext/standard/tests/url/parse_url_basic_010.phpt
index ff509e9744..9bab058816 100644
--- a/ext/standard/tests/url/parse_url_basic_010.phpt
+++ b/ext/standard/tests/url/parse_url_basic_010.phpt
@@ -5,7 +5,7 @@ Test parse_url() function : check values of URL related constants
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
diff --git a/ext/standard/tests/url/parse_url_error_001.phpt b/ext/standard/tests/url/parse_url_error_001.phpt
index 0280a87cbc..32770b9a4f 100644
--- a/ext/standard/tests/url/parse_url_error_001.phpt
+++ b/ext/standard/tests/url/parse_url_error_001.phpt
@@ -5,7 +5,7 @@ Test parse_url() function : error conditions - wrong number of args
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing parse_url() : error conditions ***\n";
diff --git a/ext/standard/tests/url/parse_url_error_002.phpt b/ext/standard/tests/url/parse_url_error_002.phpt
index 45c20f410d..b08c900d9f 100644
--- a/ext/standard/tests/url/parse_url_error_002.phpt
+++ b/ext/standard/tests/url/parse_url_error_002.phpt
@@ -5,7 +5,7 @@ Test parse_url() function: url component specifier out of range
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing parse_url() : error conditions: url component specifier out of range ***\n";
diff --git a/ext/standard/tests/url/parse_url_variation_001.phpt b/ext/standard/tests/url/parse_url_variation_001.phpt
index 0b804eed57..4378e71354 100644
--- a/ext/standard/tests/url/parse_url_variation_001.phpt
+++ b/ext/standard/tests/url/parse_url_variation_001.phpt
@@ -5,7 +5,7 @@ Test parse_url() function : usage variations - unexpected type for arg 1.
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
diff --git a/ext/standard/tests/url/parse_url_variation_002_32bit.phpt b/ext/standard/tests/url/parse_url_variation_002_32bit.phpt
index fe4ca7bd09..9dfe00ceb4 100644
--- a/ext/standard/tests/url/parse_url_variation_002_32bit.phpt
+++ b/ext/standard/tests/url/parse_url_variation_002_32bit.phpt
@@ -7,7 +7,7 @@ Test parse_url() function : usage variations - unexpected type for arg 2.
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
diff --git a/ext/standard/tests/url/parse_url_variation_002_64bit.phpt b/ext/standard/tests/url/parse_url_variation_002_64bit.phpt
index adf9c03058..8bd4e8884f 100644
--- a/ext/standard/tests/url/parse_url_variation_002_64bit.phpt
+++ b/ext/standard/tests/url/parse_url_variation_002_64bit.phpt
@@ -7,7 +7,7 @@ Test parse_url() function : usage variations - unexpected type for arg 2.
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
diff --git a/ext/standard/tests/url/rawurldecode_error_001.phpt b/ext/standard/tests/url/rawurldecode_error_001.phpt
index 1dcaf40fd4..46343ec4f5 100644
--- a/ext/standard/tests/url/rawurldecode_error_001.phpt
+++ b/ext/standard/tests/url/rawurldecode_error_001.phpt
@@ -5,7 +5,7 @@ Test rawurldecode() function : error conditions - wrong number of args
/* Prototype : proto string rawurldecode(string str)
* Description: Decodes URL-encodes string
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
// NB: basic functionality tested in tests/strings/001.phpt
diff --git a/ext/standard/tests/url/rawurldecode_variation_001.phpt b/ext/standard/tests/url/rawurldecode_variation_001.phpt
index 9527fe6062..1d484b2cc7 100644
--- a/ext/standard/tests/url/rawurldecode_variation_001.phpt
+++ b/ext/standard/tests/url/rawurldecode_variation_001.phpt
@@ -5,7 +5,7 @@ Test rawurldecode() function : usage variations - unexpected type for arg 1.
/* Prototype : proto string rawurldecode(string str)
* Description: Decodes URL-encodes string
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
// NB: basic functionality tested in tests/strings/001.phpt
diff --git a/ext/standard/tests/url/rawurlencode_error_001.phpt b/ext/standard/tests/url/rawurlencode_error_001.phpt
index 7acce9e0c4..aaeada6f4b 100644
--- a/ext/standard/tests/url/rawurlencode_error_001.phpt
+++ b/ext/standard/tests/url/rawurlencode_error_001.phpt
@@ -5,7 +5,7 @@ Test rawurlencode() function : error conditions
/* Prototype : proto string rawurlencode(string str)
* Description: URL-encodes string
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
// NB: basic functionality tested in tests/strings/001.phpt
diff --git a/ext/standard/tests/url/rawurlencode_variation_001.phpt b/ext/standard/tests/url/rawurlencode_variation_001.phpt
index a3443361ec..b0d9180fe9 100644
--- a/ext/standard/tests/url/rawurlencode_variation_001.phpt
+++ b/ext/standard/tests/url/rawurlencode_variation_001.phpt
@@ -5,7 +5,7 @@ Test rawurlencode() function : usage variations - unexpected type for arg 1.
/* Prototype : proto string rawurlencode(string str)
* Description: URL-encodes string
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
// NB: basic functionality tested in tests/strings/001.phpt
diff --git a/ext/standard/tests/url/urldecode_error_001.phpt b/ext/standard/tests/url/urldecode_error_001.phpt
index f0e5ae0838..976da0b1b5 100644
--- a/ext/standard/tests/url/urldecode_error_001.phpt
+++ b/ext/standard/tests/url/urldecode_error_001.phpt
@@ -5,7 +5,7 @@ Test urldecode() function : error conditions
/* Prototype : proto string urldecode(string str)
* Description: Decodes URL-encoded string
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
// NB: basic functionality tested in tests/strings/001.phpt
diff --git a/ext/standard/tests/url/urldecode_variation_001.phpt b/ext/standard/tests/url/urldecode_variation_001.phpt
index 42026d103c..a9171473cc 100644
--- a/ext/standard/tests/url/urldecode_variation_001.phpt
+++ b/ext/standard/tests/url/urldecode_variation_001.phpt
@@ -5,7 +5,7 @@ Test urldecode() function : usage variations - <type here specifics of this var
/* Prototype : proto string urldecode(string str)
* Description: Decodes URL-encoded string
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
// NB: basic functionality tested in tests/strings/001.phpt
diff --git a/ext/standard/tests/url/urlencode_error_001.phpt b/ext/standard/tests/url/urlencode_error_001.phpt
index fc00b057d8..430c08a1ed 100644
--- a/ext/standard/tests/url/urlencode_error_001.phpt
+++ b/ext/standard/tests/url/urlencode_error_001.phpt
@@ -5,7 +5,7 @@ Test urlencode() function : error conditions
/* Prototype : proto string urlencode(string str)
* Description: URL-encodes string
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
// NB: basic functionality tested in tests/strings/001.phpt
diff --git a/ext/standard/tests/url/urlencode_variation_001.phpt b/ext/standard/tests/url/urlencode_variation_001.phpt
index 04d0921b2c..5c0cda66aa 100644
--- a/ext/standard/tests/url/urlencode_variation_001.phpt
+++ b/ext/standard/tests/url/urlencode_variation_001.phpt
@@ -5,7 +5,7 @@ Test urlencode() function : usage variations - <type here specifics of this var
/* Prototype : proto string urlencode(string str)
* Description: URL-encodes string
* Source code: ext/standard/url.c
- * Alias to functions:
+ * Alias to functions:
*/
// NB: basic functionality tested in tests/strings/001.phpt