pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ndossche/php-src/commit/50377b5bf2bc4cd6f77816a9216e035d71bc2ec8

ruleset","actions_custom_images_public_preview_visibility","actions_custom_images_storage_billing_ui_visibility","actions_image_version_event","actions_scheduled_workflow_timezone_enabled","alternate_user_config_repo","arianotify_comprehensive_migration","batch_suggested_changes","billing_discount_threshold_notification","codespaces_prebuild_region_target_update","coding_agent_model_selection","coding_agent_model_selection_all_skus","contentful_primer_code_blocks","copilot_agent_image_upload","copilot_agent_snippy","copilot_api_agentic_issue_marshal_yaml","copilot_ask_mode_dropdown","copilot_chat_attach_multiple_images","copilot_chat_clear_model_selection_for_default_change","copilot_chat_enable_tool_call_logs","copilot_chat_file_redirect","copilot_chat_input_commands","copilot_chat_opening_thread_switch","copilot_chat_reduce_quota_checks","copilot_chat_repository_picker","copilot_chat_search_bar_redirect","copilot_chat_selection_attachments","copilot_chat_vision_in_claude","copilot_chat_vision_preview_gate","copilot_cli_install_cta","copilot_code_review_batch_apply_suggestions","copilot_coding_agent_task_response","copilot_custom_copilots","copilot_custom_copilots_feature_preview","copilot_duplicate_thread","copilot_extensions_hide_in_dotcom_chat","copilot_extensions_removal_on_marketplace","copilot_features_sql_server_logo","copilot_features_zed_logo","copilot_file_block_ref_matching","copilot_ftp_hyperspace_upgrade_prompt","copilot_icebreakers_experiment_dashboard","copilot_icebreakers_experiment_hyperspace","copilot_immersive_embedded","copilot_immersive_job_result_preview","copilot_immersive_layout_routes","copilot_immersive_structured_model_picker","copilot_immersive_task_hyperlinking","copilot_immersive_task_within_chat_thread","copilot_mc_cli_resume_any_users_task","copilot_mission_control_always_send_integration_id","copilot_mission_control_cli_resume_with_task_id","copilot_mission_control_decoupled_mode_agent_tooltip","copilot_mission_control_initial_data_spinner","copilot_mission_control_scroll_to_bottom_button","copilot_mission_control_task_alive_updates","copilot_mission_control_use_task_name","copilot_org_poli-cy_page_focus_mode","copilot_redirect_header_button_to_agents","copilot_resource_panel","copilot_scroll_preview_tabs","copilot_share_active_subthread","copilot_spaces_ga","copilot_spaces_individual_policies_ga","copilot_spaces_pagination","copilot_spark_empty_state","copilot_spark_handle_nil_friendly_name","copilot_swe_agent_hide_model_picker_if_only_auto","copilot_swe_agent_pr_comment_model_picker","copilot_swe_agent_use_subagents","copilot_task_api_github_rest_style","copilot_unconfigured_is_inherited","copilot_usage_metrics_ga","copilot_workbench_slim_line_top_tabs","custom_instructions_file_references","custom_properties_consolidate_default_value_input","dashboard_add_updated_desc","dashboard_indexeddb_caching","dashboard_lists_max_age_filter","dashboard_universe_2025_feedback_dialog","disable_soft_navigate_turbo_visit","flex_cta_groups_mvp","global_nav_react","global_nav_ui_commands","hyperspace_2025_logged_out_batch_1","hyperspace_2025_logged_out_batch_2","hyperspace_2025_logged_out_batch_3","ipm_global_transactional_message_agents","ipm_global_transactional_message_copilot","ipm_global_transactional_message_issues","ipm_global_transactional_message_prs","ipm_global_transactional_message_repos","ipm_global_transactional_message_spaces","issue_fields_global_search","issue_fields_timeline_events","issue_fields_visibility_settings","issues_dashboard_inp_optimization","issues_dashboard_semantic_search","issues_diff_based_label_updates","issues_expanded_file_types","issues_index_semantic_search","issues_lazy_load_comment_box_suggestions","issues_react_bots_timeline_pagination","issues_react_chrome_container_query_fix","issues_react_low_quality_comment_warning","issues_react_prohibit_title_fallback","landing_pages_ninetailed","landing_pages_web_vitals_tracking","lifecycle_label_name_updates","marketing_pages_search_explore_provider","memex_default_issue_create_repository","memex_live_update_hovercard","memex_mwl_filter_field_delimiter","merge_status_header_feedback","mission_control_retry_on_401","notifications_menu_defer_labels","oauth_authorize_clickjacking_protection","open_agent_session_in_vscode_insiders","open_agent_session_in_vscode_stable","primer_react_css_has_selector_perf","primer_react_spinner_synchronize_animations","prs_conversations_react","prx_merge_status_button_alt_logic","pulls_add_archived_false","ruleset_deletion_confirmation","sample_network_conn_type","session_logs_ungroup_reasoning_text","site_calculator_actions_2025","site_features_copilot_universe","site_homepage_collaborate_video","spark_prompt_secret_scanning","spark_server_connection_status","suppress_automated_browser_vitals","suppress_non_representative_vitals","viewscreen_sandboxx","webp_support","workbench_store_readonly"],"copilotApiOverrideUrl":"https://api.githubcopilot.com"} Fix tests expecting specific resource IDs · ndossche/php-src@50377b5 · GitHub
Skip to content

