Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2690190
D25318.1734747016.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
582 B
Referenced Files
None
Subscribers
None
D25318.1734747016.diff
View Options
diff --git a/src/infrastructure/cluster/PhabricatorDatabaseRef.php b/src/infrastructure/cluster/PhabricatorDatabaseRef.php
--- a/src/infrastructure/cluster/PhabricatorDatabaseRef.php
+++ b/src/infrastructure/cluster/PhabricatorDatabaseRef.php
@@ -393,7 +393,7 @@
if ($is_replica) {
$latency = idx($replica_status, 'Seconds_Behind_Master');
- if (!strlen($latency)) {
+ if (!phutil_nonempty_string($latency)) {
$ref->setReplicaStatus(self::REPLICATION_NOT_REPLICATING);
} else {
$latency = (int)$latency;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 02:10 (17 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1021624
Default Alt Text
D25318.1734747016.diff (582 B)
Attached To
Mode
D25318: Fix PHP 8.1 strlen() error when database replication Seconds_Behind_Master is NULL
Attached
Detach File
Event Timeline
Log In to Comment