php-src/ext/standard
Nikita Popov d955ee9f6b Make string size calculation in chunk_split more precise
The +1 on the string length is unnecessary, as we need the string
length without trailing NUL byte here.

The +1 on the chunks is only necessary if there is a rest. If the
string devides into chunks exactly, we don't need an extra chunk.

This makes the allocations exactly as large as it needs to be.
2019-08-25 15:34:37 +02:00
..
html_tables Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
tests Add some header and html function stub 2019-08-25 15:27:58 +02:00
array.c Promote warnings to errors in array_pad() 2019-08-22 19:30:20 +02:00
assert.c Merge branch 'PHP-7.4' 2019-06-06 02:23:17 +03:00
base64.c Merge branch 'PHP-7.4' 2019-08-20 21:46:51 +02:00
base64.h neon vectorization for base64 2019-07-11 12:04:29 +03:00
basic_functions_arginfo.h Add some header and html function stub 2019-08-25 15:27:58 +02:00
basic_functions.c Add some header and html function stub 2019-08-25 15:27:58 +02:00
basic_functions.h Convert extract() prefix to string zpp arg 2019-03-01 10:11:28 +01:00
basic_functions.stub.php Add some header and html function stub 2019-08-25 15:27:58 +02:00
browscap.c Introduce zend_stream_init_fp() API 2019-07-16 16:44:37 +02:00
config.m4 Sync functions checks 2019-06-30 23:57:54 +02:00
config.w32 Move Oniguruma related config stuff to where it belongs 2019-07-19 19:30:41 +02:00
crc32.c [AArch64] Use crc32 instructions when available 2019-07-11 10:29:45 +02:00
crc32.h Remove local variables 2019-02-03 21:03:00 +01:00
credits_ext.h Update credits_ext.h 2019-08-14 19:24:16 +02:00
credits_sapi.h Avoid mention of php7 in credits script 2019-01-28 11:26:45 +01:00
credits.c Put phpinfo() related code into cold code segment 2019-05-28 11:04:13 +03:00
credits.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
crypt_blowfish.c Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
crypt_blowfish.h Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
crypt_freesec.c Use unsigned char in _crypt_extended_r 2019-06-19 15:09:00 +02:00
crypt_freesec.h Use unsigned char in _crypt_extended_r 2019-06-19 15:09:00 +02:00
crypt_sha256.c Remove HAVE_STRING_H 2018-09-18 05:32:08 +02:00
crypt_sha512.c Remove HAVE_STRING_H 2018-09-18 05:32:08 +02:00
crypt.c Fix build warnings 2019-07-25 11:50:44 +02:00
css.c Put phpinfo() related code into cold code segment 2019-05-28 11:04:13 +03:00
css.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
cyr_convert.c Remove local variables 2019-02-03 21:03:00 +01:00
cyr_convert.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
datetime.c Update MAY_BE_NULL for parts of ext/standard 2019-05-28 12:11:32 +02:00
datetime.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
dir.c Fix typo 2019-06-28 00:26:24 +02:00
dl.c Implement stricter extension compatibility check 2019-03-31 14:26:00 +02:00
dl.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
dns_win32.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
dns.c Merge branch 'PHP-7.4' 2019-06-20 17:24:43 +02:00
exec.c Merge branch 'PHP-7.4' 2019-07-22 17:26:01 +02:00
exec.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
file.c Merge branch 'PHP-7.4' 2019-07-22 17:26:01 +02:00
file.h Merge branch 'PHP-7.4' 2019-07-22 17:26:01 +02:00
filestat.c Finish func_info updates for ext/standard 2019-06-03 11:26:25 +02:00
filters.c Allow exceptions in __toString() 2019-06-05 14:25:07 +02:00
flock_compat.c Remove local variables 2019-02-03 21:03:00 +01:00
flock_compat.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
formatted_print.c Merge branch 'PHP-7.4' 2019-06-05 14:53:50 +02:00
fsock.c Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference 2019-04-24 18:28:29 +03:00
fsock.h Remove local variables 2019-02-03 21:03:00 +01:00
ftok.c Remove local variables 2019-02-03 21:03:00 +01:00
ftp_fopen_wrapper.c Report errors from stream read and write operations 2019-07-22 17:17:28 +02:00
head.c Merge branch 'PHP-7.3' into PHP-7.4 2019-06-19 12:43:17 +02:00
head.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
hrtime.c Add do...while(0) for RETURN_* and ZVAL_* APIs 2019-06-12 16:17:16 +02:00
hrtime.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
html_tables.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
html.c Convert E_STRICT into E_NOTICE for htmlentities() function 2019-07-18 11:13:18 +02:00
html.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
http_fopen_wrapper.c Avoid uninit warnin in http_fopen_wrapper 2019-04-12 15:12:45 +02:00
http.c Merge branch 'PHP-7.4' 2019-06-19 15:09:39 +02:00
image.c Update MAY_BE_NULL info for more ext/standard functions 2019-05-28 13:12:38 +02:00
incomplete_class.c Refactor zend_object_handlers API to pass zend_object* and zend_string* insted of zval(s). 2019-02-04 13:20:25 +03:00
info.c Constify some char* arguments or return values of ZEND_API 2019-06-12 16:49:32 +02:00
info.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
iptc.c Update MAY_BE_NULL info for more ext/standard functions 2019-05-28 13:12:38 +02:00
lcg.c Remove local variables 2019-02-03 21:03:00 +01:00
levenshtein.c Remove local variables 2019-02-03 21:03:00 +01:00
link.c Update more func info information for ext/standard 2019-05-29 15:30:06 +02:00
mail.c Finish func_info updates for ext/standard 2019-06-03 11:26:25 +02:00
Makefile.frag Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
Makefile.frag.w32 Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
math.c Merge branch 'PHP-7.4' 2019-07-08 12:53:50 +02:00
md5.c Report errors from stream read and write operations 2019-07-22 17:17:28 +02:00
md5.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
metaphone.c Finish func_info updates for ext/standard 2019-06-03 11:26:25 +02:00
microtime.c Update more func info information for ext/standard 2019-05-29 15:30:06 +02:00
microtime.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
mt_rand.c Remove local variables 2019-02-03 21:03:00 +01:00
net.c list net/interfaces, trying to get the error on windows when possible 2019-05-24 10:22:39 +02:00
pack.c Merge branch 'PHP-7.4' 2019-06-05 14:53:50 +02:00
pack.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
pageinfo.c Remove local variables 2019-02-03 21:03:00 +01:00
pageinfo.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
password.c Merge branch 'PHP-7.4' 2019-07-10 09:00:54 +02:00
php_array.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_assert.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_browscap.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_crypt_r.c Always use ZEND_SECURE_ZERO() when cleaning up data 2019-04-06 18:15:42 -07:00
php_crypt_r.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_crypt.h Remove local variables 2019-02-03 21:03:00 +01:00
php_dir.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_dns.h Fix unsigned char mismatch 2019-06-12 14:58:06 +02:00
php_ext_syslog.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_filestat.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_fopen_wrapper.c Report errors from stream read and write operations 2019-07-22 17:17:28 +02:00
php_fopen_wrappers.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_ftok.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_http.h Remove local variables 2019-02-03 21:03:00 +01:00
php_image.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_incomplete_class.h Refactor zend_object_handlers API to pass zend_object* and zend_string* insted of zval(s). 2019-02-04 13:20:25 +03:00
php_iptc.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_lcg.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_link.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_mail.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_math.h Expect string argument in hexdec, octdec, bindec 2019-06-03 11:26:25 +02:00
php_metaphone.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_mt_rand.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_net.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_password.h Fix #78269 password_hash uses weak options for argon2 2019-07-15 14:11:30 +02:00
php_rand.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_random.h Remove local variables 2019-02-03 21:03:00 +01:00
php_smart_string_public.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_smart_string.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_standard.h Remove local variables 2019-02-03 21:03:00 +01:00
php_string.h Remove HAVE_STRCOLL check 2019-06-28 00:05:55 +02:00
php_type.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_uuencode.h Remove local variables 2019-02-03 21:03:00 +01:00
php_var.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_versioning.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
proc_open.c Merge branch 'PHP-7.4' 2019-08-23 17:01:49 +02:00
proc_open.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
quot_print.c Remove local variables 2019-02-03 21:03:00 +01:00
quot_print.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
rand.c Remove local variables 2019-02-03 21:03:00 +01:00
random.c Merge branch 'PHP-7.4' 2019-07-01 11:14:54 +02:00
scanf.c Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference 2019-04-24 18:28:29 +03:00
scanf.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
sha1.c Report errors from stream read and write operations 2019-07-22 17:17:28 +02:00
sha1.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
soundex.c Remove local variables 2019-02-03 21:03:00 +01:00
streamsfuncs.c Merge branch 'PHP-7.4' 2019-06-05 14:53:50 +02:00
streamsfuncs.h Remove local variables 2019-02-03 21:03:00 +01:00
string.c Make string size calculation in chunk_split more precise 2019-08-25 15:34:37 +02:00
strnatcmp.c [ci skip] Remove text editor modelines 2019-03-23 21:09:38 +01:00
syslog.c Remove local variables 2019-02-03 21:03:00 +01:00
type.c settype() optimization 2019-04-24 22:23:49 +03:00
uniqid.c Remove local variables 2019-02-03 21:03:00 +01:00
uniqid.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
url_scanner_ex.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
url_scanner_ex.re Remove HAVE_LIMITS_H 2019-04-07 15:20:02 +02:00
url.c Merge branch 'PHP-7.4' 2019-07-08 15:06:54 +02:00
url.h Remove local variables 2019-02-03 21:03:00 +01:00
user_filters.c Merge branch 'PHP-7.4' 2019-08-23 17:01:49 +02:00
uuencode.c Merge branch 'PHP-7.4' 2019-06-19 15:09:39 +02:00
var_unserializer.re Fix #78438: Corruption when __unserializing deeply nested structures 2019-08-23 11:41:06 +02:00
var.c Allow exceptions in __toString() 2019-06-05 14:25:07 +02:00
versioning.c Finish func_info updates for ext/standard 2019-06-03 11:26:25 +02:00
winver.h