[php-src] PR #17089: zend_hrtime: Use `clock_gettime_nsec_np()` for macOS if available

From: Date: Mon, 09 Dec 2024 08:51:20 +0000
Subject: [php-src] PR #17089: zend_hrtime: Use `clock_gettime_nsec_np()` for macOS if available
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29943@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17089 Author: TimWolla This is completely untested, because I do not have macOS available. ------------------ As per the Apple developer documentation: > Prefer to use the equivalent clock_gettime_nsec_np(CLOCK_UPTIME_RAW) in > nanoseconds. and also > This API has the potential of being misused to access device signals to try > to identify the device or user, also known as fingerprinting. Regardless of > whether a user gives your app permission to track, fingerprinting is not > allowed. When you use this API in your app or third-party SDK (an SDK not > provided by Apple), declare your usage and the reason for using the API in > your app or third-party SDK’s PrivacyInfo.xcprivacy file. see https://developer.apple.com/documentation/kernel/1462446-mach_absolute_time

« previous php.git-pulls (#29943) next »