Stanislav Malyshev
ff83c00715
Add a bit of defensive conding for bug #76155
...
Even though it should not be ever negative, since strlen() is size_t
better to be safe than sorry.
2018-04-22 20:27:42 -07:00
Jakub Zelenka
2ef8809ef3
Make openssl_error_string test work in OpenSSL 1.1.1
...
It was the only failing test
2018-04-15 20:41:23 +01:00
Aron Rotteveel
9090a21de0
reset imap_errorstack after outputting it
...
This happens in `imap_errors` as well, but seems to be omitted in the `shutdown` routine.
2018-04-14 13:04:40 +02:00
Gabriel Caruso
bb79e5764b
Fix arginfo for array_replace(_recursive) and array_merge(_recursive)
2018-04-13 15:27:16 +02:00
Anatol Belski
5fe6d2134b
Fix memory leak
2018-04-12 18:25:27 +02:00
Anatol Belski
09d7ffabcd
Group common flags
2018-04-05 16:44:12 +02:00
Anatol Belski
ed5aabe8b7
Rename var
2018-04-05 14:52:40 +02:00
Anatol Belski
821f13fd79
Sync fix for bug #72498 for 32-bit
2018-04-03 17:24:13 +02:00
Anatol Belski
2bd299f731
Fix shared ext/intl compilation
2018-04-03 10:42:14 +02:00
Christoph M. Becker
9c37d95627
Fix #52070 : imagedashedline() - dashed line sometimes is not visible
...
We finally remove the inadvertent leftover from the synchronization
with GD 2.0.12.
2018-03-30 19:22:23 +02:00
Anatol Belski
8b104d7893
Fix clang build, ref buf #76153
...
Clang only allows -std=c++11 for C++ source.
2018-03-30 14:14:35 +02:00
Anatol Belski
398f56dbc8
Adjust tests for ICU 61.1 compatibility
2018-03-29 14:12:19 +02:00
Anatol Belski
710284cbc4
Fixed bug #76153 Intl compilation fails with icu4c 61.1
...
Additionally, ICU >= 59.1 requires C++11, so add the flags. Some
refactoring is needed to comply with the latest recommended build
options, such as automatic icu namespace addition.
2018-03-28 18:01:44 +02:00
TATAR Balazs Janos
ac4d9fd055
Fixed #75996 : Add the right urls to the header of mt_rand.
2018-03-27 22:09:08 +02:00
Gabriel Caruso
63934ea71e
Fix #76131 some arginfo params are different from the documentation
2018-03-27 21:56:46 +02:00
Derick Rethans
869ca9b733
Updated to version 2018.4 (2018d)
2018-03-24 11:26:15 +00:00
Christoph M. Becker
4072b27870
Fix #76113 : mbstring does not build with Oniguruma 6.8.1
...
As of Oniguruma 6.8.1, the regex structure has been moved from the
public `oniguruma.h` to the private `regint.h`. Thus, it is no longer
possible to directly access the struct's members, and actually, there
is no need to, since there are respective accessor functions available
at least of 2.3.1.
2018-03-20 16:42:28 +01:00
Christoph M. Becker
47461368ca
Fix #75944 : Wrong cp1251 detection
...
`\xFF` is a valid character of CP-1251.
2018-03-19 14:24:27 +01:00
Anatol Belski
dfc07f038b
Sync test with newer output
...
Czech Republic vs. newer Czechia
2018-03-16 18:54:55 +01:00
Anatol Belski
efd0e7222b
Reduce var scope
2018-03-14 22:59:54 +01:00
Anatol Belski
7bcd55c264
Fix stack use after scope
2018-03-14 22:21:43 +01:00
Dmitry Stogov
b6a41ad5ba
Fixed use-after-free
2018-03-14 09:11:48 +03:00
Dmitry Stogov
0643c7ab4d
Revert "More accurate symbolic constraints oferflow/unserflow handling (better fix for bug #76074 )."
...
This reverts commit 44ba557de5
.
2018-03-13 11:03:45 +03:00
Dmitry Stogov
44ba557de5
More accurate symbolic constraints oferflow/unserflow handling (better fix for bug #76074 ).
2018-03-13 10:44:53 +03:00
Xinchen Hui
4ee9098514
Fixed bug #76085 (Segmentation fault in buildFromIterator when directory name contains a \n)
2018-03-13 12:51:26 +08:00
Anatol Belski
4cd64aad8a
Fix heap use after free
...
The value may only be used until PGresult was destroyed, thus it needs
to be copied.
2018-03-12 20:57:21 +01:00
Anatol Belski
eaa5b1f911
Use string literal as format
2018-03-12 15:17:08 +01:00
Dmitry Stogov
f31c4d5398
Replaced usafe reference from SHM to process memory with SHM to SHM reference
2018-03-12 11:18:12 +03:00
Christoph M. Becker
01ea314e8c
Fix #62545 : wrong unicode mapping in some charsets
...
Undefined characters are best mapped to Unicode REPLACEMENT characters.
2018-03-11 17:38:28 +01:00
Bob Weinand
9c6df8a238
Fix bug #76074 (opcache corrupts variable in for-loop)
2018-03-10 15:20:45 +01:00
Anatol Belski
8417a23973
Fixed bug #76068 parse_ini_string fails to parse "[foo]\nbar=1|>baz" with segfault
2018-03-10 11:18:21 +01:00
Christoph M. Becker
f1b358c9a9
Fix #73957 : signed integer conversion in imagescale()
...
We must not pass values to `gdImageScale()` which cannot be represented
by an `unsigned int`. Instead we return FALSE, according to what we
already did for negative integers.
2018-03-10 00:17:09 +01:00
Dmitry Stogov
50949c9332
Replaced usafe reference from SHM to process memory with SHM to SHM reference.
2018-03-06 02:43:26 +03:00
Dmitry Stogov
b711a96acb
Don't keep HashTable.pDestructor in SHM and always set it into ZVAL_PTR_DTOR in zval_array_dup().
...
Keeping pointer to a function in SHM is not safe because of ASLR.
2018-03-06 00:56:16 +03:00
Dmitry Stogov
a83581e223
Fixed invalid destructor
2018-03-06 00:46:19 +03:00
Dmitry Stogov
87553b0730
Fixed invalid destructor
2018-03-05 23:33:08 +03:00
Nikita Popov
fd5bd37ab1
Revert "Fixed bug #75961 (Strange references behavior)"
...
This reverts commit 94e9d0a2ae
.
This code needs to be mindful about modifications to the array
happening during callback execution. It was written in a way that
only accessed the reference, which is guaranteed not to move. The
changed implementation instead accesses the array slot, leading to
use-after-free.
Run ext/standard/tests/array/bug61967.phpt under valgrind to see
the issue.
2018-03-05 15:32:21 +01:00
Anatol Belski
27a603e811
Include username into the file cache path
2018-03-05 15:16:55 +01:00
Dmitry Stogov
350082ed71
Fixed "opcache.file_cache_fallback" mode.
...
It's not safe to change value of ZCG(accel_directives).file_cache_only, becuse it might be altered by INI subsystem.
Use global variable instead.
2018-03-05 16:01:43 +03:00
Bob Weinand
3f32bd9f43
Fix pcntl build on mac
...
Apparently on mac WIF*(x) macros resolve to (*(int*)&x) (_W_INT macro in sys/wait.h), forcing the value to be a lvalue
2018-02-28 02:13:28 +01:00
Stanislav Malyshev
a6f7760d57
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #75981 : prevent reading beyond buffer start
2018-02-26 22:26:50 -08:00
Stanislav Malyshev
dde7a05978
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #75981 : prevent reading beyond buffer start
2018-02-26 22:26:26 -08:00
Stanislav Malyshev
523f230c83
Fix bug #75981 : prevent reading beyond buffer start
2018-02-26 22:25:51 -08:00
Gabriel Caruso
a358211a75
Fix imagesetinterpolation arginfo
...
imagesetinterpolation only requires one parameter.
2018-02-24 11:30:24 +01:00
Sam Ding
78c1ef2adb
Fix #75873 : pcntl_wexitstatus returns incorrect on Big_Endian platform (s390x)
...
Cf. https://github.com/php/php-src/pull/3141 .
2018-02-23 23:50:36 +01:00
Gabriel Caruso
0b8cfa6c78
Fix some arginfos
...
* all arguments for ftp_pasv are required
* $varname for getenv function isn't required anymore
* fsockopen and pfsockopen only require $hostname
* strtok can work with only one parameter
* strpbrk needs two parameters to work
* required parameters and add some parameters in openssl_* functions
2018-02-23 11:27:14 +01:00
Johannes Schlüter
74ed42c169
Fix a memleak with mysqlnd and SSL
2018-02-20 23:28:23 +01:00
Johannes Schlüter
e3cf72b829
Merge branch 'PHP-7.0' into PHP-7.1
2018-02-20 23:20:02 +01:00
Johannes Schlüter
8f3c29aee1
Fix negotiaton of MySQL auth plugin
2018-02-20 23:13:03 +01:00
Gabriel Caruso
276b57316c
Fix openssl_* arginfos
...
openssl_pkcs12_export and openssl_x509_parse had wrong arginfos
2018-02-20 16:23:42 +01:00