mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
fix build
This commit is contained in:
+2
-1
@@ -1368,11 +1368,12 @@ PHPAPI PHP_FUNCTION(fwrite)
|
||||
}
|
||||
|
||||
if (Z_TYPE_P(zstring) == IS_UNICODE) {
|
||||
int32_t write_uchars = 0;
|
||||
|
||||
if (write_len < 0 || write_len > Z_USTRLEN_P(zstring)) {
|
||||
write_len = Z_USTRLEN_P(zstring);
|
||||
}
|
||||
/* Convert code units to data points */
|
||||
int32_t write_uchars = 0;
|
||||
|
||||
U16_FWD_N(Z_USTRVAL_P(zstring), write_uchars, Z_USTRLEN_P(zstring), write_len);
|
||||
write_len = write_uchars;
|
||||
|
||||
Reference in New Issue
Block a user