summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed memory leaks in parse_ini_file()Dmitry Stogov2016-11-181-8/+5
|
* Remove zpp fallback code (always use Fast ZPP)Andrea Faulds2016-09-111-12/+0
| | | | | | | | | | | | | | | | Squashed commit of the following: commit 3e27fbb3d22b42d181e15c345f1c59a007b6b58c Author: Andrea Faulds <ajf@ajf.me> Date: Sun Sep 11 19:14:37 2016 +0100 Keep dummy FAST_ZPP macro for compatibility commit 8a7cfd00deaa4a3c5026c97580c49c886c72a5b4 Author: Andrea Faulds <ajf@ajf.me> Date: Mon Sep 5 22:36:03 2016 +0100 Remove FAST_ZPP macro and plain zpp fallback code
* Merge branch 'PHP-5.6' into PHP-7.0Xinchen Hui2016-07-201-1/+2
|\ | | | | | | | | * PHP-5.6: Fixed arginfo
| * Fixed arginfoXinchen Hui2016-07-201-1/+2
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Stanislav Malyshev2016-07-191-9/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: fix #72519, possible OOB using imagegif fix #72512, invalid read or write for palette image when invalid transparent index is used Apparently some envs miss SIZE_MAX Fix tests Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c Fix for bug #72558, Integer overflow error within _gdContributionsAlloc() Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE Fix bug #72562 - destroy var_hash properly Fix bug #72533 (locale_accept_from_http out-of-bounds access) Fix fir bug #72520 Fix for bug #72513 Fix for bug #72513 CS fix and comments with bug ID Fix for HTTP_PROXY issue. 5.6.24RC1 add tests for bug #72512 Fixed bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access Fixed bug #72479 - same as #72434 Conflicts: Zend/zend_virtual_cwd.c ext/bz2/bz2.c ext/exif/exif.c ext/session/session.c ext/snmp/snmp.c ext/standard/basic_functions.c main/SAPI.c main/php_variables.c
| * Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2016-07-191-6/+9
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: fix #72519, possible OOB using imagegif fix #72512, invalid read or write for palette image when invalid transparent index is used Apparently some envs miss SIZE_MAX Fix tests Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c Fix for bug #72558, Integer overflow error within _gdContributionsAlloc() Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE Fix bug #72562 - destroy var_hash properly Fix bug #72533 (locale_accept_from_http out-of-bounds access) Fix fir bug #72520 Fix for bug #72513 CS fix and comments with bug ID Fix for HTTP_PROXY issue. add tests for bug #72512 Fixed bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access Fixed bug #72479 - same as #72434 Conflicts: ext/bz2/bz2.c main/SAPI.c main/php_variables.c
| | * Fix for HTTP_PROXY issue.Stanislav Malyshev2016-07-101-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | The following changes are made: - _SERVER/_ENV only has HTTP_PROXY if the local environment has it, and only one from the environment. - getenv('HTTP_PROXY') only returns one from the local environment - getenv has optional second parameter, telling it to only consider local environment
| * | Merge branch 'PHP-5.5.32' into PHP-5.6.18Stanislav Malyshev2016-02-011-0/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5.32: Fixed bug #71488: Stack overflow when decompressing tar archives update NEWS add missing headers for SIZE_MAX backport the escapeshell* functions hardening branch add tests Fix bug #71459 - Integer overflow in iptcembed() Fixed bug #71323 - Output of stream_get_meta_data can be falsified by its input Fix bug #71391: NULL Pointer Dereference in phar_tar_setupmetadata() Fix bug #71335: Type Confusion in WDDX Packet Deserialization Fix bug #71354 - remove UMR when size is 0
| | * backport the escapeshell* functions hardening branchAnatol Belski2016-01-281-0/+1
| | |
* | | fix possible optimization bugAnatol Belski2016-07-051-1/+1
| | |
* | | Fixed bug #72300 (ignore_user_abort(false) has no effect)Xinchen Hui2016-05-311-1/+1
| | |
* | | Fixed bug #71891 (header_register_callback() and register_shutdown_function())Xinchen Hui2016-03-251-1/+0
| | | | | | | | | | | | | | | Actually, this fixed the memleak not the behavior(it is expected behavior that "shutdown" is not outputed)
* | | Merge branch 'PHP-7.0.3' into PHP-7.0Stanislav Malyshev2016-02-011-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0.3: (35 commits) fix tests update NEWS fix tests fix NEWS Update NEWS update NEWS Fixed bug #71475: openssl_seal() uninitialized memory usage Fixed bug #71488: Stack overflow when decompressing tar archives fix tests fix wrong gc sequence revert the API string as well update NEWS Revert "Fix #70720" sync NEWS reset ext/session to the state of 7.0.2 update NEWS update NEWS add missing headers for SIZE_MAX backport the escapeshell* functions hardening branch add tests ... Conflicts: configure.in ext/session/tests/bug69111.phpt main/php_version.h
| * | | Follow up on bug #71270Anatol Belski2016-01-121-0/+1
| | | | | | | | | | | | | | | | Using the max allowed command line length for an underlying OS.
* | | | Fixed bug #71442 (forward_static_call crash)Xinchen Hui2016-01-251-2/+2
|/ / /
* | | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * | Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| | |
* | | Merge branch 'PHP-5.6' into PHP-7.0Xinchen Hui2015-11-241-1/+2
|\ \ \ | |/ /
| * | Fixed bug #70960 (ReflectionFunction for array_unique returns wrong number ↵Xinchen Hui2015-11-241-1/+2
| | | | | | | | | | | | of parameters)
* | | Revert "Fixed bug #70249 (Segmentation fault while running PHPUnit tests on ↵Xinchen Hui2015-11-111-10/+3
| | | | | | | | | | | | | | | | | | phpBB 3.2-dev)" This reverts commit d6c527830e57c85356916e2efc2e6f120d493051.
* | | Fixed bug #70249 (Segmentation fault while running PHPUnit tests on phpBB ↵Xinchen Hui2015-11-111-3/+10
| | | | | | | | | | | | | | | | | | | | | 3.2-dev) Maybe we should introduce a new zend_hash_safe_apply which always reload the ht->arData to make sure won't segfault the ht is grew?
* | | Correct intdiv() argument names and descriptionAndrea Faulds2015-10-081-1/+1
| | |
* | | Add support for parameters to tick functions, on C level. This is onlyAndrey Hristov2015-09-281-3/+2
| | | | | | | | | | | | | | | for extensions that want to use register tick functions. Userland tick functions are unaffected.
* | | Fixed incorrect usage of HASH_OF() macro. Replaced HASH_OF() with more ↵Dmitry Stogov2015-09-241-7/+7
| | | | | | | | | | | | appropriate Z_ARRVAL_P() or Z_OBJPROP_P().
* | | Fixed bug #70342 (changing configuration with ignore_user_abort(true) isn't ↵Xinchen Hui2015-08-241-1/+1
| | | | | | | | | | | | working)
* | | Merge branch 'PHP-5.6'Tjerk Meesters2015-08-151-4/+4
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-5.6: Updated NEWS for #70157 Fixed #70157 parse_ini_string() segmentation fault with INI_SCANNER_TYPED
| * | Fixed #70157 parse_ini_string() segmentation fault with INI_SCANNER_TYPEDTjerk Meesters2015-08-151-4/+5
| | |
* | | Fix #70112 RFE Allow dirname to go up various timesRemi Collet2015-07-271-1/+2
| | |
* | | unserialize() takes a 2nd optional arg and it can't be a boolRasmus Lerdorf2015-07-151-1/+2
| | |
* | | php_uname has an optional argRasmus Lerdorf2015-06-301-1/+2
| | |
* | | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-17/+17
| | | | | | | | | | | | semantick changes).
* | | 2nd arg of sprintf is optionalRasmus Lerdorf2015-06-281-1/+1
| | |
* | | 3rd arg to stream_set_timeout is optionalRasmus Lerdorf2015-06-251-5/+5
| | | | | | | | | | | | ignore_user_abort() should take a bool not a string
* | | Wrong arginfo on assertRasmus Lerdorf2015-06-231-1/+2
| | | | | | | | | | | | (not adding types, just fixing a missing arg)
* | | Merge branch 'PHP-5.6'Anatol Belski2015-05-211-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: fix handling VAR vs VAR= in putenv
| * | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2015-05-211-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-5.5: fix handling VAR vs VAR= in putenv
| | * fix handling VAR vs VAR= in putenvAnatol Belski2015-05-211-1/+1
| | | | | | | | | | | | using _putenv_s eliminates behavior diff in TS/NTS
* | | Partial revert of 6a819bba40661a9a8d7080994cb2f24b73c5d46c.Dmitry Stogov2015-05-131-2/+2
| | |
* | | Merge branch 'PHP-5.6'Stanislav Malyshev2015-05-121-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: fix format update NEWS Add test for bug #69522 Update tests Fix bug #69522 - do not allow int overflow Forgot test file Fix bug #69403 and other int overflows Fixed bug #69418 - more s->p fixes for filenames Fixed bug #69364 - use smart_str to assemble strings Fix bug #69453 - don't try to cut empty string Fix bug #69545 - avoid overflow when reading list Conflicts: Zend/zend_alloc.c Zend/zend_operators.c ext/ftp/ftp.c ext/pcntl/pcntl.c ext/standard/basic_functions.c ext/standard/dir.c ext/standard/file.c ext/standard/pack.c ext/standard/string.c main/rfc1867.c
| * | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-05-121-11/+11
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: fix format update NEWS Add test for bug #69522 Update tests Fix bug #69522 - do not allow int overflow Forgot test file Fix bug #69403 and other int overflows Fixed bug #69418 - more s->p fixes for filenames Fixed bug #69364 - use smart_str to assemble strings Fix bug #69453 - don't try to cut empty string Fix bug #69545 - avoid overflow when reading list Conflicts: ext/standard/pack.c
| | * Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-05-121-11/+11
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4: fix format update NEWS Add test for bug #69522 Update tests Fix bug #69522 - do not allow int overflow Forgot test file Fix bug #69403 and other int overflows Fixed bug #69418 - more s->p fixes for filenames Fixed bug #69364 - use smart_str to assemble strings Fix bug #69453 - don't try to cut empty string Fix bug #69545 - avoid overflow when reading list Conflicts: ext/pcntl/pcntl.c ext/standard/basic_functions.c ext/standard/pack.c ext/standard/tests/dir/opendir_variation1-win32.phpt
| | | * Fixed bug #69418 - more s->p fixes for filenamesStanislav Malyshev2015-05-101-12/+12
| | | |
| * | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-03-171-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | * PHP-5.5: fix tests Fix bug #69207 - move_uploaded_file allows nulls in path
| | * | Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-03-171-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-5.4: Fix bug #69207 - move_uploaded_file allows nulls in path
| | | * Fix bug #69207 - move_uploaded_file allows nulls in pathStanislav Malyshev2015-03-171-1/+1
| | | |
* | | | Fix for #66048Julien Pauli2015-05-121-2/+2
| | | |
* | | | Improve CSPRNG implementationLeigh2015-05-091-1/+6
| | | |
* | | | Initial implementation for CSPRNG APISammyK2015-05-091-0/+12
| | | |
* | | | Don't propogate "fake" EX(called_scope) and EX(This) into each internal ↵Dmitry Stogov2015-04-231-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | function. They need quite seldom and it's cheaper to get them from corresponfing upper stack frame.
* | | | apply a patchMasaki Kagaya2015-04-141-3/+4
| | | |