Page MenuHomeIn-Portal Phabricator

D558.diff
No OneTemporary

File Metadata

Created
Wed, Feb 25, 9:09 AM

D558.diff

Index: branches/5.2.x/core/tests/Unit/kernel/globalsTest.php
===================================================================
--- branches/5.2.x/core/tests/Unit/kernel/globalsTest.php
+++ branches/5.2.x/core/tests/Unit/kernel/globalsTest.php
@@ -28,9 +28,9 @@
protected function hasInternetConnectivity()
{
- // Use IP of the "www.google.com" hostname to avoid DNS query, that might fail.
+ // Use IP of the Cloudflare DNS hostname to avoid DNS query, that might fail.
$error_code = $error_message = null;
- $fp = @fsockopen('142.250.74.36', 443, $error_code, $error_message, 5);
+ $fp = @fsockopen('1.1.1.1', 443, $error_code, $error_message, 5);
if ( $fp ) {
fclose($fp);
Index: branches/5.2.x/core/tests/Unit/kernel/utility/DebuggerUtilTest.php
===================================================================
--- branches/5.2.x/core/tests/Unit/kernel/utility/DebuggerUtilTest.php
+++ branches/5.2.x/core/tests/Unit/kernel/utility/DebuggerUtilTest.php
@@ -24,9 +24,9 @@
protected function hasInternetConnectivity()
{
- // Use IP of the "www.google.com" hostname to avoid DNS query, that might fail.
+ // Use IP of the Cloudflare DNS hostname to avoid DNS query, that might fail.
$error_code = $error_message = null;
- $fp = @fsockopen('142.250.74.36', 443, $error_code, $error_message, 5);
+ $fp = @fsockopen('1.1.1.1', 443, $error_code, $error_message, 5);
if ( $fp ) {
fclose($fp);

Event Timeline