php-src/ext
Tim Düsterhus 0cfc45b667
random: Use branchless implementation for mask generation in Randomizer::getBytesFromString() (#10522)
* random: Add `max_offset` local to Randomizer::getBytesFromString()

* random: Use branchless implementation for mask generation in Randomizer::getBytesFromString()

This was benchmarked against clzl with a standalone script with random inputs
and is slightly faster. clzl requires an additional branch to handle the
source_length = 1 / max_offset = 0 case.

* Improve comment for masking in Randomizer::getBytesFromString()
2023-02-08 09:36:12 +01:00
..
bcmath Deprecate zend_atol() / add zend_ini_parse_quantity() (#7951) 2022-06-17 14:12:53 +02:00
bz2 Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
calendar Do not generate CONST_CS when registering constants (#9439) 2022-08-28 08:27:19 +02:00
com_dotnet Remove unnecessary usage of CONST_CS 2022-11-28 17:12:07 +01:00
ctype Merge branch 'PHP-8.1' into PHP-8.2 2022-10-27 14:42:17 +01:00
curl Do not use zend_fcall_info_argn() in ext-curl 2022-10-21 18:31:40 +01:00
date Merge branch 'PHP-8.2' 2023-01-31 13:00:13 +00:00
dba Mark globals as const (#10303) 2023-01-23 13:46:58 +00:00
dl_test Merge branch 'PHP-8.2' 2022-09-07 17:41:10 +02:00
dom Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
enchant Revert "Port all internally used classes to use default_object_handlers" 2022-09-14 11:13:23 +02:00
exif fixed some misspellings (#10503) 2023-02-04 07:03:10 +00:00
ffi fixed some misspellings (#10503) 2023-02-04 07:03:10 +00:00
fileinfo Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
filter Merge branch 'PHP-8.2' 2022-10-27 14:42:40 +01:00
ftp Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
gd Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
gettext
gmp Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
hash Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
iconv Mark constant static arrays in function bodies actually as const (#10325) 2023-01-15 14:51:31 +00:00
imap Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
intl Mark globals as const (#10303) 2023-01-23 13:46:58 +00:00
json Revert GH-10220 2023-01-16 12:27:33 +01:00
ldap Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
libxml Handle trampolines correctly in new FCC API + usages (#9877) 2022-11-22 17:12:53 +00:00
mbstring Add AVX2-accelerated UTF-16 decoding/encoding routines 2023-02-05 20:06:42 +02:00
mysqli Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
mysqlnd Remove mysqlnd_shutdown() (#10355) 2023-01-17 11:46:34 +00:00
oci8 [skip ci] Update year to 2023 (#10374) 2023-01-19 12:01:29 +01:00
odbc Merge branch 'PHP-8.2' 2022-09-06 10:42:34 +01:00
opcache Merge branch 'PHP-8.2' 2023-02-07 16:09:58 +03:00
openssl Merge branch 'PHP-8.2' 2023-01-23 13:51:26 +00:00
pcntl Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
pcre Remove pcre_get_compiled_regex_ex() (#10354) 2023-01-18 14:28:19 +00:00
pdo Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
pdo_dblib Use php_info_print_table_header for actual column headers only (#9485) 2022-09-06 08:48:22 +02:00
pdo_firebird Merge branch 'PHP-8.2' 2022-11-30 12:13:36 +01:00
pdo_mysql Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
pdo_oci Merge branch 'PHP-8.2' 2023-02-07 09:32:45 -06:00
pdo_odbc Merge branch 'PHP-8.2' 2022-10-19 11:37:30 +02:00
pdo_pgsql Revert GH-10220 2023-01-16 12:27:33 +01:00
pdo_sqlite Merge branch 'PHP-8.2' 2022-12-19 16:17:02 +01:00
pgsql Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
phar Merge branch 'PHP-8.2' 2023-01-29 17:17:32 +00:00
posix posix detects posix_pathconf api. 2023-01-23 17:49:34 +00:00
pspell Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
random random: Use branchless implementation for mask generation in Randomizer::getBytesFromString() (#10522) 2023-02-08 09:36:12 +01:00
readline Use php_info_print_table_header for actual column headers only (#9485) 2022-09-06 08:48:22 +02:00
reflection Do not build unnecessary FCI in Reflection 2023-02-05 17:11:49 +00:00
session session: Remove PS_EXTRA_RAND_BYTES (#10394) 2023-01-23 14:42:32 +01:00
shmop Revert GH-10220 2023-01-16 12:27:33 +01:00
simplexml Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
skeleton Merge branch 'PHP-8.2' 2022-09-07 17:41:10 +02:00
snmp ext/snmp: use memcpy() instead of memmove() (#10498) 2023-02-05 15:10:01 +00:00
soap Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
sockets Voidify php_sock_array_from_fd_set() as result is never used 2023-01-30 16:05:30 +00:00
sodium Remove unnecessary usage of CONST_CS 2022-11-28 17:12:07 +01:00
spl Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
sqlite3 Merge branch 'PHP-8.2' 2023-01-19 09:06:39 +01:00
standard Cleanup dead code in array_slice (#10539) 2023-02-08 00:54:42 +01:00
sysvmsg Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
sysvsem Revert "Port all internally used classes to use default_object_handlers" 2022-09-14 11:13:23 +02:00
sysvshm Revert "Port all internally used classes to use default_object_handlers" 2022-09-14 11:13:23 +02:00
tidy Update INI validator and displayers depending on INI type 2022-09-06 10:33:34 +01:00
tokenizer Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
xml Declare XML_SAX_IMPL constant in stubs (#9732) 2022-10-12 11:42:24 +02:00
xmlreader Merge branch 'PHP-8.2' 2022-10-27 14:42:40 +01:00
xmlwriter Merge branch 'PHP-8.2' 2023-01-15 15:43:57 +00:00
xsl Fix bug 69168: DomNode::getNodePath() returns invalid path 2023-01-19 14:06:41 +01:00
zend_test Copy UTF-8 flag for str_repeat 2023-02-05 14:32:50 +00:00
zip Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
zlib Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385) 2023-01-23 10:52:14 +01:00
ext_skel.php