Anatol Belski
c51ecac617
sync NEWS
2017-03-28 13:22:40 +02:00
Anatol Belski
825f006117
Revert "Fixed bug #61471 "
...
This reverts commit 80c8d84af3 .
(cherry picked from commit ef8632c9dc )
2017-03-28 13:20:38 +02:00
Anatol Belski
4d375b3bd0
set versions
2017-03-28 11:55:53 +02:00
Anatol Belski
5b12d08e1f
update NEWS
2017-03-28 11:43:02 +02:00
Anatol Belski
ee8b5de5a0
deps updated, cherry-pick 88642decf9
2017-03-27 19:38:20 +02:00
Anatol Belski
6da475367a
add test for bug #74230
2017-03-27 19:33:51 +02:00
Derick Rethans
1f8fc0fb56
Forgot to update the output in the test too
2017-03-27 18:01:22 +01:00
Anatol Belski
867c29caf0
always use staging deps for CI, that's what we have a CI for as well
2017-03-27 18:07:16 +02:00
Derick Rethans
eb5d4bcd4f
Fixed test for #33415 due to data fixes.
2017-03-27 11:28:16 +01:00
Derick Rethans
eb13003f6c
Updated to version 2017.2 (2017b)
2017-03-24 12:25:25 +00:00
Nikita Popov
d719b46222
Fix sequencing UB
2017-03-23 22:48:45 +01:00
Nikita Popov
f5951cc81b
Fix lineno for AST_ZVAL nodes
2017-03-23 22:48:41 +01:00
Sara Golemon
0fb640c717
Fix bug where yield from is captured too greedily
...
In the following piece of code:
```php
function from1234($x) {
return $x;
}
function foo($x) {
yield from1234($x);
}
```
The statement inside foo is taken as `yield from` `1234($x)`
which is neither the intent, nor even legal syntax for an fcall.
Do a lookahead for breaking non-label characters after the
`yield from` and only accept it if they occur.
2017-03-23 13:31:06 -07:00
Dmitry Stogov
1517fdb36c
Fixed uninitialized data
2017-03-23 18:59:27 +03:00
Anatol Belski
1dbef2e27a
adjust deps dir naming scheme
...
not principal, just to have it same way as everywhere
2017-03-23 13:00:14 +01:00
Anatol Belski
bc2b500d3e
explicitly ignore php.ini for proc open tests
...
In some cases, when an environment is unclean, tests might get stuck fe
when some incorrect ini file is loaded. As the test depends on the core
only, it is safer to explicitly ignore the ini. Any ini can be passed in
the cmd itself, if needed.
2017-03-21 12:39:40 +01:00
Jakub Zelenka
6d066dc421
Lower timeout in test for but #72333
2017-03-20 16:07:12 +00:00
Nikita Popov
2e83082605
Fix bug #74265
2017-03-17 20:19:40 +01:00
Jakub Zelenka
df135ffa7a
Make test 002 for bug #65538 not to use https in cafile
2017-03-17 19:07:32 +00:00
Jakub Zelenka
53e2c9158d
Consume data by server in test for bug #72333
...
Client should be able to write more data and prevent time out
2017-03-17 18:11:50 +00:00
Nikita Popov
183cd048f1
Fix AST start lineno for list nodes
...
If the node is initialized with children, check if a child has a
lower start lineno, similar to what we do for fixed-sized nodes
as well.
2017-03-17 13:35:24 +01:00
Jakub Zelenka
0c8ad36d92
Make test for bug #72333 a bit more reliable
2017-03-16 18:11:56 +00:00
Adam Saponara
98f4ce9363
Return FALSE if error_log fails to write all bytes
2017-03-16 12:56:36 +01:00
Matt Bonneau
7fba8bda4c
Fixed bug #74240 (deflate_add can allocate too much memory)
2017-03-15 00:08:32 +01:00
Bob Weinand
8be63ce0e2
Fix stream context changes leaking into copies of previous context
2017-03-14 22:15:41 +01:00
Jakub Zelenka
b9d3dbc84e
Merge branch 'bug72333' into PHP-7.0
2017-03-14 18:43:39 +00:00
Jakub Zelenka
960e5cde02
Replace NEWS entry for #74159 with #72333
...
The #74159 is duplicate
2017-03-14 18:41:23 +00:00
Jakub Zelenka
ba70478a21
Skip bug74159 test for OpenSSL lower than 1.0.1
2017-03-14 18:13:57 +00:00
Jakub Zelenka
8e5d080d54
Tidy up test for bug72333
2017-03-14 18:13:57 +00:00
Jakub Zelenka
f0e67d1a56
Speed up test for bug72333
...
It reliably fails without the xp_ssl.c so it is good with smaller usleep
2017-03-14 18:13:57 +00:00
Jakub Zelenka
411f4b1b6f
Fix indent and add comment
2017-03-14 18:13:57 +00:00
Jakub Zelenka
760ff21bf3
Tidy up setting of SSL_MODE_RELEASE_BUFFERS
2017-03-14 18:13:57 +00:00
Jakub Zelenka
53cc72ef86
Remove extra SSL mode settings
2017-03-14 18:13:57 +00:00
Jakub Zelenka
17e9fc9bfe
Fix bug #72333 (fwrite() on non-blocking SSL sockets does not work)
2017-03-14 18:13:57 +00:00
Anatol Belski
8e45583006
update binary sdk tools version for appveyor
2017-03-13 12:31:31 +01:00
Nikita Popov
29ee3e3c49
Fixed bug #73960
2017-03-10 18:20:32 +01:00
Xinchen Hui
c398198c0a
Fixed bug #74218 (ArrayIterator error message is confusing)
2017-03-10 15:15:31 +08:00
Sara Golemon
9b16d4c999
Add NEWS entry for bab0b99f
2017-03-09 11:56:06 -08:00
Nikita Popov
177f87cf05
Fixed bug #73370
...
If len=0 malloc() is allowed to return NULL.
2017-03-09 20:47:06 +01:00
Thomas Orozco
247ce052cd
Fixed bug #71003 : Add PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT
2017-03-09 17:31:21 +01:00
mcq8
b224e74267
Fixed bug #72096 Swatch time value incorrect for dates before 1970
2017-03-09 16:44:02 +01:00
Sara Golemon
bab0b99f37
Detect invalid port in xp_socket parse ip address
...
For historical reasons, fsockopen() accepts the port and hostname
separately: fsockopen('127.0.0.1', 80)
However, with the introdcution of stream transports in PHP 4.3,
it became possible to include the port in the hostname specifier:
fsockopen('127.0.0.1:80')
Or more formally: fsockopen('tcp://127.0.0.1:80')
Confusing results when these two forms are combined, however.
fsockopen('127.0.0.1:80', 443) results in fsockopen() attempting
to connect to '127.0.0.1:80:443' which any reasonable stack would
consider invalid.
Unfortunately, PHP parses the address looking for the first colon
(with special handling for IPv6, don't worry) and calls atoi()
from there. atoi() in turn, simply stops parsing at the first
non-numeric character and returns the value so far.
The end result is that the explicitly supplied port is treated
as ignored garbage, rather than producing an error.
This diff replaces atoi() with strtol() and inspects the
stop character. If additional "garbage" of any kind is found,
it fails and returns an error.
2017-03-07 12:10:53 -08:00
Nikita Popov
549a30d2cd
Fix out of bounds access in gc_find_additional_buffer()
2017-03-07 13:16:06 +01:00
Dmitry Stogov
648b756f35
Fixed file-cache (Zend/tests/unused_shared_static_variables.phpt)
2017-03-03 16:10:46 +03:00
Anatol Belski
c082c92b7e
sync NEWS for bug #74159
2017-03-02 20:45:15 +01:00
Anatol Belski
18f7e26257
improve signal globals consistency check for TS
...
Seems when we receive TERM, TLS is destroyed completely. In that case,
not only signal globals, but the entire globals array doesn't exist
anymore.
2017-03-02 20:27:27 +01:00
Anatol Belski
c7b2c698d0
do not try to handle signals, when globals are inconsistent
2017-03-02 16:40:38 +01:00
somedaysummer
fab5ce347c
PHP bug #74004
...
Fix for DOMDocument loadHTML and loadHTMLFile ignore LIBXML_NOWARNING
and LIBXML_NOERROR flags.
2017-03-02 12:35:42 +01:00
Derick Rethans
cf60f26da6
Fixed tests after tzdb removed abbreviations
2017-03-02 11:28:02 +00:00
Derick Rethans
61e9b7354f
Make sure we anchor this test to February
2017-03-02 11:27:44 +00:00
Mitch Hagstrand
29333550d2
Fix bug73858.phpt to work in months without 31 days
...
Used hardcoded months in bug73858.phpt rather than the current and previous
month.
2017-03-02 12:13:06 +01:00
Christopher Jones
e80ea04c79
Fixed bug #54379 (PDO_OCI: UTF-8 output gets truncated)
...
This was a modification of an incomplete PR #2276 .
2017-03-02 15:28:01 +11:00
Derick Rethans
dfcb11d7d1
Updated to version 2017.1 (2017a)
2017-03-01 20:07:51 +00:00
Remi Collet
53a08fd07d
make type consistent with glob_t.gl_pathc
2017-03-01 17:01:58 +01:00
Sara Golemon
868930e079
Fix potential crash when setting invalid declare value
...
Using a non-literal expression in a declare value can cause the
compiler to crash trying to turn that AST node into a usable zval.
There was an existing test for such values using 'encoding',
but that didn't crash because it's handled by the lexer
rather than being compiled.
Trying to use a non-literal with ticks reproduces the crash.
2017-02-28 17:08:23 -08:00
Anatol Belski
21a05b0418
prepare next
2017-02-28 09:46:11 +01:00
Joe Watkins
c564924d31
Revert "fix crash in phpdbg shutdown process when opcache is loaded"
...
This reverts commit 008fb28eaf .
2017-02-27 19:21:10 +00:00
Joe Watkins
008fb28eaf
fix crash in phpdbg shutdown process when opcache is loaded
2017-02-27 17:54:48 +00:00
Nikita Popov
bbfa1b6419
Improve fix for bug #73807
...
At least on some architectures memmove() on FreeBSD does not
short-curcuit if src==dst. Check for it explicitly to avoid
quadratic copying.
2017-02-25 12:55:14 +01:00
Grundik
eac8166bd4
Fix bug #73127
...
gost-crypto hash was incorrect if input data contained long 0xFF
sequence, due to a carry-propagation bug.
2017-02-24 23:20:49 +01:00
Anatol Belski
9450e23b32
Support run or test target invoked within debugger
...
Useful, as it gets all the environment produced by the makefile. For the
test target, it might make sense to have the child process debug plugin
for VS installed.
2017-02-24 19:37:16 +01:00
Aaron Piotrowski
ff8a6b1232
Update test for bug #74159
2017-02-23 22:24:59 -06:00
Aaron Piotrowski
cc10515056
Update NEWS
2017-02-23 21:10:14 -06:00
Aaron Piotrowski
e9873d9853
Fix bug #74159
...
Thanks to @brzuchal for the patch to xp_ssl.c and @DaveRandom for helping debug the problem.
2017-02-23 20:59:43 -06:00
Xinchen Hui
330a7b62c3
Fixed bug #74152 (if statement says true to a null variable)
2017-02-23 12:33:17 +08:00
Xinchen Hui
1d4eead995
Fixed bug #74148 (ReflectionFunction incorrectly reports the number of arguments)
2017-02-23 11:02:23 +08:00
Remi Collet
015a80ef7b
report about OpenSSL 1.1 not supported during configure
2017-02-22 08:39:07 +01:00
Coenraad Loubser
9eaf551c86
pull-request/2393:
...
stop make install from clobbering default dot d configuration
2017-02-22 06:47:23 +00:00
Dmitry Stogov
593a4d8fe9
too many dashes
2017-02-21 10:47:48 +03:00
Dmitry Stogov
bd7e5c1548
Increase WSDL cache version (7.0 wsdl cache is incomatible with PHP-5)
...
Include WSDL cache version number into file name
2017-02-21 10:41:20 +03:00
Remi Collet
c836ad1c7e
fix test for libzip 1.2.0
2017-02-19 17:02:00 +01:00
Anatol Belski
1623ef10c9
initialize valid_symbol_table, important for the main thread
...
to prevent php_errormsg population on invalid symlol_table
2017-02-18 17:58:17 +01:00
Benjamin Robin
513582814b
Fixed bug #74105
...
If getrandom syscall is unavailable (ENOSYS), try to fallback on
/dev/urandom.
2017-02-17 18:42:35 +01:00
Ondřej Surý
61e59db99d
Disable RTLD_DEEPBIND when compiling with AddressSanitizer (-fsanitize=address).
...
The AddressSanitizer doesn't support RTLD_DEEPBIND resulting in
erratic errors when deinitializing phar module and possibly others.
Clang use __has_feature() macro to indicate compilation with
AddressSanitizer while gcc uses __SANITIZE_ADDRESS__ define.
Fixes bug #73677 .
2017-02-16 17:35:29 +01:00
Nikita Popov
cf3ef36323
Fix memory errors in url rewriter
...
Strings aren't terminated here...
2017-02-16 17:24:07 +01:00
Nikita Popov
708973c9bd
Fix autoload_func_info destruction
...
Can't reference the function ptr after the closure has been
destroyed.
2017-02-16 16:59:17 +01:00
Mitch Hagstrand
3b91ed112f
Make the ftp and stream tests more reliable.
...
The tests can sometimes fail because it chooses a passive port for ftp that
is already in use. This makes the test attempt multiple times to find a free
port.
2017-02-16 12:46:55 +01:00
Nikita Popov
5432d6f982
Add json dep to test
2017-02-16 12:45:24 +01:00
Anatol Belski
e79754dee3
[ci skip] update NEWS
2017-02-15 16:33:49 +01:00
Anatol Belski
89a5bd6750
Fixed bug #74090 stream_get_contents maxlength>-1 returns empty string
2017-02-15 11:22:47 +01:00
Xinchen Hui
3917350531
Fixed bug #73989 (PHP 7.1 Segfaults within Symfony test suite)
2017-02-13 19:16:17 +08:00
Nikita Popov
eb1373e509
Revert "Fixed bug #74035 "
...
This reverts commit 9ffc6ca62f .
2017-02-12 22:02:39 +01:00
Derick Rethans
f0519f4837
Upgrade timelib to 2017.01
...
This fixes:
- Fixed bug #72719 (Relative datetime format ignores weekday on sundays only).
- Fixed bug #73294 (DateTime wrong when date string is negative).
- Fixed bug #73489 (wrong timestamp when call setTimeZone multi times with UTC
offset).
- Fixed bug #73858 (first/last day of' flag is not being reset).
- Fixed bug #73942 ($date->modify('Friday this week') doesn't return a Friday
if $date is a Sunday).
- Fixed bug #74057 (wrong day when using "this week" in strtotime).
2017-02-12 20:17:01 +00:00
Xinchen Hui
26fdebc63b
Fixed bug #74084 (Out of bound read - zend_mm_alloc_small)
2017-02-12 20:34:08 +08:00
andrewnester
01c1afa79f
Fixed bug #74021
2017-02-12 12:48:18 +01:00
Xinchen Hui
ee25eb0eae
Fixed #73496 (Invalid memory access in zend_inline_hash_func)
...
no test script is added because it requre too much memory
2017-02-12 18:55:19 +08:00
Nikita Popov
981c58705a
run-tests: Exit 1 on BORKED tests
2017-02-12 00:19:36 +01:00
Adam Saponara
7e5cf2aa19
Fixed bug #73118
2017-02-12 00:14:59 +01:00
Denis Yeldandi
9814be4bc2
Fixed bug #69860
2017-02-12 00:06:04 +01:00
Xinchen Hui
db7c0badd4
Fixed typo
2017-02-11 00:01:09 +08:00
Xinchen Hui
185304a61e
Fixed bug #74019 (Segfault with list)
2017-02-10 14:24:01 +08:00
Zheng SHAO
80c8d84af3
Fixed bug #61471
2017-02-08 01:10:13 +01:00
dreamsxin
7a0adb4cd2
Add #ifndef restrict
2017-02-08 01:00:35 +01:00
Christian Schmidt
714d825b62
Fix detection of isnan and isinf
...
The isnan() and isinf() are C99 macros not functions.
Also fix is_infinite(-INF) in case isinf is not defined.
2017-02-08 00:53:18 +01:00
Anatol Belski
044dd30440
use some dynamically generated NAN as well
2017-02-07 13:16:30 +01:00
Anatol Belski
fd521a22f7
switch to smart str conversion routine to hide exact NAN type
...
see https://github.com/php/php-src/pull/2356#issuecomment-277564135
2017-02-07 12:01:14 +01:00
Nikita Popov
8a8aa67844
Revert "Fix detection of isnan and isinf"
...
This reverts commit 9ea0949f43 .
2017-02-06 01:45:53 +01:00
Christian Schmidt
9ea0949f43
Fix detection of isnan and isinf
...
The isnan() and isinf() are C99 macros not functions.
Also fix is_infinite(-INF) in case isinf is not defined.
2017-02-05 18:09:04 +01:00
Andrea Faulds
21d7878690
Fix bug #73954
2017-02-05 01:30:20 +00:00
Nikita Popov
dcaf4da8a6
Revert "Merge branch 'pull-request/2344' into PHP-7.0"
...
This reverts commit 6988d070ea , reversing
changes made to 75ad2b301a .
2017-02-03 18:42:10 +01:00
andrewnester
9ffc6ca62f
Fixed bug #74035
2017-02-03 18:29:39 +01:00
Joe Watkins
6988d070ea
Merge branch 'pull-request/2344' into PHP-7.0
...
* pull-request/2344:
Fixed bug #74004 LIBXML_NOWARNING (etc) ignored by DOMDocument::loadHTML
2017-02-03 06:12:05 +00:00
somedaysummer
4df993d89d
Fixed bug #74004 LIBXML_NOWARNING (etc) ignored by DOMDocument::loadHTML
2017-02-03 06:08:42 +00:00
Joe Watkins
75ad2b301a
Merge branch 'pull-request/2359' into PHP-7.0
...
* pull-request/2359:
increase wait time in timeout_variation_9.phpt by 1 second
2017-02-03 06:00:34 +00:00
Rodrigo Prado
0b56ba51d0
increase wait time in timeout_variation_9.phpt by 1 second
2017-02-03 05:57:26 +00:00
Joe Watkins
25271feeb0
Merge branch 'pull-request/2360' into PHP-7.0
...
* pull-request/2360:
increase wait time in timeout_variation_10.phpt by 1 second
2017-02-03 05:54:50 +00:00
Rodrigo Prado
8faf5f979c
increase wait time in timeout_variation_10.phpt by 1 second
2017-02-03 05:53:28 +00:00
Mitch Hagstrand
dd9cf23457
BUG #73998 : Numeric properties are not accessible from get_object_vars
2017-02-02 18:33:10 +01:00
Matěj Humpál
acda2563ce
Fix bug #74031
...
Fix incorrect parameter count for imagepng function
2017-02-02 18:13:53 +01:00
Nikita Popov
a15bffd105
Fix bug #73807
2017-02-02 18:06:15 +01:00
Anatol Belski
570a273807
[ci skip] update NEWS
2017-02-02 14:19:35 +01:00
Anatol Belski
6fc0ae638a
Fixed #74022 PHP Fast CGI crashes when reading from a pfx file.
2017-02-02 12:48:12 +01:00
Anatol Belski
1d7f8eb693
update NEWS
2017-02-02 01:33:41 +01:00
Anatol Belski
74c95fb3fb
sync NEWS with the reverted stuff
2017-02-01 20:00:32 +01:00
Anatol Belski
3446e3b749
Revert "fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)"
...
This reverts commit 2fcf1259c6 .
2017-02-01 19:59:24 +01:00
Anatol Belski
69a2e4ece2
Revert "fix BC break introduced by #2346 ( sebastianbergmann/phpunit#2454 )"
...
This reverts commit 62938bf088 .
2017-02-01 19:59:18 +01:00
Dmitry Stogov
3f89b630b4
typo
2017-02-01 17:36:55 +03:00
Dmitry Stogov
15e9aa1706
fixed macro
2017-02-01 16:05:33 +03:00
Anatol Belski
8dfa428ccd
fix possible NULL dereference
2017-02-01 13:43:33 +01:00
Anatol Belski
15404bda13
remove unused var
2017-02-01 12:49:32 +01:00
Anatol Belski
2cd0d8b711
use zend_string API
2017-02-01 12:45:19 +01:00
Anatol Belski
ec43a11581
Fixed bug #74005 mail.add_x_header causes RFC-breaking lone line feed
2017-02-01 12:36:14 +01:00
Anatol Belski
d9ca5d9637
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix test for 32bits (int -> float)
2017-02-01 11:59:44 +01:00
Remi Collet
0e21d8066b
fix test for 32bits (int -> float)
...
(cherry picked from commit 0f1ae93bfa )
2017-02-01 11:49:52 +01:00
Remi Collet
aa9742d80d
fix test for 32bits (int -> float)
2017-02-01 10:25:30 +01:00
Anatol Belski
163bb87897
add a primitive debug facility to sendmail
2017-01-31 18:25:36 +01:00
Anatol Belski
5b5130c4ff
Revert "backport 51e1da6ea1 into 7.0"
...
This reverts commit 8da8756312 .
2017-01-31 14:21:20 +01:00
Anatol Belski
536b3ca1e1
bump versions for next in dev
2017-01-31 11:18:23 +01:00
Rodrigo Prado
543141ae3b
removed additional ";" from run-tests.php
2017-01-31 05:35:58 +00:00
Anatol Belski
f39cabe610
update NEWS
2017-01-30 22:34:14 +01:00
Sara Golemon
bf0f53270f
Securely zero the hash context key
2017-01-30 08:57:17 -08:00
Anatol Belski
368958b3e4
Fixed bug #73983 crash on finish work with phar in cli + opcache
...
The file_cache_only option causes the storage to be per process,
furthermore the arena is destroyed per request. Thus, zend_string's
can't survive between request and the permanent flag should not
be set. This is already done with the file cache part, but the
persistency part is used in various scenarios and should respect
this case as well. In this particular bug, the pcre pattern cache
needs to survive between requests and uses pattern strings as hash
keys. One more case relevant here would be various situations where
the flow disables the use of shared memory.
2017-01-30 12:44:21 +01:00
Joe Watkins
dd227c2b23
Merge branch 'pull-request/2348' into PHP-7.0
...
* pull-request/2348:
fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454 )
2017-01-30 11:26:02 +00:00
jhdxr
62938bf088
fix BC break introduced by #2346 ( sebastianbergmann/phpunit#2454 )
2017-01-30 11:25:04 +00:00
Anatol Belski
4b1afc829c
move id initialization into ctor
2017-01-30 11:40:23 +01:00
Anatol Belski
2b7e5468c9
fix system id initialization for multiple threads
2017-01-30 01:54:36 +01:00
Jakub Zelenka
df16579642
Try fpm path for testing in sbin as it is default target
2017-01-29 20:43:58 +00:00
jhdxr
2fcf1259c6
fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)
2017-01-28 08:27:05 +00:00
Mitch Hagstrand
a3d3f76827
Fix 00version.phpt when commit message has multiple lines.
...
The environment variable "TRAVIS_COMMIT_MESSAGE" can contain multiple lines.
An example can be seen here https://travis-ci.org/php/php-src/jobs/195465293
2017-01-26 11:36:24 +00:00
andrewnester
f65ae82c55
Fixed #73973 - debug_zval_dump() assertion error for resource consts with --enable-debug
2017-01-26 09:03:47 +00:00
Joe Watkins
a15c1990eb
[ci skip] news entry for PR #2337
2017-01-26 05:50:46 +00:00
Arnout Boks
721a189742
Fix bug #54382 (getAttributeNodeNS doesn't get xmlns* attributes)
...
The fix is based on the same strategy for handling namespace
declarations as used by getAttributeNode. Note that this strategy makes
these methods not return a DOMAttr for xmlns* attributes, but an
instance of the (undocumented) class DOMNameSpaceNode. This is not
really ideal, but at least this fix makes the behavior of
getAttributeNode and getAttributeNodeNS consistent.
A follow-up action would be to investigate whether DOMNameSpaceNode can
be made into a subclass of DOMAttr (which may be hard due to the way
libxml treats namespace declarations) or document this deviating return
value for xmlns* attributes.
2017-01-25 20:59:25 +00:00
Arnout Boks
737ee0661c
Added (failing) testcase for bug #54382
2017-01-25 20:59:23 +00:00
Bob Weinand
c44efbbbb1
Fix copying too much leading to potential segfault
2017-01-25 13:00:48 +01:00
Michael Wallner
80a851b4dd
Fix Bug #69865 php-fpm does not close stderr when using syslog
2017-01-23 16:55:15 +00:00
Joe Watkins
d636467937
move decl to correct place
2017-01-23 05:33:58 +00:00
andrewnester
6f912f7c04
Fixed #73969 - Fixed segmentation fault when debug_print_backtrace called
2017-01-22 16:11:25 +00:00
Christoph M. Becker
71efe9d8fd
Add regression test for bug #47946
...
This bug had already been fixed, but apparently there's no regression
test yet, so we add one.
Note that the expected image has black pixel artifacts, which are
another issue (perhaps bug #40158 ), and would have to be adressed
separately.
2017-01-22 15:01:01 +01:00
Mitch Hagstrand
e56fe7e5e7
Fix intermittent segfault in GD library
...
The gdIOCtx struct should be zero filled with ecalloc.
emalloc does not zero fill the struct.
2017-01-22 06:40:55 +00:00
Christoph M. Becker
42d53f3bc0
Add myself as primary maintainer of GD
2017-01-21 18:52:34 +01:00
Christoph M. Becker
f67d599a01
Fix #73968 : Premature failing of XBM reading
...
We must take into account the line padding, when we're reading XBM
files.
We deliberately ignore the potential integer overflow here, because
that would be caught by gdImageCreate() or even earlier if `bytes==0`,
what happens in libgd00094.phpt which we adapt accordingly.
2017-01-21 13:04:36 +01:00
Anatol Belski
8da8756312
backport 51e1da6ea1 into 7.0
2017-01-21 02:56:15 +01:00
andrewnester
21ac79e94b
Fixed #73959 - lastInsertId fails to throw an exception in pdsql
2017-01-20 20:10:55 +00:00
Remi Collet
2e3d68ed1b
NEWS
2017-01-20 17:46:11 +01:00
Remi Collet
f81b7df618
Fixed bug #73965 DTrace reported as enabled when disabled
2017-01-20 17:45:15 +01:00
Xinchen Hui
cad2598fcb
Fixed another part in ldap (bug #73933 )
2017-01-19 12:23:23 +08:00
Ferenc Kovacs
8c75dbc498
Merge branch 'PHP-5.6' into PHP-7.0
2017-01-19 01:20:57 +01:00
Ferenc Kovacs
cf649f59cb
update NEWS
2017-01-19 01:16:31 +01:00
Mitch Hagstrand
8ba6d622e5
Removing zmemcheck from .gdbinit
...
It doesn't seem to make sense anymore
2017-01-18 21:19:48 +01:00
Joe Watkins
f9226f9bf3
Fix bug #73949 leak in mysqli_fetch_object
2017-01-18 18:22:57 +00:00
Thomas Punt
fb8486f3bd
Remove remnants of TSMRLS_* macro calls
2017-01-18 17:42:45 +00:00
Marcus Bointon
280e9cb28d
DNS CAA record type implementation and tests for https://bugs.php.net/bug.php?id=73850
2017-01-18 17:23:08 +00:00
Leigh
e7e96fe2e0
Change free to OPENSSL_free
2017-01-18 14:45:41 +00:00
Remi Collet
6af7753e36
NEWS
2017-01-18 13:02:03 +01:00
Remi Collet
6af22d0d3e
Fix #73956 Link use CC instead of CXX
2017-01-18 13:00:49 +01:00
Thomas Punt
a22f181736
Fix ce comparison
2017-01-18 05:05:53 +00:00
Joe Watkins
e00c2f335c
updates to release docs
2017-01-17 20:33:25 +00:00
Mitch Hagstrand
db894fa6aa
Fixes in .gdbinit for ZE 3
...
1. Fixed print_pi function
2. Fixed printing properties in ____printzv_contents
3. Added optional max length parameter in ____print_str
2017-01-17 17:07:31 +00:00
Anatol Belski
3f960255f4
[ci skip] sync NEWS
2017-01-17 10:56:17 +01:00
Anatol Belski
5d07438cb3
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix #73869 : Signed Integer Overflow gd_io.c
Fix #73868 : DOS vulnerability in gdImageCreateFromGd2Ctx()
2017-01-17 09:33:51 +01:00
Christoph M. Becker
d2274b01cb
Fix #73869 : Signed Integer Overflow gd_io.c
...
GD2 stores the number of horizontal and vertical chunks as words (i.e. 2
byte unsigned). These values are multiplied and assigned to an int when
reading the image, what can cause integer overflows. We have to avoid
that, and also make sure that either chunk count is actually greater
than zero. If illegal chunk counts are detected, we bail out from
reading the image.
(cherry picked from commit 5b5d9db3988b829e0b121b74bb3947f01c2796a1)
2017-01-17 09:30:58 +01:00
Christoph M. Becker
f1b2afc9d9
Fix #73868 : DOS vulnerability in gdImageCreateFromGd2Ctx()
...
We must not pretend that there are image data if there are none. Instead
we fail reading the image file gracefully.
(cherry picked from commit cdb648dc4115ce0722f3cc75e6a65115fc0e56ab)
2017-01-17 09:30:43 +01:00
Xinchen Hui
b28c2e20ca
Fixed bug #73933 (error/segfault with ldap_mod_replace and opcache)
2017-01-17 15:34:19 +08:00
Nikita Popov
e0ca519a8b
Merge branch 'PHP-5.6' into PHP-7.0
2017-01-16 14:11:41 +01:00
Nikita Popov
6477bb724e
Add additional serialize tests for fixed bugs
...
These have been fixed as a side-effect of the delayed __wakeup
patch.
2017-01-16 13:24:13 +01:00
Stanislav Malyshev
50b38322b9
Fix typo
2017-01-16 00:23:06 -08:00
Niklas Keller
cc9893eb44
Add test ini_set with invalid time zone
...
Wasn't covered before according to gcov.php.net.
2017-01-16 04:13:01 +00:00
Stanislav Malyshev
2c7909697a
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix test
2017-01-15 18:42:33 -08:00
Stanislav Malyshev
814966ad33
Fix test
2017-01-15 18:42:22 -08:00
Stanislav Malyshev
43d0f2abc5
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Update more functions with path check
2017-01-15 17:32:26 -08:00
Stanislav Malyshev
0ab1af7d3e
Update more functions with path check
2017-01-15 17:31:08 -08:00
Anatol Belski
4f19bb7af6
fix AppVeyor failures with Opcache enabled
...
opcache_reset() only schedules the restart. Under circumstances,
the follow up requests might run uncached, until the restart
condition is met. To mitigate the false positives caused by this
behavior, any tests using opcache_reset() should not be put in
between other tests. Thus, moving the corresponding test to be
executed last.
2017-01-15 21:13:15 +01:00
Yordan Gigov
60aff0bd30
Fixed bug #69993
2017-01-14 14:13:15 +01:00
Mitch Hagstrand
fbf655afbd
Added test for "opcache: print restart reason" to basic_logging.phpt
2017-01-14 07:32:55 +00:00
Alexander Polyakov
a4accc0e3e
opcache: print restart reason
2017-01-13 21:34:11 +00:00
Anatol Belski
aaaef22db6
fix remaining tests for Opcache runs
...
The fail reason here is the TMP change while both top and test
run same binary with opcache enabled.
2017-01-13 17:16:15 +01:00
Anatol Belski
8e993b427c
ensure the end path wouldn't contain double slashes
2017-01-13 16:50:05 +01:00
Anatol Belski
3500262b7d
templatize the resource number
2017-01-13 15:45:35 +01:00
Mitch Hagstrand
fd92b91188
Increase wait time for tests involving sockets to improve Travis relability
...
1. Increased sleep time from 25ms to 50ms
2. Added sleep to shutdown handlers
2017-01-13 06:45:04 +00:00
Xinchen Hui
04379bcb1d
Fixed bug #73916 (zend_print_flat_zval_r doesn't consider reference)
2017-01-13 13:04:37 +08:00
rfussenegger
bd75f9e613
Fix bug #69899
2017-01-12 21:13:39 +01:00
Mitch Hagstrand
1ee1f79e27
Fixed bug #72680 gdbinit print_cvs not prepared for PHP 7
2017-01-12 09:10:12 +00:00
Markus Staab
ef42f49470
added a note to opache.fast_shutdown why its not enabled by default in php.ini
2017-01-11 11:18:10 +00:00
Joe Watkins
b2782c6dc5
Merge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0
...
* 'PHP-7.0' of git.php.net:/php-src:
Fixed bug #67707 IV not needed for ECB encryption mode, but it returns a warning
Fixed #73907 (nextSibling property not included in var_dump of DOMNode)
Fixed bug #61858 (DOMAttr debug info generates E_WARNING)
Fix glob-wrapper.phpt to not fail in Windows
Fix #73893 : A hidden danger of death cycle in a function of gd
2017-01-11 08:12:51 +00:00
Joe Watkins
51d487786c
Fixed bug #71219 configure script incorrectly checks for ttyname_r
2017-01-11 08:09:10 +00:00
Robrecht Plaisier
d9cd2876d9
Fixed bug #67707 IV not needed for ECB encryption mode, but it returns a warning
2017-01-10 23:42:44 +01:00
Arnout Boks
13edec75a3
Fixed #73907 (nextSibling property not included in var_dump of DOMNode)
2017-01-10 23:29:02 +01:00
Arnout Boks
07340553a5
Fixed bug #61858 (DOMAttr debug info generates E_WARNING)
...
It seems fair to remove this warning, given that:
* it is not documented in the official documentation
* the $specified property, which has a similar 'not implemented' status,
also does not trigger a warning
* it apparently hinders quite a lot of people during debugging, judging by
the number of votes on the bug
2017-01-10 23:24:34 +01:00
Nikita Popov
291e3f0762
Merge branch 'PHP-5.6' into PHP-7.0
2017-01-10 23:19:19 +01:00
Mitch Hagstrand
ad9c552b12
Fix glob-wrapper.phpt to not fail in Windows
2017-01-10 23:18:52 +01:00
Christoph M. Becker
15837bab8c
Fix #73893 : A hidden danger of death cycle in a function of gd
...
We remove the unused, but potentially dangerous functions.
2017-01-10 19:52:06 +01:00
Joe Watkins
6a9efa2d3e
Merge branch 'pull-request/1807' into PHP-7.0
...
* pull-request/1807:
test for dns_get_record
2017-01-10 13:56:26 +00:00
marcosptf
dcaed51ba0
pull-request/1807:
...
test for dns_get_record
2017-01-10 13:55:31 +00:00
Ondřej Surý
1bdffee820
Prevent fd leak in readdir_r that causes false negative on readdir_r implementation when compiled with AddressSanitizer
2017-01-10 11:51:27 +00:00
Joe Watkins
125ee6a68e
Fixed #73902 mention router support in usage output for php-cli
2017-01-10 06:19:34 +00:00
Sara Golemon
69fbe3a9ad
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix open_basedir check for glob:// opendir wrapper
2017-01-09 16:07:33 -08:00
Nikita Popov
69058f35f8
Un-XFAIL serialization test
2017-01-10 00:07:38 +01:00
Leigh
14c72cc582
Fix check for linux getrandom syscall
2017-01-09 23:29:07 +01:00
Mitch Hagstrand
9ad3413190
Add print zend string function to gdbinit
2017-01-09 23:22:49 +01:00
Sara Golemon
7e49e8e797
Fix open_basedir check for glob:// opendir wrapper
...
php_check_open_basedir() expects a local filesystem path,
but we're handing it a `glob://...` URI instead.
Move the check to after the path trim so that we're checking
a meaningful pathspec.
2017-01-09 11:02:50 -08:00
Joe Watkins
28f2959b83
Revert "set more suitable defaults for opcache in ini and code"
...
This reverts commit b655f2d632 .
This has been deemed unsuitable for 7.0
2017-01-09 17:08:07 +00:00
Joe Watkins
f1ad170a15
update release process notes
2017-01-09 16:20:48 +00:00
Joe Watkins
add4f43f0e
Merge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0
...
* 'PHP-7.0' of git.php.net:/php-src:
Fixed bug #73896 (spl_autoload() crashes when calls magic _call())
2017-01-09 15:59:21 +00:00
Joe Watkins
ef7e5e0d69
fix stub to accept user properly
2017-01-09 15:57:46 +00:00
Dmitry Stogov
4f1b24d974
Fixed bug #73896 (spl_autoload() crashes when calls magic _call())
2017-01-09 15:11:33 +03:00
Joe Watkins
63e08cbef7
Merge branch 'pull-request/2291' into PHP-7.0
...
* pull-request/2291:
set more suitable defaults for opcache in ini and code
2017-01-09 10:54:57 +00:00
Markus Staab
b655f2d632
set more suitable defaults for opcache in ini and code
2017-01-09 10:53:23 +00:00
Xinchen Hui
f7cb79431f
Fixed bug #73854 (Always true condition in php_openssl_sockop_io)
2017-01-09 16:30:00 +08:00
Joe Watkins
8dd523a216
Fixed bug #72979 money_format stores wrong length on AIX
2017-01-09 05:31:41 +00:00
Joe Watkins
8c653c163a
update ip2long_varation2 test to skip for AIX, see bug #72973
2017-01-09 05:24:44 +00:00
Joe Watkins
b8215c0817
Fixed #72974 imap is undefined service on AIX
2017-01-09 05:15:21 +00:00
Mitch Hagstrand
47007455dc
Fix FTP tests for Travis CI.
...
This suppresses the errors from stream_socket_server() until
server.inc will not make anymore attempts.
2017-01-09 00:36:39 +00:00
Markus Staab
5b5483dc8e
Use proper file extension for the README
2017-01-08 21:05:06 +00:00
Peter Kokot
7f1247004e
Fix 404 links in Litespeed README - Bug 73890
2017-01-08 20:27:48 +00:00
Anatol Belski
c75287dc85
update NEWS
2017-01-08 20:11:02 +01:00
Remi Collet
eb02876e74
improve FPM tests (mostly for systemd build)
2017-01-08 19:02:50 +00:00
Sara Golemon
5df97b339e
[ast] Fix exporting **= in expansion of assign op
...
(cherry picked from commit 9c3865eb6a )
2017-01-08 18:43:47 +01:00
Nikita Popov
b36f4ac708
deflate_add(): Don't add unnecessary +1 to size
...
zend_string_realloc will do this by itself.
2017-01-08 13:47:20 +01:00
Nikita Popov
ec1b7b933d
Fix OOB read introduced by previous commit
...
Ooops...
2017-01-08 00:01:05 +01:00
Rowan Collins
5146d9f8ac
http_fopen_wrapper.c - Handle HTTP headers with varying white space
...
The stream handler assumed all HTTP headers contained exactly one space,
but the standard says there may be zero or more. Should fix Bug #47021 ,
and any other edge cases caused by a web server sending unusual spacing,
e.g. the MIME type discovered from Content-Type: can no longer contain
leading whitespace.
We strip trailing whitespace from the headers added into
$http_response_header as well.
2017-01-07 23:54:57 +01:00
Nikita Popov
a46bbdda2e
Fixed bug #67583
...
As fcgi_request is an opaque struct as of PHP 7, expose a new API
function fcgi_end() which does fcgi_flush() with end=1 and checks/
sets the ->ended flag.
2017-01-07 22:53:28 +01:00
Nikita Popov
f346bd6ee6
Rename fcgi_request.closed to .ended
...
"closed" refers to whether FCGI_END_REQUEST has been sent, while
the "close" operation does something entirely different. It gets
extra confusing when fcgi_is_closed() does not actually return
fcgi_request.closed...
2017-01-07 22:45:19 +01:00
Joe Watkins
2cb8950cc2
Merge branch '1391' into PHP-7.0
...
* 1391:
Adapts the readme to the new test-possibility
2017-01-07 16:45:33 +00:00
Andreas Heigl
fc777296bf
Adapts the readme to the new test-possibility
...
This commit introduces a way to use a vagrant setup to test against a
known LDAP without the need to setup an LDAP on your own machine
2017-01-07 16:45:10 +00:00
Anatol Belski
486fc0424a
Implement github PR #1736
...
This fixes leak issues on *BSD systems, as described in the PR.
2017-01-07 15:36:14 +01:00
Anatol Belski
80a5ae4f53
fix wrong version
2017-01-07 12:43:56 +01:00
Anatol Belski
49a0c166f3
extend UPGRADING
2017-01-07 12:43:19 +01:00
Evgeniy Makhrov
d0279242ce
add 'e' flag for fopen() to enable CLOEXEC
2017-01-07 12:10:51 +01:00
Joe Watkins
b351ec8baf
Merge branch 'pull-request/2283' into PHP-7.0
...
* pull-request/2283:
Fix memleaks from #1755 and some pre-existing ones
2017-01-07 10:14:36 +00:00
Leigh
21f287915c
Remove superfluous variable reinit
2017-01-07 09:43:05 +00:00
Joe Watkins
574f7bc3d4
Merge branch '2211' into PHP-7.0
...
* pull-request/2211:
PR #2211 don't supress warnings in DOM tests
2017-01-07 08:07:17 +00:00
Craig Duncan
98c2cd4311
PR #2211 don't supress warnings in tests
2017-01-07 08:06:38 +00:00
Joe Watkins
41c1d0291c
Merge branch 'pull-request/2284' into PHP-7.0
...
* pull-request/2284:
Fixes for session and fpm tests in PHP7.0 branch
2017-01-07 07:10:23 +00:00
Mitch Hagstrand
3401f553b9
Fixes for session and fpm tests in PHP7.0 branch
...
1. Increased the timeout on sapi/fpm tests to match the cli server
2. Disabled session GC in session_set_save_handler_basic.phpt
3. Fixed GC in save_handler.inc to delete files based on age
2017-01-06 19:55:57 -08:00
Anatol Belski
f98d8f6c15
/guard is also a security flag
2017-01-07 02:25:00 +01:00
Mitch Hagstrand
4568618030
Revert "Test request47456.phpt for PR 1303" on PHP-7.0 and PHP-7.1
...
This reverts commit e55e93a1e3 .
This change should only apply to master. Not PHP-7.0 or PHP-7.1
2017-01-07 02:04:03 +01:00
Anatol Belski
71e84e2c36
fix typo
2017-01-06 18:53:30 +01:00
Anatol Belski
1516132167
update NEWS and UPGRADING
2017-01-06 18:32:33 +01:00
Dorin Marcoci
826122fa8e
Return integer field types as native integers instead of strings
...
Use another define for better compatibility
Test case for #72583 Feature. Small optimisations.
Adjust conditional directives according to coding standards
Add more compatibility for "end of line" on multiple environements
Updated execute.phpt test after switching to integer mapping
2017-01-06 17:43:46 +01:00
Mitch Hagstrand
e55e93a1e3
Test request47456.phpt for PR 1303
...
After merging PR 1303 unmatched subpatterns are set to NULL
2017-01-06 16:22:11 +00:00
Joe Watkins
699ab98f9d
fix build broken by #2124
2017-01-06 16:18:24 +00:00
Leigh
62e9e1fecd
Some commentary, change free method
2017-01-06 15:49:15 +00:00
Leigh
9a0dac124e
Conditionally free depending on how assignment happened
2017-01-06 15:24:37 +00:00
Leigh
053b966134
Fix memleaks from #1755 and some pre-existing ones
2017-01-06 14:58:54 +00:00
Mitch Hagstrand
ad08aa3956
Fix #70103 : Fix bug 70103 when ZTS is enabled
...
Used snprintf to copy the basename string before it is freed
2017-01-06 15:26:17 +01:00
Joe Watkins
ba0751a915
Merge branch 'pull-request/1809'
...
* pull-request/1809:
test for function curl_multi_info_read();
2017-01-06 08:06:38 +00:00
Joe Watkins
2d42423953
Merge branch 'pull-request/1755'
...
* pull-request/1755:
Fix bug #71519 Add 'serialNumberHex' variable to openssl_x509_parse
2017-01-06 07:43:59 +00:00
Joe Watkins
3a79f35fdc
add stream_socket_sendto test from PR #1804
2017-01-06 07:27:31 +00:00
Joe Watkins
ff6b309c6f
Merge branch 'pull-request/1588' into PHP-7.0
...
* pull-request/1588:
Fixed #69442 closing of fd incorrect when PTS enabled
2017-01-06 06:56:50 +00:00
Joe Watkins
b0ff9ee688
Merge branch 'pull-request/1360' into PHP-7.0
...
* pull-request/1360:
Fixed bug #69582 session not readable by root in CLI
news entry for PR #1360
2017-01-06 06:05:17 +00:00
Joe Watkins
6a03b43e5f
Merge branch 'pull-request/1311' into PHP-7.0
...
* pull-request/1311:
fix inappropriate warning in FPM log
2017-01-06 05:54:42 +00:00
Joe Watkins
a49aaf9ab0
Merge branch 'pull-request/1430' into PHP-7.0
...
* pull-request/1430:
Fix #70103 : ZipArchive::addGlob ignores remove_all_path option
news entry for PR 1430
2017-01-06 05:39:48 +00:00
Joe Watkins
12bbeaa45e
Merge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0
...
* 'PHP-7.0' of git.php.net:/php-src:
add skip when json not loaded
2017-01-06 05:32:55 +00:00
Joe Watkins
8e39a27b76
Merge branch 'realpath_cache_size_update' into PHP-7.0
...
* realpath_cache_size_update:
Increase realpath_cache_size default value
add UPGRADING note regarding realpath_cache_size
2017-01-06 05:29:50 +00:00
Remi Collet
4f1335cd4c
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
add skip when json not loaded
2017-01-06 06:27:08 +01:00
Markus Staab
49b2cbf763
Update php.ini-development
2017-01-06 05:25:13 +00:00
Markus Staab
81fb61f97c
Update php.ini-production
2017-01-06 05:25:10 +00:00
Markus Staab
782b84c6d5
updated default per proposal
...
TODO: adjust php.ini defaults
2017-01-06 05:25:08 +00:00
Markus Staab
66b698c3cf
Increase realpath_cache_size default value
2017-01-06 05:25:04 +00:00
Remi Collet
db890956ec
add skip when json not loaded
2017-01-06 06:23:59 +01:00
Anatol Belski
a7c444b939
fix deps dir for test data preparations
2017-01-06 02:34:03 +01:00
Ferenc Kovacs
a43a3798d3
Merge branch 'PHP-5.6' into PHP-7.0
2017-01-06 01:48:24 +01:00
Ferenc Kovacs
3b14d7b84b
5.6.31 is next
2017-01-06 01:43:11 +01:00
Anatol Belski
372144508c
don't use separate deps for release branches
2017-01-06 01:24:41 +01:00
Christoph M. Becker
183a34a5cf
Merge branch 'pull-request/2278' into PHP-7.0
...
* pull-request/2278:
Fix #70417 : PharData::compress() doesn't close temp file
2017-01-05 18:49:52 +01:00
Christoph M. Becker
995ecffbb2
Fix #70417 : PharData::compress() doesn't close temp file
...
According to the comment, it has not been deemed necessary to close compressed
files. However, we don't want to keep unclosed file handles to save ressources.
So we're also closing compressed archives, if they're not aliased.
2017-01-05 14:12:31 +01:00
Anatol Belski
57736cc937
Revert "Merge branch 'bugfix_timeout_61471' of https://github.com/axot/php-src into PHP-7.0"
...
This reverts commit a8931df672 , reversing
changes made to f2f35a2b27 .
2017-01-05 13:59:01 +01:00
Nikita Popov
2022dacb99
Merge branch 'PHP-5.6' into PHP-7.0
2017-01-05 11:38:05 +01:00
Nikita Popov
900b17b15f
Fix printf modifier
2017-01-05 11:37:06 +01:00
Joe Watkins
b037c43497
Merge branch 'pull-request/1256' into PHP-7.0
...
* pull-request/1256:
Fix php-fpm.service.in
2017-01-05 06:54:19 +00:00
Anatol Belski
2ca5aa9418
quick fix for the base branch version parsing, not perfect still
2017-01-05 01:49:36 +01:00
Anatol Belski
997d902762
move dev to next
2017-01-05 01:12:18 +01:00
Nikita Popov
b47c49d7a0
Merge branch 'PHP-5.6' into PHP-7.0
2017-01-05 00:24:25 +01:00
Nikita Popov
f697874e3f
Add tests for delayed __wakeup()
2017-01-05 00:21:48 +01:00
Nikita Popov
0426b916df
Implement delayed __wakeup
2017-01-05 00:21:48 +01:00
Joe Watkins
125578c636
Merge branch 'pull-request/2273' into PHP-7.0
...
* pull-request/2273:
Update copyright headers to 2017
2017-01-04 22:24:34 +00:00
Sammy Kaye Powers
6550f3ad7e
Update copyright header to 2017 in calendar.c
2017-01-04 11:15:47 -06:00
Sammy Kaye Powers
478f119ab9
Update copyright headers to 2017
2017-01-04 11:14:55 -06:00
Anatol Belski
0484c6efe0
switch to the beta1 SDK for AppVeyor build
2017-01-04 15:54:47 +01:00
Joe Watkins
0d09b98ac4
remove duplicate test
2017-01-04 14:50:59 +00:00
Joe Watkins
b39310c715
fix test
2017-01-04 14:36:18 +00:00
Joe Watkins
63d116e571
Merge branch 'pull-request/1312' into PHP-7.0
...
* pull-request/1312:
get_defined_functions extra parameter to exclude disabled functions
news entry for PR #1312
2017-01-04 13:34:31 +00:00
Dorin Marcoci
e914abff1e
Fix PDO tests to match SQL standard syntax and pass Firebird tests.
2017-01-03 17:48:52 +01:00
Anatol Belski
3a1ae7bb9b
better skip on files
...
some more could be added
2017-01-03 13:25:16 +01:00
Nikita Popov
b3889d4b20
Fix build
2017-01-03 12:16:35 +01:00
Vince
cfd6e14842
Fix Bug #73462 - Persistent connections don't set $connect_errno
...
Persistent connections skipped resetting $connect_error and $connect_errno values
This adds the "clear error" line to persistent connections for consistency
2017-01-03 12:13:08 +01:00
Joe Watkins
ff4e330eae
Merge branch 'pull-request/1905'
...
* pull-request/1905:
pack()/unpack() for Big Endian float/double and Little Endian float/double
2017-01-03 10:50:19 +00:00
Rasmus Lerdorf
19b757dacd
Fix opcache test dependencies
2017-01-02 22:30:28 -08:00
Stanislav Malyshev
68ac602b28
Use correct string release function
2017-01-02 22:08:25 -08:00
Stanislav Malyshev
ea6e54aff3
Fix error reporting
2017-01-02 21:59:44 -08:00
Stanislav Malyshev
a6cdefe043
Merge branch 'PHP-7.0.15' into PHP-7.0
...
* PHP-7.0.15:
Fix #73832 - leave the table in a safe state if the size is too big.
Fix bug #73831 - NULL Pointer Dereference while unserialize php object
2017-01-02 21:35:42 -08:00
Stanislav Malyshev
7f0de1a138
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #73737 FPE when parsing a tag format
Fix bug #73773 - Seg fault when loading hostile phar
Fix bug #73825 - Heap out of bounds read on unserialize in finish_nested_data()
Fix bug #73768 - Memory corruption when loading hostile phar
Fix int overflows in phar (bug #73764 )
2017-01-02 21:01:35 -08:00
Stanislav Malyshev
fa2125df67
Merge branch 'PHP-5.6.30' into PHP-5.6
...
* PHP-5.6.30:
Fix bug #73737 FPE when parsing a tag format
Fix bug #73773 - Seg fault when loading hostile phar
Fix bug #73825 - Heap out of bounds read on unserialize in finish_nested_data()
Fix bug #73768 - Memory corruption when loading hostile phar
Fix int overflows in phar (bug #73764 )
2017-01-02 20:56:32 -08:00
Stanislav Malyshev
4cc0286f2f
Fix #73832 - leave the table in a safe state if the size is too big.
2017-01-02 20:14:05 -08:00
Anatol Belski
d2298c3cec
set exclude AppVeyor branches and ignore builds on NEWS updates
2017-01-03 02:15:20 +01:00
Nikita Popov
e1e5caf9d4
Fix early free
2017-01-03 02:12:28 +01:00
Anatol Belski
f12f0b2bc2
Disable pdb generation for AppVeyor
...
It is not needed for the test runs and would speedup the compilation
phase.
2017-01-03 01:07:55 +01:00
Nikita Popov
20c172d459
Add NEWS entries
2017-01-02 23:35:27 +01:00
Nikita Popov
593b6cd0a8
Optimize get_browser() using prefix and contains checks
...
Avoid expensive regex compilations by checking for prefix
and contained segments beforehand.
2017-01-02 23:31:27 +01:00
Nikita Popov
b06fb88cf9
Optimize browscap loading and representation
...
Avoid many string duplications, use interning (browscap-local, of
course), reduce pattern size, use more compact key-value
representation, build result array only on demand.
2017-01-02 23:30:56 +01:00
Nikita Popov
76a1d3f153
Add get_browser() test against larger corpus
...
Testing corpus provided by Anatol against current browscap.ini lite.
About 30% of all agents are not recognized by this browscap.ini,
but this should give us decent coverage.
2017-01-02 23:30:27 +01:00
Mitch Hagstrand
c019d33267
Fix for nowait.phpt failing intermittently
...
The parent process was releasing the child semaphore
after the child process continued execution. Now
the child semaphore is released before the child
process continues execution.
2017-01-02 16:44:43 +00:00
vanviegen
732f67ee6f
Fix for sporadic segfault with MYSQLI_OPT_INT_AND_FLOAT_NATIVE
...
Fixes bug #73800
news entry for PR #2250
2017-01-02 14:54:45 +00:00
Joe Watkins
9f4d05acec
news entry for PR #2267
2017-01-02 11:57:45 +00:00
Arnout Boks
a8955926c2
Fixed #67474 (getElementsByTagNameNS and default namespace)
...
This bug was caused by the fact that dom_get_elements_by_tag_name_ns_raw
uses an empty string to filter on the default namespace (as NULL means
'no filter'), whereas in the node itself the default namespace is
signalled by nodep->ns being null.
2017-01-02 11:56:37 +00:00
Arnout Boks
19c4a2ef19
Add (failing) testcase for bug #67474
2017-01-02 11:56:33 +00:00
Joe Watkins
3e798c4a5f
Merge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0
...
* 'PHP-7.0' of git.php.net:/php-src: (146 commits)
Flush stderr on win32 in cli_log_message
Fixed bug #73154
FIx bug #70213
Fix dom class can't be inherited by the internal class
Another try at making concat_003 more reliable
Fix flaky openssl_pkey_new test
Make Opcache tests using the cli server more reliable
Revert "Fix #73530 : Unsetting result set may reset other result set"
define php_ap_map_http_request_error function for older httpd only
add old versions of httpd support
Disable AppVeyor fast_finish
Makes the sapi web server and curl tests more reliable
Fixes the curl tests to be more reliable in Travis CI
Interpretation of curl_setopt values for boolean parameters
Fixes #65689 . PDO_Firebrid / exec() does not free allocated statement.
Fix alpn_ctx leaking in openssl
Fixed bug #73373 (deflate_add does not verify that output was not truncated)
Fix IS_UNDEF comparisons in opcache
Fixed bug #73704 (phpdbg shows the wrong line in files with shebang)
Increase timing quota for small string concat test
...
2017-01-02 09:44:02 +00:00
Mitch Hagstrand
e077735b03
Fix nowait.phpt to no longer depend on sleeping
...
In Travis CI the nowait.phpt test sometimes fails because of
the usleep() not being long enough ensure proper
execution order. Instead of depending on sleeping the
test now uses two semaphores to guarantee execution order.
2017-01-02 09:43:47 +00:00
Nikita Popov
935b5cb11e
Flush stderr on win32 in cli_log_message
...
This allows us to unfork a bunch of tests for Windows.
2017-01-01 21:09:02 +01:00
Nikita Popov
4877641962
Fixed bug #73154
...
The object that is being serialized may be destroyed during the
execution of __sleep(), so operate on a copy instead.
2017-01-01 19:24:41 +01:00
Nikita Popov
9f560baef5
Merge branch 'PHP-5.6' into PHP-7.0
2017-01-01 14:12:26 +01:00
Nikita Popov
a65ad951ad
FIx bug #70213
2017-01-01 14:10:49 +01:00
dreamszhu
3c977618e1
Fix dom class can't be inherited by the internal class
2017-01-01 12:20:04 +01:00
Stanislav Malyshev
8d2539fa0f
Fix bug #73831 - NULL Pointer Dereference while unserialize php object
2016-12-31 20:14:20 -08:00
Stanislav Malyshev
1cda0d7c2f
Fix bug #73737 FPE when parsing a tag format
2016-12-31 19:31:49 -08:00
Stanislav Malyshev
e5246580a8
Fix bug #73773 - Seg fault when loading hostile phar
2016-12-31 18:47:50 -08:00
Stanislav Malyshev
16b3003ffc
Fix bug #73825 - Heap out of bounds read on unserialize in finish_nested_data()
2016-12-30 16:59:46 -08:00
Stanislav Malyshev
b28b8b2fee
Fix bug #73768 - Memory corruption when loading hostile phar
2016-12-30 15:57:24 -08:00
Stanislav Malyshev
ca46d0acbc
Fix int overflows in phar (bug #73764 )
2016-12-30 15:39:48 -08:00
Christoph M. Becker
97e16ebbe2
Merge branch 'PHP-7.0' of https://git.php.net/repository/php-src into PHP-7.0
...
* 'PHP-7.0' of https://git.php.net/repository/php-src :
Another try at making concat_003 more reliable
Fix flaky openssl_pkey_new test
Make Opcache tests using the cli server more reliable
2016-12-30 13:56:34 +01:00
Nikita Popov
432660f73f
Another try at making concat_003 more reliable
...
Use array_fill() for the array population loop -- this isn't the
part that is being tested and on PHP 7.0 w/o opcache this duplicates
the inner array a lot.
2016-12-29 21:39:40 +01:00
Nikita Popov
78675ebd9a
Fix flaky openssl_pkey_new test
...
Public key size may vary by one bit... switch to using %d for
key sizes.
2016-12-29 20:59:28 +01:00
Mitch Hagstrand
d0fcc74110
Make Opcache tests using the cli server more reliable
...
Same fix already applied to ext/curl/tests/server.inc
and sapi/cli/tests/php_cli_server.inc
1. Increases the amount of time for the PHP built-in server to accept a connection
2. Outputs an error if the PHP built-in server fails
2016-12-29 20:56:45 +01:00
Christoph M. Becker
88d1a2c5aa
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Revert "Fix #73530 : Unsetting result set may reset other result set"
# Conflicts:
# ext/sqlite3/sqlite3.c
2016-12-29 13:47:28 +01:00
Christoph M. Becker
2ba3b27594
Revert "Fix #73530 : Unsetting result set may reset other result set"
...
This reverts commit eb570294a2 .
That commit caused a regression, so it's probably best to revert it, and
to tackle the issue for the next minor release.
2016-12-29 12:59:04 +01:00
Xinchen Hui
a8931df672
Merge branch 'bugfix_timeout_61471' of https://github.com/axot/php-src into PHP-7.0
...
* 'bugfix_timeout_61471' of https://github.com/axot/php-src :
define php_ap_map_http_request_error function for older httpd only
add old versions of httpd support
typo fixed
bug fixed #61471 in apache2handler
2016-12-29 15:46:47 +08:00
Zheng SHAO
587497e3a9
define php_ap_map_http_request_error function for older httpd only
2016-12-29 16:07:05 +09:00
Zheng SHAO
d92606a4be
add old versions of httpd support
2016-12-29 00:41:56 +09:00
Nikita Popov
f2f35a2b27
Disable AppVeyor fast_finish
...
As NTS and TS fail in different ways, we want to see both.
2016-12-27 22:20:40 +01:00
Mitch Hagstrand
2d51267c07
Makes the sapi web server and curl tests more reliable
...
1. Increased the time for the sapi/cli/tests/php_cli_server.inc to accept connections.
2. sapi/cli/tests/php_cli_server.inc has errors messages and a `stop` function.
3. bug67429.phpt uses the `stop` function to shutdown the webserver before starting a new one.
4. Removed ext/curl/tests/bug48203_multi-win32.phpt test now that ext/curl/tests/bug48203_multi.phpt
runs on Windows also.
2016-12-27 21:52:05 +01:00
Mitch Hagstrand
92678d1a83
Fixes the curl tests to be more reliable in Travis CI
...
1. Increases the amount of time for the PHP built-in server to accept a connection
2. Outputs an error if the PHP built-in server fails
3. In bug48203_multi.phpt the test no longer starts and stops multiple PHP built-in servers
2016-12-27 21:52:05 +01:00
dedal.qq
7f29e7c678
Interpretation of curl_setopt values for boolean parameters
2016-12-25 22:32:49 -08:00
Dorin Marcoci
e926bf6507
Fixes #65689 . PDO_Firebrid / exec() does not free allocated statement.
2016-12-25 22:06:20 -08:00
Bob Weinand
ac1372d811
Fix alpn_ctx leaking in openssl
2016-12-22 23:34:07 +01:00
Bob Weinand
8823b68c41
Fixed bug #73373 (deflate_add does not verify that output was not truncated)
2016-12-22 15:29:36 +01:00
Sébastien Santoro
25c96f92f4
Fix IS_UNDEF comparisons in opcache
...
These conditions were formerly `!q->pData` and `!p->pData`, and should
now be detected as undefined variables, using the special type IS_UNDEF.
Incidentally, this syntax raised a logical-not-parentheses compiler
warning, now gone.
2016-12-22 12:46:14 +01:00
Bob Weinand
3b2b080cbc
Fixed bug #73704 (phpdbg shows the wrong line in files with shebang)
2016-12-22 00:39:24 +01:00
Nikita Popov
c41826d1e6
Increase timing quota for small string concat test
...
Test is regularly failing on Travis.
2016-12-21 21:27:47 +01:00
David Walker
5733fd1caf
Fix #73753 - Unpacked Arrays and Duplication
2016-12-21 21:18:20 +01:00
Bob Weinand
becda86ae5
Fix issue with -- in phpdbg command line
2016-12-21 02:42:23 +01:00
Dmitry Stogov
3c6a2fb08c
Fixed bug #73792 (invalid foreach loop hangs script)
2016-12-20 16:48:57 +03:00
Zheng SHAO
884e2a0519
Fixed NEWS conflicts
2016-12-20 09:48:47 +09:00
Anatol Belski
9fb8ea58b5
update NEWS
2016-12-19 01:07:08 +01:00
Dorin Marcoci
eb33d08f1e
Compatibility with Firebird & Oracle select syntax.
2016-12-19 01:06:24 +01:00
Anatol Belski
88c1491c6d
fix proto
2016-12-19 00:50:29 +01:00
Dorin Marcoci
cf46ac1179
Cursor is not opened on singleton selects.
...
Test case for unregistered bug on FB3 singleton selects
Set error mode to warning instead of exception.
2016-12-18 21:53:51 +01:00
Anatol Belski
3e48baa49d
fix arg spec and datatype, follow up on 73594
2016-12-18 21:16:35 +01:00
Bruce Weirdan
c78fd4568e
Fixed bug #73594
...
Skip the tests when local resolver does not behave
* Added SKIPIF sections to check local resolver
* Added test to check $authns parameter
2016-12-18 20:44:33 +01:00
Nikita Popov
c1af9f282f
Fix bug #46103
2016-12-18 17:10:19 +01:00
Nikita Popov
eb636fcb56
Add test for get_browser() in object mode
...
All other tests only check array return values...
2016-12-18 13:16:25 +01:00
Anatol Belski
58a945cf68
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix C89 compat
2016-12-17 20:45:22 +01:00
Anatol Belski
79e47aae41
fix C89 compat
2016-12-17 20:43:32 +01:00
Anatol Belski
0cd1c18853
replace default appveyor build version
2016-12-17 13:12:34 +01:00
Zheng SHAO
fb98907d2d
typo fixed
2016-12-17 20:26:09 +09:00
Anatol Belski
9afb05dcd1
add Appveyor fast_fail
2016-12-17 11:26:13 +01:00
Anatol Belski
158d11d53d
improve error check
2016-12-17 11:25:06 +01:00
Zheng SHAO
9b65a10256
bug fixed #61471 in apache2handler
2016-12-17 13:37:58 +09:00
Anatol Belski
53c4c38878
turn mcrypt back on for Appveyor runs
...
(cherry picked from commit fca2312fbe )
2016-12-17 00:13:16 +01:00
Anatol Belski
576ed049c5
add build status badge
...
(cherry picked from commit 3a886c9d20 )
2016-12-17 00:13:01 +01:00
Anatol Belski
aeebae641e
add scripts for AppVeyor integration
...
(cherry picked from commit c737d6fb49 )
2016-12-17 00:12:49 +01:00
Sara Golemon
5004ae2b62
Silence warning from unhandled enum
...
(cherry picked from commit 57bbe2c140 )
2016-12-17 00:12:33 +01:00
Anatol Belski
2f9e928af8
fix leaking streams and memory mapped files
...
(cherry picked from commit f1ff23095b )
2016-12-17 00:12:19 +01:00
Nikita Popov
fa92a16e46
Fix stack management in ini scanner
2016-12-16 20:54:46 +01:00
Anatol Belski
8bc3f179ce
make timing check more forgiving in these tests
...
Particularly on slower VMs, the sporadic fails can still happen.
The timing is kept in an uncritical range, but allows the tests
pass there. Mayby, it'd make sense to introduce a new group for
this kind of tests, so tests requiring exact time measurement
can be avoided on unsuitable environments.
2016-12-15 12:20:37 +01:00
Matteo Beccati
7c696fa886
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Skip tests when secure_file_priv dir not writable
2016-12-15 09:31:54 +01:00
Matteo Beccati
0c9324ea9b
Skip tests when secure_file_priv dir not writable
2016-12-15 09:31:00 +01:00
Yasuo Ohgaki
577b081a20
Add missing UPGRADING entry. Manual is updated before 7.0 release.
2016-12-15 16:16:45 +09:00
Anatol Belski
5136048064
extend skip section
...
The day light offset is calculated based on the system TZ, so with
an unsuitable one there's no way to workaround the false positives.
2016-12-14 19:53:55 +01:00
Nikita Popov
f99bf70360
Partially fix bug #70492
...
The libmagic portion is missing.
2016-12-14 18:11:27 +01:00
Anatol Belski
d663296e3b
cleanup temporary data
2016-12-14 12:33:13 +01:00
Nikita Popov
4b2cc62e26
More fixes for bug #73089
...
Insert a lot more DEREFs. Some may not be necessary, but better
safe than sorry. I'm thinking the soap_hash_str_find_deref function
should become part of the zend_hash API -- we need this in many
places.
2016-12-13 17:56:38 +01:00
Andrey Hristov
13fc1b92ca
Add a bit more test cases (edge cases) to the BIT test case
2016-12-12 21:52:36 +02:00
Andrey Hristov
a881ea7d86
Add a test case to test fetching of multiple rows with bit values.
2016-12-12 21:28:33 +02:00
Andrey Hristov
e15c418c4c
Fix off by 1 problem.
...
The problem was manifestated only with BIT columns and only when more than
one row was fetched. The problem was coming from the fact that in pre-7.0
times mysqlnd was using a no-copy optimization. This optimization kept the
strings (and also the BIT mask equivalents as strings) in the packet and the
zval referred to them. 7.0+ zvals cannot use no-copy and always copy. Because
of this the allocated memory for the packet was reduced by 1 by the person who
ported the driver, but the starting address of the bit area wasn't reduced.
Because of this the bit_area started at wrong address and the length decoded
wrong.
2016-12-12 21:11:02 +02:00
Anatol Belski
7a8774ade4
better way to get ACP
2016-12-12 01:54:22 +01:00
Anatol Belski
3473b519c0
fix datatype for zpp, yet a followup on bug #73679
2016-12-12 01:26:06 +01:00
Anatol Belski
ee2625e252
update NEWS
2016-12-11 17:39:08 +01:00
Anatol Belski
1d80fb2cdb
Fixed bug #73679 DOTNET read access violation using invalid codepage
2016-12-11 17:06:55 +01:00
Anatol Belski
66ad7918b8
fix uninitialized member
2016-12-08 17:15:06 +01:00
Ferenc Kovacs
a4d6d16b3b
Merge branch 'PHP-5.6' into PHP-7.0
2016-12-08 07:09:41 +01:00
Ferenc Kovacs
60da307c61
update NEWS
2016-12-08 07:05:32 +01:00
Anatol Belski
ff6565462e
git clean section
2016-12-08 03:24:18 +01:00
Anatol Belski
73fb2192d2
update NEWS
2016-12-07 21:22:34 +01:00
Dorin Marcoci
13ffa88e1f
Fixed bug #72931 PDO_FIREBIRD with Firebird 3.0 not work on returning statement
2016-12-07 21:06:11 +01:00
Markus Staab
dd77116fb0
Fixed typo in skipif error message
2016-12-07 13:35:58 +01:00
Dmitry Stogov
3c8c347fa7
Check if PHP is in execution state.
2016-12-07 15:12:18 +03:00
Anatol Belski
991ca7f7d7
update NEWS
2016-12-06 20:25:27 +01:00
Bob Weinand
7e12b5da71
Fixed issue getting executable lines from custom wrappers
...
See also krakjoe/phpdbg#161
2016-12-06 18:29:48 +01:00
Anatol Belski
fee5c049a8
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix leak, take 2
2016-12-06 16:17:28 +01:00
Anatol Belski
c89306ac52
fix leak, take 2
2016-12-06 16:12:39 +01:00
Anatol Belski
9b1430140a
fix leak, take on 7.x
2016-12-06 14:42:59 +01:00
Anatol Belski
f2fc812b78
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix leak, take on 5.6
2016-12-06 14:36:52 +01:00
Anatol Belski
b04d60626d
fix leak, take on 5.6
2016-12-06 14:34:27 +01:00
Xinchen Hui
358bd77b23
Fixed bug #73663 ("Invalid opcode 65/16/8" occurs with a variable created with list())
2016-12-06 17:32:32 +08:00
Stanislav Malyshev
183b4d78aa
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
This still leaks memory, I don't have enough knowledge in WDDX code to fix them :(
2016-12-05 22:33:33 -08:00
Stanislav Malyshev
d7ce944cf1
This still leaks memory, I don't have enough knowledge in WDDX code to fix them :(
2016-12-05 22:32:59 -08:00
Stanislav Malyshev
1d59ed7524
Fix bug #73645 - int/size_t confusion
2016-12-05 22:16:00 -08:00
Stanislav Malyshev
6292fe84d3
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #73631 - Invalid read when wddx decodes empty boolean element
2016-12-05 21:58:55 -08:00
Stanislav Malyshev
266ecb6d0a
Fix bug #73631 - Invalid read when wddx decodes empty boolean element
2016-12-05 21:40:55 -08:00
Dmitry Stogov
a983b728a7
Fixed behavior of failing compound assignments (they shouldn't change the source value when exception thrown during type converion).
2016-12-05 21:45:08 +03:00
Anatol Belski
eddca73ad2
fix test
...
This test depends on connection flags modifable from teh env,
that can affect the exact function called.
2016-12-04 22:42:39 +01:00
Anatol Belski
1eb3f01c68
fix test
...
On Windows, either doubled backslashes or forward slashes are supported
on the server side.
2016-12-04 22:27:17 +01:00
Anatol Belski
69fbc751ff
fix ident
2016-12-04 20:59:12 +01:00
Anatol Belski
8e209d0435
fix test
2016-12-04 17:28:43 +01:00
Anatol Belski
10a2ceef3b
enforce the test ini usage for the child process
2016-12-04 14:01:40 +01:00
Bob Weinand
46d708a1b6
Fix PHP-7.0 build (wrong fix for the branch)
2016-12-03 23:39:54 +01:00
Bob Weinand
ffc1ef1eed
Fix leak when using $this outside of object context
2016-12-03 18:28:08 +01:00
Christoph M. Becker
a8ec79e27f
Merge branch 'PHP-5.6' into PHP-7.0
2016-12-03 14:18:00 +01:00
Adrien Crivelli
cf2496140d
Fix minor typo
2016-12-03 14:15:52 +01:00
Nikita Popov
8f7325fc24
Fix leak in shift_right_function
2016-12-02 17:03:05 +01:00
Bob Weinand
3c1a0d75bf
Fix test of wrong operator in self_xor.phpt
2016-12-02 15:41:47 +01:00
Dmitry Stogov
68558ab71d
Eliminated useless exception check
2016-12-02 15:39:33 +03:00
Dmitry Stogov
2b70d44b57
Fixed behavior of failing compound assignments (they shouldn't change the source value when exception thrown during type converion).
2016-12-02 15:13:55 +03:00
Dmitry Stogov
dbf39cddd9
Fixed behavior of failing compound assignments (they shouldn't change the source value).
2016-12-02 13:58:44 +03:00
Dmitry Stogov
67d90a4870
Fixed possible memory leak in &=, |=, ^=.
2016-12-02 12:34:46 +03:00
Bob Weinand
fcaccbaa22
Fix valgrind issue when throwing due to yield from aborted generator
2016-12-01 15:21:28 +01:00
Anatol Belski
2252d4e59d
fork tests
2016-12-01 14:52:18 +01:00
Dmitry Stogov
7f22e3c879
Fixed bad merge
2016-12-01 16:21:57 +03:00
Dmitry Stogov
b7b7dd8cea
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Workaround for GCC-4.9.2 bug
oops, changed in wrong place
2016-12-01 15:50:05 +03:00
Dmitry Stogov
1cd566e13f
Workaround for GCC-4.9.2 bug
2016-12-01 15:46:52 +03:00
Anatol Belski
043d8e2fe1
improve skipif
2016-12-01 13:32:10 +01:00
Dmitry Stogov
003346c450
Simpler overflow check
2016-12-01 10:30:02 +03:00
Nuno Lopes
d5a2af6d1c
Merge branch 'PHP-7.0' of https://git.php.net/push/php-src into PHP-7.0
2016-11-30 14:41:26 -05:00
Bob Weinand
344ef050aa
Fix run-tests.php to always include TEST_PHPDBG_EXECUTABLE if phpdbg available
2016-11-30 11:44:10 +01:00
Bob Weinand
b73a3afff3
Fixed bug #73615 (phpdbg without option never load .phpdbginit at startup)
2016-11-30 02:56:47 +01:00
Dmitry Stogov
9a9ad56af0
Fixed bug #73586 (php_user_filter::$stream is not set to the stream the filter is working on).
2016-11-28 12:54:47 +03:00
Dmitry Stogov
970f21be97
Fixed calling generators through magic __call()
2016-11-28 12:20:19 +03:00
Stanislav Malyshev
c8778eb293
oops, changed in wrong place
2016-11-27 16:11:41 -08:00
Stanislav Malyshev
fe04f5494a
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
add NEWS
2016-11-27 15:38:22 -08:00
Stanislav Malyshev
36d02a36ae
add NEWS
2016-11-27 15:38:09 -08:00
Stanislav Malyshev
f1a9851c3e
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix #68447 : grapheme_extract take an extra trailing character
2016-11-27 15:36:29 -08:00
Stanislav Malyshev
8856b3a63c
Merge branch 'pull-request/1974' into PHP-5.6
...
* pull-request/1974:
Fix #68447 : grapheme_extract take an extra trailing character
2016-11-27 15:34:58 -08:00
Stanislav Malyshev
1cb58ead70
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix #73549 : Use after free when stream is passed to imagepng
2016-11-27 14:53:27 -08:00
Christoph M. Becker
5049ef2f1c
Fix #73549 : Use after free when stream is passed to imagepng
...
If a stream is passed to imagepng() or other image output functions,
opposed to a filename, we must not close this stream.
2016-11-27 14:51:02 -08:00
Matteo Beccati
54c04befc2
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix occasionaly failing test
2016-11-27 10:20:38 +01:00
Matteo Beccati
2a80758fd5
Fix occasionaly failing test
2016-11-27 10:20:13 +01:00
Matteo Beccati
f9b158df07
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Added missing array key to $JUNIT
2016-11-27 10:08:04 +01:00
Matteo Beccati
28cf42568b
Added missing array key to $JUNIT
2016-11-27 10:07:05 +01:00
Stanislav Malyshev
343c056772
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
acinclude.m4: fix krb5-config detection and usage in PHP_SETUP_KERBEROS.
Add more mbfl string size checks (bug #73505 )
2016-11-26 15:36:57 -08:00
Michael Orlitzky
114277ed45
acinclude.m4: fix krb5-config detection and usage in PHP_SETUP_KERBEROS.
...
When building with kerberos support (--with-kerberos), a few libraries
and flags need to be added to various parts of the build system. The
most reliable way to get those flags is through the krb5-config
program that ships with both major implementations of kerberos. The
PHP_SETUP_KERBEROS macro in acinclude.m4 attempts to detect
krb5-config, and use it.
However, there's a bug in that macro. The --with-kerberos parameter
accepts a directory where the kerberos libraries can be found. When a
directory is given, it is stored in the PHP_KERBEROS variable. The
following test,
if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then
thus fails whenever a directory is passed to --with-kerberos, since it
compares a directory name against the string "yes". This causes
krb5-config to go unused, and some unreliable fallback logic is
attempted instead. One consequence of this is that the Heimdal
kerberos implementation cannot be substituted for the MIT one, at
least when a directory is passed to --with-kerberos.
This commit reverses the logic and checks for "$PHP_KERBEROS" != "no".
To confirm that this fixes the issue, one can inspect the "-l" library
flags that get appended to the command-line. On a machine with Heimdal
and the unmodified acinclude.m4, running
./configure --with-openssl --with-kerberos=/usr
will log (for example) to config.log,
configure:18082: checking for krb5-config
configure:18101: found /usr/bin/krb5-config
configure:18114: result: /usr/bin/krb5-config
configure:18450: checking for RAND_egd
configure:18450: cc ... conftest.c ... -lgssapi_krb5 -lkrb5 ...
which are the library names for the MIT implementation. After patching
acinclude.m4 to negate the logic, the same command on the same machine
outputs (to config.log):
configure:18450: cc ... conftest.c -lgssapi -lheimntlm ...
These are the correct library names for the Heimdal implementation.
PHP-Bug: 73214
2016-11-26 15:36:49 -08:00
Stanislav Malyshev
bc85678df3
Add more mbfl string size checks (bug #73505 )
2016-11-26 14:49:48 -08:00
Stanislav Malyshev
58cdd03d92
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Add more mbfl string size checks (bug #73505 )
2016-11-26 14:48:40 -08:00
Stanislav Malyshev
5ee02b207d
Add more mbfl string size checks (bug #73505 )
2016-11-26 14:47:58 -08:00
Christoph M. Becker
003727d851
Fix #73612 : preg_*() may leak memory
...
We have to make sure that collectible zvals end up in the GC root
buffer, to avoid memory leaks.
2016-11-26 15:34:27 +01:00
Stanislav Malyshev
8be94d46f8
Fix more size_t/int implicit conversions
...
Now the conversions are explicit and do checks. Not sure it's
the best way but at least we can see them now in the open.
2016-11-25 15:31:50 -08:00
Stanislav Malyshev
bcc913fa8b
Fix int/size_t confusion in isValidPharFilename (bug #73580 )
2016-11-25 15:31:50 -08:00
Christoph M. Becker
bc979aee6d
Merge branch 'PHP-5.6' into PHP-7.0
2016-11-25 23:16:18 +01:00
Christoph M. Becker
7f529e3dee
Fix #73582 : Failing ext/gd/tests/imagettftext_charmap_order.phpt
...
This test is not supposed to work with JIS-mapped Japanese font support
enabled.
2016-11-25 23:14:08 +01:00
Anatol Belski
a36dd1dfd8
add test for bug #57547
2016-11-24 19:25:47 +01:00
Derick Rethans
c38f2c2a6b
Updated to version 2016.10 (2016j)
2016-11-24 10:40:14 +00:00
Derick Rethans
0fcb39dbaa
Empty merge
2016-11-24 10:40:13 +00:00
Derick Rethans
6785ea2340
Updated to version 2016.10 (2016j)
2016-11-24 10:40:11 +00:00
Xinchen Hui
e19d263d81
Fixed bug #73585 (Logging of "Internal Zend error - Missing class information" missing class name)
...
Actually, I doubt how thing bug could be triggered
2016-11-24 12:02:02 +08:00
Ferenc Kovacs
f8a7676fc8
Merge branch 'PHP-5.6' into PHP-7.0
2016-11-24 01:57:42 +01:00
Ferenc Kovacs
e715dafae0
5.6.30 will be next
2016-11-24 01:54:23 +01:00
Nikita Popov
5b88c61580
Merge branch 'PHP-5.6' into PHP-7.0
2016-11-22 19:25:31 +01:00
Nikita Popov
2d19c92fc2
Make php_url_parse_ex() respect length argument
...
This should fix all out-of-bounds reads that could previously
occur if the string passed to php_url_parse_ex() is not NUL
terminated.
2016-11-22 19:24:24 +01:00
Nikita Popov
f0f68c7274
Cleanup parse_url() query/fragment handling
...
The query/fragment handling was pretty convoluted, with many parts
being duplicated. Simplify by checking for fragment, then for query,
then for path.
2016-11-22 19:24:23 +01:00
Nikita Popov
9befad6fc2
Cleanup parse_url() gotos
...
Simplify some unnecessarily complicated code. In particular the
length updates are unnecessary (length is only used at the very
start) and we're goto'ing around a bit too much.
2016-11-22 19:24:21 +01:00
Anatol Belski
13c45021dc
update libs_versions.txt
2016-11-22 12:42:57 +01:00
Anatol Belski
189deb9fa3
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update libs versions.txt
2016-11-22 12:42:20 +01:00
Anatol Belski
3e45385903
update libs versions.txt
2016-11-22 12:36:51 +01:00
Anatol Belski
df902a7c28
move dev to next
2016-11-22 11:49:09 +01:00
Dmitry Stogov
0cf69234e9
Fixed use after free
2016-11-22 13:28:27 +03:00
Dmitry Stogov
63ea4d194b
Fixed memory leak (Bob)
2016-11-22 11:22:10 +03:00
Anatol Belski
0da08fe595
Revert "fix invalid read, follow up on 97b65cc9"
...
This reverts commit b52fa5882a .
2016-11-22 02:52:23 +01:00
Anatol Belski
b52fa5882a
fix invalid read, follow up on 97b65cc9
2016-11-22 02:28:45 +01:00
Anatol Belski
d30b73a7d4
update NEWS
2016-11-22 00:59:40 +01:00
Anatol Belski
8c0227745b
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update NEWS
2016-11-22 00:59:07 +01:00
Anatol Belski
0796db97d4
update NEWS
2016-11-22 00:57:18 +01:00
Anatol Belski
58aa1a70a0
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #73498
Add a test for bug 73498
2016-11-22 00:46:03 +01:00
Craig Duncan
644e290fcd
Fix bug #73498
...
Postgres uses the DELIMITER keyword since 7.3
And WITH is no longer required/used
2016-11-22 00:42:45 +01:00
Craig Duncan
d36d4c70d3
Add a test for bug 73498
2016-11-22 00:42:45 +01:00
Anatol Belski
5e9b4c26a5
remove TSRMLS_*
2016-11-21 23:53:37 +01:00
Anatol Belski
914ff56cff
update php.ini-* for bug #69090
2016-11-21 22:58:23 +01:00
Anatol Belski
d83ed9b588
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update php.ini-* according to changes for bug #69090
2016-11-21 22:56:46 +01:00
Anatol Belski
850c1095ab
update php.ini-* according to changes for bug #69090
2016-11-21 22:52:03 +01:00
Anatol Belski
35993dbb6f
update NEWS
2016-11-21 19:59:30 +01:00
Anatol Belski
0df6a32a35
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update NEWS
2016-11-21 19:58:54 +01:00
Anatol Belski
1d352645fc
update NEWS
2016-11-21 19:56:09 +01:00
Anatol Belski
eb53865dfd
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
add test for bug #73452
Backport 15ac4904 to 5.6
2016-11-21 15:29:44 +01:00
Anatol Belski
4805be1db6
add test for bug #73452
2016-11-21 15:25:46 +01:00
Anatol Belski
0da5cb5fb6
Backport 15ac4904 to 5.6
2016-11-21 15:20:03 +01:00
Xinchen Hui
a39d2f8ea1
Update NEWS
2016-11-21 11:45:49 +08:00
Tyson Andre
cdb7aafc23
Fix memory leak(null coalescing operator with Spl hash)
...
The SEPARATE_ARG_IF_REF macro increased the refcount of the object passed as a
key.
However, when the key did not exist in the ArrayAccess implementation,
the code returned early without trying to decrement the refcount.
Add a test of `??` succeeding+failing on a SplObjectStorage instance.
2016-11-20 15:46:13 -08:00
Jakub Zelenka
60574ea1ac
Fix bug #73526 (php_json_encode depth issue)
2016-11-20 20:36:03 +00:00
Craig Duncan
685b1292e9
Fix bug #73538
...
Remove any previous default headers and replace with the specified
ones, as documented, and as is the case when a single header is
passed.
2016-11-20 21:18:28 +01:00
Bob Weinand
bc30206b8a
Revert "Revert "Remove a few unused write warning""
...
This reverts commit ff5a65d26b .
(With zend_ prefix now)
2016-11-20 19:18:50 +01:00
Nikita Popov
ff5a65d26b
Revert "Remove a few unused write warning (backport from master, oops)s"
...
This reverts commit c65d24eaa3 .
2016-11-20 19:09:05 +01:00
Bob Weinand
c65d24eaa3
Remove a few unused write warning (backport from master, oops)s
2016-11-20 14:17:14 +01:00
Xinchen Hui
ebfd93f725
Fixed bug #73483 (Segmentation fault on pcre_replace_callback)
2016-11-20 15:44:27 +08:00
Joe Watkins
274951a4a2
Fix #73219 (fix acinclude when / is present)
2016-11-20 05:34:08 +00:00
Joe Watkins
7753d10457
make it possible to show specific help pages without interactive session
2016-11-20 05:24:14 +00:00
Anatol Belski
48191010d5
fix test portability
2016-11-18 22:10:41 +01:00
Anatol Belski
5b9d7160c5
don't fail miserably, when an unknown vc version is used
2016-11-18 18:19:47 +01:00
Nikita Popov
c0b0e1b0c7
Merge branch 'PHP-5.6' into PHP-7.0
2016-11-18 17:56:16 +01:00
Mitch Hagstrand
55980684f6
Fix the lchwon error test for Travis CI.
...
The E_WARNING message from the PHP function lchown is passed
from the system function lchown. The error message returned
from lchown can be filesystem dependent.
2016-11-18 17:55:44 +01:00
Christoph M. Becker
583a273849
Merge branch 'PHP-5.6' into PHP-7.0
2016-11-18 14:29:52 +01:00
Dmitry Stogov
74b3e809d9
Regenerated scanner
2016-11-18 16:19:46 +03:00
Dmitry Stogov
97b65cc9c2
Fixed memory leaks in parse_ini_file()
2016-11-18 16:17:52 +03:00
Christoph M. Becker
e44deba1e9
Fix #64526 : Add missing mysqlnd.* parameters to php.ini-*
2016-11-18 14:17:19 +01:00
Dmitry Stogov
0c78fe4bb5
Disabled PHP call tracing by default (it makes significant overhead).
...
This may be enabled again using envirionment variable USE_ZEND_DTRACE=1.
2016-11-18 13:19:30 +03:00
Anatol Belski
5008acd1f6
add vc15 to the list
2016-11-17 23:43:32 +01:00
Dmitry Stogov
3817a2e6d5
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed test
Updated NEWS
Improvement for bug73297
Simplify ext/standard/tests/http/bug73297.phpt
http_fopen_wrapper.c - bug#73297 Skip past "100 Continue" responses
Add failing test for bug#73297
2016-11-17 15:58:38 +03:00
Dmitry Stogov
c2d6ffb85f
Fixed test
2016-11-17 15:57:40 +03:00
Dmitry Stogov
05d382e7ec
Merge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0
...
* 'PHP-7.0' of git.php.net:php-src:
Updated NEWS
Improvement for bug73297
Simplify ext/standard/tests/http/bug73297.phpt
http_fopen_wrapper.c - bug#73297 Skip past "100 Continue" responses
Add failing test for bug#73297
2016-11-17 14:07:11 +03:00
Dmitry Stogov
c2173c16d0
Fixed 64-bit build
2016-11-17 14:05:22 +03:00
Julien Pauli
0e03003db2
Updated NEWS
2016-11-17 11:51:53 +01:00
Julien Pauli
4b2cbc3f2f
Improvement for bug73297
2016-11-17 11:51:53 +01:00
Rowan Collins
66ac73bee8
Simplify ext/standard/tests/http/bug73297.phpt
2016-11-17 11:51:53 +01:00
Rowan Collins
94374c51e7
http_fopen_wrapper.c - bug#73297 Skip past "100 Continue" responses
2016-11-17 11:51:53 +01:00
Rowan Collins
4683377dfa
Add failing test for bug#73297
2016-11-17 11:51:53 +01:00
Julien Pauli
c4f1c20d80
Updated NEWS
2016-11-17 11:37:13 +01:00
Julien Pauli
49030f2a25
Improvement for bug73297
2016-11-17 11:33:36 +01:00
Dmitry Stogov
a67637039f
Prevent modification of immutable arrays (ext/mbstring/tests/bug26639.phpt failure with opcache.protect_memory=1)
2016-11-17 13:33:05 +03:00
Dmitry Stogov
d4b3f89c53
Overflow check
2016-11-17 13:17:34 +03:00
Rowan Collins
eba5e276c7
Simplify ext/standard/tests/http/bug73297.phpt
2016-11-17 11:04:57 +01:00
Rowan Collins
aec1a5eccc
http_fopen_wrapper.c - bug#73297 Skip past "100 Continue" responses
2016-11-17 11:04:56 +01:00
Rowan Collins
6122526cea
Add failing test for bug#73297
2016-11-17 11:04:56 +01:00
Dmitry Stogov
5e001c34ec
Skip 64-bit specific tests on 32-bit systems
2016-11-17 11:44:28 +03:00
Dmitry Stogov
27542d9c9d
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Accorate handling of too big inodes of chroot directories
2016-11-17 01:14:23 +03:00
Dmitry Stogov
9849c97b1b
Accorate handling of too big inodes of chroot directories
2016-11-17 01:08:42 +03:00
Mitch Hagstrand
1d8be7c044
Fix #73546 : Logging for opcache has an empty file name
2016-11-16 21:30:40 +01:00
Dmitry Stogov
71ee641327
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
"opcache.validate_root" is useless on Windows
2016-11-16 23:19:56 +03:00
Dmitry Stogov
935d922114
"opcache.validate_root" is useless on Windows
2016-11-16 23:15:14 +03:00
Nuno Lopes
d26b8804d0
fix gcov coverage
2016-11-16 15:11:07 -05:00
Dmitry Stogov
8e350a627a
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Use full path
2016-11-16 23:05:00 +03:00
Dmitry Stogov
8202b97077
Use full path
2016-11-16 23:01:40 +03:00
Dmitry Stogov
99e5d6c4a5
Merge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0
...
* 'PHP-7.0' of git.php.net:php-src:
2016-11-16 16:47:05 +03:00
Dmitry Stogov
eb976b89c4
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed ZTS build
Fix #73530 : Unsetting result set may reset other result set
2016-11-16 16:46:54 +03:00
Dmitry Stogov
a91f3d475e
Fixed ZTS build
2016-11-16 16:43:57 +03:00
Christoph M. Becker
936cafe33e
Merge branch 'PHP-5.6' into PHP-7.0
2016-11-16 12:00:39 +01:00
Christoph M. Becker
eb570294a2
Fix #73530 : Unsetting result set may reset other result set
...
Calling sqlite3_reset() when a result set object is freed can cause
undesired and maybe even hard to track interference with other result
sets. Furthermore, there is no need to call sqlite3_reset(), because
that is implicitly called on SQLite3Stmt::execute(), and users are
encouraged to explicitly call either SQLite3Result::finalize() or
SQLite3Stmt::reset() anyway.
2016-11-16 11:49:04 +01:00
Dmitry Stogov
a1a5b52f3b
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed bug #69090 (check cached files permissions)
2016-11-16 12:49:50 +03:00
Dmitry Stogov
ecba563f2f
Fixed bug #69090 (check cached files permissions)
2016-11-16 12:43:10 +03:00
Bob Weinand
22a43551a2
Fix passing of wrong values in bp export
2016-11-13 18:30:23 +01:00
Bob Weinand
ba75d4c50b
Properly escape all filenames when exporting breakpoints
2016-11-13 13:22:06 +01:00
Mitch Hagstrand
57c0773cd7
Fix phpdbg breakpoint restoring after execution completes
2016-11-13 12:44:25 +01:00
Joe Watkins
84e2904def
news entry for #1787
2016-11-13 05:33:59 +00:00
jhdxr
0bd63959c9
move declaration of vars to top
2016-11-13 05:32:24 +00:00
jhdxr
9ad2083773
add test for #69587
2016-11-13 05:32:24 +00:00
jhdxr
23f9e48273
fix bug #69587 DateInterval properties and isset
2016-11-13 05:32:24 +00:00
Joe Watkins
beed682572
news entry for #2166
2016-11-12 17:45:16 +00:00
Edgar R. Sandi
72be8de39f
fixed bug generated by fixes bug #73135
2016-11-12 17:43:16 +00:00
Edgar R. Sandi
1631c61feb
phpt file to bug #73135
2016-11-12 17:43:16 +00:00
Edgar R. Sandi
319822b050
fixes bug #73135
2016-11-12 17:43:16 +00:00
Joe Watkins
d2b03119e2
news entry for calendar overflow fix
2016-11-12 17:35:04 +00:00
Joshua Rogers
1b8cfaf23d
Fix integer overflow in calender.
...
Fix int overflows in conversation functions for calendar.
Add tests for the overflows.
2016-11-12 17:33:51 +00:00
Jean Carlo Machado
f578ce3a13
added a test for date_interval_format function
2016-11-12 09:57:50 +00:00
Joe Watkins
ff1986e4d7
Merge branch 'pull-request/2198'
2016-11-12 08:16:01 +00:00
Stricted
81fed37784
fix erroneous line in confutils.js
2016-11-12 02:35:41 +01:00
Nikita Popov
bb3d0c0e17
Fcall optimization: Avoid FETCH_DIM_R with UNUSED op2
2016-11-10 21:36:46 +01:00
Dmitry Stogov
15ac490472
Don't update proprties inplace.
2016-11-10 12:32:07 +03:00
Anatol Belski
f6be108574
add missing NEWS entry
2016-11-09 21:34:41 +01:00
Anatol Belski
cc1337bced
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
add missing NEWS entry
2016-11-09 21:34:16 +01:00
Anatol Belski
e922d89f66
add missing NEWS entry
2016-11-09 21:32:44 +01:00
Anatol Belski
1beb5a74b1
sync NEWS
2016-11-09 11:19:13 +01:00
Ferenc Kovacs
723c7c6466
Merge branch 'PHP-5.6' into PHP-7.0
2016-11-09 02:16:32 +01:00
Ferenc Kovacs
87673d6e99
add missing NEWS entries
2016-11-09 02:12:16 +01:00
Anatol Belski
e87daf363b
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix memory leak
2016-11-08 12:16:39 +01:00
Anatol Belski
d6d08f97cd
fix memory leak
2016-11-08 12:12:58 +01:00
Anatol Belski
2b30b54275
Merge remote-tracking branch 'phpsec/PHP-7.0.13' into PHP-7.0
...
* phpsec/PHP-7.0.13:
Fixed bug #73418 Integer Overflow in "_php_imap_mail" leads to crash
Fix #72696 : imagefilltoborder stackoverflow on truecolor images
Fix #72482 : Ilegal write/read access caused by gdImageAALine overflow
Fix bug #73144 and bug #73341 - remove extra dtor
remove unreferenced var came in with merge
Fix bug #73331 - do not try to serialize/unserialize objects wddx can not handle
fix version
set versions
2016-11-08 11:13:29 +01:00
Anatol Belski
5faaf76bd5
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed bug #73418 Integer Overflow in "_php_imap_mail" leads to crash
Fix #72696 : imagefilltoborder stackoverflow on truecolor images
Fix #72482 : Ilegal write/read access caused by gdImageAALine overflow
Fix bug #73144 and bug #73341 - remove extra dtor
Fix bug #73331 - do not try to serialize/unserialize objects wddx can not handle
2016-11-08 11:11:22 +01:00
Anatol Belski
33766347cb
Merge remote-tracking branch 'phpsec/PHP-5.6.28' into PHP-5.6
2016-11-08 11:06:52 +01:00
Anatol Belski
ef55a4b5b3
Enable FTS4 and FTS5 for bundled libsqlite
...
FTS3 is already enabled by default, and the other FTS versions
seems just to have been missed. Given that, the other FTS plugins
look like a low impact so worth a try. The current bundled libsqlite
versions in 7.x are proven stable already and support FTS5.
2016-11-08 02:26:43 +01:00
Anatol Belski
0c2156d190
avoid unneeded copying
2016-11-07 21:09:03 +01:00
Anatol Belski
a67b894cc8
update NEWS
2016-11-07 20:47:06 +01:00
Anatol Belski
f0676cbe20
Add test for bug #73448
2016-11-07 20:39:51 +01:00
Anatol Belski
3558e70e58
Fixed bug #73448 odbc_errormsg returns trash, always 513 bytes
2016-11-07 20:18:29 +01:00
Jakub Zelenka
20587805f9
Merge branch 'PHP-5.6' into PHP-7.0
2016-11-06 20:43:50 +00:00
Jakub Zelenka
493b2bff02
Fix bug #72776 (Invalid parameter in memcpy function trough openssl_pbkdf2)
2016-11-06 20:40:51 +00:00
Anatol Belski
8d1376ee4f
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
add missing RETURN_STRINGL_CHECK
2016-11-06 17:56:14 +01:00
Anatol Belski
b044a7429e
add missing RETURN_STRINGL_CHECK
...
As RETVAL_STRINGL_CHECK is already there, this one is needed for
completion. One place in ext/bz2 is missing that, so it will likely
be useful for other possible fixes.
2016-11-06 17:51:25 +01:00
Anatol Belski
b9200b4623
update NEWS
2016-11-06 17:11:19 +01:00
Nikita Popov
b2af4e8868
Complete the fix of bug #70172 for PHP 7
2016-11-05 23:06:27 +01:00
Dorin Marcoci
3d73f718b2
Fix blob parameters binding. Fixes : #73087 , #61183 , #71494
...
Adjusted formatting according to requirements
Test case for bug #73087
2016-11-05 22:49:16 +01:00
Stanislav Malyshev
3b78cabc88
More int->size_t and string overflow fixes
2016-11-05 14:00:47 -07:00
Anatol Belski
cf4f168d4c
rename the tmp ini file, to keep it consistent with m4 variant
2016-11-04 18:42:36 +01:00
Anatol Belski
3ec398f650
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix dir separator in test
2016-11-04 18:38:22 +01:00
Anatol Belski
617f38b0e0
fix dir separator in test
2016-11-04 18:29:54 +01:00
Anatol Belski
a61eade827
fix dir separator
2016-11-04 13:10:52 +01:00
Stanislav Malyshev
d858b4c77f
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Add length check for bzcompress too - fix for bug #73356
2016-11-03 22:30:46 -07:00
Stanislav Malyshev
40f7fea897
Add length check for bzcompress too - fix for bug #73356
2016-11-03 22:10:22 -07:00
Stanislav Malyshev
2fa455128c
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
More string length checks & fixes
2016-11-03 22:05:25 -07:00
Stanislav Malyshev
1fd18821e0
More string length checks & fixes
2016-11-03 21:35:09 -07:00
Stanislav Malyshev
6e12e49b5b
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
More string length checks & fixes
2016-11-03 20:46:25 -07:00
Stanislav Malyshev
ea9fac94bb
More string length checks & fixes
2016-11-03 20:36:52 -07:00
Derick Rethans
7f2b7a4950
Updated to version 2016.9 (2016i)
2016-11-03 13:57:31 -04:00
Derick Rethans
209202e4b5
Empty merge
2016-11-03 13:57:30 -04:00
Derick Rethans
ccb91cde94
Updated to version 2016.9 (2016i)
2016-11-03 13:57:28 -04:00
Anatol Belski
de643586de
Fixed bug #73418 Integer Overflow in "_php_imap_mail" leads to crash
...
(cherry picked from commit 99b242a6d0 )
2016-11-03 17:09:03 +01:00
Anatol Belski
99b242a6d0
Fixed bug #73418 Integer Overflow in "_php_imap_mail" leads to crash
2016-11-03 17:03:23 +01:00
Xinchen Hui
1efb9fd32d
Fixed bug #73423 (Reproducible crash with GDB backtrace)
2016-11-02 12:11:30 +08:00
Christoph M. Becker
8957ff36b3
Merge branch 'PHP-5.6' into PHP-7.0
2016-11-01 20:24:10 +01:00
Christoph M. Becker
2eacb53fc4
Fix #73436 : Setting allow_url_fopen to Off makes several tests fail
...
We make sure that these tests run with allow_url_fopen=1.
2016-11-01 20:13:53 +01:00
Anatol Belski
197def7233
add run target
...
With this it is possible to run some code with the currently compiled
PHP and all the required environment included.
2016-11-01 13:50:46 +01:00
Christoph M. Becker
5693474997
Fix #72696 : imagefilltoborder stackoverflow on truecolor images
...
We must not allow negative color values be passed to
gdImageFillToBorder(), because that can lead to infinite recursion
since the recursion termination condition will not necessarily be met.
(cherry picked from commit 863d37ea66 )
2016-11-01 13:07:37 +01:00
Christoph M. Becker
1b5543b8ab
Fix #72482 : Ilegal write/read access caused by gdImageAALine overflow
...
Instead of rolling our own bounds check we use clip_1d() as it's done
in gdImageLine() and in external libgd. We must not pass the image
width and height, respectively, but rather the largest ordinate value
that is allowed to be accessed, i.e. width-1 and height-1,
respectively.
(cherry picked from commit 6499581af7 )
2016-11-01 13:03:41 +01:00
Stanislav Malyshev
7cf7920055
Fix bug #73144 and bug #73341 - remove extra dtor
...
(cherry picked from commit f74d7d92c8 )
Conflicts:
ext/spl/spl_array.c
Merged the test only, in 7.0 tree the removed dtor call is already
not present.
2016-11-01 13:01:58 +01:00
Anatol Belski
6b21c28b0e
remove unreferenced var came in with merge
2016-11-01 12:55:05 +01:00
Stanislav Malyshev
8c67460a10
Fix bug #73331 - do not try to serialize/unserialize objects wddx can not handle
...
Proper soltion would be to call serialize/unserialize and deal with the result,
but this requires more work that should be done by wddx maintainer (not me).
(cherry picked from commit 6045de69c7 )
Conflicts:
ext/wddx/wddx.c
2016-11-01 12:50:33 +01:00
Christoph M. Becker
863d37ea66
Fix #72696 : imagefilltoborder stackoverflow on truecolor images
...
We must not allow negative color values be passed to
gdImageFillToBorder(), because that can lead to infinite recursion
since the recursion termination condition will not necessarily be met.
2016-10-30 14:31:29 -07:00
Christoph M. Becker
6499581af7
Fix #72482 : Ilegal write/read access caused by gdImageAALine overflow
...
Instead of rolling our own bounds check we use clip_1d() as it's done
in gdImageLine() and in external libgd. We must not pass the image
width and height, respectively, but rather the largest ordinate value
that is allowed to be accessed, i.e. width-1 and height-1,
respectively.
2016-10-30 14:28:23 -07:00
Anatol Belski
4b472b0763
prefer symbols read from the bin to those matching the naming scheme
2016-10-30 21:26:19 +01:00
Anatol Belski
4dfd7de974
remove debug out
2016-10-30 21:12:50 +01:00
Anatol Belski
c5a4a6f1f2
fix link with deps pdb availability
...
Unlike debugger, linker is currently not able to read the pdb files,
even if they're put onto path. As result, a lot of LNK4099 warnings
and in some cases also missing debug information in the end binaries.
This is solved by copying the relevant pdb into the build dir, which
then can be picked up on link time. This also leads to the inclusion
of those pdb files into the debug package, so symbols won't be missed
in crash dumps. As otherwise the debug info for dependencies is only
contained in the dependency packages.
2016-10-30 20:55:38 +01:00
Anatol Belski
cdea5eb941
use rather the makefile var
2016-10-30 15:29:13 +01:00
Anatol Belski
78a164bad5
rename the env setting target and reuse it for build-snap
2016-10-30 15:22:45 +01:00
Bob Weinand
36527eccbb
Fixed build failure introduced by PR #2158
...
Note: AC_TRY_LINK interprets the source as part of a main function, ending up with int main() { /* ... */ int main() { /* ... */ } ; return 0; } here - Using AC_LINK_IFELSE with AC_LANG_SOURCE directly instead.
2016-10-29 18:49:38 +02:00
Anatol Belski
c7ec36d4fa
fix condition
2016-10-29 17:54:26 +02:00
Xinchen Hui
af873d4788
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed bug #73402 (Opcache segfault when using class constant to call a method)
Conflicts:
ext/opcache/Optimizer/zend_optimizer.c
2016-10-29 23:43:59 +08:00
Xinchen Hui
ef75ddd4f9
Fixed bug #73402 (Opcache segfault when using class constant to call a method)
2016-10-29 23:41:51 +08:00
Xinchen Hui
66caa61188
Skip if no jit is built
2016-10-29 14:23:25 +08:00
Anatol Belski
ddbcb2084a
fix test run with autogenerated ini
2016-10-29 03:17:29 +02:00
Anatol Belski
5b04a2187e
generate test ini file, so shared exts are loaded for nmake test
2016-10-29 02:08:48 +02:00
Anatol Belski
f5131c6c04
additional env is generated for phpize, too
2016-10-28 23:11:47 +02:00
Xinchen Hui
e5aa365147
Fixed bug #73392 (A use-after-free in zend allocator management)
2016-10-28 21:21:24 +08:00
Ferenc Kovacs
09a224d702
Merge branch 'PHP-5.6' into PHP-7.0
2016-10-27 23:37:51 +02:00
Ferenc Kovacs
9b3a1e00ab
5.6.29 will be next
2016-10-27 23:10:59 +02:00
Anatol Belski
a481291f02
use rather the nmake var as it's evaluated on every run
2016-10-27 22:34:34 +02:00
Anatol Belski
1be8339891
prepend known bin folders to the path for nmake test runs
2016-10-27 20:41:41 +02:00
Anatol Belski
e586c7c612
yet another uninitialized pointer
2016-10-27 02:42:30 +02:00
Anatol Belski
b9993c8b6c
fix uninitialized pointer
2016-10-27 02:15:14 +02:00
Dmitry Stogov
3fb0a1a4e7
Fixded bug #72736 (Slow performance when fetching large dataset with mysqli / PDO)
2016-10-26 15:17:09 +03:00
Anatol Belski
0f9a4af90b
make config.w32 compatible with ICU 58
2016-10-26 13:05:03 +02:00
Christoph M. Becker
af4bfe234c
Merge branch 'PHP-5.6' into PHP-7.0
2016-10-25 14:31:41 +02:00
Christoph M. Becker
cd13d0260a
Fix #72494 : imagecropauto out-of-bounds access
...
This issue has actually already been fixed with commit 46f2c690. We're
adding a regression test and a NEWS entry, and also port the fix in
gdImageCropThreshold() from libgd:
* <https://github.com/libgd/libgd/commit/b347e034 >
* <https://github.com/libgd/libgd/commit/46f2c690 >
2016-10-25 14:29:48 +02:00
Anatol Belski
277e829f10
move dev to 7.0.14
2016-10-25 10:29:51 +02:00
Stanislav Malyshev
f74d7d92c8
Fix bug #73144 and bug #73341 - remove extra dtor
2016-10-23 22:03:16 -07:00
Stanislav Malyshev
6045de69c7
Fix bug #73331 - do not try to serialize/unserialize objects wddx can not handle
...
Proper soltion would be to call serialize/unserialize and deal with the result,
but this requires more work that should be done by wddx maintainer (not me).
2016-10-23 20:09:23 -07:00
SATO Kentaro
df683fa3b0
Fix #68447 : grapheme_extract take an extra trailing character
...
grapheme_extract() converts UTF-8 string in the argument to UTF-16 to
iterate through graphemes, and count each UTF-16 character as one Unicode
character, which is not correct for UTF-16 surrogate pairs.
The patch removes the conversion and counts UTF-8 directly if needed.
2016-07-01 22:45:37 +09:00
Joshua Thijssen
e7f23e164b
Implemented fix for incorrect filedescriptor closing
2015-10-21 13:21:03 +02:00
Christoph M. Becker
c36ce04dd3
Fix #70103 : ZipArchive::addGlob ignores remove_all_path option
...
When the remove_all_path option is set, but no add_path option, remove_all_path
is simply ignored. This patch fixes this.
2015-08-13 21:04:36 +02:00
Evgeniy Spinov
650e073f7a
*[Sessions]: Now session is accessible if process is ran by root. Fixing bug: https://bugs.php.net/bug.php?id=69582
...
*[Sessions]: Replaced fstat with zend_fstat
2015-06-28 12:02:57 +04:00
EvgeniySpinov
2edf296a92
Merge pull request #1 from php/master
...
Merging upstream
2015-06-28 12:00:38 +04:00
Evgeniy Spinov
a2c461d58a
*[Sessions]: Now session is accessible if process is ran by root. Fixing bug: https://bugs.php.net/bug.php?id=69582
2015-06-24 15:26:25 +04:00
Willian Gustavo Veiga
33721742a5
Added "exclude_disabled" argument to "get_defined_functions".
2015-06-02 21:42:18 -03:00
Willian Gustavo Veiga
978832331a
Fix bug #31875 - get_defined_functions() should not list disabled functions.
2015-05-30 12:29:27 -03:00
redfoxli
2ece3ea699
improperlog
2015-05-30 14:37:41 +08:00
Floris Bos
bb19125781
Fix php-fpm.service.in
...
- Expand file paths.
- Remove obsolete After=syslog.target. Syslog is socket activated nowadays.
Signed-off-by: Floris Bos <bos@je-eigen-domein.nl >
2015-05-01 15:28:55 +02:00