Skip to content
Branch: master
Find file History
nikic 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.
Latest commit d955ee9 Aug 25, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
bcmath Add BCMath PHP stubs Aug 10, 2019
bz2 Don't explicitly set return value on ZPP failure Aug 16, 2019
calendar Add Calendar ext PHP stubs Aug 20, 2019
com_dotnet Don't explicitly set return value on ZPP failure Aug 12, 2019
ctype Add some stubs at ctype ext Aug 14, 2019
curl Add Curl ext PHP stubs Aug 20, 2019
date Update the date class arginfo the new format Aug 12, 2019
dba Remove some misleading RETURN_FALSE Aug 12, 2019
dom Add do...while(0) for RETURN_* and ZVAL_* APIs Jun 12, 2019
enchant Don't explicitly set return value on ZPP failure Aug 16, 2019
exif Merge branch 'PHP-7.4' Jul 29, 2019
ffi Merge branch 'PHP-7.4' Aug 4, 2019
fileinfo Remove some misleading RETURN_FALSE Aug 12, 2019
filter Add stubs for filter extension Aug 20, 2019
ftp Add stubs for ext/ftp Aug 25, 2019
gd Don't explicitly set return value on ZPP/ZFR failure Aug 12, 2019
gettext Support regenerating all stubs Aug 12, 2019
gmp Merge branch 'PHP-7.4' Jul 18, 2019
hash Merge branch 'PHP-7.4' Jul 22, 2019
iconv Don't explicitly set return value on ZPP failure in ext/iconv Aug 23, 2019
imap Merge branch 'PHP-7.4' Jul 18, 2019
intl Make uninitialized DateTime an Error Aug 9, 2019
json Support regenerating all stubs Aug 12, 2019
ldap Remove some unnecessary RETURN_FALSE Aug 20, 2019
libxml Merge branch 'PHP-7.4' Jul 12, 2019
mbstring Promote warnings to errors in str_repeat() Aug 23, 2019
mysqli Merge branch 'PHP-7.4' Aug 20, 2019
mysqlnd Merge branch 'PHP-7.3' into PHP-7.4 Aug 20, 2019
oci8 Cheaper checks for exceptions thrown from __toString() Jun 5, 2019
odbc Merge branch 'PHP-7.4' Jul 9, 2019
opcache Promote warnings to errors in str_repeat() Aug 23, 2019
openssl Add partial openssl stubs Aug 10, 2019
pcntl Merge branch 'PHP-7.4' Jul 17, 2019
pcre Merge branch 'PHP-7.4' Aug 20, 2019
pdo Merge branch 'PHP-7.4' Jul 23, 2019
pdo_dblib Remove some unused HAVE_* symbols Jul 21, 2019
pdo_firebird PDO: support username & password specified in DSN Jul 2, 2019
pdo_mysql Merge branch 'PHP-7.4' Aug 20, 2019
pdo_oci Remove HAVE_OCILOBISTEMPORARY and HAVE_OCICOLLASSIGN Jul 22, 2019
pdo_odbc Merge branch 'PHP-7.4' Jul 14, 2019
pdo_pgsql Fix detection of pg_config.h Aug 7, 2019
pdo_sqlite Merge branch 'PHP-7.4' Jul 30, 2019
pgsql Merge branch 'PHP-7.4' Jul 22, 2019
phar Merge branch 'PHP-7.4' Jul 29, 2019
posix Added arginfo stub for posix extension Aug 14, 2019
pspell Merge branch 'PHP-7.4' Jun 28, 2019
readline Fix bug77812-*.phpt Aug 23, 2019
reflection Merge branch 'PHP-7.4' Aug 13, 2019
session Merge branch 'PHP-7.4' Jun 27, 2019
shmop Fixed inconsistent naming for stub, return type for shmop_size Aug 12, 2019
simplexml Normalize SimpleXML::asXML() argument handling Aug 15, 2019
skeleton ext/skeleton: Update use of PHP_CHECK_LIBRARY Jun 3, 2019
snmp Merge branch 'PHP-7.4' Jul 21, 2019
soap Merge branch 'PHP-7.4' Jul 23, 2019
sockets Merge branch 'PHP-7.4' Jul 18, 2019
sodium Remove some unused HAVE_* symbols Jul 21, 2019
spl Merge branch 'PHP-7.4' Aug 23, 2019
sqlite3 Unify ZPP handling in ext/sqlite3 Aug 15, 2019
standard Make string size calculation in chunk_split more precise Aug 25, 2019
sysvmsg Added arginfo stubs for sysvmsg Aug 12, 2019
sysvsem Added arginfo stubs for sysvsem Aug 12, 2019
sysvshm Added arginfo stubs for svsvshm Aug 12, 2019
tidy Merge branch 'PHP-7.4' Jun 19, 2019
tokenizer Arginfo stubs for tokenizer Aug 11, 2019
xml Merge branch 'PHP-7.4' Jun 5, 2019
xmlreader Merge branch 'PHP-7.4' May 12, 2019
xmlrpc Merge branch 'PHP-7.4' Jun 12, 2019
xmlwriter Merge branch 'PHP-7.4' May 12, 2019
xsl Merge branch 'PHP-7.4' Jun 28, 2019
zend_test Merge branch 'PHP-7.4' Apr 18, 2019
zip Merge branch 'PHP-7.4' Aug 13, 2019
zlib Add stub for ext zlib Aug 22, 2019
ext_skel.php [ci skip] Migrate Coding standards docs to Markdown May 18, 2019
You can’t perform that action at this time.