Changeset 60808
- Timestamp:
- 09/29/2025 10:11:26 AM (11 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/compat-utf8.php
r60794 r60808 44 44 */ 45 45 function _wp_scan_utf8( string $bytes, int &$at, int &$invalid_length, ?int $max_bytes = null, ?int $max_code_points = null ): int { 46 $byte_length 47 $end 48 $invalid_length 49 $count 50 $max_count 46 $byte_length = strlen( $bytes ); 47 $end = min( $byte_length, $at + ( $max_bytes ?? PHP_INT_MAX ) ); 48 $invalid_length = 0; 49 $count = 0; 50 $max_count = $max_code_points ?? PHP_INT_MAX; 51 51 52 52 for ( $i = $at; $i < $end && $count <= $max_count; $i++ ) {
Note: See TracChangeset for help on using the changeset viewer.