php-src/ext/standard
Nikita Popov 6f38acfaf9 Safely reassign array in usort()
Make sure to destroy the old value only after assigning the new
one. Otherwise we may try to double free, e.g. if GC runs during
this dtor.

This caused an assertion failure in phpro/grumphp and is likely
the cause for bug #81603 as well.
2021-11-16 10:13:46 +01:00
..
html_tables Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
tests Merge branch 'PHP-7.4' into PHP-8.0 2021-11-15 10:00:36 +01:00
array.c Safely reassign array in usort() 2021-11-16 10:13:46 +01:00
assert.c Fixed bug #80290 2020-10-30 11:13:35 +01:00
base64.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
base64.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
basic_functions_arginfo.h String default values are enclosed in quotes rather than apostrophes 2021-10-12 09:51:20 +02:00
basic_functions.c Make highlight_string() accept string in zpp 2020-10-22 14:31:42 +02:00
basic_functions.h Use callable type in register_shutdown_function() 2020-09-25 14:48:33 +02:00
basic_functions.stub.php String default values are enclosed in quotes rather than apostrophes 2021-10-12 09:51:20 +02:00
browscap.c Promote a few remaining errors in ext/standard 2020-09-15 14:26:16 +02:00
config.m4 Merge branch 'PHP-7.4' 2020-10-05 10:48:04 +02:00
config.w32 Merge branch 'PHP-7.4' into PHP-8.0 2020-10-26 11:06:10 +01:00
crc32_x86.c Avoid direct calls to zend_cpu_supports() 2020-11-27 11:18:10 +01:00
crc32_x86.h X86: Fast CRC32 computation using PCLMULQDQ instruction 2020-09-02 15:10:41 +02:00
crc32.c crc32 module, clang spurious warning removal. 2021-02-25 10:17:21 +01:00
crc32.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
credits_ext.h Update CREDITS 2020-06-17 13:04:01 +00:00
credits_sapi.h Update CREDITS for PHP 7.2.30 2020-04-14 15:16:26 +00:00
credits.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
credits.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
crypt_blowfish.c Add "const". Move constant strings to read-only memory. 2020-09-07 21:35:48 +03:00
crypt_blowfish.h Clean house in cryptographic hashing code 2020-06-24 13:40:27 +02:00
crypt_freesec.c Clean house in cryptographic hashing code 2020-06-24 13:40:27 +02:00
crypt_freesec.h Use unsigned char in _crypt_extended_r 2019-06-19 15:09:00 +02:00
crypt_sha256.c Enforce min/max rounds in sha256/sha512 crypt 2020-06-24 12:41:56 +02:00
crypt_sha512.c Enforce min/max rounds in sha256/sha512 crypt 2020-06-24 12:41:56 +02:00
crypt.c Drop support for crypt() without explicit salt 2020-09-07 15:43:26 +02:00
css.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
css.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
datetime.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
datetime.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
dir_arginfo.h Don't accept dir handle in Directory methods 2020-09-29 14:50:40 +02:00
dir.c Remove the "getdir" function which was introduced accidentally 2021-04-12 11:13:57 +02:00
dir.stub.php Don't accept dir handle in Directory methods 2020-09-29 14:50:40 +02:00
dl_arginfo.h Include stub hash in generated arginfo files 2020-06-24 09:55:19 +02:00
dl.c Fixed bug #80718 2021-02-11 16:49:39 +01:00
dl.h Constify char * arguments of APIs 2020-06-08 10:38:45 +02:00
dl.stub.php Add stubs for some SAPIs 2020-05-14 13:35:12 +02:00
dns_win32.c Merge branch 'PHP-7.4' into PHP-8.0 2021-08-30 18:52:40 +02:00
dns.c Merge branch 'PHP-7.4' into PHP-8.0 2021-11-15 10:00:36 +01:00
exec.c Make null byte error a ValueError 2020-09-08 15:23:23 +02:00
exec.h Constify char * arguments of APIs 2020-06-08 10:38:45 +02:00
file.c Merge branch 'PHP-7.4' into PHP-8.0 2021-02-01 13:00:22 +01:00
file.h Extract common flock code 2020-09-04 14:29:31 +02:00
filestat.c Merge branch 'PHP-7.4' into PHP-8.0 2021-08-17 11:31:14 +02:00
filters.c Add "const". Move constant strings to read-only memory. 2020-09-07 21:35:48 +03:00
flock_compat.c Merge branch 'PHP-7.4' into PHP-8.0 2021-07-06 12:00:09 +02:00
flock_compat.h Refactor parts of SPL Dir/SplFileObject 2020-09-03 14:23:18 +02:00
formatted_print.c Fix bug #69751 2021-09-29 12:21:37 +02:00
fsock.c Fix UNKNOWN default values in ext/standard 2020-09-07 18:58:11 +02:00
fsock.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
ftok.c Promote a few remaining errors in ext/standard 2020-09-15 14:26:16 +02:00
ftp_fopen_wrapper.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
head.c Declare array|int and object-of-class|int types in stubs 2020-09-14 11:59:32 +02:00
head.h Promote warnings to errors for set(raw)cookie() 2020-09-08 14:28:49 +02:00
hrtime.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
hrtime.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
html_tables.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
html.c html_entity_decode() cannot fail 2020-09-22 11:23:01 +02:00
html.h Constify char * arguments of APIs 2020-06-08 10:38:45 +02:00
http_fopen_wrapper.c Merge branch 'PHP-7.4' into PHP-8.0 2021-03-08 14:51:45 +01:00
http.c http_build_query() cannot fail 2020-09-22 11:30:02 +02:00
image.c Merge branch 'PHP-7.4' into PHP-8.0 2021-07-16 10:07:26 +02:00
incomplete_class.c Promote incomplete class to modification to Error 2020-08-28 11:14:43 +02:00
info.c Merge branch 'PHP-7.4' into PHP-8.0 2021-05-19 14:09:21 +02:00
info.h change PHP_EGG_LOGO_DATA_URI to php8 elePHPant called InPHPinity 2021-04-13 11:49:42 +02:00
iptc.c Merge branch 'PHP-7.4' into PHP-8.0 2020-11-24 13:10:35 +01:00
lcg.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
levenshtein.c Remove string length limit from levenshtein() 2020-10-09 16:12:08 +02:00
link.c Tweak some macro definition on Windows 2020-09-22 23:05:12 +01:00
mail.c Promote a few remaining errors in ext/standard 2020-09-15 14:26:16 +02:00
Makefile.frag
Makefile.frag.w32
math.c Promote a few remaining errors in ext/standard 2020-09-15 14:26:16 +02:00
md5.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
md5.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
metaphone.c Validate phonemes parameter of metaphone() 2020-09-22 11:19:02 +02:00
microtime.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
mt_rand.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
net.c fix bad refactor of #7136 2021-06-11 09:33:55 +02:00
pack.c Fix double free on unpack error 2020-09-22 23:31:56 +02:00
pack.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
pageinfo.c Tweak some macro definition on Windows 2020-09-22 23:05:12 +01:00
pageinfo.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
password.c Create persistent interned string for password algos 2021-07-20 15:13:50 +02:00
php_array.h Make sorting stable 2020-06-25 10:49:34 +02:00
php_assert.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
php_browscap.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
php_crypt_r.c Add "const". Move constant strings to read-only memory. 2020-09-07 21:35:48 +03:00
php_crypt_r.h Clean house in cryptographic hashing code 2020-06-24 13:40:27 +02:00
php_crypt.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
php_dir.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
php_dns.h Merge branch 'PHP-7.4' into PHP-8.0 2021-11-15 10:00:36 +01:00
php_ext_syslog.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
php_filestat.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
php_fopen_wrapper.c Improve argument error messages in ext/standard 2020-03-18 19:56:10 +01:00
php_fopen_wrappers.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_http.h http_build_query() cannot fail 2020-09-22 11:30:02 +02:00
php_image.h Constify char * arguments of APIs 2020-06-08 10:38:45 +02:00
php_incomplete_class.h Use zend_string when storing incomplete class name 2020-08-28 10:01:46 +02:00
php_lcg.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
php_mail.h Promote a few remaining errors in ext/standard 2020-09-15 14:26:16 +02:00
php_math.h Add more argument types to stubs 2020-08-07 12:35:30 +02:00
php_mt_rand.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_net.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
php_password.h Fix warning of strict-prototypes 2020-06-07 10:36:50 +02:00
php_rand.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_random.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
php_smart_string_public.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_smart_string.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_standard.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
php_string.h Constify char * arguments of APIs 2020-06-08 10:38:45 +02:00
php_uuencode.h Constify char * arguments of APIs 2020-06-08 10:38:45 +02:00
php_var.h [RFC] Only unserialize Phar metadata when getMetadata() is called 2020-08-03 13:28:51 -04:00
php_versioning.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
proc_open.c Add support for Solaris 11.4 openpty implementation. 2020-10-09 16:10:03 +02:00
proc_open.h Further refactoring of proc_open.c 2020-05-14 10:25:52 +02:00
quot_print.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
quot_print.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
rand.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
random.c Use arc4random_buf on macOS 2021-01-12 10:42:09 +01:00
scanf.c Drop various unused macros/APIs 2020-08-26 12:59:43 +02:00
scanf.h Promote warnings to exceptions in *scanf() functions 2019-12-10 13:01:59 +01:00
sha1.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
sha1.h Make HashContexts serializable. 2020-06-30 14:30:33 +02:00
soundex.c Don't return false for empty string in soundex() 2020-09-22 11:44:35 +02:00
streamsfuncs.c Add missing error condition to stream_context_set_option() 2021-07-02 17:55:31 +02:00
streamsfuncs.h Remove now unnecessary PHP_FUNCTION() declarations 2020-04-03 15:41:41 +02:00
string.c Merge branch 'PHP-7.4' into PHP-8.0 2021-07-15 12:56:12 +02:00
strnatcmp.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
syslog.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
type.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
uniqid.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
url_scanner_ex.h Constify char * arguments of APIs 2020-06-08 10:38:45 +02:00
url_scanner_ex.re Constify char * arguments of APIs 2020-06-08 10:38:45 +02:00
url.c Rm unneeded function 2021-01-27 00:18:49 -08:00
url.h Merge branch 'PHP-7.4' into PHP-8.0 2020-11-04 14:57:17 +01:00
user_filters_arginfo.h Fix return type of php_user_filter::onCreate() 2021-05-07 15:21:11 +02:00
user_filters.c Merge branch 'PHP-7.4' into PHP-8.0 2021-10-07 11:46:10 +02:00
user_filters.stub.php Fix return type of php_user_filter::onCreate() 2021-05-07 15:21:11 +02:00
uuencode.c Support uuencoding empty string 2020-09-22 12:39:39 +02:00
var_unserializer.re Fix another typed resource issue in unserialization 2020-12-07 12:36:09 +01:00
var.c Merge branch 'PHP-7.4' into PHP-8.0 2021-06-18 11:17:03 +02:00
versioning.c Fix UNKNOWN default values in ext/standard 2020-09-07 18:58:11 +02:00
winver.h