Ferenc Kovacs
e42bdcb7aa
add missing NEWS entries
2016-10-14 13:03:12 +02:00
Remi Collet
49fc016eb9
use zend_error instead of zend_error_noreturn
2016-10-14 13:01:22 +02:00
Ferenc Kovacs
7de5c80d14
5.6.27
2016-10-13 02:15:09 +02:00
Stanislav Malyshev
06721070a4
Apparently negative wordwrap is a thing and should work as length = 0.
...
I'll leave it as is for now.
2016-10-13 01:53:56 +02:00
Stanislav Malyshev
28ed09929c
Really fix bug #73017
2016-10-13 01:53:28 +02:00
Stanislav Malyshev
03df764d1c
Merge branch 'PHP-5.6.27' into PHP-5.6
...
* PHP-5.6.27:
Fix tests
fix tsrm
Fix bug #73284 - heap overflow in php_ereg_replace function
Fix bug #73276 - crash in openssl_random_pseudo_bytes function
Fix bug #73293 - NULL pointer dereference in SimpleXMLElement::asXML()
fix bug #73275 - crash in openssl_encrypt function
Fix for #73240 - Write out of bounds at number_format
Bug #73218 : add mitigation for ICU int overflow
Add more locale length checks, due to ICU bugs.
Fix bug #73208 - another missing length check
Fix bug #73190 : memcpy negative parameter _bc_new_num_ex
Fix bug #73189 - Memcpy negative size parameter php_resolve_path
Fixed bug #73174 - heap overflow in php_pcre_replace_impl
Fix bug #73150 : missing NULL check in dom_document_save_html
Fix bug #73147 : Use After Free in PHP7 unserialize()
Fix bug #73082
Fix bug #73073 - CachingIterator null dereference when convert to string
2016-10-13 01:35:22 +02:00
Ferenc Kovacs
211f30c2c8
Revert "Updated to version 2016.7 (2016g)"
...
This reverts commit 6a544f2d1e .
2016-09-29 01:34:45 +02:00
Ferenc Kovacs
2119b0d41d
5.6.27RC1
2016-09-29 01:06:51 +02:00
Derick Rethans
6a544f2d1e
Updated to version 2016.7 (2016g)
2016-09-28 23:30:26 +01:00
Nikita Popov
1f5412982c
Handle resource keys in constexpr arrays
2016-09-28 23:11:02 +02:00
Nikita Popov
40b8105cca
Fix the constant array case as well
2016-09-28 23:05:21 +02:00
Nikita Popov
99bf19c177
Check next_index_insert failure in ADD_ARRAY_ELEMENT
2016-09-28 22:35:27 +02:00
Christoph M. Becker
4f0960a800
Fix #53745 : cgi.discard_path option is missing from php.ini
...
Also cgi.check_shebang_line has been missing.
2016-09-26 18:41:09 +02:00
Anatol Belski
66baefec44
update libs_versions.txt
2016-09-26 15:39:01 +02:00
Christoph M. Becker
c696bc8cfa
Fix test_image_equals_file() wrt. palette images
...
The recently introduced test_image_equals_file() doesn't properly work for
palette images, because in this case only the palette indexes are compared,
what can lead to false positives and negatives as shown in the added test.
To fix that we convert palette images to truecolor, what is supposed to be
faster than calling imagecolorsforindex() for each pixel.
We furthermore rely on PHP's refcounting to free unused images; after all,
this is not C.
2016-09-25 10:34:03 +02:00
Christoph M. Becker
c596b02a5b
Merge branch 'pull-request/2120' into PHP-5.6
2016-09-24 17:52:15 +02:00
Christoph M. Becker
8f5eda4bf6
Fix #73161 : imagecreatefromgd2() may leak memory
2016-09-24 12:36:54 +02:00
Christoph M. Becker
709731797c
Fix #73159 : imagegd2(): unrecognized formats may result in corrupted files
...
We must not apply the format correction twice for truecolor images.
2016-09-24 11:28:20 +02:00
Christoph M. Becker
c7936ead8f
Fix #73155 : imagegd2() writes wrong chunk sizes on boundaries
2016-09-24 10:33:49 +02:00
Christoph M. Becker
1da79a6c6e
Fix #73157 (again): imagegd2() ignores 3rd param if 4 are given
...
Obviously, there was a bad merge.
2016-09-24 00:35:24 +02:00
Anatol Belski
075aa911ff
Revert "Fixed bug #73037 SoapServer reports Bad Request when gzipped"
...
This reverts commit f9a699f6c3 .
2016-09-23 18:45:03 +02:00
Anatol Belski
28887fe41b
skip this test for now as it seems to have issues running dev server
2016-09-23 18:07:08 +02:00
Anatol Belski
f9a699f6c3
Fixed bug #73037 SoapServer reports Bad Request when gzipped
...
(cherry picked from commit 410c68788a )
2016-09-23 18:06:12 +02:00
Christoph M. Becker
9a2a45c1df
Update NEWS
2016-09-23 16:23:58 +02:00
Julien Pauli
a22175b06f
Formatting. Fix possible memory corruption in FPM SHM management
2016-09-23 13:52:58 +02:00
tom916
807004a446
fix every work call mmap
...
fix fpm_scoreboard_free
2016-09-23 13:52:58 +02:00
Christoph M. Becker
726c5999eb
Rework FreeType related tests
...
Firstly, there is no fundamental difference between running the tests on
freetype before and after 2.4.10, so we re-join the respective test cases.
Secondly, there are some minor differences in the results depending on
architecture, freetype versions and config options, so we cater to that
by allowing small deviations from the expectations.
2016-09-23 12:00:41 +02:00
Anatol Belski
49c3fa43ad
update libs versions
2016-09-22 17:01:02 +02:00
Márcio Almada
4397306b32
fix bug related to #865
...
In case USE_KEY flag is active, RegexIterator->accept() should keep it's
old behavior which is to accept keys mapping arrays.
This broke after PHP 5.5 but was not noticed due to lack of tests for USE_KEY.
2016-09-22 12:46:19 +02:00
Dmitry Stogov
4dd70b6e2f
Fixed inconsistent meaning of zend_startup_module_ex() return value used in zend_hash_apply()
2016-09-20 12:29:57 +03:00
Christoph M. Becker
fc2cadca2d
Merge branch 'pull-request/1845' into PHP-5.6
2016-09-20 01:05:57 +02:00
George Wang
56fa36b0a8
Fix wrong year in previous commit.
2016-09-19 10:46:46 -04:00
Julien Pauli
1ed4b13fb6
Do not wrap user exception in case of custom JSON serialization
2016-09-19 16:06:12 +02:00
Christoph M. Becker
6682673070
Fix #73100 : session_destroy null dereference in ps_files_path_create
2016-09-16 23:41:10 +02:00
Xinchen Hui
01c7c6b152
Updte NEWS
2016-09-16 20:55:37 +08:00
Xinchen Hui
ac07008bb7
Fixed bug #72505 (readfile() mangles files larger than 2G)
2016-09-16 20:53:51 +08:00
Christoph M. Becker
46df064261
Fix #73003 : Integer Overflow in gdImageWebpCtx of gd_webp.c
...
We add the missing integer overflow check to avoid potential buffer overflows.
2016-09-16 11:37:18 +02:00
Remi Collet
3c117d4136
fix test (32bits)
2016-09-15 15:32:39 +02:00
Remi Collet
55237fe153
fix ZTS build
2016-09-15 13:27:20 +02:00
Ferenc Kovacs
1d7484077a
update NEWS
2016-09-15 11:35:46 +02:00
Christoph M. Becker
7bfb7b62b1
Fix and reactivate regression test for bug #50194
...
Apparently, different FreeType versions render the string differently, so
we have to cater to these slight differences. Unfortunately, the testing
framework doesn't yet offer a clean API for this, so we work around the
limitations by parsing and checking the output of test_image_equals_file().
2016-09-15 00:46:00 +02:00
Christoph M. Becker
36df4f8419
Skip ext/gd/tests/bug50194.phpt for now
...
There are apparently issues with the font rendering with different freetype
version; I'll have a look at this issue ASAP.
2016-09-14 20:00:30 +02:00
Christoph M. Becker
09eb6ed35e
Fix #50194 : imagettftext broken on transparent background w/o alphablending
...
We must not draw the background pixels of the character glyphs, what has
already been fixed in GD 2.0.26.
2016-09-14 15:47:32 +02:00
Jakub Zelenka
05baa92727
Fix bug #73072 (Invalid path SNI_server_certs causes segfault)
2016-09-13 18:15:34 +01:00
Christoph M. Becker
c43ecfd798
Merge branch 'pull-request/2126' into PHP-5.6
2016-09-13 15:57:39 +02:00
Anatol Belski
248f8c3a91
add test for bug #73068
2016-09-13 15:28:28 +02:00
Anatol Belski
fc31d6fed4
fix test portability
2016-09-13 12:00:29 +02:00
Anatol Belski
8fd0e0285f
missed semicolon
2016-09-13 10:50:44 +02:00
Anatol Belski
363c2524dd
fix C89 conformity
2016-09-13 10:43:51 +02:00
Stanislav Malyshev
28f80baf3c
Fix bug #72293 - Heap overflow in mysqlnd related to BIT fields
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
33d0ef0fef
Fix test
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
c4cca4c20e
Fix bug #73065 : Out-Of-Bounds Read in php_wddx_push_element of wddx.c
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
f5a9592ad8
Fix bug #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile)
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
6a7cc8ff85
Fix bug #73052 - Memory Corruption in During Deserialized-object Destruction
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
7381d4c00e
Add check in fgetcsv in case sizeof(unit) != sizeof(size_t)
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
ecb7f58a06
Fix bug #73029 - Missing type check when unserializing SplArray
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
b88393f08a
Fix bug #72860 : wddx_deserialize use-after-free
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
65c8caafa8
Also fix overflow in wordwrap
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
6d55ba2656
Fix bug #73007 : add locale length check
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
ba5ac0d360
Add more checks for int overflow
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
223266e4e4
Fix bug #72928 - Out of bound when verify signature of zip phar in phar_parse_zipfile
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
19866fb76c
Fix various int size overflows.
...
Add function for detection of string zvals with length that does not fit
INT_MAX.
2016-09-12 21:04:23 -07:00
Adam Baratz
39f45e208c
Add myself as pdo_dblib maintainer
2016-09-12 12:43:39 -04:00
Christoph M. Becker
0cbf634657
Skip regression test for issue that has not yet been released in libgd
...
<https://github.com/libgd/libgd/issues/177 > has been assessed as enhancement,
so most likely it will be released with GD 2.3.
2016-09-12 13:21:34 +02:00
Christoph M. Becker
fcdc30b347
Skip test for external GD because of not yet published bugfix
2016-09-12 12:34:11 +02:00
Christoph M. Becker
6d0e773292
Skip tests for unpatched external libgd regarding libvpx
...
Some issues have never been fixed in the external libgd's libvpx binding,
so we skip the respective tests.
2016-09-11 23:49:09 +02:00
Christoph M. Becker
6ef987e012
Split test for bundled vs. external libgd
...
The behavior of imagecropauto($im, IMG_CROP_DEFAULT) is rather different
for the bundled and an external libgd, see
<https://github.com/libgd/libgd/issues/298 >.
Therefore we split the test for now.
2016-09-11 19:30:55 +02:00
Christoph M. Becker
38455293f7
Make test case more resilient
...
This test case fails with external libgd, because libgd < 2.2.4 converts
palette images to truecolor (<https://github.com/libgd/libgd/issues/297 >).
However, even if there happens no truecolor conversion, it is not guaranteed
that the palette indexes of the original and the cropped image are identical
(this is, for instance, not the case with current libgd master where the bug
has been fixed). Therefore we check for the expected RGBA value instead of
the palette index.
2016-09-11 18:29:27 +02:00
Christoph M. Becker
dc09f30933
A picture is worth a thousand message digests
...
The bundled GD test suites makes heavy use of md5() to verify the result
of drawing operations. This leads to fragile tests (even a slight change
in a PNG header would cause failure, and of course there is the
possibility of collisions), and even worse, eventual test failures are
rather unrevealing.
Therefore we replace all md5() verification with a simplistic
test_image_equals_file(), which is basically a simplified port of libgd's
gdTestImageCompareToFile(), adapted to the needs of PHPTs.
In the long run better tests helpers should be introduced (see also
<http://news.php.net/php.internals/94081 >), but for now this solution
is preferable over the former.
(cherry picked from commit 24f9e96792518ec2a75f26b1eb2471dd7694f2b7)
2016-09-11 12:56:53 +02:00
Christoph M. Becker
326a4e38fb
Add regression test for bug #73053
...
The test succeeds with libxml < 2.9.4, and is supposed to succeed with
libxml > 2.9.4. Unfortunately, we can't conditionally mark a test case
as XFAIL, so we're simply skipping the test for libxml 2.9.4 instead.
2016-09-11 00:06:45 +02:00
Anatol Belski
6c9d37d059
update NEWS
2016-09-10 11:02:17 +02:00
Anatol Belski
669fda00b7
Bug #73058 crypt broken when salt is 'too' long
2016-09-10 02:39:28 +02:00
Christoph M. Becker
c42a7f2f3f
Remove ignored --FAIL-- section from test case
...
This is just confusing.
2016-09-09 16:27:50 +02:00
Christoph M. Becker
23e721fc93
Fix #73054 : default option ignored when object passed to int filter
...
If an object that can't be converted to string is validated, we must not
bail out early, but rather check for a requested default value.
2016-09-09 14:30:24 +02:00
Levi Morrison
cb91a51b00
Partially fix bug #67167 - Wrong return value...
...
...from FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE
The remainer of the fix would require the filter functions to only
convert to string when it makes sense for that particular filter.
(cherry picked from commit 432dc527ad )
2016-09-09 12:45:46 +02:00
Yasuo Ohgaki
38553e853b
Fixed Bug #68015 Session does not report invalid uid for files save handler
2016-09-09 11:31:54 +09:00
Anatol Belski
b1f33db39f
backport 59444347 and 3d7343f6
2016-09-08 17:46:53 +02:00
Yasuo Ohgaki
8c700076d7
Fix bug26639.phpt
2016-09-08 14:07:57 +09:00
Yasuo Ohgaki
fb1c46f013
Update NEWS
2016-09-08 13:35:30 +09:00
Yasuo Ohgaki
8bbd0952e5
Fix Bug #72992 mbstring.internal_encoding doesn't inherit default_charset
2016-09-08 13:17:10 +09:00
Christoph M. Becker
5880428dac
Fix potential memory issue with USE_ZEND_ALLOC=0
...
The PHP core and extensions are written with the assumption that memory
allocation either succeeds, or the allocator bails out (i.e. the allocator
is infallible). Therefore the result of emalloc() and friends are not checked
for NULL values.
However, with USE_ZEND_ALLOC=0, malloc() and friends are used as allocators,
but these are fallible, i.e. they return NULL instead of bailing out if they
fail. This easily leads to invalid memory accesses in the following, such as
in <https://bugs.php.net/73032 >. Some of these cases may constitute
exploitable vulnerabilities.
Therefore we make the infallible __zend_alloc() and friends the default for
USE_ZEND_ALLOC=0.
2016-09-07 22:50:53 +02:00
Christoph M. Becker
dad793630d
Fix #73025 : Heap Buffer Overflow in virtual_popen of zend_virtual_cwd.c
...
`command_length` is retrieved via strlen() and later passed to emalloc()
and memcpy(), so the appropriate type is `size_t`.
We don't add a regression test, because that would need to allocate a string
of at least 2 GiB.
2016-09-06 12:05:58 +02:00
Yasuo Ohgaki
3a35d43ad9
Update NEWS
2016-09-06 18:29:20 +09:00
Yasuo Ohgaki
a25f6f89cd
Fixed Bug #66964 mb_convert_variables() cannot detect recursion
2016-09-06 16:05:34 +09:00
Christoph M. Becker
8aad3131a1
Fix #70752 : Depacking with wrong password leaves 0 length files
...
We should not open the output stream before we have tried to open the
archive entry, as failing the latter could leave an empty file behind.
2016-09-06 01:03:46 +02:00
Julien Pauli
dd6da58fac
Updated NEWS
2016-09-05 17:03:29 +02:00
Keyur
0045d16863
Fixes #72590 : Opcache restart with kill_all_lockers does not work
...
ACCEL_LOG_ERROR is special and causes a zend_bailout() and the code
never gets to call kill() in the next line after the logging. Change
the log level to WARNING.
2016-09-05 16:59:28 +02:00
Nikita Popov
b92cb6b238
Limit editorconfig to C code
...
PHPT files do not follow this.
[ci skip]
2016-09-05 14:22:13 +02:00
Julien Pauli
1abbcc8cc5
Updated NEWS
2016-09-05 10:17:56 +02:00
Julien Pauli
9834978a8b
Fix #72972 , Bad filter for the flags FILTER_FLAG_NO_RES_RANGE and FILTER_FLAG_NO_PRIV_RANGE
2016-09-05 10:08:42 +02:00
Richard Fussenegger
5c38fbe543
Added editorconfig file
2016-09-05 00:40:58 -07:00
Christoph M. Becker
39423e425d
Implement #47456 : Missing PCRE option 'J'
...
While it is possible to force the same behavior by setting the internal
option (?J), having a dedicated modifier appears to be useful. After all,
J is even listed on the "Pattern Modifiers" man page[1], but the description
referrs to (?J).
[1] <http://php.net/manual/en/reference.pcre.pattern.modifiers.php >
2016-09-05 00:30:48 -07:00
Stanislav Malyshev
cee363d609
Merge branch 'pull-request/2061' into PHP-5.6
...
* pull-request/2061:
Recognize TDS versions 7.3 and 7.4
2016-09-05 00:29:11 -07:00
Adam Baratz
84d495055d
Use integer placeholders, since values can vary with the TDS version
2016-09-05 00:17:59 -07:00
Stanislav Malyshev
b578580e88
Same issue as #72926 in another place.
2016-09-04 20:49:34 -07:00
Stanislav Malyshev
d1fbc98ff6
Sync fix for bug #72910 with current upstream
2016-09-04 19:13:48 -07:00
Christoph M. Becker
b7259b71b4
Fix #72994 : mbc_to_code() out of bounds read
...
We're backporting commit 999a3553 to the still supported PHP 5.6.
2016-09-04 16:37:06 +02:00
Christoph M. Becker
d582241368
Fix #67325 : imagetruecolortopalette: white is duplicated in palette
...
gdImageTrueColorToPalette() is sometimes wasteful by putting multiple white
color entries into the palette. This is caused by an obvious typo, where
to avoid a division by zero when `total` is zero, `count` is checked instead
of `total`.
We fix this issue to improve the quality of the color quantization.
Cf. <https://github.com/libgd/libgd/commit/24b4550f >
2016-09-03 19:50:42 +02:00
Anatol Belski
9513187dee
fix leak and error check order
2016-09-03 16:59:17 +02:00
Christoph M. Becker
bca913d70a
Fix proto comment
...
While we're at it, we also change a related comment to use American English
consistently.
2016-09-03 13:41:29 +02:00
Christoph M. Becker
c83bdb8e6a
Make test case more resilient
...
When ran from a root directory the test case failed, because the open_basedir
restriction for "../[…]" won't kick in. Therefore we change the current
working directory to the test case's directory, as discussed on internals,
see <http://news.php.net/php.internals/95585 >.
2016-09-03 00:24:30 +02:00
Anatol Belski
5efd2a33df
fix double free
2016-09-03 00:01:04 +02:00
Stanislav Malyshev
e576714f6b
Fix bug #72910
...
Merge upstream patch from https://github.com/kkos/oniguruma/commit/65bdf2a0d160d06556415e5f396a75f6b11bad5c
2016-09-01 23:27:06 -07:00
Ferenc Kovacs
fbb81dd755
5.6.27 will be next
2016-09-01 20:27:19 +02:00
Christoph M. Becker
b2d267d9ee
Fix #71882 amendment 2: Negative ftruncate() on php://memory exhausts memory
2016-08-31 16:33:14 +02:00
Christoph M. Becker
314a9f8553
Fix #71882 amendment: Negative ftruncate() on php://memory exhausts memory
...
To avoid BC breaks, we do not raise a warning for now.
2016-08-31 14:51:37 +02:00
Yasuo Ohgaki
747b61808b
Update NEWS
2016-08-31 21:06:19 +09:00
Christoph M. Becker
2f10db36af
Fix #66797 : mb_substr only takes 32-bit signed integer
...
`from` and `len` are `long`, but get passed to mbfl_substr() which expects
`int`s. Therefore we clamp the values to avoid the undefined conversion
behavior.
2016-08-30 14:52:47 +02:00
Ville Hukkamäki
af7828a20f
Test case for bug #72771
2016-08-30 13:44:34 +02:00
Christoph M. Becker
207dab585a
Fix #71882 : Negative ftruncate() on php://memory exhausts memory
...
We must not pass negative sizes to a size_t parameter.
2016-08-30 02:05:45 +02:00
Anatol Belski
c7b4cd1a51
fix HANDLE leak
2016-08-29 21:45:39 +02:00
Anatol Belski
ae81e8fc32
update NEWS
2016-08-29 21:20:36 +02:00
Anatol Belski
d787b0ea13
ensure null termination
2016-08-29 21:03:03 +02:00
Anatol Belski
295303b590
Fixed bug #72703 Out of bounds global memory read in BF_crypt triggered by password_verify
2016-08-29 20:25:34 +02:00
Anatol Belski
1a840b9af0
fix double free
2016-08-29 19:27:47 +02:00
Anatol Belski
e2609a38d9
fix leak
2016-08-29 18:01:21 +02:00
George Wang
c73bcbefbd
Added .user.ini support.
...
Added LSPHPRC support.
update LiteSpeed SAPI version to 6.10 .
2016-08-28 21:49:30 -04:00
Christoph M. Becker
2139918ea6
Fix #65550 : get_browser() incorrectly parsers entries with "+" sign
...
+ signs in the browscap patterns are meant to be literal characters, so we
have to escape them for the regex matching.
2016-08-27 01:12:01 +02:00
Christoph M. Becker
84512a1177
Fix #70825 : Cannot fetch multiple values with group in ini file
...
If we have the position already from the last fetch, we also have to preset
the current group, because it won't be read again.
2016-08-25 18:18:10 +02:00
Christoph M. Becker
bd8112afe0
Fix #71514 : Bad dba_replace condition because of wrong API usage
...
We're backporting commit 9e309a2d to PHP-5.6, because it is a bugfix.
2016-08-25 16:20:30 +02:00
Anatol Belski
a1ff39ffe5
backport relevant part from bug #72858 patch in 7.0
2016-08-25 12:46:28 +02:00
Christoph M. Becker
6a232c3604
Fix #68716 : possible resource leaks in _php_image_convert()
...
We properly clean up after ourselves wrt. to closing opened file pointers
and created images.
2016-08-21 19:39:58 +02:00
Christoph M. Becker
d65adac2be
Fix #72913 : imagecopy() loses single-color transparency on palette images
...
The proper code to handle true-color to palette copies is already contained
in gdImageCopy(), so we can simply remove the buggy duplicated code.
2016-08-21 17:39:23 +02:00
Christoph M. Becker
9eb5bbd8bd
Fix #66005 : imagecopy does not support 1bit transparency on truecolor images
...
We must not copy transparent pixels, see
<https://github.com/libgd/libgd/commit/daac285c >.
2016-08-21 16:08:57 +02:00
Xinchen Hui
226e21b0fe
Merge branch 'PHP-5.6' of git.php.net:/php-src into PHP-5.6
...
* 'PHP-5.6' of git.php.net:/php-src:
Improvements to fix #72714 , suggested by nikic
Fix #65732 : grapheme_*() is not Unicode compliant on CR LF sequence
Fix #72714 : _xml_startElementHandler() segmentation fault
update NEWS
Fixed bug #72852 imap_mail null dereference
Revert "Fix dba configuration for Windows"
Fix dba configuration for Windows
Fix broken test include
fix NEWS
Add myself as PDO_OCI maintainer
2016-08-21 17:19:24 +08:00
Xinchen Hui
b740bb3987
Fixed bug #72907 (null pointer deref, segfault in gc_remove_zval_from_buffer (zend_gc.c:260))
2016-08-21 17:10:10 +08:00
Christoph M. Becker
52793c14d9
Improvements to fix #72714 , suggested by nikic
2016-08-20 12:44:20 +02:00
Christoph M. Becker
e4a006cd3e
Fix #65732 : grapheme_*() is not Unicode compliant on CR LF sequence
...
According to the Unicode specification (at least as of 5.1), CRLF sequences
are considered to be a single grapheme. We cater to that special case by
letting grapheme_ascii_check() fail. While it would be trivial to fix
grapheme_ascii_check() wrt. grapheme_strlen(), grapheme_substr() and
grapheme_strrpos() would be much harder to handle, so we accept the slight
performance penalty if CRLF is involved.
2016-08-20 03:01:35 +02:00
Christoph M. Becker
9164dc11e2
Fix #72714 : _xml_startElementHandler() segmentation fault
...
The issue is caused by an integer overflow when the `long` passed as
XML_OPTION_SKIP_TAGSTART is assigned to `xml_parser::toffset` which is
declared as `int`. We can simply work around this issue, by clipping
resulting negative values to 0 (and raising a notice in this case), because
the reasonable range for this value is certainly catered to by positive
`int`s.
However, there still remains the issue that `xml_parser::toffset` is later
added to `char *`s, which can cause OOB reads, so we make sure that the
upper bound never exceeds the strlen(). We eschew optimizing `SKIP_TAGSTART`
wrt. to the potentially duplicate strlen() call, because that code path is
unexpected anyway.
2016-08-20 01:58:08 +02:00
Anatol Belski
f682193609
update NEWS
2016-08-20 01:36:37 +02:00
Anatol Belski
21f08a7488
Fixed bug #72852 imap_mail null dereference
2016-08-20 01:34:46 +02:00
Christoph M. Becker
057278b759
Revert "Fix dba configuration for Windows"
...
This reverts commit ad76e8a529 .
After a discussion with Anatol it seems to be better QA wise to not make
this change in stable versions or betas.
2016-08-19 16:35:31 +02:00
Christoph M. Becker
ad76e8a529
Fix dba configuration for Windows
...
To be able to build the dba extension on Windows, libdb was required. This
is contrary to *nix where each handler can be configured individually. To
avoid BC breaks, we only do minimal modifications, instead of adjusting the
Windows configuration to match the *nix configuration, for now.
2016-08-19 11:42:16 +02:00
Christoph M. Becker
bc1214f25e
Fix broken test include
...
To avoid that the test stalls, we must always use `t` mode.
2016-08-18 17:53:57 +02:00
Ferenc Kovacs
761d2f629b
fix NEWS
2016-08-18 13:01:53 +02:00
Christopher Jones
f2d5305097
Add myself as PDO_OCI maintainer
2016-08-18 15:47:25 +10:00
Christopher Jones
b12ac316eb
Prepare for OCI8 PECL release
2016-08-18 13:50:36 +10:00
Christoph M. Becker
54293d21cb
Skip tests that are supposed to fail due to bugs in old external libgd
2016-08-17 21:36:26 +02:00
Christoph M. Becker
a3159d29bb
Make tests a little more resilient
...
PNG allows identical images to be stored differently what makes nearly all
tests checking the MD5 hash of the PNG representation fail with external
libgd. For now, we use the GD format instead, which doesn't allow for such
differences.
Of course, this md5() checking should be replaced by a image diffing feature
in the long run.
2016-08-17 17:59:33 +02:00
Christoph M. Becker
48198e4c25
Fix #68302 : impossible to compile php with zip support
...
We should not let configure succeed, if SIZEOF_OFF_T == 0, just to let the
compilation fail later. Instead we bail out early, giving a hint regarding
the potential issue, namely misconfigured libraries.
2016-08-17 12:43:29 +02:00
Xinchen Hui
abe00908af
Fixed bug #72853 (stream_set_blocking doesn't work)
...
Implemented PHP_STREAM_OPTION_META_DATA_API for plain_wrappers
2016-08-17 16:54:21 +08:00
Stanislav Malyshev
9e00ad2b09
Update NEWS
2016-08-16 23:44:59 -07:00
Stanislav Malyshev
4bf5c3187f
BLock test with memory leak
2016-08-16 22:55:44 -07:00
Stanislav Malyshev
d8b2de164e
fix tests
2016-08-16 22:55:43 -07:00
Stanislav Malyshev
40bd921cea
Fix TSRM build
2016-08-16 22:55:43 -07:00
Stanislav Malyshev
35a8ed2f62
Fix bug #72850 - integer overflow in uuencode
2016-08-16 22:55:43 -07:00
Stanislav Malyshev
b9e81e5844
Fixed bug #72849 - integer overflow in urlencode
2016-08-16 22:55:42 -07:00
Stanislav Malyshev
24d741d376
Fix bug #72848 - integer overflow in quoted_printable_encode caused heap corruption
2016-08-16 22:55:42 -07:00
Stanislav Malyshev
5f91f692c3
Fix bug #72838 - Integer overflow lead to heap corruption in sql_regcase
2016-08-16 22:55:42 -07:00
Stanislav Malyshev
cfdeedd985
Fix bug #72837 - integer overflow in bzdecompress caused heap corruption
2016-08-16 22:55:41 -07:00
Stanislav Malyshev
d6a43a8562
Fix bug #72836 - integer overflow in base64_decode caused heap corruption
2016-08-16 22:55:41 -07:00
Stanislav Malyshev
1cd6bc6463
Fix for bug #72807 - do not produce strings with negative length
2016-08-16 22:55:41 -07:00
Stanislav Malyshev
5a34bd6d1e
Fix for bug #72790 and bug #72799
2016-08-16 22:55:41 -07:00
Stanislav Malyshev
1bd103df00
Fix bug #72730 - imagegammacorrect allows arbitrary write access
2016-08-16 22:55:40 -07:00
Stanislav Malyshev
a3598dd7c9
Fix bug#72697 - select_colors write out-of-bounds
2016-08-16 22:55:40 -07:00
Stanislav Malyshev
6dbb1ee46b
Fixed bug #72627 : Memory Leakage In exif_process_IFD_in_TIFF
2016-08-16 22:55:40 -07:00
Stanislav Malyshev
698a691724
Fix bug #72750 : wddx_deserialize null dereference
2016-08-16 22:55:39 -07:00
Stanislav Malyshev
e018ff094f
Fix bug #72771 : ftps:// opendir wrapper is vulnerable to protocol downgrade attack
2016-08-16 22:55:39 -07:00
Stanislav Malyshev
639f7fde6a
Improve fix for #72663
2016-08-16 22:55:20 -07:00
Stanislav Malyshev
95d09e4b5e
Fix bug #70436 : Use After Free Vulnerability in unserialize()
2016-08-16 22:55:20 -07:00
Stanislav Malyshev
426aeb2808
Fix bug #72749 : wddx_deserialize allows illegal memory access
2016-08-16 22:55:19 -07:00
Stanislav Malyshev
f1a0b7d690
Update comment
2016-08-16 22:55:19 -07:00
Stanislav Malyshev
da316b50bd
Fix bug #72708 - php_snmp_parse_oid integer overflow in memory allocation
2016-08-16 22:55:19 -07:00
Stanislav Malyshev
8763c6090d
Fix bug #72681 - consume data even if we're not storing them
2016-08-16 22:54:42 -07:00
Stanislav Malyshev
448c9be157
Fix bug #72663 - destroy broken object when unserializing
2016-08-16 22:54:42 -07:00
Christoph M. Becker
1bb92d5212
#72085 : SEGV on unknown address zif_xml_parse
...
We better make sure that the ZVALs we're accessing as arrays are indeed
arrays.
2016-08-17 00:42:45 +02:00
Anatol Belski
4a4422740f
put missing prototype and fix ts build
2016-08-14 22:35:01 +02:00
Anatol Belski
5c7f802e7e
update NEWS
2016-08-14 20:50:23 +02:00
Anatol Belski
977cbc2fff
Fixed bug #72759 Regression in pgo_pgsql
...
This is caused by the fix for #72633 . Namely, lastval() throws an error,
if no nextval() was called earlier in the same session. This is by all
means correct so far, however inside a transaction it leads to an abort.
This is the opposite to MySQL's last_insert_id() which doesn't produce
any error no matter something were autoincremented or not.
To avoid existing scripts breakage in the stable branches, the previous
patch is extended to revert the transaction to the state before the lastval()
call in case of error. It is done only for 5.6 and 7.0 to retain BC. For 7.1+,
the clean behavior should persist. This is already the current behavior, when
the sequence name is explicitly passed. So there's no reason to obfuscate the
errors where this breakage is valid.
2016-08-14 19:33:24 +02:00
Jakub Zelenka
9f1d962ed6
Fixed bug #72787 (json_decode reads out of bounds)
2016-08-14 13:52:59 +01:00
Benedict Singer
dfadc5a427
Bug 70195
...
Many FTP-S servers now require FTP clients to re-use the SSL session
from the control connection on the data connection, to prove that the
same entity controls both connections. This patch updates PHP's FTP-S
client code to allow that possibility.
2016-08-13 21:35:03 +02:00
Christoph M. Becker
82df4e2638
Fix #72278 : getimagesize returning FALSE on valid jpg
...
getimagesize() is rather strict about the length of the marker payload data,
and fails if there are extraneous bytes before the next marker. Only a very
special case reported in bug #13213 is catered to.
libjpeg is rather resilient to such corrupted JPEG files, and raises a
recoverable error in this case. Other image processors also accept such
JPEG files, so we adapt getimagesize() to skip (but warn about) such
extraneous bytes.
2016-08-13 16:14:34 +02:00
Christoph M. Becker
ae3b2078ea
Fix #72823 : strtr out-of-bound access
...
If php_strtr_array_prepare_repls() reports pattern_len == 0, we return
early to avoid OOB accesses, and because there is nothing to replace anyway.
2016-08-13 11:40:33 +02:00
Christoph M. Becker
7938ebf6c1
Fix #60665 : call to empty() on NULL result using PDO::FETCH_LAZY returns false
...
The has_property handler only checked whether a respective column name
exists, but neither whether the column value is set, nor whether it is
empty, respectively. We fix that to match the behavior of POD:FETCH_OBJ in
particular and PHP in general.
2016-08-13 01:11:13 +02:00
Yasuo Ohgaki
f19578ad58
Fix URL rewriter partially
2016-08-11 09:18:33 +09:00
Yasuo Ohgaki
a38bc7b373
Support "git worktree"
2016-08-11 08:08:26 +09:00
Christoph M. Becker
243d5fcb1f
Add test for bug #69107 : finfo no longer detects PHP files
2016-08-08 18:43:33 +02:00
Nikita Popov
40d237df1f
Fix stream_socket_enable_crypto() test
...
The whole test doesn't make any sense at all, but this only fixes
the additional warnings you get when linked against openssl w/o
SSL3.
2016-08-07 18:37:38 +02:00
Lior Kaplan
283ee1f6dc
Recognize TDS versions 7.3 and 7.4
2016-08-07 15:15:59 +03:00
Kalle Sommer Nielsen
3d51b1d544
Fix the fix (Nikita), thanks!
2016-08-06 12:08:13 +02:00
Kalle Sommer Nielsen
5e2b8349b4
Check the return value of dbconvert() in mssql_guid_string(), as it may return -1 in case the conversion failed. In that case false is returned.
...
Also initialize buffer and buffer2 to NULL, which should fix bug #72039 (Use of uninitialised value on mssql_guid_string).
This only applies to 5.6, as we do not have mssql in 7.0 anymore
2016-08-06 10:17:49 +02:00
Ville Hukkamaki
65056e9d6c
Fix #72764
...
Negotiate data channel encryption after NLST command.
This is to prevent issues with IIS and ProFTPD.
2016-08-05 22:56:54 +02:00
Christoph M. Becker
a8515a339d
Fix broken skip marker in test case
2016-08-04 12:06:07 +02:00
Matteo Beccati
d3a8e107ac
Clean up FR #72633
2016-08-04 09:28:58 +02:00
Christopher Jones
78488a54c8
Fixed invalid handle error with Implicit Result Sets and bump OCI8 version.
2016-08-04 16:55:54 +10:00
Stanislav Malyshev
4f861b6071
Fix bug #72716 - initialize buffer before read
2016-08-03 22:59:42 -07:00
Ferenc Kovacs
562c17eb4e
5.6.26 will be next
2016-08-04 01:39:37 +02:00
Anatol Belski
9667ee4f72
improve the check, avoid strlen on NULL
2016-08-03 18:26:29 +02:00
Anatol Belski
f15c155363
update NEWS
2016-08-03 17:38:11 +02:00
Kalle Sommer Nielsen
d5796fb298
Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).
...
Before this patch, exif_process_IFD_in_MAKERNOTE() would return false, then causing the rest of the EXIF parsing to be interrupted. This is a regression from earlier which was most likely a part of a security fix for MAKERNOTE.
The new behavior is to instead of stopping to parse, to continue so we can still fetch data like thumbnail and GPS, thrus allowing yet unsupported formats to parse. If EXIF's debugging mode is enabled, a notice will display in case we do not match against a valid MAKERNOTE signature.
This should temporarily fix bug #72682 (exif_read_data() fails to read all data for some images) until I get around to debug it further.
(cherry picked from commit aabcb5481d )
2016-08-03 17:36:00 +02:00
Anatol Belski
67c2b0a9e8
update libs_versions.txt
2016-08-03 15:03:41 +02:00
Anatol Belski
fad3f936ac
fix ts build
2016-08-03 12:16:42 +02:00
Christoph M. Becker
f5622f5c87
Fix #72709 : imagesetstyle() causes OOB read for empty $styles
...
Calling imagesetstyle() with an empty $styles array caused gdImageSetStyle()
to be called with `noOfPixels==0`, what could have lead to OOB reads.
Actually, this issue will be fixed in libgd, but to avoid issues when older
libgd is in use, we simply disallow passing an empty $styles array to
imagesetstyle(), what wouldn't serve a useful purpose anyway.
2016-08-02 18:43:37 +02:00
Anatol Belski
e95625f47e
update NEWS
2016-08-02 14:36:56 +02:00
Anatol Belski
40b3a031b2
cleanup table after test
2016-08-02 14:35:24 +02:00
Pablo Santiago Sánchez
90c6cbd09b
- lastInsertId using Postgres Lastval() function
2016-08-02 14:34:30 +02:00
Nikita Popov
c9d3ff0c6e
Revert "Fixed bug #71219 "
...
This reverts commit 14d674442e .
I misread the discussion on the bug -- this is not the correct
fix. However the other proposed fix does not work either, so just
reverting for now.
2016-07-30 18:34:34 +02:00
Nikita Popov
14d674442e
Fixed bug #71219
2016-07-30 18:21:19 +02:00
Nikita Popov
99613431b4
Add missing TSRMLS_FETCH()
2016-07-30 16:28:42 +02:00
Nikita Popov
e87ac688d5
Fixed bug #72142
2016-07-30 15:13:03 +02:00
ju1ius
1d32b80903
fixes bad address given to onig_error_code_to_str
...
Closes bug #72710
(cherry picked from commit 0fb7eb6723bcc6fd98053911543e801edb5ab763)
2016-07-30 11:46:34 +02:00
Christoph M. Becker
f67ccd4a7b
Fix #71894 : AddressSanitizer: global-buffer-overflow in zif_cal_from_jd
...
Julian days < 347998 denote invalid Jewish calendar dates, so
cal_from_jd($jd, CAL_JEWISH) and jdmonthname($jd, CAL_MONTH_JEWISH) should
actually fail. For BC we don't yet let them though, but we fix the OOB read
that happens in this case, and we also adjust cal_from_jd()'s return value
to have empty strings for "abbrevdayname" and "dayname" instead of "Sun"/
"Sunday" and NULL for "dow" instead of 0, which doesn't make any sense.
2016-07-29 01:04:21 +02:00
Christoph M. Becker
5c458c9b02
Implement FR #65462 : Please add tests for gregorian and jewish overflow fixes
2016-07-28 19:59:14 +02:00
Christoph M. Becker
7ab39e2fae
Fix #67976 : cal_days_month() fails for final month of the French calendar
...
The French calendar ends on 0014-13-05, so trying to calculate the Julian
day of 0015-01-01 fails. We cater to that by returning the hard-coded value.
2016-07-28 19:13:58 +02:00
Christoph M. Becker
ced2a80e6f
Bug #69975 had already been fixed as of PHP 5.6.12
...
Also CVE-2015-8879 had been assigned.
2016-07-28 18:22:19 +02:00
Christoph M. Becker
c301adbbd1
Fix #72677 : SCM_CREDENTIALS related tests should be skipped on AIX
...
Patch provided by matthieu dot sarter dot external at atos dot net.
2016-07-28 17:19:47 +02:00
Christoph M. Becker
6e886f07a8
Fix #72676 : Test cli_process_title_unix fails on AIX
...
Patch provided by matthieu dot sarter dot external at atos dot net.
2016-07-28 16:51:45 +02:00
Christoph M. Becker
ee6900c3de
Fix #72694 : mb_ereg_search_setpos does not accept a string's last position
...
Setting the search position immediately behind the last character should be
allowed, so we fix this off-by-one error.
2016-07-28 15:21:48 +02:00
Christoph M. Becker
56cdaecb28
Fix #72693 : mb_ereg_search increments search position when a match zero-width
...
That's caused by an off-by-one error, which we fix.
2016-07-28 13:57:38 +02:00
Christoph M. Becker
d276e6a838
Fix #72691 : mb_ereg_search raises a warning if a match zero-width
...
That warning doesn't make sense (PCRE doesn't throw such a warning either),
so we remove it.
2016-07-28 13:07:05 +02:00
Christoph M. Becker
0ae8c337a3
Bug #6836 has already been fixed in PHP 5.6.24 and 7.0.9
2016-07-28 12:26:41 +02:00
Pierrick Charron
30a5ed3a79
Fixed bug #71929 (CURLINFO_CERTINFO data parsing error).
2016-07-27 23:30:20 -04:00
Pierrick Charron
ed16f2fed5
Update NEWS
2016-07-27 17:52:05 -04:00
Christoph M. Becker
315c0536c2
Fix #72688 : preg_match missing group names in matches
...
We have to multiply with 0x100 to properly scale the high byte.
2016-07-27 18:50:52 +02:00
Christoph M. Becker
cc125f277b
Implement #72653 : SQLite should allow opening with empty filename
...
From the [sqlite3_open](https://www.sqlite.org/c3ref/open.html ) docs:
| If the filename is an empty string, then a private, temporary on-disk
| database will be created. This private database will be automatically
| deleted as soon as the database connection is closed.
We make that facility available to userland.
While we're at it, we also do some minor optimizations, remove the
unnecessary check for NUL characters in filename, which is already catered
to by ZPP(p), and add a missing `return` in case db_obj isn't initialized.
2016-07-27 16:41:03 +02:00
Ville Hukkamäki
cce457c68c
Fix bug #72667
...
Open data stream after receiving PASV reply, before sending the
main request.
Included test cases for opendir() with ftp:// and ftps:// wrappers.
Test cases re-use ext/ftp/tests/server.inc
Conflicts:
ext/standard/ftp_fopen_wrapper.c
2016-07-27 15:55:47 +02:00
Pierrick Charron
074b86d845
Fixed bug #72686 (zlib: url support is broken).
...
zlib: support is broken since a really long time.
It never worked on versions >= PHP5.6 so we can just remove
this dead code.
Bug was introduced 2006-05-14 (Before 5.2.0)
2016-07-27 00:33:13 -04:00
Pierrick Charron
4c2e1a13be
Fixed bug #72684 (AppendIterator segfault with closed generator)
2016-07-26 20:34:16 -04:00
Pierrick Charron
24d8f6ed7c
Fixed bug #71709
...
When curl_setopt is called with an empty slist as value, we should
not add the empty slist to the list of slist to free.
2016-07-26 18:50:15 -04:00
Christoph M. Becker
64e3e932fc
Further fixes wrt. bug #72668
...
Not only SQLite3::querySingle(), but also SQLite3::query() and
SQLite3Stmt::execute() were affected.
2016-07-25 17:03:10 +02:00
Anatol Belski
0c34d515f1
update NEWS
2016-07-25 10:14:18 +02:00
y-uti
3f842655db
Make phpize use PHP_PREFIX as the default location (windows)
...
The default path to where an extension is installed should be
PHP_PREFIX/ext on windows.
2016-07-25 10:01:34 +02:00
y-uti
72ac8cf5ad
Enable 'nmake test' on building extensions
...
On Windows, Makefile generated by phpize doesn't have the 'test'
target rule. This commit fixes that and enables 'nmake test' on
Windows.
2016-07-25 09:55:07 +02:00
Christoph M. Becker
305bddb0ed
Fix broken test case
...
d28f1da introduced a test regression, due to potentially additional output
regarding FreeType support. We fix that by making the test more resilient.
2016-07-25 02:00:37 +02:00
Christoph M. Becker
d28f1dae9d
Fix broken test case
...
The test claims that it would be "checking all the values in returned array",
but due to the use of %a it actually skipped elements. We fix that by using
%s instead.
2016-07-25 00:13:44 +02:00
Anatol Belski
9cd23ff84f
regenerate date parser with re2c 0.15.3
2016-07-24 14:50:10 +02:00
Nikita Popov
04b42b1e05
More tolerance in another IntlCalendar test
...
Again, off-by-1000 is expected if we're late in the second. Add an
extra 1000 to account for actual delta in call times.
2016-07-24 00:15:14 +02:00
Anatol Belski
80fee637f4
fix test
2016-07-23 20:55:39 +02:00
Christoph M. Becker
88838dd282
Fix #68712 : suspicious if-else statements
2016-07-23 19:29:43 +02:00
Christoph M. Becker
9fbd0c1ff1
Fix copy&paste errors in gd_interpolation.c
...
According to <https://github.com/libgd/libgd/commit/f101380 >.
2016-07-23 18:09:18 +02:00
Christoph M. Becker
2c16b9cf62
Fix #66555 : Always false condition in ext/gd/libgd/gdkanji.c
...
This issue has already been fixed in libgd[1], so we fix PHP's bundled
libgd accordingly.
[1] <https://github.com/libgd/libgd/commit/aa1d71c >
2016-07-23 16:48:07 +02:00
vhuk
65abdb556d
Fix for bug #54431
2016-07-23 13:28:42 +02:00
Nikita Popov
4fc1bfa93b
Make IntlCalendar::getNow() test more tolerant
...
Due to the *1000 factor the two values may be off-by-1000 even
without any actual delay, so increase the check to 2000.
2016-07-22 17:20:56 +02:00
Christoph M. Becker
6b116932b2
Fix #72646 : SplFileObject::getCsvControl does not return the escape character
...
This has obviously been missed when adding the $escape parameter to
SplFileObject::setCsvControl() in PHP 5.3, so we catch up on this.
2016-07-22 15:24:50 +02:00
Remi Collet
fb4a6dc0f1
FPM: add test for CVE-2016-5385
2016-07-22 09:35:09 +02:00
Christoph M. Becker
f2c2a4be9e
Fix #72330 : CSV fields incorrectly split if escape char followed by UTF chars
...
We must not forget to properly reset the state for multibyte characters
following an escape character.
2016-07-21 18:37:24 +02:00
Pieter Hordijk
f813f43855
Removed incorrect (leftover?) sentence in ini
...
about mbstring or iconv output handler
2016-07-21 16:49:14 +02:00
Anatol Belski
8b191921c3
update libs_versions.txt
2016-07-21 01:52:03 +02:00
Ferenc Kovacs
c9f21e8319
update NEWs
2016-07-21 00:36:07 +02:00
Anatol Belski
b57a38f584
regenerate date parser with re2c 0.13.5 to fix OSX issues
2016-07-20 17:57:39 +02:00
Xinchen Hui
9ebc96116b
Fixed arginfo
2016-07-20 18:07:02 +08:00
Derick Rethans
18ba78e988
Regenerate with the -b flag, as we used to do.
...
Apparently, Apple's LLVM can't handle it otherwise o_O.
2016-07-20 10:19:53 +01:00
Stanislav Malyshev
17a53f9e60
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Improve fix for #72520
2016-07-19 22:37:44 -07:00
Stanislav Malyshev
8ebdb1f5fd
Improve fix for #72520
2016-07-19 22:37:03 -07:00
Pierre Joye
e8b768dd92
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
2016-07-20 00:18:56 +07:00
Pierre Joye
9cc0a5a9a9
#72482 , revert for 5.6 for now
2016-07-20 00:18:25 +07:00
Christoph M. Becker
206d45bc17
Update NEWS
2016-07-19 17:58:29 +02:00
Christoph M. Becker
828f911efd
Fix #43828 : broken transparency of imagearc for truecolor in blendingmode
...
No pixel of a filled arc must ever be drawn multiple times. Otherwise we get
artifacts regarding transparency. That happens with the current
implementation of gdImageFilledArc() unless gdChord or gdNoFill are set.
When gdPie is set, however, the filled arc is drawn in wedges, which are
polygons of three points, and so some overlap is natural.
To resolve the issue, we stick with the current algorithm of calculating the
wedges, but instead of drawing each polygon separately, we put the relevant
points in a large array, and draw a single polygon. That also is supposed to
improve the performance considerably.
Note that this modification will change the results when gdImageSetStyle()
or gdImageSetBrush() are used, but we believe that this modification is also
an improvement in this regard, even though it still might not make much
sense to use these functions with gdImageFilledArc().
The respective fix for libgd is
<https://github.com/libgd/libgd/commit/e7e20d6 >.
2016-07-19 17:38:26 +02:00
Anatol Belski
bd1919504b
fix test portability and expectation
...
The test images for #72603 and #72618 are broken, that seems to be
the cause of different test output. Seems also to be platform dependent,
so it's not reliable to depend on the exact error output.
2016-07-19 14:49:24 +02:00
Pierre Joye
b25009fc2c
#72482 , Ilegal write/read access caused by gdImageAALine overflow
2016-07-19 19:34:07 +07:00
Pierre Joye
1d69028d2f
fix #72494 , improve input color check and prevent issues when old gd are used, done before gd call
2016-07-19 18:23:51 +07:00
Pierre Joye
834f7a39be
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
2016-07-19 16:34:55 +07:00
Pierre Joye
48e76abadd
improve fix #72558 , free contribRow as well
2016-07-19 16:33:17 +07:00
Stanislav Malyshev
894df05fe8
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
improve fix #72558 , while (u>=0) with unsigned int will always be true
2016-07-19 01:56:49 -07:00
Pierre Joye
7521149193
improve fix #72558 , while (u>=0) with unsigned int will always be true
2016-07-19 01:56:35 -07:00
Pierre Joye
df09515089
improve fix #72558 , while (u>=0) with unsigned int will always be true
2016-07-19 15:51:43 +07:00
Stanislav Malyshev
f69362d212
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fix memory leak
2016-07-19 01:47:40 -07:00
Stanislav Malyshev
47d6ea6332
Fix memory leak
2016-07-19 01:47:27 -07:00
Stanislav Malyshev
4d0565b5ba
Merge branch 'PHP-5.5' into PHP-5.6
...
* 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
2016-07-19 00:53:08 -07:00
Stanislav Malyshev
1a88692692
Merge branch 'PHP-5.6.24' into PHP-5.6
...
* PHP-5.6.24:
Fix for bug #72513
5.6.24RC1
Conflicts:
configure.in
main/php_version.h
2016-07-19 00:51:27 -07:00
Stanislav Malyshev
f0a17b3a86
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
...
* 'PHP-5.5' of git.php.net:php-src:
fix #72519 , possible OOB using imagegif
2016-07-19 00:44:08 -07:00
Anatol Belski
9bb5f64871
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
fix #72519 , possible OOB using imagegif
2016-07-19 09:40:26 +02:00
Pierre Joye
8dc5ffa479
fix #72519 , possible OOB using imagegif
2016-07-19 00:37:53 -07:00
Pierre Joye
928aecc002
fix #72512 , invalid read or write for palette image when invalid transparent index is used
...
Conflicts:
ext/gd/libgd/gd.c
2016-07-19 00:37:38 -07:00
Pierre Joye
7b1572b177
fix #72519 , possible OOB using imagegif
...
fix #72519 , possible OOB using imagegif
2016-07-19 09:33:34 +02:00
Pierre Joye
b61bd1243a
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
fix #72519 , possible OOB using imagegif
2016-07-19 14:16:01 +07:00
Stanislav Malyshev
33c1a55b40
Apparently some envs miss SIZE_MAX
2016-07-19 00:13:25 -07:00
Pierre Joye
2fbce5f51f
fix #72519 , possible OOB using imagegif
2016-07-19 14:11:44 +07:00
Pierre Joye
511f07b747
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
fix #72512 , invalid read or write for palette image when invalid transparent index is used
2016-07-19 13:39:46 +07:00
Pierre Joye
0fbcff1b35
fix #72512 , invalid read or write for palette image when invalid transparent index is used
2016-07-19 13:37:23 +07:00
Stanislav Malyshev
08ac37bd2a
Merge branch 'PHP-5.5.38' into PHP-5.5
...
* PHP-5.5.38:
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
2016-07-18 23:32:38 -07:00
Stanislav Malyshev
1364742be9
Fix tests
2016-07-18 23:30:51 -07:00
Stanislav Malyshev
41131cd41d
Fix bug #72618 : NULL Pointer Dereference in exif_process_user_comment
2016-07-18 23:21:51 -07:00
Stanislav Malyshev
f3feddb5b4
Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t
2016-07-18 22:24:52 -07:00
Stanislav Malyshev
e6c48213c2
Fix bug #72606 : heap-buffer-overflow (write) simplestring_addn simplestring.c
2016-07-18 21:44:39 -07:00
Christoph M. Becker
3c3980caa1
Merge branch 'pull-request/1991' into PHP-5.6
2016-07-19 00:42:49 +02:00
Christoph M. Becker
6cb75fb1e8
Fix #70315 : 500 Server Error but page is fully rendered
...
That happens because the external libgd uses other error codes than PHP
(and the bundled libgd), but the libgd error codes are simply forwarded
to php_verror(). We fix that by properly mapping libgd errors to PHP errors.
2016-07-19 00:18:07 +02:00
Stanislav Malyshev
d1a491acf3
Fix for bug #72558 , Integer overflow error within _gdContributionsAlloc()
2016-07-18 00:17:48 -07:00
Stanislav Malyshev
eebcbd5de3
Fix bug #72603 : Out of bound read in exif_process_IFD_in_MAKERNOTE
2016-07-17 16:34:21 -07:00
Nikita Popov
171c759d79
Revert "Fixed bug #72286 (Segmentation fault During Garbage Collection)"
...
This reverts commit 1c84b55ade .
2016-07-16 23:02:23 +02:00
Christoph M. Becker
3666cfab97
Fix #72604 : imagearc() ignores thickness for full arcs
...
We remove the special casing for full arcs, what conforms to external libgd.
2016-07-15 19:45:52 +02:00
Christoph M. Becker
a4aa4f9772
Fix bug #66502 : DOM document dangling reference
...
When we decrement the refcount of a node's document, we state that we
won't need it anymore. Therefore we can *always* set the pointer to the
document to NULL, what avoids invalid memory accesses for some edge cases
as demonstrated with the PHPT.
Original patch provided by Sean Heelan.
2016-07-15 01:08:08 +02:00
Dmitry Stogov
1c84b55ade
Fixed bug #72286 (Segmentation fault During Garbage Collection)
2016-07-14 22:37:25 +03:00
Anatol Belski
d0c98366d0
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Extend libxml exports
Updated NEWS
Fix #69975 : PHP segfaults when accessing nvarchar(max) defined columns
Updated NEWS
Fix bug #70480 (php_url_parse_ex() buffer overflow read)
Update PHP 5.5 NEWS entries with CVE info
2016-07-14 21:13:49 +02:00
Anatol Belski
fe1d6feb3d
Extend libxml exports
...
These are needed to support libxslt 1.1.29 on Windows. This libxslt version
fixes CVE-2015-7995 and for this reason needs to be used.
2016-07-14 21:08:54 +02:00
Christoph M. Becker
8bb3bd04a9
Fix bug #72596 : imagetypes function won't advertise WEBP support
...
We add the constant IMG_WEBP and make sure that WebP support is properly
reported by imagetypes().
2016-07-14 17:17:59 +02:00
Nikita Popov
3cc4265527
Add NEWS entry
2016-07-13 21:57:01 +02:00
nikita2206
eb190b4e91
fix: bug72222 for PHP-5.6 reflection export of array consts
2016-07-13 21:39:55 +02:00
Stanislav Malyshev
3798eb6fd5
Fix bug #72562 - destroy var_hash properly
2016-07-12 23:27:45 -07:00
Stanislav Malyshev
aa82e99ed8
Fix bug #72533 (locale_accept_from_http out-of-bounds access)
2016-07-12 22:37:36 -07:00
Stanislav Malyshev
81406c0c1d
Fix fir bug #72520
2016-07-12 22:05:00 -07:00
Stanislav Malyshev
0218acb7e7
Fix for bug #72513
2016-07-12 22:03:09 -07:00
Stanislav Malyshev
a099545bec
Fix for bug #72513
2016-07-12 21:52:27 -07:00
Stanislav Malyshev
aca4f65c7e
CS fix and comments with bug ID
2016-07-12 21:35:02 -07:00
Julien Pauli
1896ca4e88
Updated NEWS
2016-07-12 15:47:05 +02:00
Julien Pauli
822498128b
Revert "Fixes #52384 : Adds parameter value to dumped output. Also adds output flag indicating presence of PDO::PARAM_INPUT_OUTPUT."
...
This reverts commit 15336b44d9 .
2016-07-12 15:46:07 +02:00
Julien Pauli
5cce0d7c7c
Revert "Fix test for #52384 "
...
This reverts commit 642e44b98f .
2016-07-12 15:45:49 +02:00
Julien Pauli
642e44b98f
Fix test for #52384
2016-07-12 15:27:37 +02:00
Christoph M. Becker
76e249d31c
Partially fix #72506 : idn_to_ascii for UTS #46 incorrect for long domain names
...
We don't actually fix this issue wrt. the empty $info array, because it is
not clear what this array should contain and we're concerned about the
potential BC break, but at least we fix the inconsistent handling of
resulting domains with 255 bytes (which raise an error), and longer domains
(which just return FALSE), what has to be considered a very minor BC break
if at all.
2016-07-12 14:47:14 +02:00
Julien Pauli
17d4f5c2f8
Updated NEWS
2016-07-12 10:49:04 +02:00
Bishop Bettini
15336b44d9
Fixes #52384 : Adds parameter value to dumped output. Also adds output flag indicating presence of PDO::PARAM_INPUT_OUTPUT.
2016-07-12 10:47:07 +02:00
Julien Pauli
403f23b460
Updated NEWS
2016-07-12 10:37:59 +02:00
gooh
fb49f137ec
Fix #72575 : using --allow-to-run-as-root should ignore missing user
...
directive
Trying to start PHP-FPM with the --allow-to-run-as-root flag will not
work when the user directive is not given in the FPM worker pool
configuration. Parsing the config will fail. Consequently, FPM cannot
start.
The check is in place to prevent FPM from getting started with root
privileges by accident. Prior to #61295 the check would also prevent
any non-root user to start PHP-FPM without a user directive present.
This patch adds an additional check to the config parser, checking for
the --allow-to-run-as-root flag to be present. If so, parsing will no
longer abort for root users even if the user directive is missing.
I will also update the PHP docs since they still state the user
directive is a mandatory setting which it is not since #61295 .
2016-07-12 10:36:17 +02:00
Julien Pauli
d2d17e14ee
Updated NEWS
2016-07-12 10:19:45 +02:00
Loz Calver
f5ccd71d0c
Fix 72122 - don't use EH_THROW for calls to getIterator
2016-07-12 10:10:35 +02:00
Xinchen Hui
7903276f4c
backport to 5.6 (we should not unset the default value)
2016-07-12 12:14:45 +08:00
Christoph M. Becker
966311e627
Bug #66836 has been fixed
2016-07-11 16:06:35 +02:00
Julien Pauli
2552cf248d
Remove needless zeroing of anonymously mmap'd memory
2016-07-11 14:58:12 +02:00
Michael McConville
9dd5d96332
Remove needless zeroing of anonymously mmap'd memory
...
All existing systems zero anonymously mmapped memory, and if I
understand correctly POSIX will be specifying this soon. Many projects
already rely on it, so no reasonable system would return memory of
unspecified value.
2016-07-11 14:56:17 +02:00
Derick Rethans
6a5e1783b7
Generate new .c file from .re file, as that was missing on my previous commit
2016-07-11 11:31:43 +01:00
Stanislav Malyshev
98b9dfaec9
Fix for HTTP_PROXY issue.
...
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
2016-07-10 16:21:11 -07:00
Matteo Beccati
219ebcb689
Fixed bug #70313 PDO statement fails to throw exception
2016-07-10 14:33:56 +02:00
Julien Pauli
51d19891a4
Updated NEWS
2016-07-08 16:31:42 +02:00
Jos Elstgeest
6fc7817558
update filter_var filters for ipv4 addresses to reflect rfc6890
2016-07-08 16:30:06 +02:00
Julien Pauli
bdf1b22da5
Updated NEWS
2016-07-08 15:36:38 +02:00
Christoph M. Becker
82637e8187
Fix #69975 : PHP segfaults when accessing nvarchar(max) defined columns
...
The SQL Server Native Client 11.0 and maybe other ODBC drivers report
NVARCHAR(MAX) columns as SQL_WVARCHAR with size 0. This causes too small a
buffer to be emalloc'd, likely causing a segfault in the following. As we don't
know the real size of the column data, we treat such colums as
SQL_WLONGVARCHAR.
The related bug #67437 suggests that some drivers report a size of ~4GB. It is
not certain that this is really the case (there might be some integer overflow
involved, and anyway, there has been no feedback), so we do not cater for this
now. However, it would not be hard to treat all sizes above a certain threshold
in a similar way, i.e. as SQL_WLONGVARCHAR.
(cherry picked from commit 16db4d1462 )
(cherry picked from commit 344ff5dd4c )
2016-07-08 15:33:46 +02:00
Julien Pauli
1071a2655f
Updated NEWS
2016-07-08 15:04:13 +02:00
Julien Pauli
78d5783b62
Backported bug #71144 (Segmentation fault when using cURL with ZTS)
2016-07-08 14:58:56 +02:00
Michael Maroszek
0be13d2dc2
fix bug #72024 (microtime() leaks memory)
2016-07-08 14:36:44 +02:00
Julien Pauli
51b584b159
Updated NEWS
2016-07-08 14:35:43 +02:00
Julien Pauli
7377f45b61
Merge branch 'pull-request/1982' into PHP-5.5
...
* pull-request/1982:
Update PHP 5.5 NEWS entries with CVE info
2016-07-08 14:24:05 +02:00
Remi Collet
bfc42211d3
add test for bug #72564 (7.x regression)
2016-07-08 10:45:13 +02:00
Christopher Jones
8b905e337c
Mask DB usernames from expected test output for test portability
2016-07-07 11:52:17 +10:00
Ferenc Kovacs
2b7cd813e7
merge NEWS blocks
2016-07-07 01:46:02 +02:00
Ferenc Kovacs
0ca1698cf9
5.6.24RC1
2016-07-07 01:43:25 +02:00
Ferenc Kovacs
c1280db28a
5.6.25 is next
2016-07-07 00:09:48 +02:00
Derick Rethans
884db2f7be
Updated to version 2016.6 (2016f)
2016-07-06 11:15:42 +01:00
Anatol Belski
b63d41e1e5
add tests for bug #72512
2016-07-06 10:40:52 +02:00
Valentin VALCIU
4c24f170ea
Fix bug #55701 : GlobIterator throws LogicException
...
GlobIterator throws LogicException with message 'The parent constructor was
not called' on its first operation when the glob expression doesn't match
any file. It also throws on the first operation after the iteration
completes, when the glob expression matches some files.
# Resolved conflicts:
# ext/spl/spl_directory.c
2016-07-05 16:39:25 +02:00
Pedro Magalhães
08777e9615
Don't enforce LSP if prototype method is private
...
Fixes bug #72496 .
2016-07-05 14:30:22 +02:00
Stanislav Malyshev
e1ba58f068
Fix bug #70480 (php_url_parse_ex() buffer overflow read)
...
(cherry picked from commit 629e4da7cc )
2016-07-05 10:59:02 +02:00
Lior Kaplan
ac56700125
Update PHP 5.5 NEWS entries with CVE info
2016-07-04 16:31:39 +02:00
Pierre Joye
7b2c22696a
Fixed bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access
2016-07-04 10:35:20 +02:00
Christoph M. Becker
717a043a32
Fix typo in comment
2016-07-04 03:17:17 +02:00
Ferenc Kovacs
9a9ede00bc
this was actually fixed in 5.6.23
2016-07-03 23:31:32 +02:00
Stanislav Malyshev
b8487b6a7d
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fix the fix for #72403 on nl2br
5.5.38 now
Conflicts:
configure.in
main/php_version.h
2016-06-27 12:32:11 -07:00
Stanislav Malyshev
25bd11cf27
Fix the fix for #72403 on nl2br
2016-06-27 12:30:42 -07:00
Christoph M. Becker
1314db7109
Update NEWS
2016-06-27 17:07:26 +02:00
Christoph M. Becker
57940605da
Fix #70628 : Clearing bindings on an SQLite3 statement doesn't work
...
Obiously, it isn't sufficient to call sqlite3_clear_bindings() alone, but
also the bound_params of the php_sqlite3_stmt have to be cleared.
2016-06-27 17:06:27 +02:00
Stanislav Malyshev
cab1c3b370
Fixed bug #72479 - same as #72434
2016-06-26 18:02:58 -07:00
Lior Kaplan
b4873e57b4
Add CVE info for PHP 5.6.22
2016-06-25 20:31:26 +03:00
Lior Kaplan
6bd527771c
Add CVE info for PHP 5.6.23
2016-06-25 20:28:51 +03:00
Lior Kaplan
02c24be8e4
Add missing entries for PHP 5.6.23
2016-06-25 19:56:00 +03:00
Anatol Belski
4638ba9c07
fix test cleanup
2016-06-22 12:20:02 +02:00
Anatol Belski
de1c407348
fix dir separator in test
2016-06-22 11:41:05 +02:00
Ferenc Kovacs
ba980d0a62
update NEWS
2016-06-22 03:03:01 +02:00
Anatol Belski
e3bd360ec9
fix test
...
There is a difference between TS and NTS warning message, since
virtual_mkdir vs glibc directly is used. This has no effect for
the actual fix functionality.
2016-06-21 16:20:03 +02:00
Anatol Belski
a00350486f
re-fix leak
2016-06-21 15:18:10 +02:00
Anatol Belski
e6cc30e167
Revert "fix leak"
...
This reverts commit c5d9c50897 .
2016-06-21 14:51:43 +02:00
Julien Pauli
155619184f
5.5.38 now
2016-06-21 13:10:37 +02:00
Anatol Belski
c5d9c50897
fix leak
2016-06-21 12:29:41 +02:00
Anatol Belski
6d7500c14c
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
remove the huge test file, generate it on the fly instead
2016-06-21 09:53:04 +02:00
Anatol Belski
fd93c8601d
remove the huge test file, generate it on the fly instead
2016-06-21 09:45:26 +02:00
Anatol Belski
0c7250f260
remove the huge test file, generate it on the fly instead
2016-06-21 09:42:38 +02:00
Stanislav Malyshev
5b90a8bd7c
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Now the right bug #
Fix NEWS
2016-06-21 00:27:46 -07:00
Stanislav Malyshev
fc0b0afdc3
Now the right bug #
2016-06-21 00:18:27 -07:00
Stanislav Malyshev
2af6dded37
Fix NEWS
2016-06-21 00:14:56 -07:00
Stanislav Malyshev
c9b24ef307
Merge branch 'PHP-5.6.23' into PHP-5.6
...
* PHP-5.6.23:
Fixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow
update NEWS
fix tests
fix build
Fix bug #72455 : Heap Overflow due to integer overflows
Fix bug #72434 : ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize
Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
Fix bug #72407 : NULL Pointer Dereference at _gdScaleVert
Fix bug #72402 : _php_mb_regex_ereg_replace_exec - double free
Fix bug #72298 pass2_no_dither out-of-bounds access
Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow
Fix bug #72262 - do not overflow int
Fix bug #72400 and #72403 - prevent signed int overflows for string lengths
Fix bug #72275 : don't allow smart_str to overflow int
Fix bug #72340 : Double Free Courruption in wddx_deserialize
Fix bug #72321 - use efree() for emalloc allocation
5.6.23RC1
Conflicts:
configure.in
main/php_version.h
2016-06-21 00:02:37 -07:00
Stanislav Malyshev
7dde353ee7
Merge branch 'PHP-5.5' into PHP-5.6.23
...
* PHP-5.5:
Fixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow
update NEWS
fix tests
fix build
Fix bug #72455 : Heap Overflow due to integer overflows
Fix bug #72434 : ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize
Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
Fix bug #72407 : NULL Pointer Dereference at _gdScaleVert
Fix bug #72402 : _php_mb_regex_ereg_replace_exec - double free
Fix bug #72298 pass2_no_dither out-of-bounds access
Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow
Fix bug #72262 - do not overflow int
Fix bug #72400 and #72403 - prevent signed int overflows for string lengths
Fix bug #72275 : don't allow smart_str to overflow int
Fix bug #72340 : Double Free Courruption in wddx_deserialize
update NEWS
Fix #66387 : Stack overflow with imagefilltoborder
Skip test which is 64bits only
5.5.37 now
Conflicts:
configure.in
ext/mcrypt/mcrypt.c
ext/spl/spl_directory.c
main/php_version.h
2016-06-21 00:01:48 -07:00
Stanislav Malyshev
c395c6e5d7
iFixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow
2016-06-20 23:58:26 -07:00
Stanislav Malyshev
b028cacf31
update NEWS
2016-06-20 23:45:37 -07:00
Stanislav Malyshev
e1d2f86a41
Merge branch 'PHP-5.5.37' into PHP-5.5
...
* PHP-5.5.37:
fix tests
fix build
Fix bug #72455 : Heap Overflow due to integer overflows
Fix bug #72434 : ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize
Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
Fix bug #72407 : NULL Pointer Dereference at _gdScaleVert
Fix bug #72402 : _php_mb_regex_ereg_replace_exec - double free
Fix bug #72298 pass2_no_dither out-of-bounds access
Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow
Fix bug #72262 - do not overflow int
Fix bug #72400 and #72403 - prevent signed int overflows for string lengths
Fix bug #72275 : don't allow smart_str to overflow int
Fix bug #72340 : Double Free Courruption in wddx_deserialize
2016-06-20 23:31:54 -07:00
Stanislav Malyshev
5f107ab8a6
fix tests
2016-06-20 22:54:55 -07:00
Stanislav Malyshev
7f428cae88
fix build
2016-06-20 22:13:31 -07:00
Stanislav Malyshev
6c5211a0ce
Fix bug #72455 : Heap Overflow due to integer overflows
2016-06-20 21:51:42 -07:00
Stanislav Malyshev
f6aef68089
Fix bug #72434 : ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize
2016-06-20 21:35:22 -07:00
Stanislav Malyshev
3f627e580a
Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
2016-06-20 21:26:33 -07:00
Remi Collet
1b4570b79f
Fix bug #71936 (Segmentation fault destroying HTTP_RAW_POST_DATA)
2016-06-20 18:43:07 +02:00
Christoph M. Becker
b3f3cd5903
Update NEWS
2016-06-20 15:18:47 +02:00
Christoph M. Becker
4b4275059f
Fix #64641 : imagefilledpolygon doesn't draw horizontal line
...
As has been reported, 1-dimensional horizontal filled polygons are not drawn
at all. That is caused by the scanline algorithm used for drawing filled
polygons which skips the drawing of horizontal edges, because that is
normally not necessary. If, however, the polygon consists of horizontal
edges only, that obviously doesn't work, so we add a special case handling.
That has also been fixed in libgd with
<https://github.com/libgd/libgd/commit/f9f10fa9 >.
2016-06-20 15:17:52 +02:00
Stanislav Malyshev
58797ab895
Update NEWS
2016-06-18 22:13:04 -07:00
Stanislav Malyshev
42b2d7fec5
Fix bug #72447 : Type Confusion in php_bz2_filter_create()
2016-06-18 22:10:22 -07:00
Stanislav Malyshev
b9ec171e7d
Fix bug #72407 : NULL Pointer Dereference at _gdScaleVert
2016-06-18 21:57:25 -07:00
Stanislav Malyshev
5b597a2e5b
Fix bug #72402 : _php_mb_regex_ereg_replace_exec - double free
2016-06-18 21:48:39 -07:00
Xinchen Hui
c4c1993af6
Fixed bug #72439 (Stream socket with remote address leads to a segmentation fault)
2016-06-18 21:29:47 -07:00
Stanislav Malyshev
e9ac8954be
Fix bug #72298 pass2_no_dither out-of-bounds access
2016-06-18 21:06:09 -07:00
Pierre Joye
7722455726
Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow
2016-06-18 20:15:10 +02:00
Christoph M. Becker
ed0ec66996
Fix #53640 : XBM images require width to be multiple of 8
2016-06-17 17:50:36 +02:00
Jakub Zelenka
0c34f53c93
Fix incorrect error suppressing in openssl_error_string test
2016-06-16 20:11:02 +01:00
Jakub Zelenka
84948e6382
Fix occasionally failing OpenSSL DH bug test
...
The test was failing when first byte was 0
2016-06-16 20:09:17 +01:00
Christoph M. Becker
5f4113edb3
Update NEWS
2016-06-16 14:26:45 +02:00
Christoph M. Becker
8aa511f1fc
Fix #43475 : Styled thick horizontal lines are scrambled
...
Thick lines are drawn by gdImageFilledRectangle(), which iterates over
the x ordinate first (Z order) to apply the style pattern. While this works
fine for vertical and diagonal lines, it obviously fails for horizontal
lines, which have to be iterated over in N order.
To fix this bug, we introduce the helpers gdImageFilled(H|V)Rectangle(),
which may be reused for other purposes as well.
This is basically the same fix as libgd/libgd/c2b91dbc.
2016-06-16 13:59:00 +02:00
Stanislav Malyshev
7245bff300
Fix bug #72262 - do not overflow int
2016-06-15 21:58:26 -07:00
Stanislav Malyshev
88746d60ab
Fix bug #72400 and #72403 - prevent signed int overflows for string lengths
2016-06-15 21:51:28 -07:00
Derick Rethans
8267a5fba7
Fixed expected test outcome due to rule changes
2016-06-15 18:31:41 +01:00
Derick Rethans
fffa1aa0f3
Updated to version 2016.5 (2016e)
2016-06-15 11:58:47 +01:00
Nikita Popov
248fdfcf73
Maybe fix bug #72011
2016-06-14 22:37:27 +02:00
Bartosz Dziewoński
1ab5a1b432
Fix #50845 : exif_process_IFD_TAG: Use the right offset if reading from stream
...
When the location of the data is outside of the range we have
preloaded (for example, if it's before the beginning of the IFD
structure), we have to read it from the stream into a separate buffer.
The offset calculations in this case were incorrect, resulting in
bogus values being read for the affected fields (sometimes parts of
other fields, sometimes binary data).
The included test image, sourced from [1], is in the public domain.
[1] https://commons.wikimedia.org/wiki/File:U.S._Marines_Prepare_to_board_an_MV-22_Osprey_160509-M-AF202-041.jpg
2016-06-14 10:48:08 -07:00
Stanislav Malyshev
4c968c6ddd
Fix bug #72138 - Integer Overflow in Length of String-typed ZVAL
2016-06-14 01:03:03 -07:00
Stanislav Malyshev
489fd56fe3
Fix bug #72275 : don't allow smart_str to overflow int
2016-06-14 00:02:17 -07:00
Stanislav Malyshev
a44c89e8af
Fix bug #72340 : Double Free Courruption in wddx_deserialize
2016-06-12 23:18:23 -07:00
Anatol Belski
93e8f59aab
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
update NEWS
Fix #66387 : Stack overflow with imagefilltoborder
Skip test which is 64bits only
5.5.37 now
2016-06-13 08:15:31 +02:00
Anatol Belski
6f73079ce1
update NEWS
2016-06-13 08:12:22 +02:00
Christoph M. Becker
f96ebb0986
Fix #66387 : Stack overflow with imagefilltoborder
...
The stack overflow is caused by the recursive algorithm in combination with a
very large negative coordinate passed to gdImageFillToBorder(). As there is
already a clipping for large positive coordinates to the width and height of
the image, it seems to be consequent to clip to zero also.
2016-06-13 08:10:36 +02:00
Stanislav Malyshev
d144590d38
Fix bug #72321 - use efree() for emalloc allocation
2016-06-12 21:35:13 -07:00
Jakub Zelenka
0e2447cd11
Fix bug #71915 (openssl_random_pseudo_bytes is not fork-safe)
...
Add time to the entropy before using RAND_bytes
2016-06-12 18:14:21 +01:00
Jakub Zelenka
54310d95f9
Fix bug #72336 (openssl_pkey_new does not fail for invalid DSA params)
2016-06-12 18:14:21 +01:00
Jakub Zelenka
4056edd20d
Update openssl_error_string to run and be more forgiving
2016-06-12 18:14:21 +01:00
Christoph M. Becker
1f7cc24df7
Merge branch 'pull-request/1930' into PHP-5.6
2016-06-09 15:28:58 +02:00
Ferenc Kovacs
0307315769
5.6.23RC1
2016-06-09 10:54:35 +02:00
Ferenc Kovacs
c26097c2f1
5.6.24 will be next
2016-06-09 10:51:02 +02:00
Jakub Zelenka
05033c9ebd
Fix bug #72140 (segfault after calling ERR_free_strings())
2016-06-08 18:21:39 +01:00
Pierre Joye
6d3fa654b7
prevent invalid color index (palette only), may lead to crash
2016-06-08 11:06:48 +07:00
Lior Kaplan
62f9d1e3ae
Add CVE to #66387
2016-06-07 21:45:24 +03:00
Anatol Belski
1d0f128351
add missing NEWS entry
2016-06-07 18:41:17 +02:00
Pierre Joye
f80125950c
#72337 invalid dimensions can lead to segv
2016-06-07 17:16:40 +07:00
Anatol Belski
2a0ed8a2eb
Add test for bug #53735
2016-06-06 21:06:06 +02:00
Anatol Belski
eaef8f6db2
fix typo
2016-06-06 08:56:40 +02:00
Anatol Belski
1b2afd478b
fix broken skipif and add xfail for now
2016-06-06 08:20:01 +02:00
Anatol Belski
c05b417718
missing return
2016-06-06 07:28:12 +02:00
Jakub Zelenka
d4615d1118
Add new test for openssl_pkey_new
2016-06-05 17:27:47 +01:00
Jakub Zelenka
497fe33d6f
Add test for openssl_error_string
...
This test is important for making sure that the error strings
from OpenSSL works as expected and we can safely add a fix
for storing the strings that is prepared.
2016-06-05 17:23:05 +01:00
Jakub Zelenka
5e9f387175
Remove openssl_x509_parse for OpenSSL 0.9.x
...
The test is unstable and it actually fails with latest 0.9.8
2016-06-05 16:28:50 +01:00
Raphaël Tournoy
1dfdae6de4
fix typo
2016-06-03 17:18:14 +02:00
Anatol Belski
2004c25790
update NEWS
2016-06-02 12:18:33 +02:00
Anatol Belski
22336db97f
Fixed bug #70484 selectordinal doesn't work with named parameters
2016-06-02 12:17:42 +02:00
Elizabeth Marie Smith
72c9324d70
Fix ODBC bug for varchars returning with length zero
2016-06-02 12:04:10 +02:00
Ferenc Kovacs
6e5958e37d
update NEWS
2016-05-26 03:05:06 +02:00
Adam Harvey
54eb659032
Fix typo in phpdbg help.
...
Sorry, I would have included this in the last push had I spotted it a
minute earlier.
2016-05-25 12:47:35 -05:00
Adam Harvey
e623e91e27
Add missing newlines to phpdbg's help for the run command.
...
This is not at all related to needing screenshots for a talk I'm giving
in two days. No sir. Not at all.
2016-05-25 12:38:41 -05:00
Remi Collet
4dd03651f3
Skip test which is 64bits only
...
Diff from test output
001+ Warning: fread(): Length parameter must be greater than 0 in ...
001- Warning: fread(): Length parameter must be no more than 2147483647 in ...
2016-05-25 16:40:52 +02:00
Remi Collet
ce932f6479
Skip test which is 64bits only
...
Diff from test output
001+ Warning: fread(): Length parameter must be greater than 0 in ...
001- Warning: fread(): Length parameter must be no more than 2147483647 in ...
2016-05-25 16:17:12 +02:00
Julien Pauli
0c84740450
5.5.37 now
2016-05-25 11:37:58 +02:00
Anatol Belski
65a2c451bb
fix test portability
2016-05-25 11:19:19 +02:00
Stanislav Malyshev
2464b092eb
Merge branch 'PHP-5.6.22' into PHP-5.6
...
* PHP-5.6.22:
Fix memory leak in imagescale()
Update NEWS
Better fix for bug #72135
Fixed bug #72227 : imagescale out-of-bounds read
Fix bug #72241 : get_icu_value_internal out-of-bounds read
Fix bug #72135 - don't create strings with lengths outside int range
prepare for 5.6.22RC1
Add check for string overflow to all string add operations
Fix bug #72114 - int/size_t confusion in fread
Updated NEWS
Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream()
Conflicts:
configure.in
main/php_version.h
2016-05-24 17:21:22 -07:00
Stanislav Malyshev
544940c48a
Merge branch 'PHP-5.5' into PHP-5.6.22
...
* PHP-5.5:
Fix memory leak in imagescale()
Update NEWS
Better fix for bug #72135
Fixed bug #72227 : imagescale out-of-bounds read
Fix bug #72241 : get_icu_value_internal out-of-bounds read
Fix bug #72135 - don't create strings with lengths outside int range
Add check for string overflow to all string add operations
Fix bug #72114 - int/size_t confusion in fread
Updated NEWS
Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream()
Conflicts:
Zend/zend_operators.c
ext/phar/dirstream.c
ext/phar/tests/bug71331.phpt
2016-05-24 16:56:36 -07:00
Stanislav Malyshev
9a826a3bd9
Fix memory leak in imagescale()
2016-05-24 16:12:01 -07:00
Stanislav Malyshev
f423e1bb89
Update NEWS
2016-05-24 15:56:02 -07:00
Stanislav Malyshev
e955913115
Better fix for bug #72135
2016-05-24 15:52:15 -07:00
Stanislav Malyshev
7a1aac3343
Fixed bug #72227 : imagescale out-of-bounds read
...
Ported from https://github.com/libgd/libgd/commit/4f65a3e4eedaffa1efcf9ee1eb08f0b504fbc31a
2016-05-23 00:34:35 -07:00
Stanislav Malyshev
97eff7eb57
Fix bug #72241 : get_icu_value_internal out-of-bounds read
2016-05-22 17:49:02 -07:00
Derick Rethans
f43f6fc39b
Fixed bug #63740 (strtotime seems to use both sunday and monday as start of week)
2016-05-18 12:19:11 +01:00
Stanislav Malyshev
0da8b8b801
Fix bug #72135 - don't create strings with lengths outside int range
2016-05-15 23:26:51 -07:00
Ferenc Kovacs
fe6af26e2d
prepare for 5.6.22RC1
2016-05-11 23:34:15 +02:00
Ferenc Kovacs
0815f7f755
prepare for 5.6.22RC1
2016-05-11 23:30:04 +02:00
Ferenc Kovacs
89e4862e5f
add missing NEWS entry
2016-05-11 23:29:23 +02:00
Anatol Belski
6b63d80a7a
fix handle leak
2016-05-10 19:59:48 +02:00
Dmitry Stogov
90f43caf5b
The "flock" structure has to be writable on AIX.
2016-05-10 17:50:14 +03:00
Stanislav Malyshev
41fc3c76e9
Add check for string overflow to all string add operations
2016-05-09 22:17:20 -07:00
Stanislav Malyshev
abd159cce4
Fix bug #72114 - int/size_t confusion in fread
2016-05-09 21:55:29 -07:00
Anatol Belski
0ea2bfb30e
update NEWS
2016-05-09 18:50:40 +02:00
Anatol Belski
1cc536af5a
Revert "Backport patch for bug #71820 "
...
This reverts commit 1b632cfe83 .
This fixed bug #72151 , and reverts the fix for bug #71820 .
See also bug #50636 and #49521 for the history.
2016-05-09 17:15:40 +02:00
Anatol Belski
41b159fd11
Fixed bug #64524 Add intl.use_exceptions to php.ini-*
2016-05-08 15:09:50 +02:00
Xinchen Hui
1c7f608071
Fixed bug #72172 (zend_hex_strtod should not use strlen)
2016-05-06 23:52:06 -07:00
Anatol Belski
5351151352
add test fo rbug 71805
2016-05-03 19:09:11 +02:00
Anatol Belski
a387075954
upate libs versions
2016-05-03 18:24:35 +02:00
Julien Pauli
95ed19ae28
Updated NEWS
2016-05-02 16:52:58 +02:00
Julien Pauli
a4abd2bed9
Backport of fixed for bug #71331 - Uninitialized pointer in phar_make_dirstream()
2016-05-02 16:49:47 +02:00
Anatol Belski
20359deae6
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Update PHP 5.5 NEWS entries with CVE info
Added CVE
Updated NEWS
2016-05-01 13:18:24 +02:00
Lior Kaplan
5c571626e3
Update PHP 5.5 NEWS entries with CVE info
2016-05-01 13:14:57 +02:00
Lior Kaplan
76a5117da7
Add CVE to bug #69719 (PHP 5.6.10)
2016-04-29 13:23:41 +03:00
Lior Kaplan
eeea33db68
Add CVE IDs PHP 5.6.12
2016-04-29 13:21:35 +03:00
Lior Kaplan
26f8ee48d6
Add CVE IDs PHP 5.6.13
2016-04-29 13:19:46 +03:00
Lior Kaplan
91fd5406bc
Add CVE IDs PHP 5.6.14
2016-04-29 13:17:34 +03:00
Lior Kaplan
34fc0ec377
Add CVE to bug #70976 (PHP 5.6.17)
2016-04-29 13:16:27 +03:00
Lior Kaplan
a23ae0f436
Add CVE IDs PHP 5.6.18
2016-04-29 13:15:30 +03:00
Lior Kaplan
b8b2dd1a43
Add CVE IDs PHP 5.6.20
2016-04-29 13:11:54 +03:00
Lior Kaplan
a91c3f1dd0
Add CVE to bug #71912 (PHP 5.6.21)
2016-04-29 13:10:13 +03:00
Julien Pauli
6058b78878
Added CVE
2016-04-29 09:12:27 +02:00
Stanislav Malyshev
9649ca1630
Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream()
2016-04-28 20:57:44 +03:00
Lior Kaplan
e70fe1c42e
Add NEWS entry for bug #71331 (fixed in PHP 5.6.18)
2016-04-28 20:46:29 +03:00
Ferenc Kovacs
227e5d1153
small whitespace fix
2016-04-28 02:32:45 +02:00
Anatol Belski
0c529b3899
update NEWS
2016-04-27 14:50:46 +02:00
Anatol Belski
a21a997478
fix/improve tests
2016-04-27 13:16:57 +02:00
Julien Pauli
008f983ba6
Updated NEWS
2016-04-27 11:55:05 +02:00
Stanislav Malyshev
e315a162da
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fix memory leak
Fix bug #72099 : xml_parse_into_struct segmentation fault
5.5.36 now
Fix bug #72094 - Out of bounds heap read access in exif header processing
Fix bug #72093 : bcpowmod accepts negative scale and corrupts _one_ definition
Fix bug #72061 - Out-of-bounds reads in zif_grapheme_stripos with negative offset
Fix for bug #71912 (libgd: signedness vulnerability)
Typo in NEWS
Conflicts:
configure.in
main/php_version.h
2016-04-26 23:48:41 -07:00
Stanislav Malyshev
61c7a06e7c
Fix memory leak
2016-04-26 22:54:58 -07:00
Stanislav Malyshev
dccda88f27
Fix bug #72099 : xml_parse_into_struct segmentation fault
2016-04-26 22:46:28 -07:00
Julien Pauli
f856734c67
5.5.36 now
2016-04-26 22:34:00 +02:00
Dmitry Stogov
9f389cccfd
Fixed test on 32-bit platforms (split into 32-bit and 64-bit versions)
2016-04-26 13:43:18 +03:00
Stanislav Malyshev
082aecfc3a
Fix bug #72094 - Out of bounds heap read access in exif header processing
2016-04-24 19:33:52 -07:00
Stanislav Malyshev
d650063a04
Fix bug #72093 : bcpowmod accepts negative scale and corrupts _one_ definition
...
We can not modify result since it can be copy of _zero_ or _one_, etc. and
"copy" in bcmath is just bumping the refcount.
2016-04-24 18:33:32 -07:00
Stanislav Malyshev
fd9689745c
Fix bug #72061 - Out-of-bounds reads in zif_grapheme_stripos with negative offset
2016-04-24 13:15:17 -07:00
Adam Harvey
c4f69b6dfd
Fix ZTS builds by adding a missing TSRMLS_FETCH().
2016-04-20 18:58:29 +02:00
Stanislav Malyshev
c02301b666
Better fix for #71952
2016-04-19 23:44:00 -07:00
Stanislav Malyshev
f061867fd3
Fix bug #71952 : Corruption inside imageaffinematrixget
2016-04-18 23:33:21 -07:00
Stanislav Malyshev
b15f0ecc0f
Fix for bug #71912 (libgd: signedness vulnerability)
2016-04-18 22:24:16 -07:00
Dmitry Stogov
ffc697ac27
Prevent usage in GC after free.
2016-04-19 01:31:49 +03:00
Ferenc Kovacs
3a16f511d9
mark frequent intermittent fpm test with XFAIL
2016-04-18 09:04:27 +02:00
Ferenc Kovacs
6497d40521
prepare for 5.6.21RC1
2016-04-18 08:14:16 +02:00
Lior Kaplan
5142bf27b2
Align NEWS entry format
2016-04-15 22:07:47 +03:00
Christopher Jones
d1e81a59a7
Fix old comment cut-n-paste error
2016-04-14 15:08:42 +10:00
Christopher Jones
8f2e6da806
Fixed bug #71422 (Fix ORA-01438: value larger than specified precision allowed for this column)
2016-04-14 13:50:01 +10:00
Lior Kaplan
c1f597d9a1
opcache config.m4: Use = for comparison
2016-04-08 22:38:07 +03:00
Anatol Belski
5ed05bc686
update NEWS
2016-04-05 11:52:53 +02:00
Thomas Punt
1aea777349
Use STR_EMPTY_ALLOC macro instead
2016-04-05 11:18:14 +02:00
Thomas Punt
40f14bad33
Fix DateInterval::format segfault
2016-04-05 11:18:14 +02:00
Matteo Beccati
30925cd498
Fixed bug #71447 (Quotes inside comments not properly handled)
2016-04-04 23:50:28 +02:00
Matteo Beccati
9a87108eca
Fixed a few PDO tests to conform to PDO Common standards
2016-04-04 23:43:17 +02:00
Joe Watkins
cd038cc5eb
news entry #69537
2016-04-04 10:22:13 +01:00
Joe Watkins
14e4c610e9
Fix #69537 : __debugInfo with empty string for key gives error
2016-04-03 12:40:29 +01:00
Mark Plomer
f5f94d9c08
fix left-shifted/misaligned bounding-box + wrong kerning in imagettfbbox/imageftbbox
...
- load glyph with FT_LOAD_IGNORE_TRANSFORM for bbox as final bbox is rotated at once later (fixes "double-rotation" per glyph for calculating bbox)
- reload the rotated glyph for painting after that (only if angle != 0)
- rotate the original bbox at 0,0 and do not throw away xMin/yMin (drawing-rotation is also based at "origin" point - including the bearingX, see http://www.freetype.org/freetype2/docs/glyphs/glyphs-3.html#section-3 ) - this fixes the "left-shift"-problem also when angle = 0
- removed "xb/yb" and use "x/y" directly for offsetting brect (no need for adding "x1/y1" and substracting "yd" later)
- removed therefore unused "yd" helper var which seems tried to fix parts of the original problems
- initialize x/y with 0 instead of -1 in php_imagettftext_common() to make image*text() and image*bbox() results identical (there was a -1px shift in image*bbox() before)
- fixed gdroundupdown() for negative numbers (-256 / 64 gives -5 instead of -4 before)
- rotate kerning-delta by given angle (fixes completely wrong kerning and therefore wrong bounding box if angle != 0)
- changed 3 tests and added a new one to test for the new (better) coordinates
2016-04-03 12:11:26 +02:00
Paul Tarjan
9f25f736ed
Dont ignore errors from FT_Get_Glyph
2016-04-03 12:11:25 +02:00
Julien Pauli
8a4d164c2b
Typo in NEWS
2016-03-31 17:45:07 +02:00
Anatol Belski
a00c2b1bf5
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
fix borked mainstream patch
5.5.35 now
2016-03-31 01:36:47 +02:00
Anatol Belski
4b0b1cec00
fix borked mainstream patch
2016-03-31 01:33:38 +02:00
Anatol Belski
ed707a5217
fix test to not to cause false positives
2016-03-31 01:29:05 +02:00
Lior Kaplan
cef40c0c3f
Align NEWS entry format
2016-03-31 00:52:53 +03:00
Ferenc Kovacs
abd59c0e40
update NEWS
2016-03-30 22:28:28 +02:00
Julien Pauli
f0120ff878
5.5.35 now
2016-03-29 18:11:03 +02:00
Anatol Belski
23d0065744
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
fix dir separator in test
2016-03-29 14:19:35 +02:00
Anatol Belski
551423c642
fix dir separator in test
2016-03-29 14:18:25 +02:00
Anatol Belski
5272184a1e
Fixed bug #71527 Buffer over-write in finfo_open with malformed magic file
...
The actual fix is applying the upstream patch from
https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36
2016-03-29 13:11:25 +02:00
Anatol Belski
84990ab346
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fixed bug #71527 Buffer over-write in finfo_open with malformed magic file
2016-03-29 13:11:17 +02:00
Anatol Belski
fe13566c93
Fixed bug #71527 Buffer over-write in finfo_open with malformed magic file
...
The actual fix is applying the upstream patch from
https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36
2016-03-29 13:10:39 +02:00
Stanislav Malyshev
cc7631dd08
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fixed bug #71704 php_snmp_error() Format String Vulnerability
2016-03-28 23:45:15 -07:00
Anatol Belski
9c19a08b9d
Fixed bug #71704 php_snmp_error() Format String Vulnerability
...
Conflicts:
ext/snmp/snmp.c
2016-03-28 23:42:19 -07:00
Stanislav Malyshev
a18b1f74fa
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fixed bug #71906 : AddressSanitizer: negative-size-param (-1) in mbfl_strcut
2016-03-28 23:30:14 -07:00
Stanislav Malyshev
3dd82caf57
Merge branch 'PHP-5.5.34' into PHP-5.5
...
* PHP-5.5.34:
Fixed bug #71906 : AddressSanitizer: negative-size-param (-1) in mbfl_strcut
2016-03-28 23:29:45 -07:00
Stanislav Malyshev
62da5cdf3d
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fixed bug #71906 : AddressSanitizer: negative-size-param (-1) in mbfl_strcut
Fix bug #71798 - Integer Overflow in php_raw_url_encode
Fix bug #71860 : Require valid paths for phar filenames
Going for 5.5.34
Conflicts:
configure.in
ext/phar/tests/create_path_error.phpt
main/php_version.h
2016-03-28 23:21:15 -07:00
Stanislav Malyshev
f8dd10508b
Fixed bug #71906 : AddressSanitizer: negative-size-param (-1) in mbfl_strcut
2016-03-28 23:15:16 -07:00
Stanislav Malyshev
64f42c73ef
Fixed bug #71906 : AddressSanitizer: negative-size-param (-1) in mbfl_strcut
2016-03-28 01:22:37 -07:00
Stanislav Malyshev
95433e8e33
Fix bug #71798 - Integer Overflow in php_raw_url_encode
2016-03-27 14:22:19 -07:00
Nikita Popov
54da966883
Fixed bug #67512
2016-03-25 20:18:46 +01:00
Derick Rethans
c4681ec8e1
Updated to version 2016.3 (2016c)
2016-03-24 11:09:05 +00:00
Julien Pauli
abbe1551d6
Updated NEWS
2016-03-21 15:26:21 +01:00
Julien Pauli
d3d64b7c62
Reworked Fix bug #52098
2016-03-21 15:23:18 +01:00
Daniel Persson
e541cd8e6b
Fix bug #52098
2016-03-21 15:04:11 +01:00
Xinchen Hui
c9c8e70463
Update NEWS for efacdc3
2016-03-21 16:43:30 +08:00
Xinchen Hui
056459dc9d
Merge branch 'PHP-5.6' of https://github.com/msierks/php-src into PHP-5.6
...
* 'PHP-5.6' of https://github.com/msierks/php-src :
FIX #71831 : CURLOPT_NOPROXY applied as long instead of string
2016-03-21 16:39:22 +08:00
Stanislav Malyshev
72281f29dd
Fix bug #71860 : Require valid paths for phar filenames
2016-03-20 21:33:11 -07:00
Nikita Popov
cc3cdd0057
Fixed bug #67582
2016-03-20 17:46:12 +01:00
Michael Sierks
efacdc3511
FIX #71831 : CURLOPT_NOPROXY applied as long instead of string
...
The CURLOPT_NOPROXY option value is converted to a long before
being applied as a curl option. This causes the option to have
no effect. This patch changes this conversion to a string.
2016-03-18 07:29:01 -05:00
Anatol Belski
b8c9c92d44
fix and update NEWS
2016-03-17 19:02:08 +01:00
Anatol Belski
1b632cfe83
Backport patch for bug #71820
...
Rev b4eedd128b
2016-03-17 14:28:58 +01:00
Xinchen Hui
eb405623ec
Merge branch 'PHP-5.6' of git.php.net:/php-src into PHP-5.6
...
* 'PHP-5.6' of git.php.net:/php-src:
fix NEWS
NEWS
Fix Bug #63171 Script hangs after max_execution_time
2016-03-17 21:27:23 +08:00
Remi Collet
b5b1ba850a
fix NEWS
2016-03-17 13:53:42 +01:00
Remi Collet
d513b4cde5
NEWS
2016-03-17 13:40:42 +01:00
Remi Collet
407ad28ae5
Fix Bug #63171 Script hangs after max_execution_time
...
If aborted via timer expiration, don't try to call any unixODBC function
which may hangs because of internal locks
2016-03-17 13:38:45 +01:00
Xinchen Hui
8e2f658f49
Fixed bug #71843 (null ptr deref ZEND_RETURN_SPEC_CONST_HANDLER)
2016-03-17 19:54:19 +08:00
Xinchen Hui
6d4aec029a
Fixed test script
2016-03-17 17:06:56 +08:00
Xinchen Hui
ead7632cf9
Fixed test script
2016-03-17 15:23:44 +08:00
Xinchen Hui
5546f8be56
Fixed bug #71841 (EG(error_zval) is not handled well)
2016-03-17 15:16:47 +08:00
Xinchen Hui
6f241f5fad
Fixed bug #71840 (Unserialize accepts wrongly data)
2016-03-17 15:15:28 +08:00
Ferenc Kovacs
14f4848fb0
prepare for 5.6.20RC1
2016-03-17 01:46:00 +01:00
Remi Collet
478c807128
fix #ifdef usage
2016-03-16 07:17:49 +01:00
Derick Rethans
ddc62f2e8b
Updated to version 2016.2 (2016b)
2016-03-15 09:14:09 +00:00
Anatol Belski
73b9941622
update libs versions
2016-03-15 09:41:34 +01:00
Anatol Belski
beda05269c
fix test
...
Many warnings won't appear with libxml2 >= 2.9.3 because in many
cases libxml2 2.9.3 will just abort processing.
2016-03-14 15:53:02 +01:00
Anatol Belski
9d02e3b97e
update NEWS
2016-03-11 14:22:11 +01:00
Thomas Punt
f3f5a07aa5
Fix DatePeriod::getEndDate() segfault
2016-03-11 14:08:48 +01:00
Anatol Belski
8cd903ea68
fix error condition, part of bug #71753
2016-03-10 11:35:50 +01:00
Xinchen Hui
67f0770036
tsrm_win32_get_path_sid_key might returns NULL (Partially fix bug #71752 )
...
cherry-picked from 7d5f71b0b1
2016-03-10 09:33:39 +01:00
Xinchen Hui
915a3762ef
Fixed typo (partially fix for #71753 )
2016-03-10 15:22:34 +08:00
Anatol Belski
a1d1f54b42
fix directory separator
2016-03-09 14:16:29 +01:00
Anatol Belski
8ca02bb233
fix regression introduced in 5683b6fa39
...
Test extended. Basically, both iterator type and next node have
to be checked.
2016-03-08 12:59:59 +01:00
Christoph M. Becker
2d4ad66ff2
Fixed bug #69953
...
Added support for MKCALENDAR request method in CLI web server.
2016-03-03 19:22:38 +01:00
Anton Blanchard
ccd215a517
Additional improvements to crypt() detection code
...
Reformat to normalize tabs vs spaces, return 1 if crypt.h not
defined, fix C99 compliance.
2016-03-03 17:28:34 +01:00
Michael Orlitzky
08fce8e2c5
ext/standard/config.m4: fix crypt() test segfaults in >=glibc-2.17.
...
Starting with glibc-2.17, the crypt() function will report an EINVAL
and return NULL when the format of the "salt" parameter is
invalid. The current tests for crypt() pass its result to strcmp(),
causing segfaults when the value returned from crypt() is NULL.
This commit modifies the test programs to exit with failure when
crypt() returns NULL.
Reference: https://bugs.gentoo.org/show_bug.cgi?id=518964
2016-03-03 17:12:57 +01:00
Nikita Popov
bdd578fcbb
Disable upload_2G test on travis
2016-03-03 16:35:45 +01:00
Anatol Belski
2399c64eaf
show correct MINFO with libpq >= 9.5.x
2016-03-02 17:03:20 +01:00
Julien Pauli
914d33c40e
Going for 5.5.34
2016-03-02 11:02:42 +01:00
Stanislav Malyshev
b3bb1aacfe
Merge branch 'PHP-5.6.19' into PHP-5.6
...
* PHP-5.6.19:
fix test file
Fix version
Update NEWS
2016-03-01 22:56:08 -08:00
Stanislav Malyshev
6e6a556b8c
Merge branch 'PHP-5.5' into PHP-5.6.19
...
* PHP-5.5:
fix test file
Fix version
Update NEWS
2016-03-01 22:55:49 -08:00
Stanislav Malyshev
3c8ccdd9d3
fix test file
2016-03-01 22:55:02 -08:00
Stanislav Malyshev
54df59b729
Fix version
2016-03-01 22:47:27 -08:00
Stanislav Malyshev
ae3f132be1
Merge branch 'PHP-5.6.19' into PHP-5.6
...
* PHP-5.6.19:
update NEWS
Fix bug #71498 : Out-of-Bound Read in phar_parse_zipfile()
fix ts buld
prep for 5.6.19RC1
Fixed bug #71587 - Use-After-Free / Double-Free in WDDX Deserialize
2016-03-01 22:42:16 -08:00
Stanislav Malyshev
a0bbac550e
update NEWS
2016-03-01 22:41:10 -08:00
Stanislav Malyshev
91990bbde0
Merge branch 'PHP-5.5.33' into PHP-5.6.19
...
* PHP-5.5.33:
Fix bug #71498 : Out-of-Bound Read in phar_parse_zipfile()
Fixed bug #71587 - Use-After-Free / Double-Free in WDDX Deserialize
2016-03-01 22:40:00 -08:00
Stanislav Malyshev
153a44d6bb
Update NEWS
2016-03-01 22:37:23 -08:00
Xinchen Hui
20add1e530
Merge branch 'PHP-5.6-bug_69757' of https://github.com/wayfair/php-src into PHP-5.6
...
* 'PHP-5.6-bug_69757' of https://github.com/wayfair/php-src :
limit size of result set so unit test runs reliably
2016-03-02 14:26:34 +08:00
Nikita Popov
471540d285
Fix intermittent failure of bug_68819_002.phpt
...
The test used rand(32, 127) to select the character, however
chr(127) results in "data" instead of the expected result, so this
test would fail in something like 1% of the runs.
Replace rand() with fixed character "a".
2016-03-02 00:34:36 +01:00
mpyw
0bbea60524
Fix bug #71694
...
Exports contants CURLM_ADDED_ALREADY.
2016-03-01 23:31:58 +01:00
Adam Baratz
2e18d438b0
limit size of result set so unit test runs reliably
2016-03-01 17:15:36 -05:00
Jos Elstgeest
50b4cafd28
Fixed bugs #71317 and #71504
...
If there are duplicate filenames in tar, the last one wins.
2016-02-29 22:34:35 +01:00
Anatol Belski
d78220fb2c
add test for bug #68957
2016-02-29 18:43:03 +01:00
Anatol Belski
c49d9f0684
update NEWS
2016-02-29 18:25:16 +01:00
Anatol Belski
53c036b30b
Fixed #54648 PDO::MSSQL forces format of datetime fields
...
adopted patch by steven dot lambeth at gmx dot de
2016-02-29 17:04:49 +01:00
Anatol Belski
7816698580
remove unneeded free parts
...
See bug #71667 , free_statement already does the job
2016-02-29 16:26:46 +01:00
Anatol Belski
d7fd614cc6
fix leaks and add one more NULL check
2016-02-29 15:38:42 +01:00
Anatol Belski
a310c3b484
add NULL check
2016-02-29 15:26:57 +01:00
Anatol Belski
efaafd45b4
fix C89 compat
2016-02-29 15:24:31 +01:00
Anatol Belski
35be4398d1
fix arg type
2016-02-29 15:23:53 +01:00
Anatol Belski
7d7325246c
update NEWS
2016-02-24 11:56:12 +01:00
Anatol Belski
90ad6e3c6c
add test for bug #47803
2016-02-24 11:49:02 +01:00
Anatol Belski
ff115e285a
Fixed bug #47803
...
Executing prepared statements is succesfull only for the first two statements
The reworked patch descends to the bug #69526 which is fixed by
this as well. The broken logic in the current code was, that
SQLDescribeParam was executed in odbc_execute every time. This piece
is now moved into odbc_prepare and the results are carried on in an
additional structure.
Since the ext/odbc headers are not being currently installed and the
corresponding structs like odbc_result are not used outside ext/odbc,
the binary compatibility persists. Executing SQLDescribeParam only once
in odbc_prepare is also an optimization as the filds usually won't
change that fast and thus requestind the descriptions on every
execution is not required.
2016-02-24 11:40:35 +01:00
Anatol Belski
9623d2dd83
make ext/odbc test credentials configurable
2016-02-23 14:21:04 +01:00
Remi Collet
d20f1d8f1f
cleanup $Id
2016-02-22 09:26:00 +01:00
Stanislav Malyshev
a6fdc5bb27
Fix bug #71498 : Out-of-Bound Read in phar_parse_zipfile()
2016-02-21 16:51:05 -08:00
Anatol Belski
bbce94ed78
update NEWS
2016-02-18 19:42:18 +01:00
Anatol Belski
688b914217
add test for bug #71625
2016-02-18 19:38:39 +01:00
Anatol Belski
0445abd547
Fixed bug #71625 Crash in php7.dll with bad phar filename
2016-02-18 19:32:08 +01:00
Anatol Belski
f613d89501
update NEWS
2016-02-18 19:16:39 +01:00
Anatol Belski
632fc51d98
Bug #71596 Segmentation fault on ZTS with date function (setlocale)
2016-02-18 19:13:07 +01:00
Anatol Belski
68a51ae953
fix ts buld
2016-02-18 10:31:24 +01:00
Anatol Belski
a329dc70e9
fix ts buld
2016-02-18 07:11:36 +01:00
Ferenc Kovacs
c3eeb8092a
prep for 5.6.19RC1
2016-02-18 01:26:18 +01:00
Ferenc Kovacs
4762ed4d27
5.6.20 is next
2016-02-18 00:31:18 +01:00
Anatol Belski
343307000e
yet two test fixes in openssl in 5.6
2016-02-16 08:28:10 +01:00
Anatol Belski
974dea5e88
improve test
2016-02-16 08:05:16 +01:00
Anatol Belski
11102e2653
Fix timelib compat with PHP5
...
Windows builds in PHP5 are always using long which is 32-bit even
in 64-bit build. Thus in PHP5, timelib_long and the company have
to always evaluate to a 32-bit.
2016-02-15 16:50:42 +01:00
Anatol Belski
633fb2d0e8
Backported fix for bug #71525
2016-02-15 15:14:23 +01:00
Stanislav Malyshev
c11b23c465
Fix bug #71540 - NULL pointer dereference in xsl_ext_function_php()
2016-02-15 00:08:18 -08:00
Anatol Belski
a3927fa7f5
fix dir separator in test
2016-02-15 08:58:20 +01:00
Anatol Belski
199c0ec48d
fix NEWS entry
2016-02-15 08:25:23 +01:00
Stanislav Malyshev
b1bd4119bc
Fixed bug #71587 - Use-After-Free / Double-Free in WDDX Deserialize
2016-02-14 22:34:39 -08:00
Xinchen Hui
2b850e1565
Update NEWS: "Fixed bug #71584 (Possible use-after-free of ZCG(cwd) in Zend Opcache)"
2016-02-15 10:31:37 +08:00
Xinchen Hui
5e152f54ae
Merge branch 'PHP-5.6' of git.php.net:/php-src into PHP-5.6
...
* 'PHP-5.6' of git.php.net:/php-src:
update NEWS
Fixed bug #71559 Built-in HTTP server, we can downlaod file in web by bug
Check length of string before comparing to :memory:
Fix bounds check in strip_tags()
Fix test description
FIx bug #71569
2016-02-15 10:29:28 +08:00
Anatol Belski
aa10fc6092
update NEWS
2016-02-14 20:52:47 +01:00
Anatol Belski
ce4a2f0fc6
Fixed bug #71559 Built-in HTTP server, we can downlaod file in web by bug
2016-02-14 20:47:23 +01:00
Nikita Popov
fece24f8f4
Check length of string before comparing to :memory:
2016-02-13 18:01:50 +01:00
Nikita Popov
4e0134c661
Fix bounds check in strip_tags()
2016-02-13 17:47:30 +01:00
Nikita Popov
adcdb4f7ba
Fix test description
2016-02-13 17:46:24 +01:00
Nikita Popov
bc419fee5c
FIx bug #71569
...
convert_to_string() may result in an interned string.
2016-02-13 15:17:51 +01:00
Yussuf Khalil
35f6f9b0db
Fix use-after-free of ZCG(cwd) in Zend Optimizer
2016-02-10 10:33:57 +01:00
Xinchen Hui
c339d5217a
Merge branch 'PHP-5.6' of git.php.net:/php-src into PHP-5.6
2016-02-09 23:33:30 +08:00
Xinchen Hui
f45752eb83
Fixed bug #71561 (NULL pointer dereference in Zip::ExtractTo)
2016-02-09 23:32:20 +08:00
Lior Kaplan
6772fbff62
Align spacing in make install messages
2016-02-08 20:27:19 +02:00
Lior Kaplan
879671aeae
Add entry for re-fix of #70976 in commit 14e4d393
2016-02-07 20:19:31 +02:00
Xinchen Hui
5fdfab743d
Fixed bug #71523 (Copied handle with new option CURLOPT_HTTPHEADER crashes while curl_multi_exec)
2016-02-05 19:49:26 +08:00
Lior Kaplan
8442a1cc4e
Align NEWS entry format
2016-02-05 00:50:25 +02:00
Ferenc Kovacs
8c1c12a2e2
update NEWS
2016-02-04 20:40:54 +01:00
Jakub Zelenka
feab5e6fa0
Split and clean up OpenSSL X509 tests
2016-02-04 16:51:36 +00:00
Jakub Zelenka
1f3906c1ce
Rename and clean up OpenSSL tests
2016-02-03 16:20:27 +00:00
Ferenc Kovacs
e0332ea1a9
update NEWS
2016-02-03 01:07:34 +01:00
Julien Pauli
ed80ca00f4
Updated NEWS
2016-02-02 18:14:57 +01:00
Julien Pauli
6b0b29edd6
Fix #70720
2016-02-02 18:09:54 +01:00
Anatol Belski
b837f205ca
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
add error check to sysconf call
Going for 5.5.33 now
Conflicts:
configure.in
main/php_version.h
2016-02-02 14:22:31 +01:00
Anatol Belski
377d353c9f
add error check to sysconf call
2016-02-02 14:19:10 +01:00
Derick Rethans
43fee6c6a1
Updated to version 2016.1 (2016a)
2016-02-02 10:34:03 +00:00
Julien Pauli
7d875fb9df
Going for 5.5.33 now
2016-02-02 10:42:49 +01:00
Anatol Belski
bf974312d1
update libs version
2016-02-02 09:02:12 +01:00
Stanislav Malyshev
41be90d95b
Merge branch 'PHP-5.6.18' into PHP-5.6
...
* PHP-5.6.18:
fix tests
fix NEWS
Update NEWS
update NEWS
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()
prepare 5.6.18RC1
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()
Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream()
Fix bug #71335 : Type Confusion in WDDX Packet Deserialization
Fix bug #71354 - remove UMR when size is 0
Conflicts:
configure.in
main/php_version.h
2016-02-01 19:16:34 -08:00
Stanislav Malyshev
24167095a5
Merge branch 'PHP-5.5' into PHP-5.6.18
...
* PHP-5.5:
fix tests
fix NEWS
update NEWS
2016-02-01 19:15:19 -08:00
Stanislav Malyshev
2a7d8c0a06
fix tests
2016-02-01 18:58:02 -08:00
Stanislav Malyshev
e7051cb47a
fix NEWS
2016-02-01 18:47:56 -08:00
Stanislav Malyshev
20c38facfd
Update NEWS
2016-02-01 18:47:28 -08:00
Stanislav Malyshev
0d86a98c31
update NEWS
2016-02-01 18:44:33 -08:00
Stanislav Malyshev
309ead112f
Merge branch 'PHP-5.5.32' into PHP-5.6.18
...
* 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
2016-02-01 18:32:31 -08:00
Stanislav Malyshev
2f1ce4f209
Merge branch 'PHP-5.5' into PHP-5.6.18
...
* PHP-5.5:
Upgrade bundled PCRE to 8.38
Fixed NEWS file entry
fix the fix for bug #70976 (imagerotate)
2016-02-01 18:32:14 -08:00
Stanislav Malyshev
5bde5a0a2e
Merge remote-tracking branch 'origin/PHP-5.6.18' into PHP-5.6.18
...
* origin/PHP-5.6.18:
prepare 5.6.18RC1
Fix test when run with openssl < 1.0.2 (reorder so no more SSLv2 message) Fix skip message to work
improve fix for bug #71201
fork test
fix test
fork test
fork test for win32
fork test
Use SUCCESS/FAILURE
Fixed bug #65720 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c:281: bad if test
Fix header file include
Fixed bug #69111 (Crash in SessionHandler::read()). Made session save handler abuse much harder than before.
2016-02-01 18:31:57 -08:00
Stanislav Malyshev
b5ef8ed168
Merge branch 'PHP-5.5' into PHP-5.5.32
...
* PHP-5.5:
Upgrade bundled PCRE to 8.38
Fixed NEWS file entry
2016-02-01 18:28:49 -08:00
Anatol Belski
a01fd45d15
fix extensions path for nmake install
2016-02-01 15:38:53 +01:00
Stanislav Malyshev
00788f9cfb
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Upgrade bundled PCRE to 8.38
Fixed NEWS file entry
fix the fix for bug #70976 (imagerotate)
2016-01-31 21:06:31 -08:00
Stanislav Malyshev
ca02d9c2d6
Upgrade bundled PCRE to 8.38
2016-01-31 20:37:47 -08:00
Stanislav Malyshev
07c7df68bd
Fixed bug #71488 : Stack overflow when decompressing tar archives
2016-01-31 19:37:56 -08:00
Jakub Zelenka
ef356912b3
Rewrite OpenSSL SPKI tests to speed them up
...
Also fix some CS issue and naming
2016-01-31 14:28:13 +00:00
Jakub Zelenka
e93ab05489
Add private RSA keys with 2048 and 4096 bit long modulus
2016-01-31 13:57:00 +00:00
Jakub Zelenka
148d013323
Rename private.key to private_rsa_1024.key
2016-01-31 13:54:16 +00:00
Anatol Belski
6cc1c962f7
remove NEWS entry
2016-01-29 20:40:27 +01:00
Anatol Belski
b7dadfae87
add XFAIL
2016-01-29 20:36:11 +01:00
Anatol Belski
40b9f52c2c
Revert "fix leak in 5.6"
...
This reverts commit fa548e5ca9 .
2016-01-29 20:33:39 +01:00
Derick Rethans
deba5275eb
Added entry to NEWS
2016-01-29 15:34:36 +01:00
Derick Rethans
1a86825688
Use the new timelib function for comparing times
2016-01-29 15:28:11 +01:00
Willem-Jan
2aeef4e539
Test + support for negative timestamps with microtime
2016-01-29 15:22:22 +01:00
Willem-Jan
1bbbc47e79
Also test against equality
2016-01-29 15:22:22 +01:00
Willem-Jan
5879721936
Compare agaist fraction when sse are equal
2016-01-29 15:22:22 +01:00
Willem-Jan
a0237259e9
Added test for comparing dates with microseconds
2016-01-29 15:22:22 +01:00
Derick Rethans
822ca45220
Merge in changes in timelib 2016.01
2016-01-29 15:21:55 +01:00
Anatol Belski
fa548e5ca9
fix leak in 5.6
2016-01-29 13:56:11 +01:00
Anatol Belski
4b0feeb8fa
add test for bug #69111
2016-01-29 12:27:35 +01:00
Anatol Belski
efb667e683
update NEWS
2016-01-29 11:27:44 +01:00
Anatol Belski
25108babdb
refix bug #69111 , crash in 5.6 only
2016-01-29 11:24:19 +01:00
Remi Collet
a81cb64a96
NEWS
2016-01-29 10:23:42 +01:00
Remi Collet
07d2dcdf09
Fixed Bug #62172 FPM not working with Apache httpd 2.4 balancer/fcgi setup
...
Only needed with Apache version < 2.4.12 (ex RHEL-7)
2016-01-29 10:20:42 +01:00
Anatol Belski
8ee1ae9748
update NEWS
2016-01-29 08:41:25 +01:00
Anatol Belski
ae6e139c77
reset the ext/session to the state of 5.6.17
2016-01-29 08:33:09 +01:00
Anatol Belski
a1c675e3f2
update NEWS
2016-01-28 13:57:44 +01:00
Anatol Belski
686a17893a
add missing headers for SIZE_MAX
2016-01-28 13:46:34 +01:00
Anatol Belski
f4d7bbf4ac
backport the escapeshell* functions hardening branch
2016-01-28 13:45:43 +01:00
Anatol Belski
828364e59c
add tests
2016-01-28 13:27:26 +01:00
Julien Pauli
df78eacc2f
Fixed NEWS file entry
2016-01-28 12:47:53 +01:00
Stanislav Malyshev
54c210d2ea
Fix bug #71459 - Integer overflow in iptcembed()
2016-01-26 17:26:52 -08:00
Jakub Zelenka
a63d0f55da
Fix memory leak with not freeing OpenSSL errors
2016-01-25 16:50:16 +00:00
Xinchen Hui
47e7662a13
Update libmagic.patch for PHP-5.6
2016-01-25 11:25:04 +08:00
Xinchen Hui
a458a4fdc1
Fixed bug #7143 (finfo throws notice for specific python file)
...
There seems be a bug while it was changed from regexec to
preg_match_impl:
https://github.com/php/php-src/commit/46906925#diff-56e765972d18c84894ea061cfe58076aR1757
2016-01-25 11:24:44 +08:00
Ferenc Kovacs
848de651a2
re-arrange NEWS
2016-01-21 02:24:51 +01:00
Ferenc Kovacs
b2d5666d94
prepare 5.6.18RC1
2016-01-21 02:24:05 +01:00
Ferenc Kovacs
a4fc2e1eb2
5.6.19 will be next
2016-01-20 15:39:05 +01:00
Remi Collet
3c8f287d58
Fix test when run with openssl < 1.0.2 (reorder so no more SSLv2 message)
...
Fix skip message to work
2016-01-20 13:08:58 +01:00
Anatol Belski
508d1dae25
improve fix for bug #71201
2016-01-20 09:44:28 +01:00
Anatol Belski
fa0dd6006d
fork test
2016-01-18 16:59:17 +01:00
Anatol Belski
5673ede6e9
fix test
2016-01-18 16:52:48 +01:00
Anatol Belski
adf0be7680
fork test
2016-01-18 16:45:35 +01:00
Anatol Belski
f0e2fe8e75
fork test for win32
2016-01-18 16:37:04 +01:00
Anatol Belski
f0b02f2351
fork test
2016-01-18 16:34:20 +01:00
Yasuo Ohgaki
ee1dd4949a
Use SUCCESS/FAILURE
2016-01-18 13:33:47 +09:00
Yasuo Ohgaki
f9c595f3c0
Fixed bug #65720 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c:281: bad if test
2016-01-18 10:54:07 +09:00
Stanislav Malyshev
6297a117d7
Fixed bug #71323 - Output of stream_get_meta_data can be falsified by its input
2016-01-16 22:10:54 -08:00
Stanislav Malyshev
1c1b8b6998
Fix bug #71391 : NULL Pointer Dereference in phar_tar_setupmetadata()
2016-01-16 20:43:43 -08:00
Jason Young
d1401f6059
Fix header file include
2016-01-15 08:43:00 +01:00
Stanislav Malyshev
4c2424eb24
Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream()
2016-01-14 22:58:40 -08:00
Yasuo Ohgaki
bfb9307b2d
Fixed bug #69111 (Crash in SessionHandler::read()).
...
Made session save handler abuse much harder than before.
2016-01-15 15:50:14 +09:00
Yasuo Ohgaki
d7f8d9e3a9
Fix typo
2016-01-15 15:21:18 +09:00
Yasuo Ohgaki
31ae802736
Fix uninitialized read in rfc1867 handler reported by valgrind. Only in PHP 5.6.
...
This commit fixes initialized read, but calling php_session_initialize() directly
is problematic because configuration could be invalid. Invalid config may result
in segfault. This will be addressed later.
2016-01-15 15:18:00 +09:00
Yasuo Ohgaki
8c37a086c7
Improved fix for bug #68063 (Empty session IDs do still start sessions).
2016-01-15 09:45:08 +09:00
Anatol Belski
c126725a7f
update NEWS
2016-01-14 17:47:17 +01:00
Anatol Belski
4308c868f9
Fixed bug #70979 crash with bad soap request
...
The error handler is overloaded with the SOAP one. However the SOAP
handler eventually wants to access some of its globals. This won't
work as long as the SOAP globals aren't initialized. The use case
is when an error is thrown before RINIT went through. As the call
order is arbitrary, the safest is to wait when all the modules
called their RINIT.
2016-01-14 17:42:28 +01:00
Stanislav Malyshev
285cd3417f
Fix bug #71335 : Type Confusion in WDDX Packet Deserialization
2016-01-13 16:43:04 -08:00
Stanislav Malyshev
635ba1f2c3
Merge branch 'bug71354' into PHP-5.5.32
...
* bug71354:
Fix bug #71354 - remove UMR when size is 0
2016-01-13 16:33:37 -08:00
Stanislav Malyshev
13ad4d3e97
Fix bug #71354 - remove UMR when size is 0
2016-01-13 16:32:29 -08:00
Yasuo Ohgaki
1f513805dc
Update NEWS
2016-01-13 06:40:11 +09:00
Remi Collet
aa8d3a8cc6
fix the fix for bug #70976 (imagerotate)
2016-01-12 14:03:35 +01:00
Remi Collet
14e4d393cf
fix the fix for bug #70976 (imagerotate)
2016-01-12 13:52:27 +01:00
Yasuo Ohgaki
63c77ee4b1
Use php_session_abort()
2016-01-12 20:39:33 +09:00
Yasuo Ohgaki
a15e9ccba8
Fixed Bug #71038 session_start() returns TRUE on failure
2016-01-12 19:09:49 +09:00
Anatol Belski
ba7736729e
update NEWS
2016-01-11 21:42:31 +01:00
Adam Harvey
f301a0b23c
Simplify code per Anatol.
2016-01-11 21:36:55 +01:00
Adam Harvey
3217c033a5
Insert bug number.
2016-01-11 21:36:53 +01:00
Adam Harvey
c895dc5b5b
Use strtoll() when apr_off_t is 64 bits.
2016-01-11 21:36:51 +01:00
Anatol Belski
6d649b018c
update NEWS
2016-01-11 20:41:29 +01:00
Anatol Belski
fffbca55e8
backport 9a07245b72 from 7.0
2016-01-11 20:37:46 +01:00
Lior Kaplan
35e87c04fe
Align NEWS entry format
2016-01-09 19:10:01 +02:00
Anatol Belski
07133ae649
update libs versions
2016-01-08 08:33:55 +01:00
Julien Pauli
bd2229e709
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
5.5.32 now
Conflicts:
configure.in
main/php_version.h
2016-01-07 13:55:09 +01:00
Julien Pauli
a6734f70e1
5.5.32 now
2016-01-07 13:07:23 +01:00
Julien Pauli
2d0215b063
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
5.5.32 now
Conflicts:
configure.in
main/php_version.h
2016-01-07 13:05:38 +01:00
Julien Pauli
96c205b5f6
5.5.32 now
2016-01-07 13:04:35 +01:00
Ferenc Kovacs
b095a22a3b
adjust release date for the delay
2016-01-06 15:54:55 +01:00
Ferenc Kovacs
6802a9f28a
these will be part of 5.6.17 not 5.6.18
2016-01-06 15:23:18 +01:00
Julien Pauli
86f48881a4
Removed unecessary string dup
2016-01-06 10:51:36 +01:00
Julien Pauli
810452f68e
Moved buffer from heap to stack
2016-01-06 10:51:36 +01:00
Stanislav Malyshev
13750cb0a1
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Update NEWS
Improve fix for bug #70976
Fixed bug #70661 (Use After Free Vulnerability in WDDX Packet Deserialization)
Fixed bug #70741 : Session WDDX Packet Deserialization Type Confusion Vulnerability
Fixed #70728
Fixed bug #70755 : fpm_log.c memory leak and buffer overflow
Fix bug #70976 : fix boundary check on gdImageRotateInterpolated
typofix
2016-01-05 19:38:29 -08:00
Stanislav Malyshev
74dcbe1299
Update NEWS
2016-01-05 19:28:24 -08:00
Lior Kaplan
53fb2f1e5c
Happy new year (Update copyright to 2016)
2016-01-03 01:44:37 +02:00
Xinchen Hui
3537e95dae
bump year which is missed in rev 49493a2
2016-01-02 17:51:24 +08:00
Xinchen Hui
d9bac84220
Merge branch 'PHP-5.6' of https://github.com/kaplanlior/php-src into PHP-5.6
2016-01-02 17:48:20 +08:00
Anatol Belski
a7b1ea3c84
sync with new tests from 7.0 for ICU 55_1 and 56_1 compat
2016-01-01 20:25:36 +01:00
Anatol Belski
6bcf4b4f40
sync skipifs for ext/intl for ICU 55_* and 56_* compat
2016-01-01 20:13:35 +01:00
Lior Kaplan
c51e73c803
Happy new year (Update copyright to 2016)
2016-01-01 19:23:04 +02:00
Lior Kaplan
49493a2dcf
Happy new year (Update copyright to 2016)
2016-01-01 19:21:47 +02:00
Stanislav Malyshev
2baeb167a0
Improve fix for bug #70976
2015-12-28 23:44:14 -08:00
Stanislav Malyshev
dcf3c9761c
Fixed bug #70661 (Use After Free Vulnerability in WDDX Packet Deserialization)
2015-12-28 14:46:35 -08:00
Stanislav Malyshev
1785d2b805
Fixed bug #70741 : Session WDDX Packet Deserialization Type Confusion Vulnerability
2015-12-28 12:44:10 -08:00
Julien Pauli
0bdc2923b1
Fixed test
2015-12-24 14:44:07 +01:00
Julien Pauli
d73d9fecf6
Fixed and improved tests
2015-12-24 14:08:44 +01:00
marcosptf
7f31a88bb8
test to function socket_getopt();
2015-12-24 13:23:00 +01:00
marcosptf
599a0cfdeb
test to function socket_clear_error();;
2015-12-24 13:17:35 +01:00
marcosptf
e9d3ff0ec7
test to function socket_shutdown();
2015-12-24 13:04:38 +01:00
marcosptf
1c0d01522c
test to function socket_send();
2015-12-24 11:48:09 +01:00
marcosptf
bdc8f7d871
test to function gethostname ( void );
2015-12-24 11:46:48 +01:00
marcosptf
891ac59305
test to function DateTimeZone::getLocation();
2015-12-24 10:56:23 +01:00
marcosptf
ca0b82fe93
test to function stream_get_transports();
2015-12-24 10:53:53 +01:00
marcosptf
e9d1dff514
test to function stream_get_wrappers();
2015-12-24 10:51:51 +01:00
marcosptf
7e399566a7
test to function stream_socket_enable_crypto();
2015-12-24 10:50:54 +01:00
marcosptf
a7daf97198
test to function stream_socket_get_name();
2015-12-24 10:49:02 +01:00
marcosptf
3295264336
Create stream_socket_recvfrom.phpt
2015-12-24 10:47:35 +01:00
marcosptf
379b43bb3b
test to stream function set_file_buffer.phpt();
2015-12-24 10:47:02 +01:00
marcosptf
4f528e5c95
test to function PDO_getAvaliableDrivers;
...
was add new function to PDO::getAvailableDrivers
2015-12-24 10:45:39 +01:00
marcosptf
8d1d5ffa22
test to misc. function connection_status();
2015-12-24 10:45:10 +01:00
marcosptf
841594ac18
test to function connection_aborted();
...
was added a new uncovered misc. function
2015-12-24 10:43:34 +01:00
marcosptf
a82f76634a
test to function memory_get_peak_usage();
...
add new test to uncoverage function;
please, @laurence, see if this path is correct!
Thanks
2015-12-24 10:42:22 +01:00
Thomas Punt
9306c1d254
Update default_mimetype ini setting description
...
This is in response to doc bug #70287
2015-12-24 10:33:15 +01:00
Anatol Belski
0b8c8bfc81
update NEWS
2015-12-23 18:37:05 +01:00
Anatol Belski
50c4be0309
Added test for bug #71201
2015-12-23 18:18:02 +01:00
Anatol Belski
0d822f6df9
Bug #71201 round() segfault on 64-bit builds
2015-12-23 18:16:52 +01:00
Xinchen Hui
620ccc9b1a
Fixed bug #71204 (segfault if clean spl_autoload_funcs while autoloading)
2015-12-23 08:10:59 -08:00
Julien Pauli
ea12ff149c
Added support for HTTP 451
2015-12-23 11:31:18 +01:00
Dmitry Stogov
a57a08e791
Fixed incorrect setting on 32-bit systems
2015-12-22 21:31:28 +03:00
Julien Pauli
4df84a648e
Fixed #70728
2015-12-22 17:12:49 +01:00
Julien Pauli
ff7ed9021c
Fix #70720
2015-12-22 16:25:51 +01:00
Lior Kaplan
db1504de23
Align NEWS entry format
2015-12-21 23:14:23 +02:00
Stanislav Malyshev
be19dbcb84
Fixed bug #70755 : fpm_log.c memory leak and buffer overflow
2015-12-08 00:10:07 -08:00
Stanislav Malyshev
4bb422343f
Fix bug #70976 : fix boundary check on gdImageRotateInterpolated
2015-12-07 23:33:05 -08:00
Stanislav Malyshev
2e157c5275
typofix
2015-12-06 14:07:39 -08:00