aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/platform.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-08 04:30:56 +0900
committernsfisis <nsfisis@gmail.com>2026-06-08 04:30:56 +0900
commit7439cdb08afe0882186a34f70c1e8878fcb7dca5 (patch)
treefdae7e27e2ae107ef97735c0a8fe7d011ba1b3d5 /crates/shirabe/src/util/platform.rs
parent632c9793927a30c4bca3c91888e66b369d732dfe (diff)
downloadphp-shirabe-7439cdb08afe0882186a34f70c1e8878fcb7dca5.tar.gz
php-shirabe-7439cdb08afe0882186a34f70c1e8878fcb7dca5.tar.zst
php-shirabe-7439cdb08afe0882186a34f70c1e8878fcb7dca5.zip
feat(phase-c): resolve static-property phase-b TODOs
Implement the FileDownloader::$downloadMetadata accessors over the existing DOWNLOAD_METADATA static, and drop now-stale TODOs on the already-correct Platform::strlen function-local static and the ClassLoader include-closure no-op. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/util/platform.rs')
-rw-r--r--crates/shirabe/src/util/platform.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/shirabe/src/util/platform.rs b/crates/shirabe/src/util/platform.rs
index bb5ce1b..3866a12 100644
--- a/crates/shirabe/src/util/platform.rs
+++ b/crates/shirabe/src/util/platform.rs
@@ -270,7 +270,6 @@ impl Platform {
/// @return int return a guaranteed binary length of the string, regardless of silly mbstring configs
pub fn strlen(str: &str) -> i64 {
- // TODO(phase-b): function-local static; collapse to a Mutex<Option<bool>> in Phase B
static USE_MB_STRING: Mutex<Option<bool>> = Mutex::new(None);
let mut use_mb_string = USE_MB_STRING.lock().unwrap();
if use_mb_string.is_none() {