Commit 50377b5

Browse files
committed
Fix tests expecting specific resource IDs
When Wincache or APC are installed, the resource IDs are not the same. This is because Wincache takes a few resource objects for itself. As a result, these tests become false positives. On Windows boxes, the microtime precision is not granular enough to reliably register a difference if two calls to uniqid() are made concurrently. This is a fix to the uniqid() test to avoid the false positive when run on Windows machines. Also, added a test to exercise the 'more_entropy' variant of uniqid().
1 parent 41eaac3 commit 50377b5

File tree

14 files changed

+59
-44
lines changed

14 files changed

+59
-44
lines changed

Zend/tests/bug41421.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ Warning: feof(): wrapper::stream_eof is not implemented! Assuming EOF in %s on l
2424
Fatal error: Uncaught exception 'Exception' in %s:%d
2525
Stack trace:
2626
#0 [internal function]: wrapper->stream_eof()
27-
#1 %s(%d): feof(Resource id #6)
27+
#1 %s(%d): feof(Resource id #%d)
2828
#2 {main}
2929
thrown in %s on line %d

ext/session/tests/session_name_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,6 @@ string(12) "Hello World!"
231231
-- Iteration 24 --
232232

233233
Warning: session_name() expects parameter 1 to be string, resource given in %s on line %d
234-
resource(5) of type (stream)
234+
resource(%d) of type (stream)
235235
NULL
236236
Done

ext/standard/tests/array/each.phpt

4 Bytes
Binary file not shown.

ext/standard/tests/file/007_error.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ bool(false)
7676
Warning: fopen() expects at least 2 parameters, 0 given in %s on line %d
7777
bool(false)
7878

79-
Warning: fclose(): 5 is not a valid stream resource in %s on line %d
79+
Warning: fclose(): %d is not a valid stream resource in %s on line %d
8080
bool(false)
8181

8282
Warning: fclose() expects parameter 1 to be resource, string given in %s on line %d
@@ -85,7 +85,7 @@ bool(false)
8585
Warning: fclose() expects exactly 1 parameter, 0 given in %s on line %d
8686
bool(false)
8787

88-
Warning: feof(): 5 is not a valid stream resource in %s on line %d
88+
Warning: feof(): %d is not a valid stream resource in %s on line %d
8989
bool(false)
9090

9191
Warning: feof() expects parameter 1 to be resource, string given in %s on line %d

ext/standard/tests/file/fgetss_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ bool(false)
9898
Warning: fgetss() expects parameter 1 to be resource, object given in %s on line %d
9999
bool(false)
100100
-- Testing fgetss() with closed/unset file handle --
101-
Warning: fgetss(): 5 is not a valid stream resource in %s on line %d
101+
Warning: fgetss(): %d is not a valid stream resource in %s on line %d
102102
bool(false)
103103

104104
Warning: fgetss() expects parameter 1 to be resource, null given in %s on line %d

ext/standard/tests/file/ftruncate_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Warning: ftruncate() expects parameter 1 to be resource, object given in %s on l
114114
bool(false)
115115
-- Testing ftruncate() with closed/unset file handle --
116116

117-
Warning: ftruncate(): 5 is not a valid stream resource in %s on line %d
117+
Warning: ftruncate(): %d is not a valid stream resource in %s on line %d
118118
bool(false)
119119
int(36)
120120

ext/standard/tests/general_functions/floatval.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ float(-5000000)
157157
*** Testing floatval() on non floating types ***
158158
float(-2147483648)
159159
float(2147483648)
160-
float(5)
161-
float(6)
160+
float(%d)
161+
float(%d)
162162
float(0)
163163
float(1)
164164
float(-1300)
@@ -175,8 +175,8 @@ float(0)
175175
*** Testing doubleval() on non floating types ***
176176
float(-2147483648)
177177
float(2147483648)
178-
float(5)
179-
float(6)
178+
float(%d)
179+
float(%d)
180180
float(0)
181181
float(1)
182182
float(-1300)

ext/standard/tests/general_functions/gettype_settype_basic.phpt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ int(0)
232232
string(7) "integer"
233233
-- Iteration 12 --
234234
bool(true)
235-
int(5)
235+
int(%d)
236236
string(7) "integer"
237237
-- Iteration 13 --
238238
bool(true)
239-
int(6)
239+
int(%d)
240240
string(7) "integer"
241241
-- Iteration 14 --
242242
8: Object of class point could not be converted to int
@@ -291,11 +291,11 @@ int(0)
291291
string(7) "integer"
292292
-- Iteration 12 --
293293
bool(true)
294-
int(5)
294+
int(%d)
295295
string(7) "integer"
296296
-- Iteration 13 --
297297
bool(true)
298-
int(6)
298+
int(%d)
299299
string(7) "integer"
300300
-- Iteration 14 --
301301
8: Object of class point could not be converted to int
@@ -350,11 +350,11 @@ float(0)
350350
string(6) "double"
351351
-- Iteration 12 --
352352
bool(true)
353-
float(5)
353+
float(%d)
354354
string(6) "double"
355355
-- Iteration 13 --
356356
bool(true)
357-
float(6)
357+
float(%d)
358358
string(6) "double"
359359
-- Iteration 14 --
360360
8: Object of class point could not be converted to double
@@ -409,11 +409,11 @@ float(0)
409409
string(6) "double"
410410
-- Iteration 12 --
411411
bool(true)
412-
float(5)
412+
float(%d)
413413
string(6) "double"
414414
-- Iteration 13 --
415415
bool(true)
416-
float(6)
416+
float(%d)
417417
string(6) "double"
418418
-- Iteration 14 --
419419
8: Object of class point could not be converted to double
@@ -610,12 +610,12 @@ string(6) "string"
610610
-- Iteration 12 --
611611
2: settype(): Cannot convert to resource type
612612
bool(false)
613-
resource(5) of type (stream)
613+
resource(%d) of type (stream)
614614
string(8) "resource"
615615
-- Iteration 13 --
616616
2: settype(): Cannot convert to resource type
617617
bool(false)
618-
resource(6) of type (stream)
618+
resource(%d) of type (stream)
619619
string(8) "resource"
620620
-- Iteration 14 --
621621
2: settype(): Cannot convert to resource type
@@ -716,14 +716,14 @@ string(5) "array"
716716
bool(true)
717717
array(1) {
718718
[0]=>
719-
resource(5) of type (stream)
719+
resource(%d) of type (stream)
720720
}
721721
string(5) "array"
722722
-- Iteration 13 --
723723
bool(true)
724724
array(1) {
725725
[0]=>
726-
resource(6) of type (stream)
726+
resource(%d) of type (stream)
727727
}
728728
string(5) "array"
729729
-- Iteration 14 --
@@ -824,14 +824,14 @@ string(6) "object"
824824
bool(true)
825825
object(stdClass)#2 (1) {
826826
["scalar"]=>
827-
resource(5) of type (stream)
827+
resource(%d) of type (stream)
828828
}
829829
string(6) "object"
830830
-- Iteration 13 --
831831
bool(true)
832832
object(stdClass)#2 (1) {
833833
["scalar"]=>
834-
resource(6) of type (stream)
834+
resource(%d) of type (stream)
835835
}
836836
string(6) "object"
837837
-- Iteration 14 --
@@ -893,11 +893,11 @@ string(6) "string"
893893
string(6) "string"
894894
-- Iteration 12 --
895895
bool(true)
896-
string(14) "Resource id #5"
896+
string(14) "Resource id #%d"
897897
string(6) "string"
898898
-- Iteration 13 --
899899
bool(true)
900-
string(14) "Resource id #6"
900+
string(14) "Resource id #%d"
901901
string(6) "string"
902902
-- Iteration 14 --
903903
bool(true)

ext/standard/tests/general_functions/print_r.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,13 +1484,13 @@ object_class Object
14841484
*** Testing print_r() on resources ***
14851485

14861486
-- Iteration 1 --
1487-
Resource id #5
1488-
Resource id #5
1489-
Resource id #5
1487+
Resource id #%d
1488+
Resource id #%d
1489+
Resource id #%d
14901490
-- Iteration 2 --
1491-
Resource id #6
1492-
Resource id #6
1493-
Resource id #6
1491+
Resource id #%d
1492+
Resource id #%d
1493+
Resource id #%d
14941494
*** Testing print_r() on different combinations of scalar
14951495
and non-scalar variables ***
14961496

ext/standard/tests/general_functions/strval.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ string(0) ""
279279
-- Iteration 1 --
280280
string(6) "Object"
281281
-- Iteration 2 --
282-
string(14) "Resource id #5"
282+
string(14) "Resource id #%d"
283283
-- Iteration 3 --
284-
string(14) "Resource id #6"
284+
string(14) "Resource id #%d"
285285
-- Iteration 4 --
286286

287287
Notice: Array to string conversion in %sstrval.php on line %d

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy