Derick Rethans
d608ac6ee9
Update versions for PHP 7.4.0RC4
2019-10-15 11:28:16 +00:00
Derick Rethans
998be7752c
Update NEWS for PHP 7.4.0RC4
2019-10-15 11:28:15 +00:00
Joe Watkins
042e3b227e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix checksum calculation for opcache
2019-10-14 16:50:23 +02:00
Joe Watkins
22ac57b064
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix checksum calculation for opcache
2019-10-14 16:49:48 +02:00
Mitch Hagstrand
e2a6bf482f
Fix checksum calculation for opcache
2019-10-14 16:46:42 +02:00
Nikita Popov
641f9615cc
Fix handling of overflowing invalid octal in tokenizer
...
If token_get_all() is used, we still need to correctly distinguish
LNUMBER vs DNUMBER here for backwards compatibility.
2019-10-14 16:36:27 +02:00
Nikita Popov
c518932c03
Add "-pthread" to EXTRA_LDFLAGS_PROGRAM as well
2019-10-14 11:33:39 +02:00
Christoph M. Becker
f6bd5dcbe9
Fix test case
...
`MSG_EOR` and `MSG_EOF` are not necessarily defined, in which case the
test would fail.
2019-10-12 16:28:57 +02:00
Christoph M. Becker
c10d3d3a35
Fix potential heap corruption
...
`tmp` is allocated by `malloc()`, so we must not `LocalFree()` it.
2019-10-12 16:16:14 +02:00
Christoph M. Becker
586f8515d5
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78665 : Multicasting may leak memory
2019-10-12 14:46:10 +02:00
Christoph M. Becker
7439d48bea
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78665 : Multicasting may leak memory
2019-10-12 14:44:55 +02:00
Christoph M. Becker
900bdcbd03
Fix #78665 : Multicasting may leak memory
2019-10-12 14:43:43 +02:00
Gerard Roche
db54b0fa18
Azure: Publish code coverage results
...
* Add an Azure Publish Code Coverage Results task
* Add `make gcovr-html` to generate a gcovr test coverage report in HTML
* Add `make gcovr-xml` to generate a gcovr test coverage report in XML
* Remove `test` target dependency from `make lcov-html`;
Run the two targets together instead: `make test lcov-html`.
Re: https://github.com/php/php-src/pull/4739#issuecomment-534911441
See: https://externals.io/message/107113 ,
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results?view=azure-devops ,
and https://github.com/php/php-src/pull/4759 .
2019-10-11 17:44:36 +02:00
Nikita Popov
aa10e20830
Add upgrading note for round(-0.0) change
...
As cmb pointed out, the new behavior is compliant with POSIX:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/round.html .
2019-10-11 17:09:06 +02:00
Nikita Popov
3718a95526
Remove configure checks for ltp when using --enable-gcov
...
gcov builds can also be used with other tools like gcovr, so remove
the hard dependency on LTP.
2019-10-11 16:51:03 +02:00
Remi Collet
a78b09c9b8
NEWS
2019-10-11 13:38:15 +02:00
Remi Collet
5a024d2c5b
Fix #78662 : stream_write bad error detection
2019-10-11 13:36:58 +02:00
Fabien Villepinte
8b8c226dbf
Replace port already used
...
Closes GH-4811.
2019-10-11 10:57:09 +02:00
Nikita Popov
e4aac082a2
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-10 16:14:52 +02:00
Nikita Popov
74ac3dd6e2
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-10 16:14:37 +02:00
Nikita Popov
46561dab6a
Fix leak in phar open
2019-10-10 16:14:21 +02:00
Dmitry Stogov
33958ccb36
Revert "Fixed CLI/CGI/FPM build, when they are built together with Apache SAPI"
...
This reverts commit db094b4b2e .
2019-10-10 16:28:59 +03:00
Dmitry Stogov
1bb1a1ee28
Revert "Don't buid static libaraies when only DSO required"
...
This reverts commit f633c34757 .
2019-10-10 16:28:59 +03:00
Dmitry Stogov
b64a182233
Revert "Link executable files using non PIC object files. This reduces PIC overhead and improves performance."
...
This reverts commit eef85229d0 .
2019-10-10 16:28:59 +03:00
Nikita Popov
5a076e670a
Return error_zval form get_property_ptr_ptr on exception
...
This goes in the reverse direction of 4463acb951 .
After looking around a bit, it seems that we already check for
Z_ISERROR_P() on the get_property_ptr_ptr return value in other places.
So do this in zend_fetch_property_address() as well, and also make
sure that EG(error_zval) is indeed returned on exception in
get_property_ptr_ptr.
In particular, this fixes the duplicate exceptions that we used to
get because first get_property_ptr_ptr threw one and then
read_property throws the same exception again.
2019-10-10 15:14:04 +02:00
Nikita Popov
4463acb951
Explicitly check for exceptions in by-ref obj prop assign
...
Relying on setting ERROR if an exception happened during the
property address fetch is both a bit fragile and may pessimize
other codepaths that will check for exceptions in the VM. Adding
an extra exception check instead, which should also allow us to
drop the use of ERROR in this area in master.
2019-10-10 14:41:35 +02:00
Nikita Popov
12f4e9e020
Fix leak when property AST evaluation fails
2019-10-10 12:44:55 +02:00
Nikita Popov
f43f493e09
Also check for exception after stream_eof
2019-10-10 12:08:04 +02:00
Nikita Popov
b02cf8b66e
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-10 11:41:51 +02:00
Nikita Popov
4ba8d78100
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-10 11:41:29 +02:00
Nikita Popov
96c84b7bc1
Fix leak on static method call on non-existent class
2019-10-10 11:40:49 +02:00
Nikita Popov
6878c583b0
Report error if stream_read is not implemented
...
We need to return -1 in this case. Slightly restructure the code
to avoid unnecessary conditions.
2019-10-10 11:13:10 +02:00
Nikita Popov
382f9b28e8
Fix leak on "Cannot assign by reference to overloaded object" error
2019-10-10 10:07:54 +02:00
Nikita Popov
5b44560dfc
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-09 17:33:52 +02:00
Nikita Popov
a0163417ef
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-09 17:33:44 +02:00
Nikita Popov
daf1fc6e31
Avoid float to int cast UB in exif
2019-10-09 17:33:29 +02:00
Christoph M. Becker
973617cacd
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78656 : Parse errors classified as highest log-level
2019-10-09 17:29:54 +02:00
Christoph M. Becker
bbd481c11d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78656 : Parse errors classified as highest log-level
2019-10-09 17:28:50 +02:00
Erik Lundin
3164186d53
Fix #78656 : Parse errors classified as highest log-level
2019-10-09 17:27:32 +02:00
Nikita Popov
91eb632472
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-09 17:00:55 +02:00
Nikita Popov
6fd6ad8f53
Fixed bug #78658
2019-10-09 17:00:27 +02:00
Nikita Popov
a4d7f4c3e1
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-09 14:58:10 +02:00
Nikita Popov
cbf589b17c
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-09 14:58:01 +02:00
Nikita Popov
d6ca174d5b
Remove redundant components < 0 check
...
components is an unsigned number, it cannot be smaller than zero.
2019-10-09 14:57:24 +02:00
Christoph M. Becker
4625fa181f
Fix #78650 : new COM Crash
...
As of PHP 7.4.0, the `get_property_ptr_ptr` handler is mandatory; we
implement it to always return `NULL`, which is equivalent to not
setting the handler in former versions.
We add a portable and faster test case than what has been presented in
the bug ticket.
2019-10-09 14:09:02 +02:00
Fabien Villepinte
8b5c351154
Avoid file clash in root_check skipifs
...
Extract root check into skipif_root.inc to share this commonly
repeated logic.
Closes GH-4779.
2019-10-08 18:20:13 +02:00
Nikita Popov
bea832cbf6
Don't check type of simple parameter default values
...
After fixing the int->double coercion case, this is already verified
at compile-time, so there is no need to redo this type check on
every call.
Only perform the type check every time for the case of AST default
values.
2019-10-08 17:29:41 +02:00
Nikita Popov
21148679d1
Handle "non well formed" exception during ZPP
...
Previously if the "non well formed" notice was converted into an
exception we'd still end up executing the function.
Also drop the now unnecessary EG(exception) checks in the engine.
Additionally remote a bogus exception in zend_is_callable: It
should only be writing to error, but not directly throwing.
2019-10-08 17:17:49 +02:00
Nikita Popov
68b26ff8cf
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-08 16:14:06 +02:00
Nikita Popov
736af5f660
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-08 16:13:17 +02:00
Sergei Turchanov
a8f60ac9dd
Add pcre_get_compiled_regex_cache_ex() with local_aware flag
...
A new function `pcre_get_compiled_regex_cache_ex()` is introduced,
which allows to compile regexp pattern using the "C" locale instead
of a current locale.
This will be needed to replace setlocale() usage in fileinfo,
which is not thread-safe.
2019-10-08 16:11:55 +02:00
Nikita Popov
9004102b99
Fixed bug #78648
2019-10-08 15:39:22 +02:00
Nikita Popov
ad3ddf46f9
Fixed bug #78644
...
Make sure the initialize the result of FETCH_OBJ_UNSET operations.
I'm using a NULL value rather than ERROR here, because the latter
no longer exists in master.
2019-10-08 14:32:49 +02:00
Christoph M. Becker
d1de1777e9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add missing SKIPIFs in exif tests
2019-10-08 14:12:50 +02:00
Christoph M. Becker
9fd555f99e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing SKIPIFs in exif tests
2019-10-08 14:12:12 +02:00
Fabien Villepinte
46894580b0
Add missing SKIPIFs in exif tests
2019-10-08 14:11:32 +02:00
Nikita Popov
196f9697ef
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-08 12:35:35 +02:00
Nikita Popov
2fdd142f99
Check for exception after applying stream filters
...
This makes the stream opening actually fail, and avoids assertion
failures when we tokenize with EG(exception) set.
Also avoid throwing an additional warning after an exception has
already been thrown.
2019-10-08 12:32:57 +02:00
Christoph M. Becker
346be2cf59
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78642 : Wrong libiconv version displayed
2019-10-08 12:10:58 +02:00
Christoph M. Becker
d6fdc17f7f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78642 : Wrong libiconv version displayed
2019-10-08 12:10:06 +02:00
Christoph M. Becker
195c2008e8
Fix #78642 : Wrong libiconv version displayed
...
The high byte of `_libiconv_version` specifies the major version; the
low byte the minor version.
2019-10-08 12:09:11 +02:00
Christoph M. Becker
c2781dbe5e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
7.3.12 is next
2019-10-08 12:05:21 +02:00
Christoph M. Becker
26f45cb4bb
7.3.12 is next
2019-10-08 12:04:25 +02:00
Remi Collet
1cb52fe791
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
next is 7.2.25
2019-10-08 11:36:57 +02:00
Remi Collet
4b15f7ca09
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
next is 7.2.25
2019-10-08 11:36:36 +02:00
Remi Collet
05d6878b3b
next is 7.2.25
2019-10-08 11:36:10 +02:00
Remi Collet
e1362b3cf0
add librt for opcache
2019-10-08 10:48:10 +02:00
Christoph M. Becker
88e0d88897
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78641 : addGlob can modify given remove_path value
2019-10-08 09:49:46 +02:00
Christoph M. Becker
11654fdfa6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78641 : addGlob can modify given remove_path value
2019-10-08 09:48:59 +02:00
Christoph M. Becker
fd3118ffb0
Fix #78641 : addGlob can modify given remove_path value
...
`remove_path` points to the given string, so we must not modify it.
Instead we use a duplicate, if we need the modification.
We may want to switch to `zend_string`s in master.
2019-10-08 09:45:05 +02:00
Tyson Andre
5eebd55391
Fix grammar nits on php 7.4 UPGRADING
2019-10-07 19:30:58 -04:00
Nikita Popov
3c38d20882
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-07 17:52:41 +02:00
Nikita Popov
8a03fd6a5e
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-07 17:52:35 +02:00
Nikita Popov
19e6abebc7
Check for object_init_ex() failure in user filter factory
2019-10-07 17:52:29 +02:00
Nikita Popov
2f64844495
Fix leak when include fails in a read operation
...
Usually it will already fail when opening, but reads can also
fail since PHP 7.4, in which case we still need to place the
file handle in open_files to make sure the destructor will run
on it.
2019-10-07 17:29:33 +02:00
Nikita Popov
638ac2efc4
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-07 16:44:39 +02:00
Nikita Popov
2624c9a505
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-07 16:44:31 +02:00
Nikita Popov
7d19668f60
Set session.gc_probability=0 in bug78624.phpt
...
We only want to test manually triggered session GC.
Avoid spurious output due to automatic GC.
2019-10-07 16:43:19 +02:00
Nikita Popov
f085bddb51
Fix number of required arguments in arginfo
...
* pack() only requires one argument
* stream_context_set_option() only requires two arguments
* ReflectionMethod::getClosure() accepts no args for static methods
* DOMDocument::createProcessingInstruction() only requires one arg
* DOMImplementation::createDocument() only requires two arguments
* DOMDocument::importNode() only requires one arg
* mysql_get_client_version() doesn't accept any args,
despite what the docs say...
2019-10-07 16:32:11 +02:00
Nikita Popov
1dbf80bcc2
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-07 13:24:16 +02:00
Nikita Popov
ab61d5caf9
Backport fix for uaf during pcre jit fallback
...
Backports parts of https://vcs.pcre.org/pcre2?view=revision&revision=1175
fixing https://bugs.exim.org/show_bug.cgi?id=2453 .
2019-10-07 13:23:56 +02:00
Christoph M. Becker
8cdab9b217
Bail out if JUNIT is not enabled
...
Otherwise we would try to access an array element of `false`, which
issues a notice as of PHP 7.4.0. This would happen, for instance, for
bug63447_001.phpt if CGI is not available.
2019-10-07 13:22:11 +02:00
Nikita Popov
81d95c4c3c
Don't test default serialize max_depth
...
The default depth is large enough to cause stack overflows in
msan builds, though apparently only on old clang versions. Avoiding
a stack overflow there requires making the depth *much* smaller,
less than 1000. As I don't think that's reasonable for all the other
setups where 4k works fine, I'm just dropping this part of the test.
2019-10-07 12:43:12 +02:00
Christoph M. Becker
53077217e2
Delete temporary .post files of run-tests.php
...
Commit 5649267[1] changed run-tests.php to only delete .post files for
passing tests. However, that code wouldn't be exercised at all, since
`run_test()` already returned, so we move the deletion upwards.
[1]
<http://git.php.net/?p=php-src.git;a=commit;h=5649267b257c78e46a934434c0bff894e0b5b694 >
2019-10-07 12:17:41 +02:00
Nikita Popov
5b067163be
Limit retry_limit test to oniguruma >= 6.9.3
...
This test is somewhat fragile in that it depends on how well a
particular regex is optimized. Apparently on 6.9.1 this regex
would hit the default retry_limit of 1000000 already. I'm limiting
this to 6.9.3 because that's the version that works for me.
2019-10-07 10:49:34 +02:00
Nikita Popov
07f4830413
Fix typo in UPGRADING
...
[ci skip]
2019-10-07 09:51:13 +02:00
Christoph M. Becker
b142e8a4b3
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78623 : Regression caused by "SP call yields additional empty result set"
2019-10-07 09:18:46 +02:00
Christoph M. Becker
3322c78a88
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78623 : Regression caused by "SP call yields additional empty result set"
2019-10-07 09:17:29 +02:00
Christoph M. Becker
114c03b9a6
Fix #78623 : Regression caused by "SP call yields additional empty result set"
...
This reverts commit 41a4379cb4 .
2019-10-07 09:15:51 +02:00
Nikita Popov
6623e7ac51
Add support for mbstring.regex_retry_limit
...
This is very similar to the existing mbstring.regex_stack_limit,
but for backtracking. The default value matches pcre.backtrack_limit.
Only used on libonig >= 2.8.0.
2019-10-06 10:06:33 +02:00
Nikita Popov
b078ae6c01
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-04 22:46:53 +02:00
Nikita Popov
239e2dda64
Make sure T_ERROR is returned for all lexer exceptions
...
This originally manifested as a leak in oss-fuzz #18000 . The following
is a reduced test case:
<?php
[
5 => 1,
"foo" > 1,
" " => "" == 0
];
<<<BAR
$x
BAR;
Because this particular error condition did not return T_ERROR,
EG(exception) was set while performing binary operation constant
evaluation, which checks exceptions for cast failures.
Instead of adding this indirect test case, I'm adding an assertion
that the lexer has to return T_ERROR if EG(exception) is set.
2019-10-04 22:42:14 +02:00
Nikita Popov
01b3cc4dee
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-04 16:04:34 +02:00
Nikita Popov
1d6e9da743
Improve diagnostic on PCRE JIT mmap failure
...
Print a more informative message that indicates that this is
likely a permission issue, and also indicate that pcre.jit=0
can be used to work around it.
Also automatically disable the JIT, so that this message is
only shown once.
See bug #78630 .
2019-10-04 16:03:38 +02:00
Christoph M. Becker
884b780667
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Split intl tests for ICU 65
2019-10-04 13:54:49 +02:00
Christoph M. Becker
1ce8c805e2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Split intl tests for ICU 65
2019-10-04 13:53:58 +02:00
Christoph M. Becker
545412a6cd
Split intl tests for ICU 65
2019-10-04 13:53:22 +02:00
Nikita Popov
ca652aafa8
Fixed bug #78632
...
I'm going for a very conservative fix here, where the previous
logic is restored for the case where an object is passed to
method_exists(). We might want to check against EG(scope) instead,
but this seems like a safer choice.
This means that behavior in PHP 7.4 changes only for
method_exists('C', 'privateMethodNotOnC'), which should be sensible.
2019-10-04 12:41:49 +02:00
Nikita Popov
9659562cb5
Fix use-after-free with delayed interned memoized const operand
...
We should addref CONST operands during memoization, as they might
be destroyed by later compilation, e.g. through interning.
2019-10-04 10:38:11 +02:00
Nikita Popov
f26b60a583
Fix crash when unpacking into array literal with string keys
2019-10-04 10:11:30 +02:00
Christoph M. Becker
6627f782d6
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78620 : Out of memory error
2019-10-04 09:11:18 +02:00
Dmitry Stogov
3ded328bea
Fixed bug #78614 (Does not compile with DTRACE anymore)
2019-10-04 10:10:22 +03:00
Christoph M. Becker
cf183a5e2c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78620 : Out of memory error
2019-10-04 09:09:39 +02:00
Christoph M. Becker
abaf9a76dc
Fix #78620 : Out of memory error
...
The integer addition in `ZEND_MM_ALIGNED_SIZE_EX` can overflow, what we
have to catch early.
2019-10-04 09:08:01 +02:00
Joe Watkins
74ca3a5cad
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix #78624 : session_gc return value for user defined session handlers
2019-10-04 06:16:18 +02:00
Joe Watkins
f45eb353d1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix #78624 : session_gc return value for user defined session handlers
2019-10-04 06:12:29 +02:00
Brent Shaffer
a6d219630c
fix #78624 : session_gc return value for user defined session handlers
2019-10-04 06:12:02 +02:00
tpfast
8069e1522d
Fix typo in CODING_STANDARDS.md [ci skip]
2019-10-04 05:42:27 +02:00
Joe Watkins
5a8e7b95a1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #76809 (SSL settings aren't respected when persistent connection is reused)
2019-10-03 07:13:15 +02:00
Joe Watkins
f4d078b1c7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #76809 (SSL settings aren't respected when persistent connection is reused)
2019-10-03 06:57:05 +02:00
Fábio Souto
9a2b42a5c1
Fix bug #76809 (SSL settings aren't respected when persistent connection is reused)
2019-10-03 06:56:21 +02:00
Joe Watkins
de83036f13
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #76859 stream_get_line skips data if used with data-generating filter
2019-10-03 06:51:56 +02:00
Joe Watkins
5b1bb23edf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76859 stream_get_line skips data if used with data-generating filter
2019-10-03 06:51:10 +02:00
Konstantin Kopachev
05560b67bc
Fix #76859 stream_get_line skips data if used with data-generating filter
...
stream_get-line repeatedly calls php_stream_fill_read_buffer until
enough data is accumulated in buffer. However, when stream contains
filters attached to it, then each call to fill buffer essentially
resets buffer read/write pointers and new data is written over old.
This causes stream_get_line to skip parts of data from stream
This patch fixes such behavior, so fill buffer call will append.
2019-10-03 06:50:43 +02:00
Derick Rethans
a46bdcb631
Updated to version 2019.3 (2019c)
2019-10-02 23:39:11 +01:00
Derick Rethans
3f7da44209
Empty merge
2019-10-02 23:39:11 +01:00
Derick Rethans
0505fbf2e5
Updated to version 2019.3 (2019c)
2019-10-02 23:39:09 +01:00
Christoph M. Becker
2508131588
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Revert "Fix #78620 : Out of memory error"
2019-10-02 19:03:25 +02:00
Christoph M. Becker
d295e1dce2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Revert "Fix #78620 : Out of memory error"
2019-10-02 19:02:28 +02:00
Christoph M. Becker
f2fb37a772
Revert "Fix #78620 : Out of memory error"
...
This reverts commit 8ce04df7e0 .
Cf. <https://github.com/php/php-src/pull/4766#discussion_r330658679 >.
2019-10-02 19:01:35 +02:00
Christoph M. Becker
b262b24beb
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78620 : Out of memory error
2019-10-02 18:21:50 +02:00
Christoph M. Becker
752a34fb2c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78620 : Out of memory error
2019-10-02 18:20:09 +02:00
Christoph M. Becker
8ce04df7e0
Fix #78620 : Out of memory error
...
If the integer addition in `ZEND_MM_ALIGNED_SIZE_EX` overflows, the
macro evaluates to `0`, what we should catch early.
2019-10-02 18:18:52 +02:00
Nikita Popov
d81eb77b4a
Fix AArch64 build
2019-10-02 14:41:02 +02:00
Nikita Popov
171d6c3ca7
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-02 12:07:33 +02:00
Nikita Popov
3c42471ef8
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-02 12:07:19 +02:00
Nikita Popov
a5d3620d93
Fix segfault with __COMPILER_HALT_OFFSET__ and trailing {}
...
Fixes OSS-Fuzz #17895 .
2019-10-02 12:07:15 +02:00
Nikita Popov
d6a77c992f
Avoid file clash in root_check skipifs
2019-10-02 11:34:32 +02:00
Nikita Popov
e98e1f92c9
Allow SA_RESTART for SIGALRM
...
If no explicit restart_syscalls is passed, default to
restart_syscalls=0 for SIGALRM only, to reduce BC impact.
2019-10-02 10:09:17 +02:00
Erik Lundin
6462c19689
Fixed #75245 Don't set content of elements with only whitespaces
2019-10-02 08:17:04 +02:00
Dmitry Stogov
3709c03cda
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed test that "fails" from time to time
2019-10-02 00:57:26 +03:00
Dmitry Stogov
f7596d1b5b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed test that "fails" from time to time
2019-10-02 00:57:16 +03:00
Dmitry Stogov
3124129ca8
Fixed test that "fails" from time to time
2019-10-02 00:54:59 +03:00
Dmitry Stogov
5fb2f15824
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed test that "fails" from time to time
2019-10-02 00:49:37 +03:00
Dmitry Stogov
848bc776ea
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed test that "fails" from time to time
2019-10-02 00:49:27 +03:00
Dmitry Stogov
2fcb5eadbb
Fixed test that "fails" from time to time
2019-10-02 00:48:42 +03:00
Nikita Popov
f2e8851245
Remove func copy optimization for private method with static vars
...
Not NULLing the static_variables pointer for shadow methods during
static var shutdown would be a way to avoid this leak, but unless
there's evidence that inherited private methods with static vars are
actually a common use-case, I don't think we should keep this kind
of fragile edge-case optimization.
Fixes OSS-Fuzz #17875 .
2019-10-01 13:04:06 +02:00
Christoph M. Becker
8812350c7a
Fix AppVeyor build
...
`OPENSSL_CONF` must not contain quotes, but actually, we want to test
the default path, so we don't even set `OPENSLL_CONF` anymore.
2019-10-01 11:51:07 +02:00
Christoph M. Becker
73f29a5c5e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add missing skip keyword in tests
2019-10-01 11:17:53 +02:00
Christoph M. Becker
2fc5d00afa
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing skip keyword in tests
2019-10-01 11:15:12 +02:00
Fabien Villepinte
209e37db7d
Add missing skip keyword in tests
2019-10-01 11:13:36 +02:00
Derick Rethans
a453258959
Update NEWS for 7.4.0RC4
2019-10-01 08:31:43 +00:00
Derick Rethans
c5b4cd6556
Update NEWS for PHP 7.4.0RC3
2019-10-01 08:30:24 +00:00
Christoph M. Becker
d596fda993
Fix AppVeyor setup wrt. changed OpenSSL default config path
2019-10-01 10:01:34 +02:00
Christoph M. Becker
59ac81f81e
Update regarding changed OpenSSL default config path
2019-10-01 09:14:58 +02:00
Fabien Villepinte
0aa3acc6c4
Fix borked SKIPIFs
2019-09-30 17:51:41 +02:00
Nikita Popov
1f0ffece91
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-30 15:06:43 +02:00
Nikita Popov
0805e132b0
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-30 15:06:32 +02:00
Nikita Popov
6fcde56b03
Fixed bug #78612
2019-09-30 15:06:07 +02:00
Christoph M. Becker
3d89f92784
Skip tests for old versions instead of marking them XFAIL
...
According to commit 0eea9a6[1], these tests fail with old Oniguruma
versions; we are not sure which version of Oniguruma is required to let
them pass, but at least 6.9.3 is sufficient.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=0eea9a642941ab5d4c612f8092f186977afbb73e >
2019-09-30 14:14:23 +02:00
Christoph M. Becker
70f367d48a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78609 : mb_check_encoding() no longer supports stringable objects
2019-09-30 13:06:57 +02:00
Christoph M. Becker
2046b3ce4f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78609 : mb_check_encoding() no longer supports stringable objects
2019-09-30 13:04:54 +02:00
Nikita Popov
27f5785363
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-30 12:54:18 +02:00
Sergei Turchanov
e546d721e8
Fix #78413 : php-fpm request_terminate_timeout does not take effect after fastcgi_finish_request
...
To retain legacy behavior I decided to add an option to control request
termination logic. If request_terminate_timeout_track_finished is set,
then request will be tracked for time limits even after
fastcgi_finish_request was called.
This patch depends on the fix provided in BUG 78469 (otherwise php-fpm
workers listening on named pipes on Windows will be erroneously terminated)
(PR #4636 )
2019-09-30 12:54:09 +02:00
Christoph M. Becker
45db6fa567
Fix #78609 : mb_check_encoding() no longer supports stringable objects
...
We apply type juggling for other types than array.
2019-09-30 12:42:04 +02:00
Nikita Popov
19e7e4b197
Fixed bug #78604
...
<?php followed by EOF is valid since PHP 7.4.
2019-09-30 10:41:14 +02:00
Nikita Popov
1806ce9cb0
Add max_depth option to unserialize()
...
Add a max_depth option to unserialize and an unserialize_max_depth
ini setting, which can be used to control the depth limit. The
default value is 4096.
This option is intended to prevent stack overflows during the
unserialization of deeply nested structures.
This fixes bug #78549 and addresses oss-fuzz #17581 , #17589 , #17664 ,
and #17788 .
2019-09-30 10:28:24 +02:00
Christoph M. Becker
ce769a94a8
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix build for libzip < 0.11.2
2019-09-29 13:38:28 +02:00
Christoph M. Becker
466f91bb3b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix build for libzip < 0.11.2
2019-09-29 13:34:16 +02:00
Christoph M. Becker
f6bfbe9553
Fix build for libzip < 0.11.2
...
We must not define method entries, if the actual method definitions or
the arginfo structures are not defined.
2019-09-29 13:33:18 +02:00
Tyson Andre
7e0f7b7677
Reduce memory used by token_get_all()
...
Around a quarter of all strings in array tokens would have a string that's one
character long (e.g. ` `, `\`, `1`)
For parsing a large number of php files,
The memory increase dropped from 378374248 to 369535688 (2.5%)
Closes GH-4753.
2019-09-28 21:29:58 +02:00
Nikita Popov
1b08ab26f7
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-28 17:17:18 +02:00
Nikita Popov
7df50ef147
Don't throw warnings during heredoc scan-ahead
...
Otherwise these warnings will turn up twice (or more...)
2019-09-28 17:15:36 +02:00
Fabien Villepinte
8c7b8d75db
Fix wrong function name in SKIPIF
2019-09-27 23:01:48 +02:00
Christoph M. Becker
3204d7e0d1
Fix test regarding Reflection::export() deprecation
2019-09-27 16:33:53 +02:00
Christoph M. Becker
d90711138b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix SKIPIF in ext/mysqli
2019-09-27 16:04:35 +02:00
Christoph M. Becker
66c48e8694
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix SKIPIF in ext/mysqli
2019-09-27 16:04:00 +02:00
Fabien Villepinte
37d27e666a
Fix SKIPIF in ext/mysqli
2019-09-27 16:03:20 +02:00
Christoph M. Becker
63eed0b6c5
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix skipif.inc
2019-09-27 12:52:14 +02:00
Christoph M. Becker
878704ff6f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix skipif.inc
2019-09-27 12:51:21 +02:00
Christoph M. Becker
115f6effec
Fix skipif.inc
2019-09-27 12:50:04 +02:00
Nikita Popov
f2826954ac
XFAIL sapi/fpm/tests/log-bwd-multiple-msgs-stdout-stderr.phpt
...
This is supposed to be addressed by GH-4007, but that seems stalled
for now.
2019-09-27 11:18:50 +02:00
Nikita Popov
a020d3bbea
Enable ubsan stack trace printing on community job
...
Try to do this using "variables" -- apparently these get uppercased
and are made available as environment variables.
2019-09-27 11:16:22 +02:00
Nikita Popov
b154c12cc9
Fix file clash in rename_variation.phpt
...
rename_variation2.tmp is ... unsurprisingly ... already used by
rename_variation2.phpt. Alternatively it could be placed in the
directory that the test creates, but maybe this is intended to
test cross-directory renames, so I'll leave it.
2019-09-27 11:11:23 +02:00
Nikita Popov
a6c9c7c2b8
Handle resources used as array keys consistently
...
Resources used as array keys are generally handled by throwing a
notice and converting the resource to the resource handle. The only
exception is the [$resource => null] syntax, where this was treated
as an illegal offset type instead. However, this also only happened
for VM evaluations, the AST evaluator did handle resources correctly.
2019-09-27 10:40:41 +02:00
Nikita Popov
d71f859a56
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-26 13:47:41 +02:00
Nikita Popov
91c4abcfcc
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-26 13:47:19 +02:00
Nikita Popov
ab938d7bbc
Fix memory leak with ** on array operands
2019-09-26 13:45:45 +02:00
Nikita Popov
247d5618aa
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-26 10:25:55 +02:00
Nikita Popov
99c67804d5
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-26 10:25:40 +02:00
Nikita Popov
8a9df88597
Fix null-pointer deref in if stmt printing
...
Fixes OSS-Fuzz #17721 .
2019-09-26 10:24:49 +02:00
Dmitry Stogov
23db95e3e5
Fixed GOTO VM
2019-09-26 01:17:54 +03:00
Nikita Popov
b8ef7c35ab
Increase serialize_lock while decoding session
...
Avoid leaking state between Serializable::unserialize() and
session_decode().
2019-09-25 11:02:23 +02:00
Nikita Popov
b100d51ba2
Remove xfail on bug70219.phpt
...
Looks like this is working as it's supposed to, the test expectation
just needs to be adjusted.
2019-09-25 10:57:03 +02:00
Nikita Popov
a31256d52c
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-25 10:34:33 +02:00
Nikita Popov
915fe2fdc6
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-25 10:34:25 +02:00
Jinesh Patel
d2331cc3f2
Fix hash key length in umsg_parse_format()
...
Fix array length passed to zend_hash_str_find_ptr() casting from
UChar array to char array requires mul by sizeof(UChar).
2019-09-25 10:30:33 +02:00
Gerard Roche
9cc1bf5628
Fix GCOV not working for PHP-7.4 and master branches
...
Code coverage reports (`make lcov`), since commit eef8522 (7.4 branch),
generates incorrect coverage and emits warnings. Simplifying the
Makefile.gcov file has the side-effect of resolving the issue.
Processing sapi/cli/php_http_parser.gcda
php-src/lcov_data/sapi/cli/php_http_parser.gcda:stamp mismatch with notes file
geninfo: WARNING: gcov did not create any files for php-src/lcov_data/sapi/cli/php_http_parser.gcda!
...
Processing ext/mbstring/mb_gpc.gcda
php-src/lcov_data/ext/mbstring/mb_gpc.gcda:stamp mismatch with notes file
geninfo: WARNING: gcov did not create any files for php-src/lcov_data/ext/mbstring/mb_gpc.gcda!
Closes: https://bugs.php.net/bug.php?id=52718 .
See also: https://bugs.php.net/bug.php?id=78288 .
2019-09-25 10:19:19 +02:00
Gabriel Caruso
3205ebefa3
Use nproc instead of hardcoded number
2019-09-25 00:02:59 +02:00
Nikita Popov
73115ef873
Fixed bug #78589
...
Don't protect GC while destroying zvals. We may need to add GC
roots during this phase.
2019-09-24 12:17:21 +02:00
Christoph M. Becker
2a74fedff0
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
2019-09-24 11:15:28 +02:00
Christoph M. Becker
7530938670
Update NEWS
2019-09-24 11:13:55 +02:00
Stanislav Malyshev
e7befd38d4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78559 : Heap buffer overflow in mb_eregi
2019-09-23 21:51:12 -07:00
Christoph M. Becker
8f949eba80
Fix #78559 : Heap buffer overflow in mb_eregi
...
We backport kkos/oniguruma@d3e402928b .
2019-09-23 21:49:55 -07:00
Christoph M. Becker
6bdde5d479
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix NEWS entry
2019-09-23 23:03:55 +02:00
Christoph M. Becker
8c9c58436b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix NEWS entry
2019-09-23 23:03:07 +02:00
Christoph M. Becker
ed099ab186
Fix NEWS entry
...
Cf. <https://bugs.php.net/78590 >.
2019-09-23 22:59:55 +02:00
Nikita Popov
dbeeabed9b
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-23 17:18:39 +02:00
Nikita Popov
954d073833
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-23 17:18:33 +02:00
Nikita Popov
3ddb63dce1
Fix skipif condition
2019-09-23 17:17:52 +02:00
Nikita Popov
2bb04106be
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-23 16:42:59 +02:00
Nikita Popov
d0f4966b05
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-23 16:42:33 +02:00
Nikita Popov
bc4c4c658c
Skip test on 32-bit
2019-09-23 16:42:24 +02:00
Nikita Popov
41335afed9
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-23 14:52:40 +02:00
Nikita Popov
087051c9a5
Skip test on 32-bit
2019-09-23 14:52:32 +02:00
Nikita Popov
7b7e04a1b7
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-23 13:47:38 +02:00
Nikita Popov
1a184f030a
Commit regenerated var_unserializer.c
2019-09-23 13:47:05 +02:00
Nikita Popov
366f97f070
Remove commented code
2019-09-23 13:34:42 +02:00
Nikita Popov
c2add43bbc
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-23 13:18:59 +02:00
Nikita Popov
f53af9ac23
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-23 13:18:39 +02:00
Nikita Popov
8509970e6a
Fix signed integer overflow in SplObjectStorage unserialization
...
If count is ZEND_LONG_MIN the count-- loop underflows. This is
ultimately harmless, but results in a ubsan warning.
Fix this by adding a sanity check that the count isn't negative,
because that doesn't make sense...
2019-09-23 13:18:27 +02:00
Nikita Popov
3f0cab53b2
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-23 13:09:01 +02:00
Nikita Popov
e65adc9c19
Fix ubsan violation in parse_iv2
...
This fixes two issues:
* Negative the value in an unsigned type to avoid signed overflow.
* Treat -0 as 0 rather than an invalid number that gets converted
to ZEND_LONG_MIN.
2019-09-23 13:08:44 +02:00
Stephen Reay
7a81505f6f
Allow lookup of distro-packaged QDBM headers on Debian
2019-09-23 09:53:31 +02:00
Christoph M. Becker
3a937c46e0
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test to be skipped if dom is not available
2019-09-22 18:43:24 +02:00
Christoph M. Becker
9c89f43d55
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test to be skipped if dom is not available
2019-09-22 18:42:40 +02:00
Christoph M. Becker
697945aa89
Fix test to be skipped if dom is not available
2019-09-22 18:42:02 +02:00
Nikita Popov
5e48bb7e1f
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-22 12:10:49 +02:00
Nikita Popov
9cd365e571
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-22 12:10:42 +02:00
Nikita Popov
f989a4cd44
Fix leak of temporary buffer during exif tag reading
2019-09-22 12:10:17 +02:00
Nikita Popov
0508a70640
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-22 10:27:07 +02:00
Nikita Popov
623d897998
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-22 10:26:57 +02:00
Nikita Popov
0701835c01
Fix multiple leaks in exif_read_data()
...
This fixes two leaks related to duplicate tags, as well as a leak
of zero-length FMT_(S)BYTE with non-null value. This can show up
for MAKERNOTE values where the original length is non-zero, but
the first character is a null byte.
2019-09-21 20:40:03 +02:00
Christoph M. Becker
f5b9cc4bcf
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix length of key passed to zend_hash_str_find_ptr
2019-09-21 18:13:06 +02:00
Christoph M. Becker
33e556fab4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix length of key passed to zend_hash_str_find_ptr
2019-09-21 18:12:27 +02:00
Jinesh Patel
0d6c2448a7
Fix length of key passed to zend_hash_str_find_ptr
2019-09-21 18:11:21 +02:00
Christoph M. Becker
6dea11acd8
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78579 : mb_decode_numericentity: args number inconsistency
2019-09-21 16:17:45 +02:00
Christoph M. Becker
698088ca7c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78579 : mb_decode_numericentity: args number inconsistency
2019-09-21 16:16:52 +02:00
Christoph M. Becker
398b308316
Fix #78579 : mb_decode_numericentity: args number inconsistency
...
mb_decode_numericentity() accepts a fourth optional parameter, which is
unused, however. Since this parameter doesn't do any harm, and to avoid
the small BC break, we're keeping this parameter for PHP 7, but adjust
the arginfo.
For PHP 8, we will remove this parameter.
2019-09-21 16:15:23 +02:00
Remi Collet
dc40332bb2
Fixed bug #78574 (broken shared build)
2019-09-20 13:30:13 +02:00
Dmitry Stogov
f633c34757
Don't buid static libaraies when only DSO required
2019-09-19 23:44:53 +03:00
Nikita Popov
f0f84adf2b
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-19 21:14:46 +02:00
Nikita Popov
e76dea4283
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-19 21:14:40 +02:00
Nikita Popov
0fa13028cb
Fix out-of-bounds read in exif tag reading
...
This issue was recently introduced in c739023a50 ,
when the restriction that components>0 has been relaxed. We now need
to make sure that any tags that expect at least one component check
that this is the case.
2019-09-19 21:11:57 +02:00
Nikita Popov
3fd68fd827
Clean up JSON parser
...
Don't use <value> type for JSON tokens that don't have a value
and remove the errlex productions -- we're going to get an
unexpected token error anyway, there's no need to handle these
explicitly.
This also removes the awkward workarounds for the unused value
warnings.
2019-09-19 21:00:22 +02:00
Nikita Popov
5bee9c9062
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-19 17:22:28 +02:00
Nikita Popov
85e7668129
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-19 17:21:45 +02:00
Nikita Popov
003c13d7bc
Fix iterable return type optimization
2019-09-19 17:21:00 +02:00
Nikita Popov
8a599c7b74
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-19 14:20:13 +02:00
Nikita Popov
6bf5c8508a
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-19 14:20:04 +02:00
Nikita Popov
3e139a4653
Fix exif leak on duplicate copyright tags
2019-09-19 14:19:31 +02:00
Nikita Popov
22516b7d8a
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-19 11:36:19 +02:00
Nikita Popov
f53b8268d6
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-19 11:36:09 +02:00
CJDennis
e3255a4f49
Fix typo
...
`sizeof("data")-1` and `sizeof("date")-1` are both 4, so no change in behaviour
2019-09-19 11:36:00 +02:00
Christoph M. Becker
9dfbcd7248
Fix #78543 : is_callable() on FFI\CData throws Exception
...
If `Z_OBJ_HANDLER_P(callable, get_closure)` throws, we must not let the
exeception pass to userland, if called through `is_callable()`.
2019-09-19 09:13:22 +02:00
Nikita Popov
38ae522440
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-18 16:37:14 +02:00
Nikita Popov
85b001974a
Remove unstable test output
...
This may be printed in a different order, and we don't care about
it anyway.
2019-09-18 16:36:29 +02:00
Nikita Popov
db7702213c
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-18 10:45:07 +02:00
Nikita Popov
e11ed02870
Fixed bug #78272
...
Use MAP_JIT only when running under hardened runtime, because MAP_JIT
is incompatible with fork().
The check is based on
https://github.com/mono/mono/commit/f879e35e3ed7496d819bd766deb8be6992d068ed .
2019-09-18 10:41:27 +02:00
Nikita Popov
996292a91d
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-18 09:31:44 +02:00
Nikita Popov
03efeda538
Backport MAP_JIT fixes from PCRE2 10.33
...
This is intended to fix the primary issue from bug #77260 .
Prior to macOS 10.14 multiple MAP_JIT segments were not permitted,
leading to mmap failures and corresponding "no more memory" errors
on macOS 10.13.
2019-09-18 09:28:54 +02:00
Derick Rethans
7baca20067
Update NEWS for 7.4.0RC3
2019-09-17 16:39:07 +00:00
Derick Rethans
19ac6b2a58
Update NEWS for PHP 7.4.0RC2
2019-09-17 16:37:49 +00:00
Derick Rethans
9ed247b7b1
Revert "Update NEWS for PHP 7.4.0RC2"
...
This reverts commit 050059cb26 .
2019-09-17 17:32:33 +01:00
Derick Rethans
4c39f557e6
Revert "Update NEWS for 7.4.0RC3"
...
This reverts commit 803dc6b8f2 .
2019-09-17 17:32:31 +01:00
Nikita Popov
7c6985d7cb
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-17 17:34:24 +02:00
Nikita Popov
409e9ea51d
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-17 17:34:08 +02:00
Nikita Popov
175f4f24ae
Increase timeout in test
2019-09-17 17:33:46 +02:00
Nikita Popov
66351025c8
Enable --with-mhash on CI
2019-09-17 16:16:31 +02:00
Nikita Popov
b50a90867a
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-17 15:43:35 +02:00
Nikita Popov
c5d4c45e7d
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-17 15:42:58 +02:00
fancyweb
e691a98c1f
Fix #76342 : file_get_contents waits twice specified timeout
2019-09-17 15:42:29 +02:00
Dmitry Stogov
db094b4b2e
Fixed CLI/CGI/FPM build, when they are built together with Apache SAPI
2019-09-17 15:43:00 +03:00
Nikita Popov
d266ba4f2d
Check for exception after calling count_values()
...
To avoid a duplicate error if count_values() throws.
2019-09-17 13:13:44 +02:00
David Carlier
ce25fa0d24
Monitoring anonymous pages on mac via vmmap tag
2019-09-17 12:54:46 +02:00
Nikita Popov
1a5f04688e
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-17 12:19:45 +02:00
Nikita Popov
3a2fa489dd
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-17 12:19:39 +02:00
Drakano
252ebce0d7
Add tilde to allowed status/ping path
...
Because of user specific webdirs it should be possible to set a
status/ping path like "/~username/status".
Closes GH-4698.
2019-09-17 12:19:21 +02:00
Nikita Popov
62b440ffbb
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-17 12:09:06 +02:00
Nikita Popov
f98684b06c
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-17 12:08:57 +02:00
Tyson Andre
29bced9521
Fix opcache return type for get_headers in zend_func_info
...
https://www.php.net/manual/en/function.get-headers.php#refsect1-function.get-headers-examples
shows that it will return string keys when the second argument is
non-zero. I've verified that this is the case.
This bug was there since the initial commit in c88ffa9a56 .
Closes GH-4702.
2019-09-17 12:08:29 +02:00
Fabien Villepinte
1792adebfd
Improve test usleep_basic by inlining its output
...
Closes GH-4703.
2019-09-17 12:07:06 +02:00
Derick Rethans
803dc6b8f2
Update NEWS for 7.4.0RC3
2019-09-17 07:37:35 +00:00
Derick Rethans
050059cb26
Update NEWS for PHP 7.4.0RC2
2019-09-17 07:36:16 +00:00
Christoph M. Becker
20f73d3d8f
Fix #78429 : opcache_compile_file(__FILE__); segfaults
...
We have to ensure that OPcache has been properly started up when
`opcache_compile_file()` is called.
2019-09-16 16:01:09 +02:00
Fabien Villepinte
42046c71ee
Fix typo
2019-09-16 15:55:23 +02:00
Nikita Popov
8c0c06da86
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-16 15:01:14 +02:00
Nikita Popov
8a11f1284e
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-16 15:01:05 +02:00
Nikita Popov
2f6efd835d
Fixed bug #78545
...
By using an explicit (double) cast.
2019-09-16 15:00:20 +02:00
Christoph M. Becker
145ffd93fc
Fix #78516 : password_hash(): Memory cost is not in allowed range
...
libsodium measures the memory cost in bytes, while password_hash() and
friends expect kibibyte values. We have to properly map between these
scales not only when calling libsodium functions, but also when
checking for allowed values.
We also refactor to rid the code duplication.
2019-09-16 14:58:39 +02:00
Nikita Popov
c3376bf7ae
Fix use-after-free due to packed->mixed conversion with __unserialize()
2019-09-16 14:37:16 +02:00
Nikita Popov
0d3da6ac25
Fix segfault when unserializing abstract class
2019-09-16 13:52:52 +02:00
Nikita Popov
b29b846863
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-16 13:03:08 +02:00
Nikita Popov
74876f09c4
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-16 13:02:56 +02:00
Nikita Popov
8873df8e86
Fix leak in SplObjectStorage unserialization
...
The result of php_var_unserialize always needs to be destroyed,
even if the call failed.
2019-09-16 13:02:32 +02:00
Nikita Popov
c8359fcea2
Fix test after unserialize change
2019-09-16 11:59:43 +02:00
Nikita Popov
4377a8ea41
Sanity-check array/object lengths during unserialization
...
Avoid OOM conditions in unserialize due to overly large array or
object length specifications.
2019-09-16 11:38:35 +02:00
Dmitry Stogov
6417c507ce
Fixed typos
2019-09-16 10:29:29 +03:00
Christoph M. Becker
631dd692a1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Stick with zend_long for ABI compatibility
2019-09-15 15:14:02 +02:00
Christoph M. Becker
da8aa4a798
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Stick with zend_long for ABI compatibility
2019-09-15 15:13:13 +02:00
Christoph M. Becker
81cefab7b0
Stick with zend_long for ABI compatibility
...
Cf. <https://github.com/php/php-src/pull/4700#issuecomment-531515689 >.
2019-09-15 15:11:25 +02:00
Christoph M. Becker
d0247a63b6
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78535 : auto_detect_line_endings value not parsed as bool
2019-09-14 18:48:28 +02:00
Christoph M. Becker
00ad365125
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78535 : auto_detect_line_endings value not parsed as bool
2019-09-14 18:47:12 +02:00
bugreportuser
fdcca93056
Fix #78535 : auto_detect_line_endings value not parsed as bool
2019-09-14 18:46:09 +02:00
Nikita Popov
3f76f9416f
Fix double-free on invalid large octal with separators
...
To clean up the mess here a bit, check for invalid octal digits
with an explicit loop instead of mixing this into the string to
number conversion.
Also clean up some type usage.
2019-09-14 12:10:06 +02:00
Nikita Popov
ab4f725d83
Use XtOffsetOf() in url_scanner_ex
...
Instead of a manual implementation.
2019-09-14 00:25:14 +02:00
Nikita Popov
fa07a9c223
Fix symtable_cache_limit assignment in phpdbg
...
The meaning of the limit changed in 7.4, it now points one past the
end. Adjust code accordingly.
2019-09-14 00:25:07 +02:00
David Carlier
711bd0a0fc
Fix tautological compare warning
...
The ZEND_ALLOCATOR() macro compares against constants that are
larger than the unsigned short type, resulting in warnings on
clang. Avoid this by explicitly casting to size_t.
2019-09-14 00:25:00 +02:00
Nikita Popov
ee0bf4b24d
Define OBJ_PROP_TO_OFFSET() using XtOffsetOf()
...
This avoids null pointer arithmetic UB.
2019-09-14 00:24:54 +02:00
Nikita Popov
ec30a3b171
Include stddef.h in zend_portability.h for offsetof() macro
...
This makes sure that we use compiler builtins when they are
available and thus avoid ubsan warnings in clang.
And also reindent the fallback implementation.
2019-09-14 00:24:47 +02:00
Nikita Popov
4226c8247f
Fix use-after-free in assign-ref compilation
...
zend_emit_op_data may reallocate the op_array, so the assignment
of the RETURNS_FUNCTION flag may happen on an outdated opline.
Restructure the code a bit to set the flag before calling
zend_emit_op_data().
2019-09-13 18:22:14 +02:00
Nikita Popov
c25104bb5b
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-13 14:37:15 +02:00
Nikita Popov
df982da587
Fix bug #78525
...
When calling free_result_buffers(), also free field metadata and
restore the mempool state to what it was before any allocations
have been made. Remove the mempool save/restore logic for the
inner result set as this is now handled on a higher level.
2019-09-13 14:37:03 +02:00
Dmitry Stogov
af9b127fed
Make constant and copy propagation only for IS_TMP_VAR operands
2019-09-13 12:38:57 +03:00
Dmitry Stogov
e45a757bc2
Fixed incorrect usage of QM_ASSIGN instruction
2019-09-13 12:08:59 +03:00
Dmitry Stogov
51d9f32dbe
Fixed bug #78531 (Crash when using undefined variable as object
2019-09-13 01:42:02 +03:00
Dmitry Stogov
5a616191f3
Load string once
2019-09-12 18:46:13 +03:00
Dmitry Stogov
697266a84e
Eliminate checks using ZEND_CONST_COND() macro
2019-09-12 18:29:19 +03:00
Nikita Popov
4b9ebd837b
Allow throwing exception while loading parent class
...
This is a fix for symfony/symfony#32995 .
The behavior is:
* Throwing exception when loading parent/interface is allowed
(and we will also throw one if the class is simply not found).
* If this happens, the bucket key for the class is reset, so
it's possibly to try registering the same class again.
* However, if the class has already been used due to a variance
obligation, the exception is upgraded to a fatal error, as we
cannot safely unregister the class stub anymore.
2019-09-12 16:41:18 +02:00
Christoph M. Becker
679cbee870
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix exif build
NEWS
2019-09-12 09:14:08 +02:00
Christoph M. Becker
31f617d9bc
Fix exif build
...
As of PHP 7.3.0 the `model` field is removed.
2019-09-12 09:13:27 +02:00
Kalle Sommer Nielsen
f6f981c13c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
NEWS
2019-09-12 06:52:24 +03:00
Kalle Sommer Nielsen
716518373f
NEWS
2019-09-12 06:50:53 +03:00
Kalle Sommer Nielsen
89227fba99
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #78442 ('Illegal component' on exif_read_data since PHP7)
2019-09-12 06:33:40 +03:00
Kalle Sommer Nielsen
6f0e5a45ff
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #78442 ('Illegal component' on exif_read_data since PHP7)
2019-09-12 06:31:52 +03:00
Kalle Sommer Nielsen
2823e938d4
Fixed bug #78442 ('Illegal component' on exif_read_data since PHP7)
2019-09-12 06:21:39 +03:00
Nikita Popov
d88b212ea6
Improve "already declared" error message
...
If this error is missing because the rtd_key was renamed to lcname,
fetch the class based on lcname and use the class type and cased
name from there.
2019-09-11 17:04:13 +02:00
Nikita Popov
fbe287a677
Fix typo in unlinked_instanceof assertion
2019-09-11 16:50:16 +02:00
Nikita Popov
270e5e3c5b
Only allow "nearly linked" classes for parent/interface
...
The requirements for parent/interface are difference than for the
variance checks in type declarations. The latter can work on fully
unlinked classes, but the former need inheritance to be essentially
finished, only variance checks may still be outstanding.
Adding a new flag for this because we have lots of space, but we
could also represent these "inheritance states" more compactly in
the future.
2019-09-11 16:27:28 +02:00
Nikita Popov
b7c353c8d0
Specify -fsanitize-no-recover
...
To make it more obvious when there are ubsan failures.
2019-09-11 11:59:33 +02:00
Nicolas Grekas
aee31dd7e4
Improve Symfony test setup
...
Perform PHPUnit installation under php7.3 -- which will also make
it work on master.
Also properly resolve the tty issue by specifying excluded groups
during the test run.
2019-09-11 11:15:23 +02:00
Nikita Popov
f945c82ec6
Free history_get_history_state() result
...
It's not documented, but per https://bugs.python.org/issue8065
the result is freshly malloc'd and needs to be freed.
2019-09-11 10:59:04 +02:00
Nikita Popov
1ce830a4aa
Fix another pointer indexing UB in http_fopen_wrapper
...
Only compute the gep after checking whether the pointer is NULL.
2019-09-11 10:31:03 +02:00
Nikita Popov
11f3e24190
Fixed bug #78506
2019-09-11 10:27:32 +02:00
Nikita Popov
0a24cd4e7c
Preloading: Fix handling of static vars in inherited methods
...
Part of bug #78512 .
2019-09-11 09:53:10 +02:00
Dmitry Stogov
5f555fb19e
Fixed bad format string
2019-09-11 00:52:54 +03:00
Sara Golemon
e9cb68d4f3
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Bump for 7.2.24
2019-09-10 13:05:38 -04:00
Sara Golemon
e2bdd7b4ab
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump for 7.2.24
2019-09-10 13:05:17 -04:00
Sara Golemon
a270eb1911
Bump for 7.2.24
2019-09-10 13:04:01 -04:00
Remi Collet
d78ffd54ef
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Raise minimal GCC version, Test with 4.8 is OK With 4.4: error: #pragma GCC diagnostic not allowed inside functions
2019-09-10 16:29:44 +02:00
Remi Collet
664b1a3f57
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Raise minimal GCC version, Test with 4.8 is OK With 4.4: error: #pragma GCC diagnostic not allowed inside functions
2019-09-10 16:29:30 +02:00
Remi Collet
c43fc204b1
Raise minimal GCC version,
...
Test with 4.8 is OK
With 4.4: error: #pragma GCC diagnostic not allowed inside functions
2019-09-10 16:28:35 +02:00
Christoph M. Becker
abc564462f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
PHP 7.3.10RC1 has been tagged
2019-09-10 15:13:11 +02:00
Christoph M. Becker
cf31210f29
PHP 7.3.10RC1 has been tagged
2019-09-10 15:11:54 +02:00
Dmitry Stogov
21c3cdf668
NEWS entry, test and minor cleanup for FFI::isNull()
2019-09-10 11:23:12 +03:00
Dmitry Stogov
825dac1445
Merge branch 'PHP-7.4' of git.php.net:php-src into PHP-7.4
...
* 'PHP-7.4' of git.php.net:php-src:
Drop regression test
2019-09-10 11:22:05 +03:00
Christoph M. Becker
280e40fadd
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Drop regression test
2019-09-10 10:08:42 +02:00
Christoph M. Becker
318b92dc12
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Drop regression test
2019-09-10 10:08:07 +02:00
Christoph M. Becker
bca66002f1
Drop regression test
...
The state returned by `sodium_crypto_generichash_init()` has to be
regarded as opaque byte string; neither its size nor its exact
structure are fixed, and actually vary for diffent libsodium versions.
Therefore we drop the test altogether.
2019-09-10 10:07:39 +02:00
Philip Hofstetter
f6ff7eb335
add FFI::isNull() to check whether a FFI\CData is a null pointer
2019-09-10 11:03:51 +03:00
Dmitry Stogov
ea92b9b655
Stop after exceptions
2019-09-10 11:01:36 +03:00
Simonov Denis
481f89551e
Request #77863 : PDO firebird support type Boolean in input parameters
2019-09-10 09:22:26 +02:00
Christoph M. Becker
bcf9d1e995
new_variable '{' expr '}' is deprecated as well
...
Curly brace syntax for accessing array elements and string offsets is
deprecated [1]; this should also be the case for respective `new`
expressions.
This issue has been reported by brzuchal@php.net .
[1] <https://wiki.php.net/rfc/deprecate_curly_braces_array_access >
2019-09-09 19:05:23 +02:00
Nikita Popov
51fd8bd3ee
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-09 17:29:49 +02:00
Nikita Popov
3f2d5c612e
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-09 17:29:39 +02:00
CHU Zhaowei
1ac6b0251b
Fix bug #72884 isCloneable() on SplFileObject should return false
2019-09-09 17:27:17 +02:00
Tyson Andre
3e89e9a636
Add opcache return type for random_int()
...
random_int() will throw for incorrect argument counts, types (e.g. float
that can't cast to int), or having min > max.
See ext/standard/random.c
2019-09-09 17:19:04 +02:00
Tyson Andre
45e529d673
Fix opcache zend_func_info for microtime/gettimeofday
...
microtime() doesn't return an array,
and gettimeofday() doesn't return a string.
See _php_gettimeofday in microtime.c (mode is non-zero for gettimeofday)
2019-09-09 17:13:19 +02:00
Nikita Popov
974e77b345
Clarify that our usage of gettimeofday() is infallible
...
And that false can't be returned for this reason.
2019-09-09 17:11:22 +02:00
Christoph M. Becker
d9c0aa038b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix version
2019-09-09 15:44:36 +02:00
Christoph M. Becker
73ede6911d
Fix version
...
7.3.10 is next, not 7.3.11.
2019-09-09 15:44:06 +02:00
Christoph M. Becker
167ea6307b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78510 : Partially uninitialized buffer returned by sodium_crypto_generichash_init()
2019-09-09 15:33:02 +02:00
Christoph M. Becker
af2033b1cd
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78510 : Partially uninitialized buffer returned by sodium_crypto_generichash_init()
2019-09-09 15:31:15 +02:00
Christoph M. Becker
8ead77936e
Fix #78510 : Partially uninitialized buffer returned by sodium_crypto_generichash_init()
...
Backport jedisct1/libsodium.php@28d13bf437 .
2019-09-09 15:30:28 +02:00
Nikita Popov
7807319b7c
Fix typo
2019-09-09 14:24:26 +02:00
Remi Collet
a7b00f8787
zip edxtension is now 1.15.5
2019-09-09 14:22:12 +02:00
Remi Collet
766d5ff32f
fix type consistency after
...
8f897f1040
2019-09-09 14:20:57 +02:00
Nikita Popov
36a8cf5182
Fixed bug #78514
...
The property class may have already been translated as part of
some other class. Only translate if xlat returns non-null.
2019-09-09 11:36:50 +02:00
Nikita Popov
66caca53ce
Fix PDO pgsql memory leak with scrollable cursors
2019-09-09 10:50:10 +02:00
Nikita Popov
645b0372e3
Fix double free of DSN credentials
2019-09-09 10:10:41 +02:00
Peter Kokot
f5dfea60a2
Update NEWS
2019-09-08 21:49:42 +02:00
Peter Kokot
a8c97f0531
Fix #78349 : Bundled pcre2 library missing LICENCE file
...
Most bundled libraries in PHP code already include license information
in the dedicated README.REDIST.BINS file. Instead of complicating
documentation files more this patch only updates the PCRE license info
in the readme file.
2019-09-08 21:46:48 +02:00
Nikita Popov
279f745a60
Fix reporting of redirect test failures in junit
...
These were being reported under the wrong name ... which means that
they don't show up as failures on azure :(
2019-09-07 22:47:50 +02:00
Dmitry Stogov
eef85229d0
Link executable files using non PIC object files. This reduces PIC overhead and improves performance.
2019-09-07 11:59:11 +03:00
Nikita Popov
768c93ed13
Remove defines for specific oraldap versions
...
These are not used for anything.
2019-09-06 14:59:59 +02:00
Nikita Popov
148ee16ff3
Remove support for umich_ldap
...
Doesn't seem to exist anymore, and their website now redirects to
openldap.
2019-09-06 14:57:26 +02:00
Nikita Popov
025ff3b5a3
Remove nsldap support
...
The newest version we're checking (libssldap50) seems to be about
15 years out of date. We could add support for libssldap60 (also
unmainted, but more recent), but given how nobody has expressed any
interest in this, I'm going ahead and dropping this code.
2019-09-06 14:39:42 +02:00
Nikita Popov
34f4ad61dc
Fix detection of gmp on clang
...
Split the default and custom path case. If the default is used,
assume that the library must be on the default include and lib path.
Only check that the version is appropriate.
Something similar is needed for ldap, but the checking code is much
more complex there, so I'm only adding a workaround for now.
2019-09-06 14:35:39 +02:00
Nikita Popov
e81751ceac
Fixed bug #78502
...
We need to make sure that the function is fully compiled before we
calculate the stack size. There already was a check for directly
recursive calls, but the same issue exists with indirectly recursive
calls.
I'm using DONE_PASS_TWO as the indication that the function is
fully compiled.
2019-09-06 11:33:28 +02:00
Stanislav Malyshev
df35d5cc21
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix version
2019-09-05 09:55:54 -07:00
Stanislav Malyshev
60cfa5781a
fix version
2019-09-05 09:54:43 -07:00
Nikita Popov
9ec61e43d4
Fix pipe detection and stream position handling
...
There are two related changes here:
1. Also check for S_ISCHR/FILE_TYPE_CHAR when checking for pipes, so
that we detect ttys as well, which are also not seekable.
2. Always set position=-1 (i.e. ftell will return false) when a pipe
is detected. Previously position=0 was sometimes used, depending on
whether we're on Windows/Linux and whether the FD or FILE codepath
was used.
2019-09-05 18:29:15 +02:00
Dmitry Stogov
4ecdff2da8
Revert "Microoptimization (avoid code duplication)"
...
This reverts commit 25d97f5eee .
2019-09-05 15:35:19 +03:00
Dmitry Stogov
25d97f5eee
Microoptimization (avoid code duplication)
2019-09-05 13:44:46 +03:00
Dmitry Stogov
7237da27fe
Remove HOT attribute from some VM handlers. Comparisons almost always followed by JMPZ/JMPNZ; JMPZNZ is rare used.
2019-09-05 11:40:15 +03:00
Nikita Popov
a2c21e10b2
Remove --with-zlib-dir option from mysqlnd config
...
mysqlnd doesn't actually use this. PDO MySQL uses it, but also
declares it separately.
2019-09-05 10:39:04 +02:00
Nikita Popov
b6f76aca54
Improve exception handling for abstract/deprecated calls
...
Reuse existing arg freeing loop instead of duplicating it.
Additionally also handle deprecated in DO_FCALL_BY_NAME.
2019-09-04 15:19:21 +02:00
Nikita Popov
4bb7282742
Fix handling of abstract/deprecated exception
...
The exception mechanism assumes that exceptions from DO_FCALL are
already happening after the function call. This means that we are
currently leaking the passed arguments, and I think we can also
corrupt the VM stack due to incorrect frame linking in some cases
(there are assertion failures if the VM stack page size is reduced).
Instead handle the stack frame freeing manually for this special
case.
2019-09-04 12:46:00 +02:00
Dmitry Stogov
1db0bad6a7
Fixed bug #78488 (OOB in ZEND_FUNCTION(ffi_trampoline)).
2019-09-04 12:16:12 +03:00
Tyson Andre
94e2f25f07
Add missing opcache return types for functions in spl
...
(excluding spl_autoload)
spl_object_id() is of the most interest to me,
since I frequently call it in an application.
This includes false/null types caused by wrong argument types and wrong argument
counts.
I can't rule out iterator_to_array returning null in spl_iterator_apply,
so leave MAY_BE_NULL in.
With review comments by nikic:
Co-Authored-By: Nikita Popov <nikita.ppv@googlemail.com >
2019-09-04 11:12:41 +02:00
Fabien Villepinte
ced5bb7d88
Add the last missing SKIPIF
2019-09-04 08:53:35 +02:00
Fabien Villepinte
db4f5e44e1
Add missing SKIPIF (mbstring)
2019-09-04 08:51:03 +02:00
Fabien Villepinte and Gabriel Caruso
7aece45f4d
Add missing SKIPIF (openssl)
...
Co-Authored-By: Gabriel Caruso <carusogabriel34@gmail.com >
2019-09-04 08:43:32 +02:00
Fabien Villepinte
bbf7b8dd69
Add missing SKIPIF (sqlite)
2019-09-04 08:39:15 +02:00
Fabien Villepinte
c0c1f9d38c
Add missing SKIPIF
2019-09-04 08:36:11 +02:00
Christoph M. Becker
61dcae50d5
Document opcache.preload_user directive
2019-09-03 14:08:17 +02:00
Nikita Popov
6255308624
Report false for inherited private methods in method_exists()
...
These shadow methods only exist as internal implementation markers.
This mirrors the behavior of property_exists().
2019-09-03 13:59:25 +02:00
Christoph M. Becker
fd7309d194
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #41997 : SP call yields additional empty result set
2019-09-03 13:33:15 +02:00
Christoph M. Becker
b90cd91eba
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #41997 : SP call yields additional empty result set
2019-09-03 13:31:24 +02:00
Christoph M. Becker
41a4379cb4
Fix #41997 : SP call yields additional empty result set
...
When stored procedures are called, the "final result set is a status
result that includes no result set". Calling `::nextRowset()` on the
actual last result set should return FALSE, since there is actually no
further result set to be processed.
2019-09-03 13:29:30 +02:00
Dmitry Stogov
5dc37cc306
Execute preload script under user defined by opcache.preload_user directive
2019-09-03 14:23:13 +03:00
Nikita Popov
518c651c66
Avoid pointer UB in strip_header
...
Don't calculate header_start if lc_header_start is NULL, as we're
going to overflow the address space in that case.
2019-09-03 12:28:18 +02:00
Nikita Popov
265af40a0a
Use unsigned subtraction in php_random_int()
...
This subtraction may overflow the signed domain, which is UB. Use
an unsigned subtraction instead.
2019-09-03 12:28:18 +02:00
Derick Rethans
ac356ba81f
Merge branch 'PHP-7.4' of git://github.com/php/php-src into PHP-7.4
2019-09-03 09:11:00 +01:00
Tyson Andre
4de8503c22
Add missing opcache return info for ext/standard.
...
array_key_first/last returns null for invalid args,
wrong argument counts, and empty arrays.
random_bytes returns a string or throws.
2019-09-03 09:57:51 +02:00
Tyson Andre
1a905bcb1e
Add new missing functions from ext/hash
2019-09-03 09:53:41 +02:00
Nikita Popov
c0e9b1532e
Add zpp check to spl_classes()
2019-09-03 09:50:08 +02:00
Derick Rethans
c53da9b631
Update NEWS for 7.4.0RC2
2019-09-03 07:46:16 +00:00
Derick Rethans
ba7ae00bde
Update NEWS for PHP 7.4.0RC1
2019-09-03 07:44:58 +00:00
Nikita Popov
5acedabfc0
Clarify failure behavior of spl_iterator_apply()
...
It only fails if it throws, in which case it is meaningless to
set a return value.
2019-09-03 09:43:22 +02:00
Christoph M. Becker
de643aaa46
Add missing argument checks
...
These functions don't expect any arguments, so we check that none are
given.
2019-09-03 09:27:55 +02:00
Nikita Popov
632708ac02
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-03 09:24:05 +02:00
Nikita Popov
d66e0f165d
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-03 09:23:55 +02:00
Tyson Andre
9c3b7ccda5
Fix opcache return type for hash_update_stream
...
It can return false if the resource type is wrong.
```
php > var_export(hash_update_stream(hash_init('md5'),
imagecreate(1,1)));
Warning: hash_update_stream(): supplied resource is not a valid stream
resource in php shell code on line 1
false
```
The return types were initially added in
c88ffa9a56
2019-09-03 09:23:39 +02:00
Dmitry Stogov
78aa89a3ee
Update PHP_API_VERSION
2019-09-02 19:02:40 +03:00
Christoph M. Becker
f597059001
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
2019-09-02 15:21:49 +02:00
Christoph M. Becker
f712925500
Update NEWS
2019-09-02 15:21:20 +02:00
Christoph M. Becker
38d2c9bd62
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #76577 : outdated documentation concerning track_errors
2019-09-02 15:06:45 +02:00
Christoph M. Becker
86ddc469f9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76577 : outdated documentation concerning track_errors
2019-09-02 15:05:57 +02:00
Christoph M. Becker
cd63908ab8
Fix #76577 : outdated documentation concerning track_errors
2019-09-02 15:05:01 +02:00
Dmitry Stogov
c739023a50
Free two bits in fn_flags by merging ZEND_ACC_HEAP_RT_CACHE/ZEND_ACC_USER_ARG_INFO and ZEND_ACC_DONE_PASS_TWO/ZEND_ACC_ARENA_ALLOCATED that may be used only for user/internal functions
2019-09-02 14:05:28 +03:00
Dmitry Stogov
e6d3a218f0
Fixed information about unused flags
2019-09-02 12:50:05 +03:00
Nikita Popov
0f489db808
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-02 09:37:26 +02:00
Nikita Popov
7659182632
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-02 09:36:58 +02:00
Nikita Popov
5a0980f1d9
Fix pkg-config version constraint for ICU
...
On PHP 7.2 our minimum ICU version is 4.0, not 40.
2019-09-02 09:36:20 +02:00
George Peter Banyard
e895e96286
Drop E_STRICT notice in mysqli extension
2019-08-31 23:14:10 +02:00
Nikita Popov
77a0fa101e
Reenable alloca support on ZTS
...
This got disabled due to an incorrect change in a preprocessor condition
in 2104bea5d7 . It was not supposed to
be disabled.
2019-08-30 17:24:06 +02:00
Nikita Popov
1e4cc5bf0b
Fix file clashes in copy tests
...
Create the "*" file in a sub-directory rather than the main test
directory, so that it's different for each test.
2019-08-30 16:36:49 +02:00
Nikita Popov
2f67f32eaa
Remove bogus vcwd_open
...
This is a left-over from the Linux version...
2019-08-30 16:09:55 +02:00
Nikita Popov
27da21d429
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-30 16:07:54 +02:00
Nikita Popov
e9cfd94b8e
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-30 16:07:43 +02:00
Sergei Turchanov
8f564e5308
Fixed bug #78469
...
fcgi_accept_request function is supposed to call a FastCGI implementation's
on_accept hook when entering an "accepting" stage (that is right before
calling "accept"). This hook implementation (fpm_request_accepting) updates
a worker state to an "accepting" state which is effectively an "Idle" state,
and updates counters on the scoreboard of the corresponding pool (idle++,
active--).
But this is not done when listening for client connections on a named pipe on
Windows platform. In that case a combination of
ConnectNamedPipe/WaitForSingleObject is used (to be able to catch in_shutdown
as far as I understand), but it is nonetheless functionally equivalent to
"accept" call. Also by not calling on_hook neither a worker's state is updated
to "accepting" state nor scoreboard counters are updated.
2019-08-30 16:06:50 +02:00
Nikita Popov
b4088ba509
Avoid accessing undefined index in CLI server test
2019-08-30 11:02:30 +02:00
Nikita Popov
226fd52c76
Don't call Reflection::export() in --rf etc implementation
...
This method is deprecated ... instead simply directly print the
object.
2019-08-30 11:02:28 +02:00
Fabien Villepinte
e1afd9b213
Modernize some connectors in tests to remove env key duplication
2019-08-30 10:33:01 +02:00
Nikita Popov
a12ebc295c
Add job for community projects
...
Run some open-source projects through an aggressive debug
configuration with asan and ubsan. We don't care about test results,
only check that we don't assert or crash.
Currently testing laravel, symfony and amp.
2019-08-30 10:07:18 +02:00
Peter Kokot
ae59a6d49d
Update NEWS
2019-08-30 04:32:05 +02:00
Peter Kokot
18a2f0849f
Fix #78460 : PEAR installation failure
...
When building PHP outside of the source tree:
mkdir custom-build-dir
cd custom-build-dir
../path/to/php-src/configure
The directories need to be manually created including the pear directory
so the pear installation PHAR file doesn't need to be downloaded from
the remote location.
Closes GH-4639
2019-08-30 04:26:05 +02:00
Nikita Popov
48ff226cae
Fix potentially uninitialized use in ldap
...
If ctrl->ldctl_value.bv_len is zero context is uninitialized. Only
free it if the call took place and succeeded.
2019-08-29 19:07:45 +02:00
Nikita Popov
6cc53981e5
Addref static vars when not copying private method
...
While we don't need to give this method separate static vars, we
do still need to perform an addref, as there will be a corresponding
delref in the dtor.
2019-08-29 14:47:09 +02:00
Nikita Popov
a10093eee1
Use explicit unaligned type in md5 implementation
2019-08-29 14:47:03 +02:00
Nikita Popov
a12fe30590
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-29 12:34:07 +02:00
Nikita Popov
34edd4aa2a
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-29 12:33:04 +02:00
Nikita Popov
ed749edd47
Fix use-after-free of immediately invoked closure with extra args
2019-08-29 12:32:03 +02:00
Nikita Popov
43551405d5
Set opcache.protect_memory=1 on Azure
2019-08-28 18:17:11 +02:00
Christoph M. Becker
35177027f4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78473 : odbc_close() closes arbitrary resources
2019-08-28 17:58:35 +02:00
Christoph M. Becker
195b8ae779
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78473 : odbc_close() closes arbitrary resources
2019-08-28 17:57:10 +02:00
Christoph M. Becker
b557265816
Fix #78473 : odbc_close() closes arbitrary resources
...
We have to bail out, if an invalid resource is given. For consistency
with the other `zend_fetch_resource(2)` calls, we return `FALSE`.
2019-08-28 17:55:15 +02:00
Nikita Popov
f912445eb2
Add missed mutability check
2019-08-28 17:35:25 +02:00
Nikita Popov
c45f19590c
Remove delref in free_object_storage
...
This gives us better object leak diagnostics.
2019-08-28 17:04:36 +02:00
Nikita Popov
2709d6a250
Destroy error handlers before final GC run
2019-08-28 17:04:35 +02:00
Nikita Popov
ec9a96dc60
Fixed bug #78335
...
Destroy static properties and variables prior to the final GC run,
as they may hold GC roots.
2019-08-28 12:32:06 +02:00
Stanislav Malyshev
8dfd3af169
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Upgrade oniguruma lib to 6.9.3
2019-08-28 00:11:50 -07:00
Stanislav Malyshev
5748cec3ee
Upgrade oniguruma lib to 6.9.3
2019-08-27 23:40:46 -07:00
Nikita Popov
e5c7f71004
Don't specify precedence for T_INC/T_DEC
...
As these do not operate on expressions, precedence is meaningless
for them.
2019-08-27 21:59:56 +02:00
Nikita Popov
c1fbc3900f
Add --with-pear to Travis build
2019-08-27 17:03:21 +02:00
Pavel Dyakonov
f08095faa5
add ffi to php.ini extension [ci skip]
2019-08-27 15:53:51 +02:00
Anatol Belski
9b5d66bd52
Fix signature and calls
2019-08-27 14:34:35 +02:00
Christoph M. Becker
78e0f85cb5
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update SDK version for AppVeyor
2019-08-27 13:36:09 +02:00
Christoph M. Becker
e2b60796f0
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update SDK version for AppVeyor
2019-08-27 13:35:05 +02:00
Christoph M. Becker
88ab374627
Update SDK version for AppVeyor
2019-08-27 13:34:35 +02:00
Jakub Zelenka
302a1400f3
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-26 18:11:04 +01:00
Tsuyoshi Sadakata
ffcf57fa18
Fix bug #78334 (fpm log prefix message includes wrong stdout/stderr notation)
2019-08-26 18:05:11 +01:00
Nikita Popov
fa8565a0f1
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-26 17:52:56 +02:00
Nikita Popov
461db52400
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-26 17:52:37 +02:00
Nikita Popov
589542f50c
Remove properties HT from nested GC data
...
The properties HT may be a GC root itself, so we need to remove it.
I'm not sure this issue actually applies to PHP 7.2, but committing
it there to be safe. As seen from the test case, the handling here
is rather buggy on 7.2.
2019-08-26 17:49:37 +02:00
Nikita Popov
e2b49d6c45
Don't use needs_live_range hook for "special" live ranges
...
In particular we were disgarding SILENCE live ranges in opcache,
because we decided that a MAY_BE_LONG type does not need a live
range.
2019-08-26 16:12:03 +02:00
Christoph M. Becker
8f897f1040
Replace deprecated libzip functions
...
We replace all deprecated libzip functions with their recommended
substitutes, and add proper comment length checks including a test
case.
2019-08-26 14:05:28 +02:00
viest
5703943081
Deprecate AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES
...
These flags have been deprecated in glibc 2.28, so we also
deprecate them in PHP.
As we can't deprecate constants, we can only check for their use
in socket_addrinfo_lookup().
2019-08-26 11:33:18 +02:00
Nikita Popov
774cdb1d59
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-26 11:13:57 +02:00
Nikita Popov
e4ecadcb62
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-26 11:13:49 +02:00
Tyson Andre
1e82a2d659
Also fix signature for passthru
...
Backported from a1a8d14485
https://www.php.net/manual/en/function.passthru.php#refsect1-function.passthru-returnvalues
`passthru()` is false with invalid args
`passthru('command')` is null.
2019-08-26 11:13:26 +02:00
Tyson Andre
f5bccc0eb5
Fix opcache optimizer info for time_nanosleep
...
This can also return an array. See
https://www.php.net/manual/en/function.time-nanosleep.php#refsect1-function.time-nanosleep-returnvalues
> If the delay was interrupted by a signal, an associative array will be
returned with the components:
>
> - seconds - number of seconds remaining in the delay
> - nanoseconds - number of nanoseconds remaining in the delay
Sending a SIGUSR1 to the below program would trigger this behavior.
```
pcntl_signal(\SIGUSR1, function ($signo, $signinfo) {
echo "Handling a signal $signo\n";
});
echo "Sleeping for 100 seconds\n";
var_export(time_nanosleep(100, 0));
```
The incomplete signature existed since c88ffa9a5 .
No phpt tests existed for time_nanosleep returning an array
2019-08-26 11:13:26 +02:00
Nikita Popov
9483c50772
Fixed bug #78456
2019-08-26 11:08:42 +02:00
Nikita Popov
bad49e55b9
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-26 10:27:08 +02:00
Nikita Popov
a26f63213d
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-26 10:26:49 +02:00
Nikita Popov
16d35eb643
Fix overflow in memory limit checks
...
Due to overflows in the memory limit checks, we were missing cases
where the allocation size was close to the address space size, and
caused an OOM condition rather than a memory limit error.
2019-08-26 10:25:30 +02:00
Stanislav Malyshev
c810d3d6ad
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test
2019-08-25 20:06:43 -07:00
Stanislav Malyshev
d1646e328a
Fix test
...
Not sure why offset changed... probably different PCRE version calculates
them in different way.
2019-08-25 20:06:02 -07:00
Stanislav Malyshev
9f269d0d27
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #75457 : heap-use-after-free in php7.0.25
2019-08-25 19:21:08 -07:00
Stanislav Malyshev
5d25ebb0dd
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #75457 : heap-use-after-free in php7.0.25
2019-08-25 19:21:04 -07:00
Stanislav Malyshev
4b4a656d9e
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #75457 : heap-use-after-free in php7.0.25
2019-08-25 19:20:59 -07:00
Christoph M. Becker
7bf1f9d561
Fix #75457 : heap-use-after-free in php7.0.25
...
Backport <https://vcs.pcre.org/pcre?view=revision&revision=1638 >.
2019-08-25 19:19:50 -07:00
Theodore Brown
1a78bdab27
Fix #78454 : Consecutive numeric separators cause OOM error
...
Resolves out of memory error when consecutive numeric separators follow a binary/hex literal.
2019-08-25 22:46:18 +02:00
Christoph M. Becker
ac40d0ffbc
Don't modify arrays passed by value
2019-08-25 18:27:35 +02:00
Stanislav Malyshev
beb7a0039b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update Oniguruma to 6.9.1
2019-08-25 00:20:40 -07:00
Stanislav Malyshev
d3f2cfe20a
Update Oniguruma to 6.9.1
2019-08-25 00:02:32 -07:00
Stanislav Malyshev
377f30acb2
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix CVE-2019-13224: don't allow different encodings for onig_new_deluxe()
set version for release
2019-08-24 23:17:12 -07:00
Stanislav Malyshev
5704eca6f7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix CVE-2019-13224: don't allow different encodings for onig_new_deluxe()
set version for release
2019-08-24 23:16:09 -07:00
Stanislav Malyshev
087cb7bab2
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix CVE-2019-13224: don't allow different encodings for onig_new_deluxe()
set version for release
2019-08-24 23:15:36 -07:00
Stanislav Malyshev
1258303e66
Fix CVE-2019-13224: don't allow different encodings for onig_new_deluxe()
...
Backport from https://github.com/kkos/oniguruma/commit/0f7f61ed1b7b697e283e37bd2d731d0bd57adb55
2019-08-24 23:11:45 -07:00
Nikita Popov
d1157cbce1
Relax closure $this unbinding deprecation
...
Only deprecate unbinding of $this from a closure if $this is
syntactically used within the closure.
This is desired to support Laravel's macro system, see laravel/framework#29482 .
This should still allow us to implement the performance improvements
we're interested in for PHP 8, without breaking existing use-cases.
2019-08-23 17:21:23 +02:00
Nikita Popov
8807889ac2
Fix arginfo leak when using disabled_classes
...
Also remove the hack where scope is set to NULL in order to make
free_internal_arg_info work. Instead explicitly call it for class
methods.
This fixes the asan build for Zend/tests/bug77494.phpt.
2019-08-23 17:00:59 +02:00
Nikita Popov
7910f128e2
Fix noalias violation in select call
2019-08-23 16:18:59 +02:00
Nikita Popov
6534ff13cd
Avoid strncat use in proc_open
...
Instead manually manage the insertion position.
2019-08-23 16:18:59 +02:00
Nikita Popov
724a4662b8
Replace strncat in filter implementation
...
In this case we already know exactly where we need to write, no
need to use strncat at all.
2019-08-23 16:18:50 +02:00
Nikita Popov
9173c21a35
Support variable element size in spl heap implementation
...
This allows us to drop the intermediate allocation for
spl_pqueue_elem.
This fixes GC for SplPriorityQueue, because we can now directly
return a well-formed GC child buffer.
2019-08-23 15:29:53 +02:00
Nikita Popov
13e92223c0
Fixed bug #78436
2019-08-23 15:27:28 +02:00
Christoph M. Becker
514be3ff87
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77812 : Interactive mode does not support PHP 7.3-style heredoc
2019-08-23 14:04:31 +02:00
Christoph M. Becker
03c7749dc8
Fix #77812 : Interactive mode does not support PHP 7.3-style heredoc
...
As of PHP 7.3.0, the rules regarding the heredoc and nowdoc closing
identifier have been relaxed. While formerly, the closing identifier
was required to be placed at the beginning of a line and to be
immediately followed by (a semicolon and) a line break, it may now be
preceeded by whitespace, and may be followed by any non-word character.
We adjust the recognition logic respectively.
2019-08-23 13:59:10 +02:00
Christoph M. Becker
eeb910911d
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Suppress deprecation warning on IDNA2003 ICU methods for clang
2019-08-23 12:22:28 +02:00
Christoph M. Becker
c9d31941e4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Suppress deprecation warning on IDNA2003 ICU methods for clang
2019-08-23 12:21:57 +02:00
Christoph M. Becker
ff7029b65b
Suppress deprecation warning on IDNA2003 ICU methods for clang
2019-08-23 12:18:58 +02:00
Christoph M. Becker
ca265eb545
Fix #78438 : Corruption when __unserializing deeply nested structures
...
When storing two temporary variables for delayed __unserialize() calls,
we have to make sure that both fit into the same linked list element.
To that end we introduce the internal API `tmp_var` which allows to
reserve `num` slots in the same list element.
We also fix the `var_dtor_entries` struct definition to use the proper
size, namely `VAR_DTOR_ENTRIES_MAX`.
2019-08-23 11:41:06 +02:00
Christoph M. Becker
69ba2b98d1
Fix var_unserializer debug code
...
At least it now compiles and should be free of warnings.
2019-08-22 15:58:51 +02:00
Christoph M. Becker
1eb75f2937
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78441 : Parse error due to heredoc identifier followed by digit
2019-08-21 22:54:52 +02:00
Christoph M. Becker
310708845f
Fix #78441 : Parse error due to heredoc identifier followed by digit
...
Since digits are allowed for identifiers, we have to cater to them as
well.
2019-08-21 22:51:51 +02:00
George Peter Banyard
01996c4b69
Remove dead code in base64.c
2019-08-20 21:42:06 +02:00
Remi Collet
15dcc1817d
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
ensure proper settings for test
2019-08-20 16:31:11 +02:00
Remi Collet
08aafbe93e
ensure proper settings for test
2019-08-20 16:30:52 +02:00
Derick Rethans
cf678da52d
Update NEWS for 7.4.0RC1
2019-08-20 14:10:36 +00:00
Derick Rethans
b3561e9329
Update NEWS for PHP 7.4.0beta4
2019-08-20 14:09:17 +00:00
Christoph M. Becker
c03114e55c
Fix #78386 : fstat mode has unexpected value on PHP 7.4
...
We must not assume that any file which is not a directory is a regular
file. Therefore we employ `GetFileType()` in this case to properly
distinguish between character special, FIFO special and regular files.
2019-08-20 16:04:14 +02:00
Christoph M. Becker
ae923287ca
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Don't use C++ style comments
2019-08-20 13:58:54 +02:00
Christoph M. Becker
963b40c9a8
Don't use C++ style comments
...
Cf. <https://github.com/php/php-src/blob/f45b61b8988b5b2d80dd4a1df7edd04282cf319a/CODING_STANDARDS.md#syntax-and-indentation >
cc @mcmic
2019-08-20 13:58:22 +02:00
Christoph M. Becker
a18f53ec2c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
2019-08-20 13:35:17 +02:00
Christoph M. Becker
3771d66142
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
2019-08-20 13:33:45 +02:00
Qianqian Bu
cdf16c010a
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
2019-08-20 13:31:58 +02:00
Christoph M. Becker
3775d47eee
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78220 : Can't access OneDrive folder
2019-08-19 19:58:45 +02:00
Christoph M. Becker
5e19f1d458
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78220 : Can't access OneDrive folder
2019-08-19 19:57:22 +02:00
Christoph M. Becker
81f52158b4
Fix #78220 : Can't access OneDrive folder
...
As of Windows 1903, when the OneDrive on-demand feature is enabled, the
OneDrive folder is reported as reparse point by `FindFirstFile()`, but
trying to get information about the reparse point using
`DeviceIoControl()` fails with `ERROR_NOT_A_REPARSE_POINT`. We work
around this problem by falling back to `GetFileInformationByHandle()`
if that happens, but only if the reparse point is reported as cloud
reparse point, and only if PHP is running on Windows 1903 or later.
The patch has been developed in collaboration with ab@php.net .
We should keep an eye on the somewhat quirky OneDrive behavior, since
it might change again in a future Windows release.
2019-08-19 19:55:35 +02:00
Nikita Popov
86d751f696
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-17 10:59:52 +02:00
Nikita Popov
be7e819068
Fixed bug #77922
...
In PHP 7.3 shadow properties are no longer duplicated. Make sure we
only release them if the property was defined on the parent class,
which means that it changed from private->shadow, which is where
duplication does happen.
2019-08-17 10:58:54 +02:00
Sara Golemon
bd62f5ac47
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Suppress deprecation warning on IDNA2003 ICU methods
2019-08-16 12:41:32 -04:00
Sara Golemon
a192499d2a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Suppress deprecation warning on IDNA2003 ICU methods
2019-08-16 12:41:02 -04:00
Sara Golemon
725f439778
Suppress deprecation warning on IDNA2003 ICU methods
2019-08-16 12:40:20 -04:00
Sara Golemon
4d3be2a995
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Revert "Move to non deprecated API on suitable ICU versions"
2019-08-16 11:40:01 -04:00
Sara Golemon
9b9814fa77
Revert "Move to non deprecated API on suitable ICU versions"
...
This reverts commit 13a2f2d041 .
The APIs used by this commit aren't entirely equivalent to the original ones.
2019-08-16 11:39:05 -04:00
Jan Altensen
0b6d869d7c
appveyor: exclude some documentation paths
...
Change-Id: Ifff234133f4437bfe5c31c1f1e00092cd60e1d53
2019-08-15 18:19:15 +02:00
Christoph M. Becker
b1c4e0be89
Empty merge
2019-08-15 15:30:03 +02:00
Christoph M. Becker
4966647443
Update NEWS
...
This fix has been cherry-picked into PHP-7.3.9.
2019-08-15 15:28:52 +02:00
Nikita Popov
34885408db
Fixed bug #78409
...
This removes an incorrect optimization (I think this code used to be
necessary to properly handle references in the Serializable based
implementation, but now this code just avoids an array duplication
in a way that is not sound).
2019-08-15 10:40:28 +02:00
Christoph M. Becker
65ea6bbdc6
Empty merge
2019-08-14 19:25:48 +02:00
Christoph M. Becker
8fb297cd82
Update credits_ext.h
2019-08-14 19:24:16 +02:00
Nikita Popov
80a2bfafa4
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-14 17:53:24 +02:00
Nikita Popov
c238b5bbef
Fix reference printing in GC tracing
2019-08-14 17:51:41 +02:00
Nikita Popov
1166359acb
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-14 17:51:35 +02:00
Nikita Popov
fcabe7e5e4
Fixed bug #78412
...
$this should only be included in the generator GC buffer, if it
will be released on destruction.
2019-08-14 17:50:58 +02:00
Sara Golemon
2f13f65706
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Bump for 7.2.23
2019-08-13 19:34:26 -04:00
Sara Golemon
e5da73d1f2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump for 7.2.23
2019-08-13 19:34:12 -04:00
Sara Golemon
4b64d47c99
Bump for 7.2.23
2019-08-13 19:32:12 -04:00
Christoph M. Becker
2781e54ef1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Next will be 7.3.10
2019-08-14 00:48:49 +02:00
Christoph M. Becker
5536105b67
Next will be 7.3.10
2019-08-13 23:57:48 +02:00
Christoph M. Becker
f25eee2c56
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Bump version numbers
2019-08-13 23:26:29 +02:00
Christoph M. Becker
fe7997912d
Bump version numbers
...
This should have been done four weeks ago already.
2019-08-13 23:23:43 +02:00
Nikita Popov
d891b5f458
Fixed bug #78410
2019-08-13 20:23:56 +02:00
Nikita Popov
b0394ba0e5
Add myself to extension maintainer list
...
Year ranges are wild guesses.
2019-08-13 16:08:04 +02:00
Nikita Popov
60a7e60b61
Fixed bug #72530
...
For objects with destructors, we will now only call the destructor
in the initial GC run, and remove any nested data. The object is
marked purple so it will be considered a root for the next GC run,
at which point it will be fully destroyed, if possible.
GC counts change on a number of tests, as the objects now get
destroyed later.
2019-08-13 14:53:53 +02:00
Nikita Popov
fdfc7ea932
Don't return persistent string from get_cfg_var()
...
This is not thread-safe.
2019-08-13 14:50:01 +02:00
Nikita Popov
201729840c
Mark PCRE locale key as local persistent
2019-08-13 14:49:59 +02:00
Christoph M. Becker
eb25176ab3
Remove dead code
2019-08-13 13:29:11 +02:00
Nikita Popov
bc690d63f6
Adjust GC count in SPL test
2019-08-13 12:34:48 +02:00
Nikita Popov
72b7d99d0d
Remove removed nested data from GC count
2019-08-13 12:17:08 +02:00
Nikita Popov
f0f3fe0b6c
Don't include non-refcounted structures in GC count
2019-08-13 12:08:59 +02:00
Nikita Popov
7bd2b9d2e6
Generalize delref assertion
...
The refcount should never become negative, not just during GC.
2019-08-13 11:44:54 +02:00
Nikita Popov
76fecb339f
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-13 11:23:06 +02:00
Nikita Popov
a33361a37c
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-13 11:22:41 +02:00
Nikita Popov
4eeb41d1ea
Fixed bug #77191
2019-08-13 11:19:58 +02:00
Nikita Popov
b01824e596
Fixed bug #78406
2019-08-13 10:22:32 +02:00
Nikita Popov
bdf3fa8c3e
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-13 09:54:44 +02:00
Nikita Popov
7ba54b9822
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-13 09:54:26 +02:00
Nikita Popov
18f2918a0f
Don't destroy properties array with unset GC type
...
As the properties array can also be a GC root, it might have
already been destroyed.
2019-08-13 09:53:25 +02:00
Christoph M. Becker
ce646357bf
Fix WS
2019-08-12 17:59:30 +02:00
Nikita Popov
b6f1b61f8f
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-12 17:17:42 +02:00
Nikita Popov
4cd563d07e
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-12 17:17:30 +02:00
Nikita Popov
f3fdf570b3
Intern alias old_name early
...
This is likely going to end up interned lateron at some point
when the new_name is referenced somewhere. However, it may be
that there are some uses that do not get interned before that.
In this case we will intern a string that already have zval
users, without updating the refcounted flag on those zvals.
In particular this can happen with something like [Foo::class],
where Foo is an imported symbol. The string it resolves to won't
get interned right away, but may be interned later.
use Foo as Bar;
$x = [Bar::class];
var_dump(Bar::X);
debug_zval_dump($x); // Will show negative refcount
class Foo {
const X = 1;
}
However, this doesn't really fix the root cause, there are probably
other situations where something similar can occur.
2019-08-12 17:12:28 +02:00
Christoph M. Becker
b1189b18d2
Add missing argument checks
...
These functions don't expect any arguments, so we should check that
none are given.
2019-08-12 15:36:35 +02:00
Nikita Popov
a18ad194c4
Fixed bug #78396
2019-08-12 10:45:13 +02:00
Derick Rethans
f465560a0f
Updated to version 2019.2 (2019b)
2019-08-11 16:05:59 +01:00
Derick Rethans
7da140b58e
Empty merge
2019-08-11 16:05:59 +01:00
Derick Rethans
7aa1dd3ba1
Updated to version 2019.2 (2019b)
2019-08-11 16:05:58 +01:00
Christoph M. Becker
9818f863c3
Fix parameter order
...
`imagecopymerge()` and `imagecopymergegray()` expect the destination
image first, not the other way round.
2019-08-11 16:16:39 +02:00
Christoph M. Becker
092571c1cb
Extend color component range checks
...
We also check for alpha components to be within range, and we add yet
missing range checks for other functions as well.
2019-08-11 15:21:05 +02:00
Dmitry Stogov
4ebf527136
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed handling of references in nested data of objects with destructor
2019-08-09 17:47:35 +03:00
Dmitry Stogov
722a44d515
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed handling of references in nested data of objects with destructor
2019-08-09 17:47:06 +03:00
Dmitry Stogov
9b43e29d9b
Fixed handling of references in nested data of objects with destructor
2019-08-09 17:43:50 +03:00
Nikita Popov
7b152990b6
Don't short-circuit MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE
...
Make sure we always go through mbfl_filt_conv_illegal_output(), so
that the number of illegal characters gets counted.
2019-08-09 16:33:21 +02:00
Nikita Popov
699b465da2
Fixed bug #78391
2019-08-09 15:03:40 +02:00
Dmitry Stogov
1456467cfe
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed second part of the bug #78379 (Cast to object confuses GC, causes crash)
2019-08-09 15:58:33 +03:00
Dmitry Stogov
22d23e08c9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed second part of the bug #78379 (Cast to object confuses GC, causes crash)
2019-08-09 15:58:16 +03:00
Dmitry Stogov
6b1cc1252e
Fixed second part of the bug #78379 (Cast to object confuses GC, causes crash)
2019-08-09 15:42:39 +03:00
Dmitry Stogov
b2044cd93e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Added asserts to catch GC errors when refcount goes below zero.
2019-08-09 13:40:39 +03:00
Dmitry Stogov
21a0a28fd0
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Added asserts to catch GC errors when refcount goes below zero.
2019-08-09 13:39:59 +03:00
Dmitry Stogov
2e2cd65d73
Added asserts to catch GC errors when refcount goes below zero.
2019-08-09 13:37:23 +03:00
Matteo Beccati
5c8124d311
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Skip test when SIGKILL is not defined
2019-08-09 10:33:15 +02:00
Matteo Beccati
5ef1a30aaf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Skip test when SIGKILL is not defined
2019-08-09 10:32:56 +02:00
Matteo Beccati
796efd849e
Skip test when SIGKILL is not defined
2019-08-09 10:32:15 +02:00
Matteo Beccati
00dd786ba4
Fix test when default TZ is not UTC
2019-08-09 09:58:10 +02:00
Nikita Popov
d9dc942011
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-08 10:55:02 +02:00
Nikita Popov
38f10ff5cf
Fix GC tracing
...
Due to the GC changes in 7.3 we stopped tracing most of the
interesting coloring changes...
2019-08-08 10:54:18 +02:00
Nikita Popov
8a4171ac45
Add UPGRADING note about stream_set_option() and includes
...
[ci skip]
2019-08-08 10:12:16 +02:00
Nikita Popov
fc17bfaacf
Fixed bug #78383
2019-08-08 09:55:52 +02:00
Dmitry Stogov
720438c8ee
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #78379 (Cast to object confuses GC, causes crash)
2019-08-08 10:07:39 +03:00
Dmitry Stogov
bff2743caf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #78379 (Cast to object confuses GC, causes crash)
2019-08-08 10:05:59 +03:00
Dmitry Stogov
358379be22
Fixed bug #78379 (Cast to object confuses GC, causes crash)
2019-08-08 10:00:39 +03:00
Christoph M. Becker
be794894ef
Fix detection of pg_config.h
...
pg_config.h is supposed to be placed right besides libpq-fe.h, so we
should check the same paths.
2019-08-07 13:25:07 +02:00
Christoph M. Becker
ae91f8572e
Skip test if ext/json is not available
...
Otherwise the test fails.
2019-08-07 13:04:13 +02:00
Christoph M. Becker
886be260cb
Make extension compatibility check more liberal
...
Checking for the exact linker version appears to be too restrictive; it
should be fine if the tens match.
We also refactor to avoid repeating ourselves.
2019-08-07 11:31:12 +02:00
Christoph M. Becker
968ed124b2
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78282 : atime and mtime mismatch
2019-08-06 17:28:36 +02:00
Christoph M. Becker
9ea39d15ab
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78282 : atime and mtime mismatch
2019-08-06 17:28:11 +02:00
Christoph M. Becker
954543cec6
Fix #78282 : atime and mtime mismatch
...
The fix for bug #78241 assumed that `time_t` would always be 64bit, but
actually is 32bit for x86. We therefore enforce 64bit arithmetic to
avoid wrapping.
(cherry picked from commit bf242d58e7 )
2019-08-06 17:25:54 +02:00
Dmitry Stogov
d1fd4607d0
Inline zend_zval_ptr() in executor explicitely (only on hot paths)
2019-08-06 16:28:42 +03:00
Dmitry Stogov
ef35556498
typo
2019-08-06 13:58:17 +03:00
Dmitry Stogov
d5d76ea6e7
Preloading is not comatible with dl() function
2019-08-06 12:44:55 +03:00
Dmitry Stogov
170a3f871f
Don't set GC_HAS_DESTRUCTORS flag if destructors were already called
2019-08-06 11:35:53 +03:00
Derick Rethans
2811e924d1
Update NEWS for 7.4.0beta3
2019-08-06 06:55:20 +00:00
Derick Rethans
6da7f015e1
Update NEWS for PHP 7.4.0beta2
2019-08-06 06:54:01 +00:00
Dmitry Stogov
3fc0e2bb80
Fixed bug #78376 (Incorrect preloading of constant static properties)
2019-08-05 22:55:06 +03:00
Christoph M. Becker
790b0b109a
Fix handling of succeeding XFAIL tests
...
Due to a typo in commit e1151c9[1], succeeding XFAIL test without an
EXPECTF or EXPECTREGEX section have been reported reported as passed
instead of warned.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=e1151c9549cf5a7235c1609019f79bbb1bbcdbea >
2019-08-05 11:38:47 +02:00
Christoph M. Becker
1ed9ebdea5
Support calling convention specific function name mangling
...
On Windows certain calling conventions cause C function names to be
mangled, so to import them we have to use the properly mangled names.
2019-08-04 12:14:11 +02:00
Christoph M. Becker
f12dc90e5e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78346 : strip_tags no longer handling nested php tags
2019-08-02 17:04:36 +02:00
Christoph M. Becker
a87ef5e3dd
Fix #78346 : strip_tags no longer handling nested php tags
...
When the strip tags state machine has been flattened, an if statement
has mistakenly been treated as else if. We fix this, and also simplify
a bit right away.
2019-08-02 17:03:20 +02:00
Christoph M. Becker
e60c507362
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78179 : MariaDB server version incorrectly detected
2019-08-02 16:45:29 +02:00
Christoph M. Becker
81efd489db
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78179 : MariaDB server version incorrectly detected
2019-08-02 16:44:15 +02:00
Christoph M. Becker
f9f4a68368
Fix #78179 : MariaDB server version incorrectly detected
...
As of MariaDB 10.0.2, the server reports a fake version number as work-
around for replication issues[1]. We apply the same "fix" as in the
MariaDB client to cater to this.
[1] <https://github.com/MariaDB/server/commit/c50ee6c23dbeb090963580754bec2f0a96ac0557#diff-5b45fa673c88c06a9651c7906364f592 >
2019-08-02 16:42:49 +02:00
Nikita Popov
a4a535d8de
Merge branch 'PHP-7.3' into PHP-7.4
2019-08-02 10:38:26 +02:00
Nikita Popov
d89157cd67
Add test for bug #78363
2019-08-02 10:37:44 +02:00
Nikita Popov
e1934f8515
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-02 10:35:48 +02:00
Nikita Popov
85e8ccd55e
Fixed bug #78363
2019-08-02 10:35:24 +02:00
Nikita Popov
bf53d30fae
Fix forwarding of extra args in opcache server tests
2019-08-01 17:00:11 +02:00
Christoph M. Becker
61e1147146
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Remove upgrade-pcre.php script
2019-08-01 10:50:08 +02:00
Christoph M. Becker
b419b24ead
Remove upgrade-pcre.php script
...
This script has not been updated for PCRE2, and it's mostly useless
anyway. Therefore we remove it altogether.
2019-08-01 10:49:05 +02:00
Nikita Popov
bab8b3a8be
Add test for bug #78356
2019-08-01 10:10:28 +02:00
Nikita Popov
afd96392a3
Revert "Use RW fetch for argument unpacking"
...
This reverts commit 6913ec3282 .
This reverts commit a9e332e027 .
Causes https://bugs.php.net/bug.php?id=78356 , which I don't have
a good solution for.
2019-08-01 10:06:53 +02:00
Christoph M. Becker
1f9a77baef
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix 78213: Empty row pocket
2019-07-31 18:08:05 +02:00
Christoph M. Becker
8af14024c2
Fix 78213: Empty row pocket
...
We have to ensure that we don't create an arena which is smaller than
its header, regardless of the configured alignment.
2019-07-31 18:05:40 +02:00
Joe Watkins
1c01a1579e
set version for release
2019-07-31 08:21:39 +02:00
Peter Kokot
3e8774e57a
Update NEWS
2019-07-30 22:09:00 +02:00
Peter Kokot
09b108246a
Fix #78348 : Remove -lrt from pdo_sqlite.so
...
The fdatasync check has been removed since PHP 5.3.
The Solaris fix was introduced via
8d63360fc4
and is today no longer relevant since the sqlite library is neither
bundled in php-src anymore neither the check needs to be done via the
PHP build system.
Closes GH-4485
2019-07-30 22:06:23 +02:00
Christoph M. Becker
053df4ac3b
Fix tests
...
Apparently, nobody is testing with MySQL < 5.6 for quite a while. We
should consider dropping support for these very old versions.
2019-07-30 16:32:49 +02:00
Nikita Popov
a9e332e027
Handle RW UNPACK in inference
2019-07-30 10:31:51 +02:00
Nikita Popov
0ed6c37140
Fix FPM timer event re-registration
...
Make sure that fpm_event_add calls inside a timer callback work by
unregistering the event from the queue before invoking its callback.
The read timeout in tester.inc is increased because the added test
needs two seconds (one for SIGTERM, one for SIGKILL) until the
reload succeeds, so we should wait longer than that for a response.
2019-07-30 10:16:57 +02:00
Nikita Popov
6913ec3282
Use RW fetch for argument unpacking
...
Argument unpacking may need to create references inside the array
that is being unpacked. However, it currently can only do this
if a plain variable is unpacked, not for any nested accesses,
because the value is fetched for read. Resolve this by fetching
the operands for RW.
2019-07-30 10:07:08 +02:00
Christoph M. Becker
8413df5e55
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add security related NEWS entries [ci skip]
2019-07-30 09:51:37 +02:00
Christoph M. Becker
ef439abd46
Add security related NEWS entries [ci skip]
2019-07-30 09:49:39 +02:00
Remi Collet
88cc70eb94
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
add security NEW entries + reorder [ci skip]
2019-07-30 09:27:20 +02:00
Remi Collet
6ea13baaf1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add security NEW entries + reorder [ci skip]
2019-07-30 09:27:06 +02:00
Remi Collet
b29ecec4ef
add security NEW entries + reorder [ci skip]
2019-07-30 09:26:50 +02:00
Stanislav Malyshev
fd6874c64d
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78338 : Array cross-border reading in PCRE
2019-07-29 14:51:21 -07:00
Christoph M. Becker
8947fd9e9f
Fix #78338 : Array cross-border reading in PCRE
...
We backport r1092 from pcre2.
2019-07-29 14:49:33 -07:00
Stanislav Malyshev
4adf3dc109
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77919 : Potential UAF in Phar RSHUTDOWN
Update NEWS
Fix bug #78256 (heap-buffer-overflow on exif_process_user_comment)
Fix bug #78222 (heap-buffer-overflow on exif_scan_thumbnail)
2019-07-29 13:20:52 -07:00
Stanislav Malyshev
d69894734d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77919 : Potential UAF in Phar RSHUTDOWN
Update NEWS
Fix bug #78256 (heap-buffer-overflow on exif_process_user_comment)
Fix bug #78222 (heap-buffer-overflow on exif_scan_thumbnail)
2019-07-29 13:20:44 -07:00
Stanislav Malyshev
284fb08fdc
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77919 : Potential UAF in Phar RSHUTDOWN
Update NEWS
Fix bug #78256 (heap-buffer-overflow on exif_process_user_comment)
Fix bug #78222 (heap-buffer-overflow on exif_scan_thumbnail)
2019-07-29 13:19:16 -07:00
Christoph M. Becker
cd1101e8c8
Fix #77919 : Potential UAF in Phar RSHUTDOWN
...
We have to properly clean up in case phar_flush() is failing.
We also make the expectation of the respective test case less liberal
to avoid missing such bugs in the future.
2019-07-29 13:18:27 -07:00
Stanislav Malyshev
42e8b85d94
Update NEWS
2019-07-29 13:16:53 -07:00
Nikita Popov
76c2bef9b0
Don't explicitly install homebrew
...
It is already installed on azure, and this installation step is
very unreliable lately.
2019-07-29 21:08:29 +02:00
Christoph M. Becker
3429370d69
Fix build for --disable-signals
2019-07-29 18:49:44 +02:00
Nikita Popov
536c91c535
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-29 17:34:37 +02:00
Nikita Popov
44fe025c28
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-29 17:34:16 +02:00
Albert Casademont
dc7aa22b18
Fix bug #78326
...
Similar to what fread() does, truncate the stream_get_contents()
result if the original buffer was way too large.
2019-07-29 17:33:57 +02:00
Nikita Popov
6df1665bb3
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-29 17:14:40 +02:00
Nikita Popov
bbed5564eb
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-29 16:57:57 +02:00
Nikita Popov
38f1288b64
Fix Zend signals unblocking
...
There are a few parts here:
* opcache should not be blocking signals while invoking compile_file,
otherwise signals may remain blocked on a compile error. While at
it, also protect SHM memory during compile_file.
* We should deactivate Zend signals at the end of the request, to make
sure that we gracefully recover from a missing unblock and signals
don't remain blocked forever.
* We don't use a critical section in deactivation, because it should
not be necessary. Additionally we want to clean up the signal queue,
if it is non-empty.
* Enable SIGG(check) in debug builds so we notice issues in the future.
2019-07-29 15:17:32 +02:00
Christoph M. Becker
94924841ac
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS [ci skip]
2019-07-29 14:48:57 +02:00
Christoph M. Becker
76683ea999
Update NEWS [ci skip]
...
The fix has been cherry-picked into PHP-7.3.8, so the bug will be fixed
already there.
2019-07-29 14:48:23 +02:00
Christoph M. Becker
07286d2fb4
Document how to generate ffi_parser.c
2019-07-29 13:38:53 +02:00
Nikita Popov
a22a06c351
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-29 13:03:53 +02:00
Nikita Popov
8e63bb5e46
Fixed bug #78341
...
The smart branch logic assumed b->start refers to the old offsets,
while b->start was already adjusted to the new offsets at this
point. Delay the change until later.
2019-07-29 13:02:01 +02:00
Nikita Popov
92273bef66
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-29 11:27:39 +02:00
Nikita Popov
552ce9c763
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-29 11:27:34 +02:00
Nikita Popov
68fd435ba8
Fixed bug #78333
...
Don't dereference float/double values at unknown address, instead
memcpy it into an aligned stack slot and dereference that.
2019-07-29 11:27:21 +02:00
Nikita Popov
2eb159d589
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-29 11:26:31 +02:00
Nikita Popov
727929765b
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-29 11:26:09 +02:00
Nikita Popov
d142dfc93d
Fixed bug #78333
...
Don't dereference float/double values at unknown address, instead
memcpy it into an aligned stack slot and dereference that.
2019-07-29 11:25:27 +02:00
Nikita Popov
4ae807e84e
Fixed bug #78344
...
When performing a constant visibility check during compilation we
might be dealing with unlinked classes and as such should account
for the possibility of unresolved parents.
2019-07-29 11:12:00 +02:00
Nikita Popov
9bfda013d3
Fixed bug #78340
...
Even if we know the file size, we still need to read in a loop in
case the read call returns an incomplete result.
This was less of an issue previously because we did not use the
"one large read" approach for non-plain stream wrappers.
2019-07-29 10:07:12 +02:00
Stanislav Malyshev
aeb6d13185
Fix bug #78256 (heap-buffer-overflow on exif_process_user_comment)
2019-07-29 00:53:37 -07:00
Stanislav Malyshev
dea2989ab8
Fix bug #78222 (heap-buffer-overflow on exif_scan_thumbnail)
2019-07-29 00:53:28 -07:00
Christoph M. Becker
fec71e3f25
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78342 : Bus error in configure test for iconv //IGNORE
2019-07-29 08:51:33 +02:00
Christoph M. Becker
585131f901
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78342 : Bus error in configure test for iconv //IGNORE
2019-07-29 08:50:39 +02:00
Christoph M. Becker
30eb4b3563
Fix #78342 : Bus error in configure test for iconv //IGNORE
...
We have to check the return value of iconv_open() for error, to avoid
that and potentially other undesired behavior of iconv().
2019-07-29 08:48:13 +02:00
Tyson Andre
99fe0471ed
nit: Fix a typo in UPGRADING
...
Closes GH-4481
2019-07-27 23:14:07 +02:00
Sebastian Jennen
a2b2aaa67a
file encoding cleanup: remove bom in win32 files
...
These two files have been: "UTF-8 Unicode (with BOM) text".
By applying `dos2unix` on these files the BOM has been removed.
I checked the whole source code with dos2unix:
These were the only two text files affected.
2019-07-27 10:12:54 +02:00
Peter Kokot
f1c4b48c84
Mention also API versions bumps
...
Closes GH-4470
2019-07-26 01:48:01 +02:00
Theodore Brown
0e6e2297fc
Fix typos in UPGRADING and improve wording in a few places
...
Closes GH-4478
2019-07-26 01:16:49 +02:00
Christoph M. Becker
e1c80d8ea7
Remove duplication
2019-07-25 19:09:21 +02:00
Levi Morrison
d758691b9b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Remove .post files only for passing tests
2019-07-25 09:50:47 -06:00
Levi Morrison
c624a7fe43
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Remove .post files only for passing tests
2019-07-25 09:49:18 -06:00
Levi Morrison
5649267b25
Remove .post files only for passing tests
...
This allows the sh script for failing tests with --POST-- to work
2019-07-25 09:48:39 -06:00
Matteo Beccati
5d3d2b9827
Addded missing NEWS/UPGRADING entries for PDO "??" escape
2019-07-25 16:30:28 +02:00
Remi Collet
946a1e4314
Fix build warnings
...
- switch from strncpy to memcpy for -Wstringop-truncation
2019-07-25 11:50:44 +02:00
Nikita Popov
1cbcf0f4f1
Throw notice for plain wrapper fread/fwrite errors
...
Similar to what is done for socket read/write errors.
2019-07-25 10:42:10 +02:00
Peter Kokot
dee243d475
Bump PHP_JSON_VERSION to PHP_VERSION
...
Closes GH-4459
2019-07-24 22:19:33 +02:00
Peter Kokot
a3169964c0
Remove AC_FPM_POLL
...
AC_FPM_POLL defines HAVE_POLL symbol which is already checked by
configure.ac and function poll in AC_CHECK_FUNCTIONS.
Closes GH-4449
2019-07-24 22:03:47 +02:00
Peter Kokot
793dfa91bb
Remove outdated Libtool hack for macs
...
This was once relevant for older versions of macs and autoconf 2.13.
Closes GH-4435
2019-07-24 21:40:21 +02:00
Nikita Popov
99d4b2bddc
Mark _get_zval_ptr_deref as unused
2019-07-24 20:51:19 +02:00
Dmitry Stogov
853b426ecf
Avoid over-specialization
2019-07-24 19:51:56 +03:00
Dmitry Stogov
d7e8abb4aa
Reordering
2019-07-24 18:49:46 +03:00
Dmitry Stogov
22e7ee3bb3
Delay dereference
2019-07-24 18:36:50 +03:00
Nikita Popov
626bc0e7cc
Remove php_openssl_cipher_get_version()
...
This was added in 7.1 when add_assoc_string mistakenly accepted
a char* rather than const char* parameter and is no longer needed.
We can use SSL_CIPHER_get_version() directly.
2019-07-24 16:41:20 +02:00
Dmitry Stogov
6191df7553
Avoid reloading
2019-07-24 17:30:38 +03:00
David Carlier
b05f364333
Fix bindpath mem leak in cgi
...
Closes GH-4451.
2019-07-24 12:06:40 +02:00
Derick Rethans
126dd8e1eb
Update NEWS for 7.4.0beta2
2019-07-24 09:39:54 +00:00
Derick Rethans
5dae0eae62
Update NEWS for PHP 7.4.0beta1
2019-07-24 09:38:35 +00:00
Nikita Popov
a49d53baa2
Don't skip uninitialized typed props in get_class_vars()
...
For bug #78319 .
2019-07-24 10:52:01 +02:00
Nikita Popov
d9680272c7
Revert "Drop free_filename field from zend_file_handle"
...
This reverts commit e0eca26285 .
free_filename is used by the wincache extension, restore this
field for PHP 7.4.
2019-07-24 10:43:37 +02:00
Nikita Popov
1eb706179f
Avoid references in TMP var
...
Make sure we deref the OBJ_IS result, because we store it in a TMP
var, which is not allowed to contain references and will cause
assertion failures in the unspecialized VM.
This also partially reverts fd463a9a60 ,
which merged the TMP and VAR specializations of COALESCE to work
around this bug.
An alternative would be to change the result type of OBJ_IS back
to VAR.
2019-07-24 10:07:26 +02:00
Nikita Popov
9e4603f772
Try to fix macos build
...
By avoiding unused variable opline warnings. Also clean up the
replacement of ZEND_VM_SPEC -- we were sometimes treating it as
an always-defined constant with a value (what it actually is) and
sometimes as a conditionally defined constant (which it isn't, but
which still worked thanks to the specializer). Switch to only
treating it as a constant with a value.
2019-07-24 09:44:55 +02:00
Dmitry Stogov
8d51af9bc2
Fixed CALL VM
2019-07-24 01:52:05 +03:00
Dmitry Stogov
eaa9048973
Fixed unspecialized executor
2019-07-24 01:43:01 +03:00
George Peter Banyard
6d6d954d0d
Cleanup of remaining E_STRICT in tests
2019-07-23 11:27:23 +02:00
Derick Rethans
a07e85f93f
Update NEWS for 7.4.0beta2
2019-07-23 08:06:23 +00:00
Derick Rethans
2b540b2f52
Update NEWS for PHP 7.4.0beta1
2019-07-23 08:05:05 +00:00
Peter Kokot
1fa238a7b3
Update NEWS
2019-07-23 02:32:38 +02:00
Peter Kokot
e3236d8847
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
Update NEWS
2019-07-23 02:13:54 +02:00
Peter Kokot
b42a13b08a
Update NEWS
2019-07-23 02:13:36 +02:00
Peter Kokot
9e2ac14702
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
2019-07-23 02:13:12 +02:00
Peter Kokot
8f384bea93
Update NEWS
2019-07-23 02:13:00 +02:00
Matteo Beccati
b19fdc18a9
Fix FR #71885 (Allow escaping question mark placeholders)
2019-07-22 19:35:03 +02:00
Peter Kokot
5d827c89cf
Remove HAVE_OCILOBISTEMPORARY and HAVE_OCICOLLASSIGN
...
Symbols are not used in the current code.
Also remove not needed ocijdbc8 library addition and checks whcih were
removed also via b8e1d4d4e5 so Oracle 8
is no longer supported.
Closes GH-4454
2019-07-22 19:13:24 +02:00
Nikita Popov
845d07b343
Add upgrading entries
...
[ci skip]
2019-07-22 17:56:16 +02:00
Nikita Popov
5664035ffe
Also report errors from Zend stream reader operation
2019-07-22 17:49:08 +02:00
Nikita Popov
d59aac58b3
Report errors from stream read and write operations
...
The php_stream_read() and php_stream_write() functions now return
an ssize_t value, with negative results indicating failure. Functions
like fread() and fwrite() will return false in that case.
As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams
should not be regarded as error conditions, and be reported as
successful zero-length reads/writes instead. The handling of EINTR
remains unclear and is internally inconsistent (e.g. some code-paths
will automatically retry on EINTR, while some won't).
I'm landing this now to make sure the stream wrapper ops API changes
make it into 7.4 -- however, if the user-facing changes turn out to
be problematic we have the option of clamping negative returns to
zero in php_stream_read() and php_stream_write() to restore the
old behavior in a relatively non-intrusive manner.
2019-07-22 17:17:28 +02:00
Nikita Popov
c817b8020c
Special-case rc=1 self-referential arrays in ReflectionReference
...
New fix for bug #78263 . This is special-cased elsewhere in the engine,
so we need to mirror it here.
2019-07-22 16:59:23 +02:00
Nikita Popov
19588a8f3b
Revert "Add ReflectionReference::getRefcount()"
...
This reverts commit 428cfdd181 .
2019-07-22 16:49:08 +02:00
Remi Collet
31d85b8417
cleanup gd build with system libgd - drop need to use libpng with system libgd - drop need to use libjpeg with system libgd - drop need to use libXpm with system libgd - drop need to use libfreetype with system libgd - improve configure comments
2019-07-22 16:14:19 +02:00
Peter Kokot
a2b758dab5
Remove HAVE_PQPUTCOPYEND
...
Symbol is not used anywhere in the code and also Postgresql 7.x is
EOL anyway.
Closes GH-4453
2019-07-22 16:05:26 +02:00
Peter Kokot
9b8bf13b3a
Fix internals upgrading log
2019-07-22 16:04:07 +02:00
Peter Kokot
4b03e102c5
Remove HAVE_DSA_DEFAULT_METHOD
...
Last usage removed via 6a81363405 .
Closes GH-4455
2019-07-22 16:02:55 +02:00
Christoph M. Becker
f8202b5513
Remove superfluous HAVE_GD_BUNDLED checks
...
If we're compiling the bundled libgd, `HAVE_GD_BUNDLED` is set, so
there is no need to check for this macro again.
2019-07-22 15:59:44 +02:00
Nikita Popov
72b9105d30
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-22 12:41:15 +02:00
Nikita Popov
b59a9381b9
Remove test for bug #77185
...
Seems to be very unreliable in CI.
2019-07-22 12:40:26 +02:00
Nikita Popov
6572c00b81
Merge branch 'PHP-7.4' of git.php.net:/php-src into PHP-7.4
2019-07-22 12:29:00 +02:00
Christoph M. Becker
d3d3404db7
Drop superfluous ENABLE_GD_TTF
...
If we `HAVE_LIBFREETYPE`, we define `ENABLE_GD_TTF` if it is not
defined. Therefore we can check for `HAVE_LIBFREETYPE` in the first
place.
2019-07-22 12:01:24 +02:00
Nikita Popov
23bb9f4e2f
Add deprecations to UPGRADING
2019-07-22 11:53:50 +02:00
Nikita Popov
28cf080701
Deprecate unbinding $this from non-static closure
2019-07-22 11:39:52 +02:00
Nikita Popov
b3f74b0b7d
Deprecate allow_url_include
2019-07-22 11:39:52 +02:00
Nikita Popov
964de035a7
Deprecate restore_include_path()
2019-07-22 11:39:52 +02:00
Nikita Popov
b3668aabf7
Deprecate convert_cyr_string()
2019-07-22 11:39:52 +02:00
Nikita Popov
e41b7f6db4
Deprecate (real) cast
2019-07-22 11:39:52 +02:00
Nikita Popov
46b982409a
Deprecate implode() with swapped parameter order
2019-07-22 11:39:52 +02:00
Nikita Popov
cd2f2cd7d0
Deprecate FILTER_SANITIZE_MAGIC_QUOTES
2019-07-22 11:39:52 +02:00
Nikita Popov
4e190691e2
Deprecate is_real() function
2019-07-22 11:39:52 +02:00
Nikita Popov
b1cdf06673
Deprecate money_format()
2019-07-22 11:39:52 +02:00
Nikita Popov
4e4d8a4a6c
Deprecate hebrevc()
2019-07-22 11:39:52 +02:00
Nikita Popov
e9e2fa4ad4
Deprecate ezmlm_hash()
2019-07-22 11:39:52 +02:00
Nikita Popov
39e756e7fe
Deprecate encoding as 3rd param to mb_strrpos()
2019-07-22 11:39:52 +02:00
Nikita Popov
3121b7174f
Deprecate Reflection export() methods
...
And remove the Reflector::export() interface method.
2019-07-22 11:39:52 +02:00
Nikita Popov
0ba7c3eadf
Deprecate array_key_exists() on objects
2019-07-22 11:39:52 +02:00
Nikita Popov
b2ea507bea
Deprecate get_magic_quotes_gpc() and get_magic_quotes_runtime()
2019-07-22 11:39:52 +02:00
Nikita Popov
b2915fc332
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-22 11:19:24 +02:00
Nikita Popov
5e4dbce586
Reduce number of workers in test
...
4 seems to be enough to reliably reproduce the issue. Let's see
if this works better in CI.
2019-07-22 11:18:38 +02:00
Dmitry Stogov
60dca2295d
Initialize static_members_table
2019-07-22 12:02:16 +03:00
Dmitry Stogov
2f51764e5d
Evaluate constant in class scope
2019-07-22 11:59:24 +03:00
Nikita Popov
97b80bd83b
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-22 10:34:32 +02:00
Maksim Nikulin
bdf24f8d6d
Prevent use after free in fpm_event_epoll_wait
...
epoll event backend does not guarantee that child input/output events
are reported before SIGCHILD due to finished worker. While a bunch of
events received by epoll is being processed, child-related structures
may be removed before dispatching of an I/O event for the same child.
The result may be attempt to access to memory region allocated for
another purpose, segfault of the master process, and unavailable web
sites.
Postpone processing of SIGCHILD events till other events in the same
bunch are processed.
Fix Bug #62418 php-fpm master process crashes
Fix Bug #65398 Race condition between SIGCHLD and child stdout/stderr event leads to segfault
Fix Bug #75112 php-fpm crashing, hard to reproduce
Fix Bug #77114 php-fpm master segfaults in fpm_event_epoll_wait/fpm_event_fire
Fix Bug #77185 Use-after-free in FPM master event handling
2019-07-22 10:32:58 +02:00
Remi Collet
fff6b18657
improve temporary fix for system libgd
...
- PHP_GD_PNG needed to set include path for png.h
- PHP_GD_JPEG needed to set include path for jpeglib.h
2019-07-22 09:11:32 +02:00
Peter Kokot
ef165b4422
Remove build.mk usage
...
First step when creating the `configure` script is currently using
make. This is helpful when developing buildsystem to only rebuild
`configure` and `main/php_config.h.in` files when one of the *.m4
or configure.ac file changes and saves the developer time a little.
Realistically however, it is not needed that much considering the
times of several seconds to fully rebuild the configure script and
configuration header. The next step when running the `configure`
script is much more time consuming so performance on buildconf
level is a bit questionable and won't be noticed on today's
systems.
Additionally:
- buildconf now removes cache and all targets and uses -f option on
the first step i.e. autoconf. The autoheader does not need the -f
option in this case.
Closes GH-4437
2019-07-21 11:40:23 +02:00
Peter Kokot
1b969a74d0
Remove some unused HAVE_* symbols
...
- HAVE_NET_SNMP removed via cab643f615
- HAVE_CRYPTO_AEAD_AES256GCM ad120c5ae9
- Remove HAVE_FREETDS and HAVE_LIBDNET_STUB (not used in current
extension; copy paste from other removed extensions)
Closes GH-4448
2019-07-21 11:34:18 +02:00
Peter Kokot
15782b27b8
Remove HAVE_LIBZIP
...
The libzip library is now always used from the system.
Closes GH-4450
2019-07-21 11:32:13 +02:00
George Wang
30de357fa1
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-21 00:01:39 -04:00
George Wang
82f35ab089
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-21 00:01:06 -04:00
George Wang
eb7e45f662
Checked in LiteSpeed SAPI 7.5, addressed two main problems in "clean shutdown" introduced in 7.4.3,
...
1. falls in an infinite loop because PHP engine's inconsistent state, now override the ITIMER_PROF to 0.1 second, clean shutdown must finish before that.
2. generate too much error log, we completely disable "error_reporting" before calling php_request_shutdown().
2019-07-20 23:59:43 -04:00
George Peter Banyard
1a031a242c
Renamed MySQLi test to remove duplicate 'mysqli_'
...
Closes GH-4441
2019-07-21 01:10:31 +02:00
Markus Staab
577ed5bfa4
Fix typos
...
Closes GH-4447
2019-07-21 01:01:36 +02:00
Peter Kokot
b1643e166d
Fix failed tests for phar
...
- when $status is boolean, E_NOTICE appears and tests fail
- opcache is never enabled on these tests anyway.
- Add opcache.revalidate_freq=0 to testing script
Instead of checking this in the tests files it can be used directly in
the main testing script. Also this fixes failed tests.
- Use opcache_invalidate() instead of sleep() delay in some tests. Some
delays are still used since the opcache_invalidate seems to be buggy
and not working as expected.
Closes GH-4392
2019-07-21 00:49:35 +02:00
Peter Kokot
f5227c5863
Move HAVE_SQLITE3_CLOSE_V2 to pdo_sqlite
...
Closes GH-4444
2019-07-21 00:40:59 +02:00
Remi Collet
a85e4d5336
Fixed bug #78314 (missing freetype support/functions with external gd)
2019-07-20 07:57:13 +02:00
Peter Kokot
6de97402b5
Remove unused sqlite symbols
...
- HAVE_SQLITE3_KEY is no longer used in php-src
- SQLITE_ENABLE_COLUMN_METADATA is no longer used in php-src
Closes GH-4443
2019-07-20 00:27:10 +02:00
Peter Kokot
81fd1c5206
Fix typos in FFI
...
Closes GH-4438
2019-07-19 23:07:04 +02:00
Christoph M. Becker
737c1b492c
Put oniguruma include path to proper CFLAGS
2019-07-19 20:04:47 +02:00
Christoph M. Becker
504cd03fc3
Move Oniguruma related config stuff to where it belongs
...
Oniguruma is exclusively used by ext/mbstring, and only if mbregex is
enabled. Therefore it is unnecessary and confusing to have Oniguruma
related config stuff scattered elsewhere.
While we're at it, we also remove the referral to the bundled libonig
which is removed as of PHP 7.4.0, and the duplicated call to
`PHP_INSTALL_HEADERS()`.
2019-07-19 19:30:41 +02:00
Nikita Popov
aa2e2c3f93
Merge Linux & Windows fwrite test
...
The test files are the same, just with a different OS check...
2019-07-19 10:59:02 +02:00
Dmitry Stogov
445d51347d
Use run-time cache to avoid repeatable hash lookups in ZEND_DECLARE_CLASS_DELAYED
2019-07-19 11:46:03 +03:00
rjhdby
d574df63dc
Deprecate alternative array access syntax
...
RFC: https://wiki.php.net/rfc/deprecate_curly_braces_array_access
2019-07-19 10:06:10 +02:00
Dmitry Stogov
d5943f5a11
Use run-time cache to avoid repeatable hash lookups when creating anonymous functions and classes
2019-07-19 10:43:49 +03:00
Dmitry Stogov
b065fbde19
ZEND_DECLARE_ANON_CLASS doesn't need to skip anything now. It's immediatelly followed by ZEND_NEW.
2019-07-19 10:09:26 +03:00
Peter Kokot
7cbc6b6546
Remove safe_mode directive when installing ext/phar
...
Closes GH-4436
2019-07-19 00:02:12 +02:00
Dmitry Stogov
7cf651c39e
Merge common code
2019-07-18 16:46:25 +03:00
Nikita Popov
be7f405f6b
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-18 14:42:20 +02:00
Nikita Popov
4a9f78f9d7
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-18 14:41:35 +02:00
Abyr Valg
c8c183eb62
Fixed bug #77946
...
Save multi_info_read() result into easy handle.
2019-07-18 14:40:47 +02:00
Christoph M. Becker
55d34f7023
Remove remaining lightnings from run-tests.php
...
The classic Windows console only supports the Unicode BMP, so it can't
handle the LIGHTNING MOOD character (U+1F5F2). It also seems that
common fonts do not support the LIGHTNING (U+2607) character, so a
general removal is appropriate.
However, Windows is already "ready for the future"[1], but PHP for
Windows is not (yet).
[1] <https://devblogs.microsoft.com/commandline/windows-command-line-unicode-and-utf-8-output-text-buffer/ >
2019-07-18 12:15:25 +02:00
Peter Kokot
bbdbc2658c
Remove duplicate socklen_t check
...
- Use Autoconf's default AC_CHECK_TYPES
Closes GH-4418
2019-07-18 12:11:19 +02:00
Nikita Popov
562591f5eb
Remove lightning
...
Windows is not quite ready for the future.
2019-07-18 11:16:24 +02:00
George Peter Banyard
3a5664fdfe
Convert E_STRICT into E_NOTICE for htmlentities() function
2019-07-18 11:13:18 +02:00
Christoph M. Becker
3f23380361
Update NEWS and UPGRADING wrt. opcache.cache_id [ci skip]
2019-07-18 09:16:56 +02:00
Christoph M. Becker
f34db7fc2a
Use regedit to register event source
...
ext/win32std is unmaintained for years, so it is highly unlikely that
it is available. We therefore use regedit instead to register the
event source. We also remove the bundled syslog.reg, since it is of no
use, unless generated for the respective installation.
2019-07-18 09:10:48 +02:00
Peter Kokot
b35b9eb1d6
Update changelogs
2019-07-18 02:27:14 +02:00
Peter Kokot
8db732155f
Fix typo
2019-07-18 02:23:39 +02:00
Peter Kokot
359a78b16c
Remove unused defines
...
Used in php-src the past and today removed and not used anymore:
- HAVE_CURL_EASY_STRERROR
- HAVE_CURL_MULTI_STRERROR
- HAVE_NEW_MIME2TEXT
- HAVE_MBSTR_CN
- HAVE_MBSTR_JA
- HAVE_MBSTR_KR
- HAVE_MBSTR_RU
- HAVE_MBSTR_TW
Part of oniguruma which doesn't use these anymore
- NOT_RUBY
- HAVE_STDARG_PROTOTYPES
Unused:
- HAVE_MPIR
Closes GH-4427
2019-07-18 02:21:39 +02:00
Peter Kokot
7dc6c3960b
Update changelog
2019-07-18 02:18:14 +02:00
Peter Kokot
53299d610a
Remove unused MISSING_MSGHDR_MSGFLAGS
...
Closes GH-4426
2019-07-18 02:17:14 +02:00
Peter Kokot
daa243d1a0
Remove duplicate AC_PROG_CPP call
...
AC_PROG_CPP is already called in configure.ac.
Closes GH-4425
2019-07-18 02:14:31 +02:00
Peter Kokot
fa7fbfd518
Update changelog
2019-07-18 02:13:13 +02:00
Peter Kokot
6afc3cede8
Remove unused HAVE_SHM_MMAP_ZERO and HAVE_SHM_MMAP_FILE
...
Closes GH-4424
2019-07-18 02:11:19 +02:00
Christoph M. Becker
e2ed7e6716
Allow multiple cache instances per user/host on Windows
...
Formerly, there was at most a single OPcache instance per user and the
so called system ID (which is determined from the PHP version).
Sometimes multiple OPcaches might be desired, though, particularly for
unrelated CLI scripts, which may even be necessary (e.g. for our test
suite in parallel mode).
We therefore introduce a new INI directive `opcache.cache_id` which
allows to configure independent OPcache instances for the same user.
We also use `GetUserNameW()` instead of `php_win32_get_username()`,
because the latter retrieves the user name encoded in the
`default_charset`, which can obviously yield different results for
different charsets, leading to OPcache "incompatibilities". Slightly
worse, some characters may not even be encodeable in the
`default_charset` and would be replaced by question marks, which could
result in different users sharing the same OPcache.
We also refactor, and re-use existing APIs to avoid duplicated code.
2019-07-17 19:51:07 +02:00
Christoph M. Becker
6f617b7759
Revert "Remove Windows syslog script and syslog.reg"
...
This reverts commit cc44bad1f6 , since its
assumptions were not correct. Actually, the classic event logging is
still used by PHP, because Windows 7 is still to be supported for a
while. Without the respective registry entries, the event log entries
show an error message regarding missing ID descriptions.
Thanks to ab@php.net for hinting at this!
Obviously, the part depending on ext/win32std has still to be
overhauled, and further improvements are conceivable; we will address
this in due course.
2019-07-17 19:36:56 +02:00
Nikita Popov
56a2ea7aa2
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-17 15:59:22 +02:00
Nikita Popov
79efd55fc3
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-17 15:59:14 +02:00
Nikita Popov
b864abfe23
Fixed bug #69100
2019-07-17 15:58:29 +02:00
Nikita Popov
07a4d134ab
Avoid duplicate fstat() for includes
...
By adding a flag to avoid forced fstat for includes. The two fstats
will happen back to back and we don't care about a possible
invalidation.
I was hoping to move this higher up in the stack and make the
ISREG check somewhere in fsizer of fixup, but this doesn't really
seem to be possible. E.g. an FP stdin handle will not be a regular
file but of course needs to be allowed. Additionally custom stream
wrappers may not implement this functionality.
2019-07-17 14:48:51 +02:00
Dmitry Stogov
b30e4a5aa6
Avoid extra specialization for cold opcodes
2019-07-17 14:03:48 +03:00
Nikita Popov
c2c5c9a973
Use reported fstat filesize for PHP streams
2019-07-17 11:56:00 +02:00
Nikita Popov
856c5d2837
Revert "Avoid unused fstat() call"
...
This reverts commit 5a90dc77b8 .
Let's try to go with the reverse direction here and actually trust
the reported size...
2019-07-17 11:49:10 +02:00
Nikita Popov
5a90dc77b8
Avoid unused fstat() call
...
If we're including a file via PHP streams, we're not going to trust
the reported file size anyway and populate in a loop -- so don't
bother determining the file size in the first place. Only do this
for non-tty HANDLE_FP now, which is the only case where this
information was used.
2019-07-17 11:22:31 +02:00
Dmitry Stogov
6fbab09ef0
Remove old hack
2019-07-17 12:05:23 +03:00
Nikita Popov
a986e70991
Avoid double buffering in Zend streams
...
Disable buffering in PHP streams, to avoid storing and copying the
file contents twice.
This will call stream_set_option() on custom stream wrapper as
well, so the method needs to be implemented to avoid a warning.
2019-07-17 10:40:04 +02:00
Dmitry Stogov
918f09f72a
Added specialization for comparison instructions and QM_ASSIGN
2019-07-17 09:12:01 +03:00
Peter Kokot
e7fcc45c43
Fix typo
2019-07-17 03:54:54 +02:00
Peter Kokot
476339646c
Simplify functions checks in m4
...
- AC_CHECK_FUNCS already automatically defines belonging HAVE_function
symbols and executes given shell code.
2019-07-17 03:50:47 +02:00
Dmitry Stogov
ee5828205e
Separate "cold" and common unspecialized code
2019-07-17 00:52:26 +03:00
Peter Kokot
a520974740
Update changelog
2019-07-16 22:46:46 +02:00
Peter Kokot
63d6a2b697
Remove unused build checks
...
- yp_get_default_domain was part of ext/yp
- functions checks produce HAVE_function_name symbols. These checks are
currently not used in php-src neither in the extensions out there.
- Removed symbols because they are not used in the code:
- HAVE_GCVT
- HAVE_PUTENV
- HAVE_PUTENV
- HAVE_SETVBUF
- HAVE_TEMPNAM
- HAVE_SIN (sin is also defined in C89 standard)
- HAVE_SETSOCKOPT
- HAVE_LOCKF
- HAVE_ISASCII
- HAVE_YP_GET_DEFAULT_DOMAIN (and other yp extension related unused checks)
- HAVE_LINK
- HAVE_USLEEP is already defined in Windows configuration header
- HAVE_LIBBIND has not been used in php-src for a while anymore
- HAVE_GETHOSTNAME is duplicated in Windows configuration header
Closes GH-4417
2019-07-16 22:39:09 +02:00
Dmitry Stogov
a6812c0c84
Provide type info
2019-07-16 22:56:20 +03:00
Nikita Popov
b317f0eb59
Remove ZEND_HANDLE_MAPPED
...
The buf/len members are now simply used in addition to the main
stream, without changing the handle kind.
2019-07-16 17:44:32 +02:00
Nikita Popov
e0eca26285
Drop free_filename field from zend_file_handle
...
free_filename was always zero.
2019-07-16 17:07:26 +02:00
Nikita Popov
49bac9b77b
Introduce zend_stream_init_filename()
...
Avoid more ad-hoc initialization of zend_file_handle structures.
2019-07-16 16:44:37 +02:00
Nikita Popov
46faf8f018
Introduce zend_stream_init_fp() API
...
Reduce the amount of code that mucks around with zend_file_handle
initialization.
2019-07-16 16:44:37 +02:00
Dmitry Stogov
349a388b90
Slit INC/DEC opcodes into hot/cold parts and remove specialized versioins for LONG_OR_DOUBLE.
2019-07-16 17:39:25 +03:00
Nikita Popov
a0f450a023
Remove unused _get_zval_ptr_cv_BP_VAR_UNSET function
...
To fix the macos -Werror build.
2019-07-16 15:53:55 +02:00
Nikita Popov
e08cc4d921
Remove ZEND_HANDLE_FD
...
This handle type was unused.
2019-07-16 15:47:10 +02:00
Nikita Popov
5161cebe28
Fix bug #52752 by not using mmap() to lex files
...
Using mmap() is unsafe under concurrent modification. If the file
is truncated, access past the end of the file may occur, which will
generate a SIGBUS error. Even if the length does not change, the
contents may, which is a situation that the lexer certainly is not
prepared to deal with either.
Reproduce with test.php:
<?php
file_put_contents(__DIR__ . '/test.tpl',
'AAA<?php $string = "' .
str_repeat('A', mt_rand(1, 256 * 1024)) .
'"; ?>BBB' . "\r\n");
require_once __DIR__ . '/test.tpl';
And:
for ((n=0;n<100;n++)); do sapi/cli/php test.php & done
2019-07-16 15:47:10 +02:00
Christoph M. Becker
292354f73a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Convert short tag to standard tag in Zend test file
2019-07-16 15:29:10 +02:00
George Peter Banyard
e7e66d5275
Convert short tag to standard tag in Zend test file
...
Closes GH-4389.
(cherry picked from commit e6c2b28865 )
2019-07-16 15:27:50 +02:00
Christoph M. Becker
20320598e5
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS [ci skip]
2019-07-16 13:45:23 +02:00
Christoph M. Becker
956ecc2ce5
Update NEWS [ci skip]
2019-07-16 13:44:13 +02:00
Remi Collet
b8ed9ac140
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
move NEWS entry [ci skip]
2019-07-16 13:00:44 +02:00
Remi Collet
344d01bee3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
move NEWS entry [ci skip]
2019-07-16 13:00:30 +02:00
Remi Collet
bd0514913b
move NEWS entry [ci skip]
2019-07-16 13:00:13 +02:00
Dmitry Stogov
c1b9088903
Replace deprecated conditions by ZEND_ASSERT.
2019-07-16 13:50:25 +03:00
Nikita Popov
290e520c03
Use ZEND_HASH_FOREACH APIs in a few more places
2019-07-16 12:20:16 +02:00
Nikita Popov
c9acc90186
Support <?php followed by EOF
...
This is an annoying edge-case for canonicalization.
2019-07-16 11:53:48 +02:00
Nikita Popov
ebfa05677b
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-16 11:11:00 +02:00
Nikita Popov
eea9d61763
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-16 11:10:51 +02:00
Nikita Popov
8a19fe29de
Fixed bug #78297
2019-07-16 11:09:17 +02:00
Remi Collet
a91fb18da4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
next is 7.2.22
2019-07-16 10:39:24 +02:00
Remi Collet
bf1ace7dd3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
next is 7.2.22
2019-07-16 10:39:03 +02:00
Remi Collet
c9037421ac
next is 7.2.22
2019-07-16 10:38:20 +02:00
Nikita Popov
26977fdfdd
Fix name collisions in fputcsv tests
2019-07-16 10:25:06 +02:00
Nikita Popov
e2e3ddac7d
Canonicalize file-names in zip tests
...
There were a number of name collisions in there.
2019-07-16 10:25:06 +02:00
Dmitry Stogov
1d4c38421a
Delay IS_UNDEF checks
2019-07-16 11:16:45 +03:00
Dmitry Stogov
2e26b063b6
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed incorrect specialization (missed IS_INDIRECT handling)
2019-07-16 01:54:22 +03:00
Dmitry Stogov
c570980175
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed incorrect specialization (missed IS_INDIRECT handling)
2019-07-16 01:52:11 +03:00
Dmitry Stogov
9ccf3fb996
Fixed incorrect specialization (missed IS_INDIRECT handling)
2019-07-16 01:50:10 +03:00
George Peter Banyard
548d1ec27c
Small typo and proto name fix
...
Closes GH-4415
2019-07-15 18:15:17 +02:00
Peter Kokot
24f4dff075
Remove win32/php_stdbool.h
...
File usage was removed via 33fc7d77d7 .
Closes GH-4411
2019-07-15 18:00:04 +02:00
Peter Kokot
59ba991b9c
Remove unused files
...
These were introduced in 504b9beae6
and their usages were removed via
4b3e198023 .
Closes GH-4410
2019-07-15 17:58:46 +02:00
Peter Kokot
cc44bad1f6
Remove Windows syslog script and syslog.reg
...
These were used on old Windows systems before Vista and also were
used together with unmaintained win32std extension.
https://docs.microsoft.com/en-us/windows/win32/eventlog/event-logging
Closes GH-4409
2019-07-15 17:57:11 +02:00
Peter Kokot
07daf6cd62
Remove some *.dsp/*.dsw leftovers
...
Usage of this was removed via 4b3e198023
Closes GH-4408
2019-07-15 17:55:37 +02:00
Nikita Popov
fcdb12ed4d
Combine SKIP_TOKEN+RETURN_TOKEN into one macro
2019-07-15 17:29:27 +02:00
Nikita Popov
c5f1b384b5
Move shebang handling into the lexer
...
Instead of handling shebang lines by adjusting the file pointer in
individual SAPIs, move the handling into the lexer, where this is
both a lot simpler and more robust. Whether the shebang should be
skipped is controlled by CG(skip_shebang) -- we might want to do
that in more cases.
This fixed bugs #60677 and #78066 .
2019-07-15 16:25:49 +02:00
Nikita Popov
17d4e86dda
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-15 15:20:36 +02:00
Nikita Popov
2d737a1e4b
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-15 15:20:15 +02:00
Nikita Popov
88ffe05797
Fix bug #77124
...
This is a backport of 6fcae63f61
to PHP 7.2.
2019-07-15 15:19:31 +02:00
Christoph M. Becker
37043e07df
Sync mysqlnd version with PHP version
...
Since mysqlnd is solely developed in the php-src repository, it makes
not much sense to have its own version number, particularly since
nobody cares to update it. Therefore we use PHP's version number, but
stick with the "mysqlnd" prefix which can be important to distinguish
the mysqli driver (libmysqlclient vs. mysqlnd).
2019-07-15 14:20:58 +02:00
Remi Collet
da1816c3d3
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
typo [ci skip]
2019-07-15 14:17:23 +02:00
Remi Collet
ad48464ec2
typo [ci skip]
2019-07-15 14:17:13 +02:00
Remi Collet
c77f0506d0
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78269 password_hash uses weak options for argon2
Fix #78269 password_hash uses weak options for argon2
2019-07-15 14:11:57 +02:00
Remi Collet
590d8f8263
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78269 password_hash uses weak options for argon2
2019-07-15 14:11:38 +02:00
Remi Collet
a7ff3a6483
Fix #78269 password_hash uses weak options for argon2
2019-07-15 14:11:30 +02:00
Remi Collet
eab0079c90
Fix #78269 password_hash uses weak options for argon2
2019-07-15 14:10:38 +02:00
Nikita Popov
d60d16bda6
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-15 13:49:29 +02:00
Nikita Popov
9ad094e371
Emit T_BAD_CHARACTER for unexpected characters
...
Avoid having holes in the token stream which are annoying and
inefficient to reconstruct on the consumer side.
2019-07-15 12:51:01 +02:00
Nikita Popov
193f28c7d5
Fixed bug #78010
...
Prevent the gc_info from becoming all zero for a registered root
by setting the top bit to one for compressed root addresses.
2019-07-15 12:00:30 +02:00
Sebastian Pop
af7639683f
vectorize string-escape with NEON
...
On this benchmark:
function simple_string_escape() {
$a = "test'asd'asd'' asd\'\"asdfasdf";
for($i=0; $i<512; $i++) {
$a .= chr($i%256);
}
for ($i = 0; $i < 100000; $i++) {
if ($a === stripslashes(addslashes($a)))
$a .= chr($i%256);
else {
echo "error at i=".$i."\n";
return;
}
}
}
the execution time goes from 21.619s to 8.139s (165% speedup) on an A1 Graviton instance.
When removing the characters that need escaping, i.e., this benchmark:
function simple_string() {
$a = "testasdasd asdasdfasdf";
for ($i = 0; $i < 10000; $i++) {
if ($a === stripslashes(addslashes($a)))
$a .= "test dedeasdf";
else {
echo "error at i=".$i."\n";
return;
}
}
}
the execution time goes from 2.932s down to 0.516s (468% speedup) on an A1 Graviton instance.
2019-07-15 11:35:08 +03:00
Nikita Popov
a520c24269
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-15 10:29:37 +02:00
Nikita Popov
3eb057c4a7
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-15 10:23:51 +02:00
Andrew Collington
768ad70f70
Fix bug #78291 Missing opcache directives
...
New opcache directives have been added recently which are returned
if using `ini_get_all('zend opcache')` but are not listed in the
directives if using `opcache_get_configuration()`. This fix adds
those missing directives as well as if `opcache.mmap_base` is used
instead of `opcache.lockfile_path`. Also adds a test to ensure the
directives match with both methods of fetching.
2019-07-15 10:22:47 +02:00
Peter Kokot
93b3d2f6ee
Remove usage of PHP_AIX_LDFLAGS
...
These are currently not defined since their usage has been removed via
51ca2dba53
and
53349d69dd
2019-07-14 23:44:01 +02:00
Peter Kokot
94421e5724
Remove conditional calls of always available macros
...
These checks were once relevant for these extensions in PECL and PHP
versions without availability of the checked macros.
Closes GH-4405
2019-07-14 22:24:21 +02:00
Peter Kokot
e39296d10b
Remove unsed zts check for sqlite3
...
This check was relevant with bundled sqlite library. Removed via
6083a387a8
Closes GH-4403
2019-07-14 21:06:15 +02:00
Peter Kokot
66c02cc0a1
Remove duplicate PTHREADS template define
...
The undef PTHREADS converts to define if thread safety is configured.
This step is already done by pthreads m4 macros from TSRM so this now
removes duplicated PTHREADS defines from php_config.h.
2019-07-14 14:45:27 +02:00
Peter Kokot
c72d6da461
Remove timelib outdated defines
...
- TIMELIB_OMIT_STDINT is not used anymore since
https://github.com/derickr/timelib/commit/a171f99cf02baf39549ab7209e37565b8b8f6529
- HAVE_GETTIMEOFDAY was defined multiple times in Windows headers
- ext/date/lib/timelib_config.h.win32 does not seem to be used
Closes GH-4400
2019-07-14 13:50:05 +02:00
Peter Kokot
7a6d737de7
Remove PHP_MYSQL variable
...
PHP_MYSQL variable was once defined by the ext/mysql (--with-mysql).
Closes GH-4399
2019-07-14 13:48:44 +02:00
Peter Kokot
f573ba1948
Update changelogs
...
- PHP-7.4 alpha, beta, RC versions already include bugs logged in the
NEWS
- some links to RFCs
- php_error_docref0
2019-07-13 15:37:36 +02:00
Peter Kokot
4e0af6d862
Remove php_multiple_shlib_versions_ok
...
Variable usage was removed via
913cec6551
2019-07-13 15:06:35 +02:00
Peter Kokot
f3cf8966be
Remove unused recode extension artefacts
...
Closes GH-4395
2019-07-13 14:52:36 +02:00
Peter Kokot
f5e4771824
Remove checks for always enabled spl and pcre
...
Closes GH-4397
2019-07-13 14:47:37 +02:00
Peter Kokot
499f2ac132
Remove WARNING_LEVEL fix for QNX
...
Fix is no longer relevant since the environment variable WARNING_LEVEL
is no longer used to define the value of the -w option for cc.
Closes GH-4398
2019-07-13 14:39:29 +02:00
Christoph M. Becker
8c76d898a9
Fix #78283 : no output for explicit environment
...
This test does not work on Windows, if the child process has OPcache
enabled via php.ini, since TEMP is not set in the environment, so
OPcache can't find the base address file, and terminates the childs.
To avoid this (and potentially some other issues regarding missing
environment variables, such as PATH), we force the child process to
ignore any ini files.
2019-07-13 12:03:03 +02:00
Christoph M. Becker
bf242d58e7
Fix #78282 : atime and mtime mismatch
...
The fix for bug #78241 assumed that `time_t` would always be 64bit, but
actually is 32bit for x86. We therefore enforce 64bit arithmetic to
avoid wrapping.
2019-07-13 09:44:46 +02:00
George Peter Banyard
1c1de0c41a
Convert all php_error_docref0 to php_error_docref
...
Closes GH-4394
2019-07-13 02:05:17 +02:00
Peter Kokot
33994ebd95
Remove tsrm_config_common.h
...
- Checks and defines are not relevant for files that include it anymore
- Some code is not used anymore
- Defines are a bit duplicated in zend_portability.h and TSRM.h file
- MAXPATHLEN defs moved to zend_virtual_cwd.h
2019-07-13 01:58:01 +02:00
Christoph M. Becker
a6fa097ceb
No more need to cater to pre-PHP-5.3 or PHP-6 versions
2019-07-12 18:55:34 +02:00
Nikita Popov
0d568b9fd5
Don't split T_INLINE_HTML at partial PHP tag
...
If <?php occurs without required trailing whitespace, we should keep
it as part of a single T_INLINE_HTML region.
2019-07-12 17:22:11 +02:00
Nikita Popov
79b5b1a97f
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-12 16:51:52 +02:00
Nikita Popov
3f73916f10
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-12 16:51:47 +02:00
Nikita Popov
a7de2af46c
Use TRY_ADDREF/TRY_DELREF in soap
...
The DELREF part is a possible fix for bug #78278 , the ADDREF part
is a drive-by fix.
2019-07-12 16:50:43 +02:00
Nikita Popov
608f2112e9
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-12 16:30:47 +02:00
Nikita Popov
9d141f9889
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-12 16:30:33 +02:00
Nikita Popov
4a91f66b8f
Fixed bug #78279
...
Even if we don't initialize the callback on every request, we
should still reset our globals to default values...
2019-07-12 16:29:18 +02:00
Christoph M. Becker
76783a9bcc
Update NEWS and UPGRADING wrt. ext/recode unbundling
2019-07-12 14:35:44 +02:00
Christoph M. Becker
58b607c9ea
Removed ext/recode
...
Cf. <https://wiki.php.net/rfc/unbundle_recode >.
2019-07-12 13:58:17 +02:00
Christoph M. Becker
8aa7865997
Swap implode() argument order in the test helper
2019-07-12 13:26:54 +02:00
Nikita Popov
e2c3bc80e3
Remove duplicate XtOffsetOf() definitions in php.h
...
These are already defined in zend_portability.h.
2019-07-12 13:18:18 +02:00
Nikita Popov
709897c2a5
Remove unused tsrm_strtok_r() function
...
There is also a php_strtok_r() function, which is actually used,
but nothing uses the tsrm_strtok_r() variant...
2019-07-12 13:14:24 +02:00
Nikita Popov
94d37a5dd7
Remove unnecessary uses of allow_url_include in tests
2019-07-12 12:54:34 +02:00
Nikita Popov
9345c191db
Remove unnecessary uses of restore_include_path() in tests
2019-07-12 12:54:26 +02:00
Nikita Popov
2e56e14e39
Swap implode() argument order in some tests
2019-07-12 12:54:10 +02:00
Nikita Popov
9a274de4f4
Improve bless_tests
...
If a string var_dump contains a wildcard, also make the length a
wildcard.
2019-07-12 12:54:01 +02:00
Dmitry Stogov
0793af0673
Use common code for double math
2019-07-12 11:40:56 +03:00
Christoph M. Becker
d0d02ecc4e
Revert "Temporarily skip test"
...
This reverts commit 4e5a717866 .
As of commit 17f7fb7605 the test should
no longer hang.
2019-07-11 23:33:34 +02:00
Dmitry Stogov
350f2212ff
Allow GOTO style helpers in HYBRID VM
2019-07-12 00:00:55 +03:00
Dmitry Stogov
ef1a1a0698
Separate "cold" parts of comparison instructions
2019-07-11 20:44:39 +03:00
Dmitry Stogov
be94c0c3c6
Separate "cold" parts of binary op instructions
2019-07-11 18:23:08 +03:00
Nikita Popov
59852c0321
Remove redundant 64-bit ezmlm_hash() test
...
This test is the same as the as ezmlm_hash_basic.phpt. This function
does not behave differently on 32-bit and 64-bit.
2019-07-11 17:09:18 +02:00
Nikita Popov
cbda1b1c6a
Add ZEND_DEP_ME macro
2019-07-11 17:09:03 +02:00
George Peter Banyard
e6c2b28865
Convert short tag to standard tag in Zend test file
...
Closes GH-4389.
2019-07-11 16:20:05 +02:00
Nikita Popov
17f7fb7605
Switch to using shell-less proc_open() in various server tests
2019-07-11 15:48:10 +02:00
Nikita Popov
6285bb52fa
Support redirect+null descriptors in proc_open
...
This adds support for doing something like:
[1 => ['pipe', 'w'], 2 => ['redirect', 1]]
This will make descriptor 2 on the child end a dup'd descriptor 1.
This is mainly useful in conjunction with shell-less mode, because
we don't have an easy way to do "2>&1" there.
Additionally we support:
[1 => ['pipe', 'w'], 2 => ['null']]
Which would be the same as a >/dev/null or >nul redirect, depending
on platform.
2019-07-11 15:48:10 +02:00
Nikita Popov
42cac9d7d7
Don't call Reflection::export() internally
...
export() methods were implemented in a roundabout way, where they
would call Reflection::export(), which would then call __toString().
Cut out the middleman by directly calling __toString().
2019-07-11 14:14:55 +02:00
Christoph M. Becker
17997a908d
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78212 : Segfault in built-in webserver
2019-07-11 13:11:08 +02:00
Christoph M. Becker
fa65f5ecf5
Fix #78212 : Segfault in built-in webserver
...
Since syslog's ident and facility parameters have been added to
config[1], vsyslog() segfaults on Windows, if openlog() has not been
called before. We bring back the removed lines to fix this.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=2475337bd8a0fad0dac03db3f5e7e9d331d53653 >
2019-07-11 13:09:54 +02:00
Nikita Popov
c02dfddda3
Include test name in JUnit testcase name
...
Azure does not show the classname attribute in any convenient way,
and the file name is the part we usually care about.
2019-07-11 12:46:56 +02:00
Nikita Popov
d20fc5a192
Make proc_open_bug64438.phpt more robust
...
The test currently assumes that we'll first read the data of
stdout and stderr and then see eof on stdout and stderr. However
we could also read stdout, see eof on stdout, read stderr and see
eof on stderr, depending on timing.
Avoid output ordering issues by collecting events into a per-pipe
array, so interleaving is not visible.
2019-07-11 12:46:56 +02:00
Sebastian Pop
3b73c9fb86
neon vectorization for base64
...
A similar algorithm is used to vectorize on x86_64, with a good description in
https://arxiv.org/abs/1704.00605 . On AArch64 the implementation differs in that
instead of using multiplies to shift bits around, it uses the vld3+vst4 and
vld4+vst3 combinations to load and store interleaved data. This patch is based
on the NEON implementation of Wojciech Mula:
https://github.com/WojciechMula/base64simd/blob/master/encode/encode.neon.cpp
https://github.com/WojciechMula/base64simd/blob/master/encode/lookup.neon.cpp
and
https://github.com/WojciechMula/base64simd/blob/master/encode/encode.neon.cpp
https://github.com/WojciechMula/base64simd/blob/master/encode/encode.neon.cpp
adapted to php/ext/standard/base64.c and vectorized with factor 16 instead of 8.
On a Graviton A1 instance and on the synthetic benchmarks in
https://github.com/lemire/fastbase64 I see 175% speedup on base64 encoding and
60% speedup on base64 decode compared to the scalar implementation.
The patch passes `make test` regression testing on aarch64-linux.
2019-07-11 12:04:29 +03:00
Sebastian Pop
2a535a9707
[AArch64] Use crc32 instructions when available
...
The time goes from 0.838s down to 0.029s (a 28x speedup) on a Graviton A1
instance and the following benchmark:
function simple_crc32() {
$a = "foo";
for ($i = 0; $i < 10000; $i++) {
crc32($a);
$a .= "o".$i;
}
}
2019-07-11 10:29:45 +02:00
Nikita Popov
ba8c4894d8
Add server conflict to soap custom content type test
2019-07-11 10:26:53 +02:00
Peter Kokot
a6daded1a4
Refactor undefining PACKAGE_* symbols
...
Instead of patching configuration headers template generated by
the given tools - autoheader, this moves patching these symbols to
the configure step before creating and invoking the config.status
and before the configuration header file is generated from the
patched template.
Closes GH-4374
2019-07-11 02:00:51 +02:00
Peter Kokot
d63fdced2e
Remove TSRM/tsrm_config.w32.h
...
The tsrm_config.w32.h file is a simple wrapper for already defined
symbols and includes elsewhere.
Closes GH-4383
2019-07-10 21:19:44 +02:00
Dmitry Stogov
0e3d4911fa
Set expectation to reduce hot code fragmentation
2019-07-10 18:29:35 +03:00
Nikita Popov
a54ee8a947
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-10 17:28:37 +02:00
Nikita Popov
e7a83ec8df
Fix bug #78271
...
When cleaning nops in the dfa pass, we were always keeping the
smart branch inhibiting nop that occurs directly before the jump
instruction. However, as we skip unreachable blocks entirely, it
may happen that we need to keep a nop that occurs further back,
prior to the unreachable blocks. Account for that case now.
We should really do something about the smart branch situation,
this is very fragile...
2019-07-10 17:25:40 +02:00
Cyril Pascal
6791107319
Align segments on huge page boundary only for x86
...
Closes GH-4387.
2019-07-10 15:19:24 +02:00
Nikita Popov
ee18687f97
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-10 13:10:07 +02:00
Nikita Popov
3fa9f9cfae
Add CONFLICTS to recognized sections
...
It does nothing on 7.3, but this makes it easier to write tests in
3rd party extensions.
2019-07-10 13:09:06 +02:00
Nikita Popov
07bbc54658
Fix file collisions in phar tests
2019-07-10 12:55:40 +02:00
Nikita Popov
852e35317d
Additional fix for mysqli_fork test
2019-07-10 12:42:17 +02:00
Nikita Popov
c42b7dd6d3
Throw notice on array access on illegal type
...
No notice is thrown for list() accesses, because we did not come
to an agreement regarding patterns like
while ([$key, $value] = yield $it->next()) { ... }
where silent null access may be desirable.
No effort is made to suppress multiple notices in access chains
likes $x[0][0][0], because the technical complexity this causes
does not seem worthwhile.
RFC: https://wiki.php.net/rfc/notice-for-non-valid-array-container
2019-07-10 12:02:14 +02:00
Nikita Popov
a63422029e
Fix invalid array access in mysqli_fork test
2019-07-10 11:59:27 +02:00
Dmitry Stogov
d57d74b271
Reduce cost for references to strings and resources
2019-07-10 12:27:59 +03:00
Nikita Popov
2bca35eacc
Rename support_strings to !is_list
...
In preparation for more behavior that depends on whether it it is
a list() access. Using support_strings for that would be
confusing.
2019-07-10 11:10:17 +02:00
Nikita Popov
0c450967e1
Simplify two unserialize() tests
...
unserialize() returns false for these now, so it doesn't make sense
to try and do something with the result.
2019-07-10 11:09:54 +02:00
Nikita Popov
a207b3574b
Fix iteration limits in SXE test
...
Test doesn't look like it's specifically testing out of bounds
access, just two different iteration patterns, so make sure the
limits are correct.
2019-07-10 11:09:47 +02:00
Nikita Popov
9d82a01d01
Clean up DateTimeZone::getLocation() test
...
And avoid invalid array access.
2019-07-10 11:09:41 +02:00
Nikita Popov
dfe5fd2a37
Avoid invalid array access in fcgi.inc
2019-07-10 11:09:34 +02:00
Remi Collet
db0eaa8cf1
improve libargon2/libsodium compatibility
2019-07-10 09:00:41 +02:00
Peter Kokot
48abed7fd8
Use e.g. instead of less common f.e. [ci skip]
2019-07-09 17:53:46 +02:00
Sara Golemon
f65956e4fb
Relax argon2 mem_cost down to 64k, bump time_cost to 4
2019-07-09 11:36:48 -04:00
David Carlier
aa0e29a668
CGI: Fix memory leak on error paths
2019-07-09 16:19:41 +02:00
Dmitry Stogov
8f0c87e1b6
Avoid unintended inlining
2019-07-09 14:01:48 +03:00
Nikita Popov
ba05b2c6b0
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-09 11:05:54 +02:00
Nikita Popov
825f47564a
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-09 11:05:18 +02:00
Nikita Popov
22ed362810
Revert "Fixed bug #76980 "
...
This reverts commit 35353dc49a .
This changes causes issues for Symfony, see
https://github.com/symfony/symfony/issues/32395 . I'm reverting it
from PHP 7.2 and PHP 7.3 and only leaving it in PHP 7.4.
2019-07-09 11:04:16 +02:00
Derick Rethans
432ad35b55
Merge remote-tracking branch 'origin/PHP-7.4' into PHP-7.4
2019-07-09 09:14:01 +01:00
Christoph M. Becker
726c07e9af
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Upgrade to SQLite 3.28.0
2019-07-09 10:08:09 +02:00
Christoph M. Becker
7404d756e9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Upgrade to SQLite 3.28.0
2019-07-09 10:04:41 +02:00
Christoph M. Becker
40f7533cc1
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Upgrade to SQLite 3.28.0
2019-07-09 10:02:47 +02:00
Christoph M. Becker
e944ae6b2a
Upgrade to SQLite 3.28.0
...
Over the years, multiple security vulnerabilities[1] have been found
and fixed in SQLite3, so it makes sense to update our bundled libsqlite
to the latest available version.
[1] <https://www.cvedetails.com/vulnerability-list/vendor_id-9237/Sqlite.html >
2019-07-09 09:59:46 +02:00
Dmitry Stogov
e1f418dd18
Remove duplicated code for (PRE|POST)_DEC_(OBJ|STATIC_PROP) opcodes
2019-07-09 10:46:04 +03:00
Derick Rethans
086b476c27
Update NEWS for 7.4.0beta1
2019-07-09 07:41:09 +00:00
Derick Rethans
3fd7c478a5
Update NEWS for PHP 7.4.0alpha3
2019-07-09 07:39:49 +00:00
Peter Kokot
d094ca83df
Catch up with current procedures
...
- Git is used for moving existing extensions to PECL
- PHP versions with the PHP 7.4 examples
- Some minor tweaks here and there
- Mention re2c also
- Mention Docker image as a helper tool
2019-07-08 23:28:02 +02:00
Peter Kokot
5017676438
Add zend.exception_ignore_args [ci skip]
2019-07-08 19:34:47 +02:00
Peter Kokot
e180290a1e
Update NEWS [ci skip]
2019-07-08 18:50:59 +02:00
Peter Kokot
fa37cfe8cc
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS [ci skip]
Update NEWS [ci skip]
2019-07-08 18:49:15 +02:00
Peter Kokot
4fcf8e9385
Update NEWS [ci skip]
2019-07-08 18:48:50 +02:00
Peter Kokot
ed4aa4b624
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
2019-07-08 18:48:27 +02:00
Peter Kokot
f81be1aff6
Update NEWS [ci skip]
2019-07-08 18:47:55 +02:00
Dmitry Stogov
1804fd634e
Fixed dispatch from inlined hybrid opcode to another opcode
2019-07-08 18:01:46 +03:00
Nikita Popov
428cfdd181
Add ReflectionReference::getRefcount()
...
And don't return null for rc=1 references. Leave it to the user
to decide whether or not they want to consider these as references
or not.
Fixes bug #78263 .
2019-07-08 16:54:03 +02:00
Peter Kokot
0f0c6c617f
Catch up with recent changes [ci skip]
...
- RFC about password_hash portability improvements added
- build system minor updates noted
- typos
2019-07-08 16:23:27 +02:00
Peter Kokot
4b864c2ebb
Remove APACHE symbol
...
The APACHE symbol was used in very early PHP versions to indicate the
Apache module usage. Since PHP 4 this is no longer used in the code.
2019-07-08 15:05:54 +02:00
Peter Kokot
900de30b0f
Refactor genif.sh
...
Changes:
- Coding style fixes
- ${1+"$@"} replaced with "$@" [1]
- EXTRA_MODULE_PTRS variable is not used anymore
- awk tool defined via environment variable
- srcdir determined automatically from the genif.sh location
[1] https://www.in-ulm.de/~mascheck/various/bourne_args/
Closes GH-4372
2019-07-08 14:58:26 +02:00
Nikita Popov
392398bfe6
Make busy wait busier
...
Another stab in the dark to fix the intermittent failures of timeout
tests on macos CI: We're using ITIMER_PROF, which means that the
timer counts against user+system time. The "busy" wait loop counts
against real time. Currently it calls microtime() on every iteration.
If that call is implemented as a syscall rather than going through
vDSO or commpage we might be seeing many context switches here which
drive up the real time, but not user or system time.
See if making the loop busier and calling microtime() less helps the
situation.
2019-07-08 13:35:29 +02:00
Dmitry Stogov
9a833438d1
Delay EG(exception) check on slow path
2019-07-08 13:56:34 +03:00
Scott Dutton
d90cdbd9df
Deprecate passing invalid character to base_convert etc
...
RFC: https://wiki.php.net/rfc/base_convert_improvements
2019-07-08 12:49:21 +02:00
Peter Kokot
550c2aa89b
Remove C89 checks for signal.h and strerror
...
These are part of the C89 and on today's systems not needed to be
checked anymore. This removes symbols HAVE_SIGNAL and HAVE_STRERROR.
- http://port70.net/~nsz/c/c89/c89-draft.html
- locale.h is also part of C89 but will be removed per request in PHP 8
2019-07-08 12:46:51 +02:00
Peter Kokot
f002761e08
Update libmagic patch
...
This simplifies the libmagic patch:
- in upstream the HAVE_STRERROR check has been removed
- in upstream library the HAVE_SIGNAL_H has been removed
- indentations syncs with the upstream library
- some irrelevant changes removed from the patch (log comment), upstream
has this correctly logged already so no need to patch the comment.
Closes GH-4298
2019-07-08 12:38:47 +02:00
Christoph M. Becker
338e1b245d
Implement FR #77230 : Support custom CFLAGS and LDFLAGS from environment
...
While it is already possible to *set* CFLAGS and LDFLAGS (actually all
variables) from the environment for `nmake` (by passing the `/E`
option), it is not possible to *add* any (C|LD)FLAGS, which can be
useful in some cases. Instead of allowing this for `nmake`, we add
support for additional custom (C|LD)FLAGS to `configure`, similar to
how that works on Linux, so one could actually write:
````
set CFLAGS=foo & set LDFLAGS=bar & configure
````
This also allows us to use these flags during configure.
2019-07-08 10:46:51 +02:00
Christoph M. Becker
98b6330ab4
Fix TsHashTable related race conditions
...
Although TsHashTable and the according API are supposed to easily make
a HashTable thread-safe, they do not; for instance, there can be race
conditions between finding and updating entries. We therefore avoid
the usage of TsHashTable in favor of a HashTable with our own mutex
management.
The patch has been provided by krakjoe@php.net ; I only did some minor
fixes and tweaks.
2019-07-08 10:31:36 +02:00
Peter Kokot
a39ea91753
Simplify PHP_CHECK_PDO_INCLUDES calls
...
Conditional checks were once used for backwards compatibility with
phpize from PHP versions that didn't have this macro call yet.
Closes GH-4376
2019-07-08 10:24:41 +02:00
Dmitry Stogov
1305d9c0d2
Fixed opcode description
2019-07-08 11:20:46 +03:00
Peter Kokot
5ba69ab3ad
Remove some unused variables
...
- Variables php_abs_top_srcdir php_abs_top_builddir are no longer used.
- ZEND_EXT_TYPE is always zend_extension and variable is no longer used.
Closes GH-4378
2019-07-08 10:18:17 +02:00
Sara Golemon
0ba1db7a4a
Provide argon2i(d) password hashing from sodium when needed
2019-07-07 21:53:43 -04:00
Stanislav Malyshev
57e7c3aac1
Simplify expression and remove the possibility of div by 0
...
Maybe should use exp2() but not sure about how supported it is.
2019-07-07 16:16:05 -07:00
Peter Kokot
3bde4838f4
Remove PHP_DEBUG_MACRO
...
The macro is no longer used. The warning at the end of the configure
script therefore is also no longer used.
2019-07-07 12:15:36 +02:00
Peter Kokot
49cc2a63b3
Remove some more Apache 1 left overs
...
- warning in configure.ac is relevant for the sapi/apache
- errors output redirected to /dev/null when checking Apache version
2019-07-07 12:09:19 +02:00
Nikita Popov
7514b5d91c
Mention that zend_parse_parameters should not be tested
...
Also mention that --CREDITS-- section should not be included
anymore. We should also change qa.php.net to stop advertising
these.
[ci skip]
2019-07-07 11:24:26 +02:00
Peter Kokot
539b577827
Move footer to the end of configure output
2019-07-06 01:00:24 +02:00
Peter Kokot
1c9e8e8f6a
Remove PTHREADS_ASSIGN_VARS
...
This simplifies TSRM build steps a bit and avoids doing unnecessary
steps:
- The `PTHREADS_CHECK_COMPILE` can called inside the for loops only
since this is only where the `$pthreads_checked` variable is used.
- Assigning variables can be then done only in the configure.ac
once.
- use `m4_include()` instead of the `sinclude()` in the middle of
the build steps.
- The `$threads_result` variable is not used in the code or in
extensions.
2019-07-05 23:26:20 +02:00
Christoph M. Becker
30441e65dd
Remove superfluous assignment
2019-07-05 15:56:26 +02:00
Dmitry Stogov
55f7d3b70a
Eliminate useless checks
2019-07-05 14:21:18 +03:00
Christoph M. Becker
4e5a717866
Temporarily skip test
...
This test hangs on Windows for ~10 minutes as of commit 30019f4 , so we
temporarily skip it. The issue will be investigated by Joe and myself
in due course.
2019-07-05 12:48:10 +02:00
Nikita Popov
201673d1a6
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-05 12:07:45 +02:00
Nikita Popov
e3c701ea38
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-05 12:07:10 +02:00
Nikita Popov
5846e85283
Backport fe_reset_rw case
2019-07-05 12:06:52 +02:00
Nikita Popov
73fd2da754
Make sure all cases of fetch_dim_w adjustment are handled
...
Use EMPTY_SWITCH_DEFAULT_CASE() to trigger an assertion in case
we miss something.
Add missing FE_RESET_RW case.
2019-07-05 12:02:26 +02:00
Nikita Popov
1086198711
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-05 11:41:57 +02:00
Nikita Popov
920283ff2b
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-05 11:40:45 +02:00
Nikita Popov
c353f17d42
Fix inference for compound object op on dim
2019-07-05 11:39:42 +02:00
Nikita Popov
ea86a9209c
Optimize integer in_array with strict=true
...
It doesn't make sense that using in_array with strict=false is
much faster for this case, due to lack of a specialized codepath.
2019-07-05 11:20:29 +02:00
Dmitry Stogov
48ca5a1e17
Replace ZEND_ASSIGN_ADD (and others) by ZEND_ASSIGN_OP, ZEND_ASSIGN_DIM_OP, ZEND_ASSGIN_OBJ_OP and ZEND_ASSIGN_STATIC_PROP_OP
2019-07-05 12:03:25 +03:00
Nikita Popov
24ecfcc833
Add test
...
Forgot to commit this.
2019-07-05 11:00:27 +02:00
Nikita Popov
ea43624972
Fix wrong size calculation related to function name
...
It would be nice if we could drop this manual function name reuse
code altogether and rely on interning for it.
2019-07-05 10:46:41 +02:00
Nikita Popov
d3c4841b18
Preloading: Don't move conditional functions to back to scripts
...
Conditional function declaration may be referenced by functions or
classes that have been preloaded, so we should not move them back
to scripts.
What we probably should be doing though is to discard conditional
functions that are not used in the optimizer. This is probably
reasonably common for polyfills, where we will be able to const-eval
the conditions and drop the BBs declaring the functions, but won't
delete the function declarations themselves.
2019-07-05 10:46:41 +02:00
George Wang
6a403504e7
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-04 12:14:48 -04:00
George Wang
3ec8776940
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-04 12:04:08 -04:00
George Wang
32af676bd9
Updated to LiteSpeed SAPI V7.4.3
...
Increased response header count limit from 100 to 1000.
Added crash handler to cleanly shutdown PHP request.
Added CloudLinux mod_lsapi mode
Fixed bug #76058
2019-07-04 12:03:21 -04:00
Nikita Popov
a0e7624059
Compact literals: Don't insert unmergeable keys
...
LITERAL_VALUE with related literals cannot be merged, avoid inserting
them in the literals hash in the first place. Otherwise we may end up
inserting the same key multiple times. We may also miss merging
opportunities due to the duplicate keys.
2019-07-04 17:12:55 +02:00
Nikita Popov
6a9127c100
Assert that HT entries using add_new APIs are really new
2019-07-04 17:12:55 +02:00
Dmitry Stogov
ef05eab432
Improve zend_binary_assign_op helpers.
...
Reorder opcode numbers to make ADD-POW and ASSIGN_ADD-ASSIGN_POW opcodes sequencional.
2019-07-04 17:25:43 +03:00
Dmitry Stogov
925fd0fe6f
Introduce and use ZEND_VM_INLINE_HANDLER() to avoid ZEND_RETURN exception
2019-07-04 15:54:45 +03:00
Christoph M. Becker
27e1a95098
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
[ci skip] Remove NEWS entry
2019-07-04 14:50:51 +02:00
Christoph M. Becker
807c755670
[ci skip] Remove NEWS entry
...
This commit already was contained in PHP 7.3.7, but doesn't need a NEWS
entry, since the regression had only been introduced with PHP 7.3.7RC1.
2019-07-04 14:50:23 +02:00
Christoph M. Becker
976a323ab8
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix typo in NEWS [skip ci]
2019-07-04 14:44:38 +02:00
Fabien Villepinte
cb1237a3ed
Fix typo in NEWS [skip ci]
2019-07-04 14:43:45 +02:00
Nikita Popov
b250f89b92
Preloading: Relax known type restrictions
...
Check whether there is a parent/interface/trait method with the same
name and only then require the type to be known. This reduces the
number of cases where this triggers in practice a lot.
2019-07-04 12:20:32 +02:00
Nikita Popov
4a2646cf45
Preloading: Also handle trait methods outside main script
2019-07-04 12:20:31 +02:00
Dmitry Stogov
e3d35b6434
Split destructor
2019-07-04 13:07:47 +03:00
Nikita Popov
df243f19be
Preloading: Prevent autoloading while resolving constants
2019-07-04 11:05:01 +02:00
Nikita Popov
1fea887cc0
Set PROPERTY_TYPES_RESOLVED flag for internal classes
...
Also make sure that the resolution happens before preloading runs.
2019-07-04 10:32:36 +02:00
Dmitry Stogov
09041151de
Better optimization in RELEASE build. ZEND_ASSERT(s) prevented optimization
2019-07-03 20:19:56 +03:00
Joe Watkins
87249091d5
Merge branch 'php-cli-server-improvements' into PHP-7.4
...
* php-cli-server-improvements:
improvements to cli server
2019-07-03 16:31:40 +02:00
Joe Watkins
30019f47a5
improvements to cli server
2019-07-03 16:30:51 +02:00
Nikita Popov
f857648270
Improve unlinked class diagnostics during preloading
2019-07-03 14:05:10 +02:00
Nikita Popov
d6d9024cb8
Avoid use of random ports in some socket tests
2019-07-03 12:47:49 +02:00
Nikita Popov
a023eb3967
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-03 12:37:12 +02:00
Nikita Popov
af3c854074
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-03 12:36:50 +02:00
Nikita Popov
0e48e35e04
Fixed bug #78231
2019-07-03 12:36:06 +02:00
Nikita Popov
959c84b249
Remove curl_basic_017.phpt
...
The output of the three handles may be interleaved. We already have
curl_basic_018.phpt which uses curl_multi_getcontent() and thus
has predictable output. As such, I'm dropping this test altogether.
2019-07-03 11:38:24 +02:00
Nikita Popov
6dd4cccef8
Fix file conflict in fgets test
2019-07-03 11:27:02 +02:00
Nikita Popov
aff0b77d15
Skip pcntl_sigwaitinfo() test under asan/msan
...
This test often fails under asan/msan with a timeout for unknown
reasons.
2019-07-03 11:03:27 +02:00
Nikita Popov
2bf880db2c
Fixed bug #78239
2019-07-03 11:00:12 +02:00
Nikita Popov
c0924cf67d
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-03 10:20:32 +02:00
Nikita Popov
4892bbc167
Fixed bug #78230
2019-07-03 10:20:07 +02:00
Christoph M. Becker
b4c81be9c5
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78241 : touch() does not handle dates after 2038 in PHP 64-bit
2019-07-03 10:03:14 +02:00
Christoph M. Becker
5e5b7cb4d4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78241 : touch() does not handle dates after 2038 in PHP 64-bit
2019-07-03 10:02:22 +02:00
Christoph M. Becker
44c8b7414c
Fix #78241 : touch() does not handle dates after 2038 in PHP 64-bit
...
`time_t` defaults to `_time64` (which is 64bit signed) even on x86, but
`Int32x32To64()` truncates it to signed 32bit. We replace the macro
with the "manual" calculation.
2019-07-03 09:59:17 +02:00
Dmitry Stogov
56b8b165f8
Optimization of INC/DEC helpers
2019-07-03 10:33:03 +03:00
Pieter Hordijk
6ab04a6eef
Removed mysqlnd stats from phpinfo page
...
All information can already be retrieved using the APIs at https://www.php.net/manual/en/mysqlnd.stats.php . Closes https://bugs.php.net/bug.php?id=60594
2019-07-03 08:20:54 +02:00
Peter Kokot
a45192e183
Enable option checking on CI
...
This adds the Autoconf's --enable-option-checking=fatal option so
when non existing option from the PHP's configure options is used
a fatal error happens.
2019-07-03 08:16:31 +02:00
Peter Kokot
6f558c9508
Remove libtool and automake from azure installs
...
These two deps are not needed to build PHP.
2019-07-03 08:14:07 +02:00
Peter Kokot
16df718251
Remove PHP_CHECK_CONFIGURE_OPTIONS
...
Instead of building a custom macro for checking configure options,
Autoconf 2.62+ already outputs a warning at the beginning and the end
of the output of configure script. It automatically detects correct
and wrong options better.
This is related also to bug #55634 .
So now instead a better way is the default Autoconf approach:
This outputs a warning at the beginning and end of the configure output:
./configure --with-non-existing
This results in fatal error:
./configure --non-existing
configure: error: unrecognized option: `--non-existing'
Try `./configure --help' for more information
The `--enable-option-checking=fatal` results in fatal error for all non
existing options:
./configure --with-non-existing --enable-option-checking=fatal
configure: error: unrecognized options: --with-non-existing
Closes GH-4348
2019-07-02 22:15:24 +02:00
Peter Kokot
b1ef50091d
Remove some old BeOS artefacts
...
- checking for beos systems is no longer relevant in configure.ac
- usage of undefined constant BETHREADS removed.
Closes GH-4346
2019-07-02 22:08:54 +02:00
Peter Kokot
534351c014
Remove check for ApplicationServices/ApplicationServices.h
...
The symbol HAVE_APPLICATIONSERVICES_APPLICATIONSERVICES_H is not used
and check not needed.
Closes GH-4336
2019-07-02 22:05:00 +02:00
Jan Altensen
f8788eb7f3
azure: exclude some documentation paths
...
Closes GH-4352.
2019-07-02 16:22:01 +02:00
Nikita Popov
1c8988c5f3
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-02 16:12:36 +02:00
Nikita Popov
9ad09ce905
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-02 16:12:24 +02:00
Nikita Popov
32c68428a9
Backport test fix
...
Closes GH-3816.
2019-07-02 16:11:54 +02:00
Christoph M. Becker
db72a19ed4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix NEWS
2019-07-02 15:09:27 +02:00
Christoph M. Becker
41949bb71e
Fix NEWS
...
Bug #78185 fixed a regression in PHP 7.3.7RC2, so should not be listed
here.
2019-07-02 15:08:10 +02:00
Joe Watkins
0819e6dc9b
simple ignore arguments in exceptions implementation
2019-07-02 13:18:39 +02:00
Robert Kopack
b546ae986a
Implement SQLite extended result code functionality
2019-07-02 13:03:35 +02:00
SjonHortensius
615ce0b099
update NEWS [ci skip]
...
add #2684
2019-07-02 12:32:42 +02:00
Nikita Popov
4a08885ed9
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-02 12:28:46 +02:00
Nikita Popov
7174c44557
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-02 12:28:37 +02:00
Alex Scott
a4acff3e21
Fix bug #78138 : opcache.validate_permission incorrectly works with PHAR files
...
opcache incorrectly handles PHAR files when opcache.validate_permission
option enabled, because it calls
access("phar://path-to/file.phar/path/inside.php", R_OK);
rather than
access("path-to/file.phar", R_OK)
2019-07-02 12:25:50 +02:00
Sjon Hortensius
a7881df281
PDO: support username & password specified in DSN
2019-07-02 12:09:38 +02:00
David Carlier
7f1fef9fe0
Fix opcache huge page mapping on FreeBSD
...
Too much room were given process mappings and were not unmapped.
Closes GH-4345.
2019-07-02 11:59:08 +02:00
Nikita Popov
03846afdf7
Fix clang build
2019-07-02 10:16:55 +02:00
Nikita Popov
1e06a8ef95
Update proto comment for proc_open
2019-07-02 10:10:51 +02:00
Nikita Popov
b88ef3dc58
Remove unused (module|request)_shutdown_for_exec
2019-07-02 10:10:51 +02:00
Dmitry Stogov
baa883d3fc
Fixed build without global register variables
2019-07-02 11:03:22 +03:00
Dmitry Stogov
cbbd473bdd
Separate slow code
2019-07-02 01:16:34 +03:00
Dmitry Stogov
2d4bb4f44a
Use string destructor instead of general zval_ptr_dtor_nogc()
2019-07-02 01:14:33 +03:00
Dmitry Stogov
f58c645dcc
Eliminate exception checks
2019-07-02 01:11:41 +03:00
Christoph M. Becker
52a0630cd4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add missing SKIPIFs
2019-07-01 18:13:52 +02:00
Christoph M. Becker
3e25ddb07b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing SKIPIFs
2019-07-01 18:12:28 +02:00
Christoph M. Becker
57688ad7bf
Add missing SKIPIFs
...
All these tests are meant to run with OPcache available, and some will
even fail inevitably without it, so we add OPcache as SKIPIF
requirement.
2019-07-01 18:11:13 +02:00
Nikita Popov
0dfca74be2
Setup msan on azure
...
This uses a separate job template, because msan requires all used
libraries (apart from glibc) to be instrumented, so we can't link
any external libraries unless we recompile them. As such, we need
a much more minimal configure.
2019-07-01 17:27:42 +02:00
Nikita Popov
59522c5a85
Generate less code in compile time binary op test
...
Don't generate try {} blocks for the operations that don't throw.
2019-07-01 17:27:42 +02:00
Nikita Popov
7acc828abf
Skip perf-sensitive fileinfo tests
2019-07-01 17:27:42 +02:00
Christoph M. Becker
42bedcfb50
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add missing SKIPIFs
2019-07-01 17:24:33 +02:00
Christoph M. Becker
99e6c701e6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing SKIPIFs
2019-07-01 17:22:55 +02:00
Christoph M. Becker
75bc3446f8
Add missing SKIPIFs
...
All these tests are meant to run with OPcache available, and some will
even fail inevitably without it, so we add OPcache as SKIPIF
requirement.
2019-07-01 17:21:16 +02:00
David Carlier
994a01ea43
opcache huge pages: Little fix for FreeBSD
...
Calculating the vm entries size beforehand, as we could
possibly miss few entries.
Closes GH-4344.
2019-07-01 16:55:23 +02:00
Christoph M. Becker
237f07ea9d
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix brittle test
2019-07-01 16:44:54 +02:00
Christoph M. Becker
d714be0f57
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix brittle test
2019-07-01 16:43:47 +02:00
Christoph M. Becker
be559e6c37
Fix brittle test
...
This test is easily tripped by former test runs with other PHP
versions. To avoid such false positives, we check that there is at
least one respective OPcache file, and that all found OPcache user ID
folders have exactly 32 hexadecimal digits.
2019-07-01 16:42:55 +02:00
Nikita Popov
af3e2d3186
Initialize last_line in phpdbg globals
2019-07-01 16:14:45 +02:00
Dmitry Stogov
f2b6b2eee8
Micro-optimization
2019-07-01 16:57:25 +03:00
Dmitry Stogov
39a0854307
Fixed GOTO VM
2019-07-01 15:50:53 +03:00
Peter Kokot
30c1c53164
Remove TSRM_BASIC_CHECKS
...
This macro is not needed anymore. The AC_PROG_CC is done in the main
configure.ac file and the ranlib check is done by the bundled libtool
macros.
Closes GH-4339
2019-07-01 13:23:41 +02:00
Peter Kokot
e558ee7999
Remove not needed checks for functions
...
The following functions don't need to be checked anymore since the
they are not used across the code or the symbols aren't used anymore:
- cuserid (not used)
- lrand48 (not used and removed via
6d6ef7aacc )
- random (check is not used)
- srand48 (not used)
- srandom (not used)
- strdup (check is not used)
and the unused check symbols:
- HAVE_CUSERID
- HAVE_LRAND48
- HAVE_RANDOM
- HAVE_SRAND48
- HAVE_SRANDOM
- HAVE_STRDUP
Closes GH-4338
2019-07-01 13:21:28 +02:00
Peter Kokot
c70d9cdb11
Remove unused check for struct cmsghdr
...
The result of this check is to whether to define the HAVE_CMSGHDR symbol
or not. The HAVE_CMSGHDR is never used in the code and it has been
removed via 90289924c0 .
Closes GH-4337
2019-07-01 13:13:51 +02:00
Nikita Popov
01e1e1991d
Clarify #if indentation in time limit implemementation
2019-07-01 12:18:21 +02:00
Nikita Popov
83ee7b4c07
Run file_put_contents_variantion8 in separate directory
...
There are other tests that try to read these files.
2019-07-01 11:54:05 +02:00
Nikita Popov
7defd5f69c
Fix unused variable warnings when mbregex disabled
2019-07-01 11:14:35 +02:00
Nikita Popov
da06f7f383
Msan: Unpoison buffer written by file cache
...
It would be great if this were fully initialized, but it's not
really a problem either (as long as we don't care about reproducible
file cache), so ignore this for now.
2019-07-01 11:14:28 +02:00
Nikita Popov
c8af6a7fa7
Don't use fast_memcpy under msan
2019-07-01 11:14:23 +02:00
Nikita Popov
7e6db70064
Msan: Unpoison getrandom() syscall result
2019-07-01 11:14:17 +02:00
Nikita Popov
5c0a9a4096
Add some tolerance to time_sleep_until() test
...
This has been sporadically failing on macos for a while. We've tried
a couple of things (using int arithmetic, normalizing to gettimeofday),
but this issue remains. I'm adding some tolerance to the test to
avoid CI failures.
2019-07-01 09:43:16 +02:00
Nikita Popov
736172d23d
Disable RTLD_DEEPBIND under memory sanitizer
...
This was already done for address sanitizer.
2019-07-01 09:37:34 +02:00
Peter Kokot
3c472909c0
Update NEWS [ci skip]
2019-07-01 03:10:09 +02:00
Peter Kokot
ec8bf3bc97
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS [ci skip]
2019-07-01 02:55:02 +02:00
Peter Kokot
b039a4115f
Update NEWS [ci skip]
2019-07-01 02:54:42 +02:00
Peter Kokot
6363f7a0c1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #78197 : PCRE2 version check
2019-07-01 02:53:10 +02:00
Peter Kokot
624488b5e8
Fix bug #78197 : PCRE2 version check
...
When external PCRE library version is of format ##.##-RC# the check
failed.
2019-07-01 02:42:29 +02:00
Peter Kokot
aeaee62d92
Update changelogs [ci skip]
2019-07-01 01:35:29 +02:00
Peter Kokot
9a3c8e51e3
Sync functions checks
...
Removed unused checks:
- mbsinit check removed, HAVE_MBSINIT removed (not used in php-src)
- mempcpy check removed, HAVE_MEMPCPY removed (not used in php-src anymore since
560ed89bfb which uses PHP's own implementation)
- strpncpy check removed, added via a8c9e893b6 and
not used.
- setpgid check removed since HAVE_SETPGID is not used
Moved to a central configure.ac:
- fpclass
- mbrlen moved to configure.ac (since the HAVE_MBRLEN is used accross the php-src)
- sigprocmask
- getcwd
- getwd
- glob
- strfmon
- nice
Duplicated checks removed:
- gethostname
- getlogin
- getpwuid_r
- socketpair
- mprotect check simplified
2019-06-30 23:57:54 +02:00
Peter Kokot
8bc59a62c4
Remove unused build specific symbols
...
These were part of the following decomissioned extensions:
- PHP_SYBASE part of the sybase extension
- PHP_MSQL_* part of the msql extension
- PHP_APACHE_* symbols were used in apache and apache_hooks sapis
- PHP_FHTTPD_* symbols part of old sapi/fhttpd
- PHP_MYSQL_* symbols were part of the legacy mysql extension
- Remove PHP_ORACLE_* symbols
These were part of the obsolete oracle extension that was moved to PECL
via f35af61ef8 .
- PHP_OCI8_SHARED_LIBADD and PHP_OCI8_DIR were removed via
c33f88ccb0
And other are not used anywhere across the php-src codebase
2019-06-30 23:55:03 +02:00
Peter Kokot
839ff378bc
Fix phar tests with hash extension
...
- The hash extension is now always available.
- Remove unfinished test
The Phar::PGP currently doesn't exist yet.
2019-06-30 23:51:56 +02:00
Peter Kokot
778f08ff06
Fix missing file and remove SKIP section
...
Test now passes on VC 14, 15 and 16 with current MSVC runtimes.
2019-06-30 23:50:09 +02:00
Peter Kokot
6c1c66befe
Remove HAVE_LIMITS_H check
...
The limits.h header is part of the C89 and is today available
everywhere. There is no need to check for presence of this header
anymore.
The timelib has already been patched upstream via
aae5907cb7
PHP extensions out there shouldn't rely on symbols defined during the
build anyway and neither they do on this particular symbol anymore.
2019-06-30 23:44:45 +02:00
Peter Kokot
1925102fe4
Remove HAVE_DEV_ARANDOM
...
The arandom check is not needed anymore since the implementations of:
3467526a65
and
6554f721f7
2019-06-30 23:39:44 +02:00
Derick Rethans
a60128c503
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-30 15:50:55 +01:00
Derick Rethans
cc3fe3bd30
Fixed tests due to changed timezone data
2019-06-30 15:50:38 +01:00
Derick Rethans
aae5907cb7
Update timelib to 2018.02
2019-06-30 15:45:13 +01:00
Anatol Belski
846c0e7233
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS [ci skip]
2019-06-29 17:41:29 +02:00
Anatol Belski
0e148789c3
Update NEWS [ci skip]
2019-06-29 17:40:58 +02:00
Anatol Belski
07cdf0109f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
2019-06-29 17:40:14 +02:00
Anatol Belski
a149f9f3c0
Update NEWS [ci skip]
2019-06-29 17:39:45 +02:00
Anatol Belski
dacf9ecc46
Update libmagic.patch [ci skip]
2019-06-29 17:36:11 +02:00
Anatol Belski
5ae0a6b784
Set buffer to NULL to prevent double free (Kamil Dudka at redhat)
...
Based on the upstream patch d13204e8da43f1d8a98cf3f74591cde02ecdb2f7.
2019-06-29 17:13:21 +02:00
Anatol Belski
02fc2fe8c9
Fix magic data
2019-06-29 16:51:41 +02:00
Christoph M. Becker
8357a696ab
Fix memory leak in COM ctor
...
We have to free strings returned from php_com_olestring_to_string().
2019-06-29 14:51:13 +02:00
Anatol Belski
885cb79201
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix typo
Add tests from fix #78183 from PHP-7.2
Fix #78183 : finfo_file shows wrong mime-type for .tga file
2019-06-29 13:31:22 +02:00
Anatol Belski
b926690947
Fix typo
2019-06-29 13:30:35 +02:00
Joshua Westerheide
6cdeedb8de
Add tests from fix #78183 from PHP-7.2
2019-06-29 13:29:53 +02:00
Anatol Belski
0a31836bed
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78183 : finfo_file shows wrong mime-type for .tga file
2019-06-29 13:29:41 +02:00
Joshua Westerheide
855bbc88c9
Fix #78183 : finfo_file shows wrong mime-type for .tga file
...
Due to a bug in the underlying libmagic 5.31, .tga images returned mime type "image/x-tgaimage/x-tga".
2019-06-29 13:24:52 +02:00
Joe Watkins
82effb3fc7
implement support for workers in cli-server on platforms supporting fork
2019-06-29 05:27:35 +02:00
Joe Watkins
2d5f277a2d
add ini config details to php-config
2019-06-29 05:26:21 +02:00
Peter Kokot
57424f272c
Clean up files after the tests are run
2019-06-28 20:19:00 +02:00
Peter Kokot
df4bb13c55
Update changelogs [ci skip]
2019-06-28 20:14:22 +02:00
Peter Kokot
a014e50513
Remove HAVE_ERRNO_H from libgd
...
The check for errno.h has been removed via
50b9ef8d94
Upstream libgd library is also patched via
https://github.com/libgd/libgd/commit/1e7f93922fb3adf9f131d7e94aa13386062ffe11
2019-06-28 20:02:11 +02:00
Nikita Popov
45ab57339e
Use strcmp() in phpdbg_eol_global_update
...
memcmp() only makes sense on equal length strings, and here we don't
know anything about the length of the input.
2019-06-28 17:24:30 +02:00
Nikita Popov
2c8819b89c
Disable ifunc resolvers if memory sanitizer is used
...
Just marking them as no_sanitize("memory") is unforunately not
sufficient, as the function still gets instrumented -- the attribute
only disables reporting.
2019-06-28 17:15:56 +02:00
Nikita Popov
cf29c0f212
Remove phpdbg_xml_asprintf()
...
Clang doesn't like the use of promoted zend_bool in va_start. As
the function isn't used anyway, I'm simply dropping it...
2019-06-28 16:59:52 +02:00
Nikita Popov
88d52ae7aa
Mark ifunc resolver functions as unused
...
It looks like clang doesn't see that these are used through
__attribute__((ifunc)) and generates a warning.
2019-06-28 16:55:54 +02:00
Nikita Popov
3698303540
Fix arginfo leak in disable_functions
...
Arginfo is allocated if types are used, we need to free it.
2019-06-28 16:38:46 +02:00
Nikita Popov
345a3b277c
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-28 16:09:23 +02:00
Nikita Popov
19d0a51533
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-28 16:09:09 +02:00
sunnyeo
f7327b6244
Fix bugs in AST printer
...
Closes GH-4324.
2019-06-28 16:08:44 +02:00
Nikita Popov
54dd762f59
Set up asan+ubsan scheduled build on azure
...
Also adds an --asan flag to run-tests.php to setup all the necessary
environment variables. Some tests are marked as skipped because they
are incompatible with asan or too slow.
I'm basing this on the DEBUG_ZTS build, which seems to give us the
most mileage.
2019-06-28 15:00:54 +02:00
Nikita Popov
ca6f41aa5a
Fix out of bounds read in sccp
2019-06-28 14:47:49 +02:00
Nikita Popov
50cce5eb4f
Avoid reliance on arena details on phpdbg oplog
...
Instead of guessing what the address of the first arena allocation
is going to be, embed the sentinel in the oplog_list structure
directly.
2019-06-28 14:47:42 +02:00
Nikita Popov
c0bf3bc50c
Update error message in libmysql test
2019-06-28 14:46:30 +02:00
Sebastian Pop
70ef87539d
Fix compilation errors when building against libmysql
...
Closes GH-4316.
2019-06-28 14:46:12 +02:00
Nikita Popov
9f81c56e42
Fix out-of-bounds read in array compilation
...
UNPACK elements only have one child. Don't access the second one
until we have excluded this case.
2019-06-28 12:44:46 +02:00
Nikita Popov
7632a411e3
Add tracked arena allocator
...
Available under -DZEND_TRACK_ARENA_ALLOC. This will use the system
allocator combined with arena checkpointing & release semantics
and allows analyzing arena usage under asan/valgrind.
I've sacrificed the duplicate arena implementation in mysqlnd, as
the integration with mysqlnd alloc is not worth the code duplication
to me.
2019-06-28 12:44:18 +02:00
Christoph M. Becker
645ca710d7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
2019-06-28 12:37:49 +02:00
Christoph M. Becker
646debaf38
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
2019-06-28 12:36:55 +02:00
Vincent
05c00a832c
Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
...
Reset stmt->columns when column count changed on new execution of prepared statement
2019-06-28 12:36:02 +02:00
Nikita Popov
8be051015e
Add support for proc_open() with a command array
...
In this case the progarm will be executed directly, without a shell.
On Linux the arguments are passed directly to execvp and no escaping
is necessary. On Windows we construct a command string using escaping
with the default Windows command-line argument parsing method described
at https://docs.microsoft.com/en-us/cpp/cpp/parsing-cpp-command-line-arguments .
Apart from avoiding the issue of argument escaping, passing an array
and bypassing shell has the advantage of allowing proper signal
delivery to the opened process (rather than the shell).
2019-06-28 11:09:55 +02:00
Dmitry Stogov
143f4e3b5c
Reduce overhead
2019-06-28 12:03:01 +03:00
Joe Watkins
68485f8ab4
implement tsrm_is_shutdown API
2019-06-28 10:27:19 +02:00
Christoph M. Becker
bc0db8ce45
Use the portable zend_strndup() instead of strndup()
2019-06-28 10:23:38 +02:00
Dmitry Stogov
ba8033feb0
Fixed use-after-free
2019-06-28 10:43:56 +03:00
Nikita Popov
f365d0e00e
Fix mysqlnd memory leak
...
The actual leak is observed in ext/pdo_mysql/tests/bug_74376.phpt.
The persistent connection leaks because a refcount decrement on a
result is missed. The refcount decrement is missed because
free_result_contents is used, rather than free_result.
Looking at other uses of free_result_contents, it looks like they
could also suffer from this problem. Apart from one case,
free_result_contents is always used to release the result entirely
(I've adjusted the one differing case to only free meta), so I'm
moving most of the logic from free_result into free_result_contents.
The only difference is now that free_result will skip_result first.
2019-06-28 09:18:32 +02:00
Nikita Popov
a78adce5cb
Free ZTS lock in opcache
...
For some reason this only shows up as a leak when using phpdbg.
2019-06-28 09:18:14 +02:00
Nikita Popov
8c4d199851
Fix init_file leak in phpdbg
2019-06-28 09:17:26 +02:00
Nikita Popov
b195412bf3
run-tests: Don't pass --INI-- settings to --SKIPIF--
...
If we're testing ini settings that cause startup failures, we'll
never get to that SKIPIF block...
Also change settings2param to return a value instead of modifying
(to a different type no less!) in place.
2019-06-28 09:17:09 +02:00
Nikita Popov
70fa4715a4
Fix custom heap free
...
This seems to be designed around the use-case where the custom
allocator is a wrapper around ZMM.
2019-06-28 09:13:45 +02:00
Sara Golemon
27f1f3ed1a
Bugfix #78208 Needs rehash with an unknown algo should always return true.
2019-06-27 19:26:03 -04:00
Peter Kokot
35b6a9f75a
Catch up with some recent changes [ci skip]
...
- Mention mysqli::stat()
- Mention removal of HAVE_* for always defined extensions
- Mention removed symbols defined during the build
2019-06-28 00:29:50 +02:00
Peter Kokot
638c21765c
Remove HAVE_STRCOLL check
...
The strcoll function is defined in the C89 standard and should be
on today's systems always available via the <string.h> header.
https://port70.net/~nsz/c/c89/c89-draft.html#4.11.4.3
- Remove also SKIPIF strcoll check in test
2019-06-28 00:05:55 +02:00
Peter Kokot
033cafacbd
Sync HAVE_HASH, HAVE_HASH_EXT, PHAR_HASH_OK symbols
...
The hash extension is always available since PHP-7.4. The symbol
HAVE_HASH_EXT is kept for BC reasons and removed in PHP-8.0.
This patch also removes the PHAR_HASH_OK since it is no longer
relevant.
2019-06-27 23:25:33 +02:00
Nikita Popov
08027e85fa
Remove posix_getlogin_basic.phpt test
...
The premise of this test (that the getlogin user has to be the same
as the geteuid user) is incorrect.
2019-06-27 16:15:13 +02:00
Nikita Popov
40d6147dd0
Fix opcache blacklist leak
...
Don't recompute (and leak) the regex for every glob element, only
do this once at the end.
2019-06-27 16:11:58 +02:00
Nikita Popov
c3132781ec
Fix phpdbg shutdown order
...
In particular, make sure that everything using zmm is released
before zmm is shut down. phpdbg currently gets away with this,
because either a) its custom handlers are used and no auto-free
happens or b) the system allocator is used and no auto-free happens.
With the tracking allocator for asan this no longer works.
2019-06-27 14:20:51 +02:00
Nikita Popov
2149ed7072
Don't use zmm for PHPDBG_G(exec)
...
Uses system allocator when backing up settings ... let's avoid
unnecessary confusion.
2019-06-27 14:20:30 +02:00
Nikita Popov
78375aa52f
Fix persistent XML memory leaks in SOAP
...
SOAP uses a horrible bailout based error handling approach -- avoid
leaking persistent XML memory by catching bailouts in a number of
places.
2019-06-27 14:20:10 +02:00
Nikita Popov
cfeda978df
Add tracked allocator mode
...
In this case we will use the system allocator, but still remember
all allocations and free them the same way that Zend MM does. This
allows us to accurately model leak behavior.
Enabled using USE_ZEND_ALLOC=0 USE_TRACKED_ALLOC=1.
2019-06-27 14:19:48 +02:00
Christoph M. Becker
218c18530a
Show actual enchant version if possible
...
As of libenchant 1.6.0 there is enchant_get_version()[1], so we use it,
if available, to show the actual enchant version in the PHP info. We
also drop the fake ENCHANT_VERSION_STRING altogether, but stick with
showing version 1.5.x if at least HAVE_ENCHANT_BROKER_SET_PARAM is
defined.
Future scope: we may consider requiring enchant 1.6.0 (or later), since
this has been released in April 2010, and likely is available
everywhere.
[1] <https://www.abisource.com/projects/enchant/ >
2019-06-27 13:04:49 +02:00
Dmitry Stogov
e7446c1b2d
Separate common code abd eliminate useless checks
2019-06-27 13:11:08 +03:00
Dmitry Stogov
a58964be82
Inline hot path
2019-06-27 11:27:53 +03:00
Nikita Popov
2f0f895284
Fix persistent connection leak in mysqli
2019-06-27 09:45:32 +02:00
Nikita Popov
6bebe833a2
Fix use-after-free in stream freeing during shutdown
...
Streams will be freed in an unpredictable order during shutdown.
Ignore explicit calls to php_stream_close() entirely to avoid
use-after-free -- instead let the stream resource destructor
deal with it. We have to account for a few special cases:
* Enclosed streams should be freed, as the resource destructor
will forward to the enclosing stream.
* Stream cookies also directly free streams, because we delegate
to the cookie destruction if one exists.
* Mysqlnd also directly frees streams, because it explicitly
removes stream resources (because mysqlnd!)
2019-06-27 09:45:23 +02:00
Peter Kokot
2079b09854
Clean headers checks
...
Some headers were checked multiple times in the main configure.ac file
and in the bundled extensions or SAPIs themselves. Also many of these
checks are then used accross other extensions or SAPIs so a central
configure.ac makes most sense for these checks.
2019-06-27 02:45:09 +02:00
Dmitry Stogov
83b99527df
Avoid double checks on early binding
2019-06-27 02:13:06 +03:00
Peter Kokot
798fed3b0d
Remove warnings for bison and re2c checks
...
This patch removes warnings when lexer and parser files are already
generated. For example, when downloading a PHP release. Realistically,
it is not so trivial to rebuild lexer and parser files without removing
them first. And considering that tarballs don't have cleaning tools
such as Git, this would require manual removali.
Related also to https://bugs.gentoo.org/593278
2019-06-27 00:59:59 +02:00
Peter Kokot
4ff44a9161
Fix concurrent testing of bug 61964
...
When tests are run concurrently using the -j option there might be a
change of failure and writing to the same directory from both tests.
Use test filenames for generated temp dirs
2019-06-27 00:27:10 +02:00
Peter Kokot
a29bf46b68
Fix posix_errno test without PCNTL dep
...
When PCNTL extension is not enabled, the SIGKILL constant is also not
available.
2019-06-27 00:24:37 +02:00
Peter Kokot
6ef2f04a75
Remove unused HAVE_DATE and HAVE_SPL symbols
...
These two are never defined anymore since PHP 7.4 and can be
considered to have always available date and hash extensions.
2019-06-26 23:30:58 +02:00
Peter Kokot
cc4134c04e
Remove HAVE_STRTOD and strtod check
...
There is no need to check for the strtod function. It is part of C89
standard which PHP-7.4+ supports.
http://port70.net/~nsz/c/c89/c89-draft.html#4.10.1.4
2019-06-26 23:10:55 +02:00
Peter Kokot
537844cb1d
Set Computer English language for credits sorting
...
This makes the script a bit more portable when used on systems with
different LC_ALL and LANG settings.
2019-06-26 22:35:55 +02:00
Christoph M. Becker
81a403211e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Remove stream_socket_sendto.phpt
2019-06-26 17:02:08 +02:00
Christoph M. Becker
801ab18ea7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Remove stream_socket_sendto.phpt
2019-06-26 17:01:29 +02:00
Nikita Popov
7d28a24c66
Remove stream_socket_sendto.phpt
...
Fails for me locally due to different number of warnings with
different messages. Rather than adding more wildcards I'm dropping
this test entirely, as it doesn't seem to test anything particularly
useful.
(cherry picked from commit 84333cad67 )
2019-06-26 16:58:37 +02:00
Dmitry Stogov
36b7021e2c
Private methods don't have to be duplicated
2019-06-26 13:27:13 +03:00
Nikita Popov
788a68900d
Fix xml doc leak in soap
2019-06-26 11:43:11 +02:00
Nikita Popov
80958d0f90
Use ldap_destroy instead of ldap_unbind_ext
2019-06-26 11:43:11 +02:00
Nikita Popov
698dd32b03
Fix fpm limit_extensions leak
...
The logic here is somewhat ugly because the worker pool structure
gets freed early, so we need to explicitly transfer ownership.
2019-06-26 11:40:39 +02:00
Dmitry Stogov
f7faa62c43
Reorder conditions to minimize number of checks on fast path
2019-06-26 01:00:31 +03:00
Dmitry Stogov
6288fc19dd
Remove always true/false conditions, remove dead conde and simplify code.
2019-06-26 00:32:22 +03:00
Dmitry Stogov
215b5a7db8
Replace previosly checked conditions by ZEND_ASSERT()
2019-06-25 18:26:56 +03:00
Dmitry Stogov
f09d41ffc0
Fixed variance check for abstract constructor during erlay binding
2019-06-25 17:43:46 +03:00
Dmitry Stogov
ccbc121cb1
Cleanup
2019-06-25 16:37:42 +03:00
Nikita Popov
0f3ca15bb7
FFI: Perform bitfield operations byte-wise
...
Otherwise we may perform reads/writes outside the allocation, as
already happens in 032.phpt.
2019-06-25 14:28:58 +02:00
Nikita Popov
42b22d3a94
Fix out of bounds write in phpdbg
...
It seems that this code has a peculiar interpretation of "len",
where it actually points to the last character, not one past it.
So we need +1 here for that extra char and another +1 for the
terminating null byte.
2019-06-25 14:28:58 +02:00
Nikita Popov
8757f30cc7
Fix CURLINFO_COOKIELIST leak
2019-06-25 14:28:58 +02:00
Nikita Popov
8277acefbd
Fix leak on sqlite3 open error
...
sqlite3_open creates the database object even if the operation
fails.
2019-06-25 14:28:58 +02:00
Nikita Popov
6fcae63f61
Fix SSL_CTX leak in ftp extension
...
SSL_CTX is a refcounted structure, which will be held by the SSL
handle, so we can free it here.
2019-06-25 14:28:58 +02:00
Nikita Popov
b53bb3c15b
Fix UConverter leak
2019-06-25 14:28:58 +02:00
Nikita Popov
77f7ec5152
Fix TimeZone leak in intl MessageFormat
...
I'm just giving each format a distinct owned object here ... sharing
it looks complicated.
2019-06-25 14:28:58 +02:00
Nikita Popov
c7962207d7
Fix stream leak in phar cache_list
2019-06-25 14:28:58 +02:00
Nikita Popov
74a7d00846
run-tests: Don't die unnecessarily
...
die/exit leak memory, don't use them if we don't need to.
2019-06-25 14:28:58 +02:00
Dmitry Stogov
1d534b9da5
Set ZEND_ACC_LINKED flag after early binding (for consistency)
2019-06-25 15:05:27 +03:00
Dmitry Stogov
e8f1f70101
Reduce overhead of delayed early binding
2019-06-25 14:20:41 +03:00
Christoph M. Becker
ead40e31e9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78202 : Opcache stats for cache hits are capped at 32bit NUM
2019-06-25 13:06:20 +02:00
Christoph M. Becker
18bba63f39
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78202 : Opcache stats for cache hits are capped at 32bit NUM
2019-06-25 13:04:28 +02:00
Christoph M. Becker
4366f22dfc
Fix #78202 : Opcache stats for cache hits are capped at 32bit NUM
...
We use the proper format specifiers now.
2019-06-25 13:00:28 +02:00
Dmitry Stogov
bd0cb99d8c
Prevent useless hash lookups
2019-06-25 12:41:06 +03:00
Derick Rethans
d8e6054f46
Update NEWS for 7.4.0alpha3
2019-06-25 09:03:00 +00:00
Derick Rethans
7657741997
Update NEWS for PHP 7.4.0alpha2
2019-06-25 09:01:40 +00:00
Dmitry Stogov
759f4ecd8b
Keep lowercased parent class name as second argument of DECLARE_CLASS to avoid extra work at run-time
2019-06-25 11:30:58 +03:00
Nikita Popov
43dd1ac570
Avoid confusing gotos in phar_split_cache_list
2019-06-25 10:25:44 +02:00
Nikita Popov
31123de0c8
Fix EVP_PKEY leak in phar
2019-06-25 10:25:44 +02:00
Nikita Popov
3a36e68c49
Don't force USE_ZEND_ALLOC=0 in run-tests.php
...
USE_ZEND_ALLOC=0 is useful not just for valgrind ... we should not
force USE_ZEND_ALLOC=1 if the user explicitly disabled it.
2019-06-25 10:25:44 +02:00
Nikita Popov
46bad1d679
Fix region leak in mb_ereg_replace
2019-06-25 10:25:44 +02:00
Dmitry Stogov
0f29fb5cd8
Fixed bug 78175 (Preloading must store default values of static variables and properties)
2019-06-24 20:32:27 +03:00
Christoph M. Becker
94df6dc3fd
Split test case
...
This test is failing on AppVeyor almost all of the time, so splitting
it seems appropriate. This also allows us to rid php_cli_server_stop()
which was only used by this test case.
2019-06-24 14:08:11 +02:00
Nikita Popov
df27bfe58b
Add debugging code to time_sleep_until test
2019-06-22 10:19:49 +02:00
Derick Rethans
d3112adf7f
Merge branch 'bug67348-mysqli-stat' into PHP-7.4
2019-06-21 16:52:15 +01:00
Derick Rethans
579562176b
Fixed bug #67348 : Reading $dbc->stat modifies $dbc->affected_rows
2019-06-21 16:51:52 +01:00
Nikita Popov
152ccfb08d
Fix stack leak in phpdbg
2019-06-21 17:01:25 +02:00
Nikita Popov
a7bcfee9c9
Fix prompt leak in phpdbg
2019-06-21 17:01:18 +02:00
Christoph M. Becker
eec5d2a25f
Properly shut down font cache mutex
...
Since the font cache mutex in set up in MINIT, we have to shut it down
in MSHUTDOWN.
2019-06-21 16:00:47 +02:00
Andrey Hristov
1da15600ae
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-21 16:33:01 +03:00
Andrey Hristov
8326f95fe3
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-21 16:32:13 +03:00
Andrey Hristov
102c64e827
Add explicit cast to uint32_t.
...
It works even without it but explicit stuff is better. The compiler probably converts the 16-bit
uint16_t to uint32_t before doing the shift.
2019-06-21 16:31:56 +03:00
Nikita Popov
021bb35aec
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-21 15:08:12 +02:00
Nikita Popov
66e4b78519
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-21 15:07:59 +02:00
Nikita Popov
99f3e0f0ed
Fix PKCS12 leak in openssl
2019-06-21 15:07:37 +02:00
Nikita Popov
c939a67866
Fix d leak in ecc openssl_pkey_new
2019-06-21 15:07:32 +02:00
Nikita Popov
dfe6f0c1c6
Fix netscape spki leak in openssl
2019-06-21 15:07:26 +02:00
Nikita Popov
a0da2fb2b7
Fix X509 leak in openssl_pkcs7_verify()
2019-06-21 15:07:18 +02:00
Nikita Popov
e0bafc6da4
Fix CSR leaks in openssl
2019-06-21 15:07:10 +02:00
Nikita Popov
90cb3743be
Free cert in php_openssl_load_stream_cafile()
...
X509_STORE_add_cert() increments the refcount of the cert, so we
should free it here.
2019-06-21 15:07:00 +02:00
Nikita Popov
1de7c4b919
Fix memory leaks in browscap parsing
...
Also make the interning a bit more efficient, no need to check for
a "real" interned string every time, we can also store that in the
HT.
2019-06-21 12:56:37 +02:00
Nikita Popov
f781c8f110
Fix leak in bcpowmod
2019-06-21 12:56:28 +02:00
Nikita Popov
e7ef2b52db
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-21 12:56:12 +02:00
Nikita Popov
414db07bdb
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-21 12:55:12 +02:00
Niklas Keller
fea9f93166
Fix memory leak in TLS matches_san_list
2019-06-21 12:54:30 +02:00
Dmitry Stogov
e1e8e670df
Cleanup
2019-06-21 11:43:17 +03:00
Nikita Popov
a84771573d
Make ZEND_SEND_* flags unsigned
...
These may be shifted to the limit for the arg mask.
2019-06-21 10:24:34 +02:00
Nikita Popov
8227e0f747
Avoid ub in shift overflow check
...
Also fix an off-by-one error. While 1 << 63 overflows, -1 << 63 does
not.
2019-06-21 10:24:27 +02:00
Christoph M. Becker
81fd113506
Support TGA reading
...
We add PHP bindings for libgd's features to read TGA files, which are
available as of libgd 2.1.0.
As PHP's bundled libgd doesn't yet include the respective features of the
external libgd, we add these.
Since TGA has no easily recognizable file signature, we don't add TGA
support for imagecreatefromstring() or getimagesize() and friends.
2019-06-20 23:40:51 +02:00
Christoph M. Becker
2b4fc9eb9c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78189 : file cache strips last character of uname hash
2019-06-20 18:01:02 +02:00
Christoph M. Becker
a85254b898
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78189 : file cache strips last character of uname hash
2019-06-20 17:59:59 +02:00
Christoph M. Becker
fcd6f2de60
Fix #78189 : file cache strips last character of uname hash
...
We must not forget to increase `len` by one to cater to the directory
separator.
2019-06-20 17:58:32 +02:00
Nikita Popov
59974000eb
Remove leftover check
...
This is checked below now in a way that handles misaligned pointers.
2019-06-20 17:24:22 +02:00
Nikita Popov
dd6d471834
Handle misaligned ifreq on macos
2019-06-20 17:24:16 +02:00
Nikita Popov
d80f0ff6c0
Handle gr_mem misalignment on macos
2019-06-20 17:24:06 +02:00
Christoph M. Becker
a768271d91
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
2019-06-20 17:00:33 +02:00
Christoph M. Becker
a0f370e78a
Update NEWS
2019-06-20 16:59:39 +02:00
Christoph M. Becker
ecae9100dc
Rename test file to reflect the appropriate ticket number
2019-06-20 16:54:17 +02:00
Nikita Popov
6165c23475
Check for dlsym as well
...
For some reason, when using GCC with address sanitizer, dlopen
is available without -ldl, but dlsym still needs it. Explicitly check
dlsym so we add the library.
2019-06-20 16:23:04 +02:00
Nikita Popov
26ac6cb6be
Handle gethostbyname misalignment on macos
2019-06-20 16:22:40 +02:00
Nikita Popov
27d3373496
SOAP: Avoid indexing into null pointer
2019-06-20 16:22:34 +02:00
Nikita Popov
f127d77eef
FFI: Use signed arithmetic for pointer offset
...
offset can be negative here, using signed arithmetic avoids ubsan
warnings.
2019-06-20 16:22:26 +02:00
Nikita Popov
d4de127dd8
In php_needle_char() use well-defined double->integer cast
...
...by going through zval_get_long(). Generally out of range double
casts are undefined.
2019-06-20 16:22:10 +02:00
Nikita Popov
e8ae19223c
Avoid address calculation overflow
2019-06-20 16:22:04 +02:00
Nikita Popov
e4455c32ed
Bail out earlier in zend_memnrstr
...
To avoid decrementing a null pointer lateron. As we need to check
for NULL here anayway, we should take the chance to bail out right
away.
2019-06-20 16:21:53 +02:00
Nikita Popov
a59e0cfce5
Disable float division by zero sanitizer for div_function
...
We intentionally divide by zero here and want to get IEEE-754
semantics.
2019-06-20 16:21:47 +02:00
Nikita Popov
eaafb69eea
Change indexing scheme for symtable_cache
...
symtable_cache_ptr now points to the first unused symtable_cache
entry, rahter than the last used one. This avoids taking a pointer
to the minus first element of the array, which is UB. Instead we
take a pointer to the end plus one, which is not UB.
2019-06-20 16:21:39 +02:00
Remi Collet
961935fde2
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix test for Windows and for parallel run
2019-06-20 11:59:04 +02:00
Remi Collet
676b564f43
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix test for Windows and for parallel run
2019-06-20 11:58:49 +02:00
Remi Collet
d8202bf917
fix test for Windows and for parallel run
2019-06-20 11:58:32 +02:00
Remi Collet
522cf62906
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
improve test clean section
move NEWS entry
2019-06-20 11:52:25 +02:00
Remi Collet
d7597f73cc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
improve test clean section
2019-06-20 11:51:51 +02:00
Remi Collet
b3cfeda3c7
improve test clean section
2019-06-20 11:51:18 +02:00
Remi Collet
27b5b46cb9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
move NEWS entry
2019-06-20 10:41:21 +02:00
Remi Collet
c2ee2e4c74
move NEWS entry
2019-06-20 10:40:52 +02:00
Nikita Popov
e162a1c02e
Fix maybe uninit warning
2019-06-20 10:35:22 +02:00
Remi Collet
fa70aedf03
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
add test for #78185
2019-06-20 10:28:26 +02:00
Remi Collet
a197dc72c3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add test for #78185
2019-06-20 10:28:00 +02:00
Remi Collet
63f2d88088
add test for #78185
2019-06-20 10:27:33 +02:00
Nikita Popov
4488475a3e
imagecolorallocate(): Check that RGB components are in-range
...
Instead of letting them bleed over into other components.
2019-06-20 10:09:54 +02:00
Nikita Popov
117c7b3f65
Avoid overflow in mul range calculation
...
By using ZEND_SIGNED_MULTIPLY_LONG, which already implemented
efficient overflow checking logic.
2019-06-20 09:57:55 +02:00
Nikita Popov
3a97b8b4f9
Backport "Avoid UB in overflow checks"
...
Cherry-pick of bb940d9969 without
the JIT parts.
2019-06-20 09:51:05 +02:00
Nikita Popov
ccfe6c862a
Avoid memset/memcpy null ub in block pass
...
The arena allocator has no problem with zero-size allocations (and
will just return the same pointer for each in this case), so just
do that to avoid null pointers.
2019-06-20 09:49:07 +02:00
Dmitry Stogov
05c8f1ff2e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #78185 (File cache no longer works)
2019-06-20 09:07:39 +03:00
Dmitry Stogov
35acda856a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #78185 (File cache no longer works)
2019-06-20 09:05:50 +03:00
Dmitry Stogov
cd6a6e4cf2
Fixed bug #78185 (File cache no longer works)
2019-06-20 09:04:14 +03:00
Nikita Popov
8743d5e99a
Avoid signed shift ub in php_sdl
2019-06-19 17:27:09 +02:00
Nikita Popov
608097a901
Fix various instances of memcpy null ub
2019-06-19 17:27:09 +02:00
Nikita Popov
7cbd4f31c4
Remove copy argument from php_glob_stream_get_path/pattern
...
This is unused, and shouldn't be part of the API.
2019-06-19 17:27:09 +02:00
Nikita Popov
9b3b07cd26
Suppress shift UB in gd_itofx()
...
There doesn't seem to be a corresponding upstream fix for this.
2019-06-19 17:27:09 +02:00
Andrey Hristov
10afeead62
Merge branch 'PHP-7.4' of https://git.php.net/push/php-src into PHP-7.4
2019-06-19 18:17:35 +03:00
Nikita Popov
268b5fec8e
Fixed bug #78182
2019-06-19 16:35:12 +02:00
Nikita Popov
b8cba88904
Suppress overflow UB in zend_strtod
2019-06-19 15:57:57 +02:00
Nikita Popov
555d68be10
Fix shift UB in hash_snefru
2019-06-19 15:55:56 +02:00
Nikita Popov
88b603768f
imageloadfont: Perform overflow check before calculation
...
Instead of afterwards...
2019-06-19 15:50:52 +02:00
Andrey Hristov
65915d44cb
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-19 16:43:15 +03:00
Andrey Hristov
7ba1e6b34d
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-19 16:43:06 +03:00
Andrey Hristov
82021ad9df
Fix version comparison
2019-06-19 16:42:43 +03:00
Nikita Popov
2a9fc31021
Fix buffer underflow in gd_gif_in.c
...
This has been fixed upstream in
https://github.com/libgd/libgd/commit/939d49a3a9d1cbcd2a37cea9eac9f9e5e9f9de78 .
2019-06-19 15:41:45 +02:00
Nikita Popov
c10cb47b5f
Fix uninitialized variable
...
I mistakenly moved len1 initialization into the conditional as well.
2019-06-19 15:34:51 +02:00
Nikita Popov
ea97fc9c1f
Fix shift UB in gd_io.c
...
This has already been fixed upstream in
https://github.com/libgd/libgd/commit/24d352576c024769d18113a28f3be03d54fa1e66
and
https://github.com/libgd/libgd/commit/772d0107a6b00a0d6d7191383fe984f8c018b48c .
2019-06-19 15:09:00 +02:00
Nikita Popov
1c018af682
Fix shift UB in php_ifd_get32s
2019-06-19 15:09:00 +02:00
Nikita Popov
b1196e2128
Phar: Avoid negative zip dates
...
The zip date/time encoding format is incredibly stupid.
2019-06-19 15:09:00 +02:00
Nikita Popov
7bf6326259
Fix memcpy null UB in phar
2019-06-19 15:09:00 +02:00
Nikita Popov
ae2bc6297e
Fix shift UB in mbfilter_utf32.c
2019-06-19 15:09:00 +02:00
Nikita Popov
f65046b951
Fix shift UB in sint4korr()
2019-06-19 15:09:00 +02:00
Nikita Popov
22765160da
Fix incorrect shift in mysqlnd_wireprotocol
...
This one looks like a genuine bug: We're shifting a uint16_t by
16 bits. On x86 that likely results in no shift happening.
2019-06-19 15:09:00 +02:00
Nikita Popov
4ae87f4bf9
Fix overflow UB in range()
2019-06-19 15:09:00 +02:00
Nikita Popov
f26e77b05f
Avoid memcpy UB in streams
2019-06-19 15:09:00 +02:00
Nikita Popov
8740533ddf
Avoid more UB in round()
2019-06-19 15:09:00 +02:00
Nikita Popov
4b5e824aae
Use unsigned char in _crypt_extended_r
...
Avoid signed shift UB.
2019-06-19 15:09:00 +02:00
Nikita Popov
bee7973e52
Use unsigned chars in php_uuencode()
...
Avoid shift UB on signed integers.
2019-06-19 15:09:00 +02:00
Nikita Popov
0c0659dc50
Fix _php_math_round UB
...
php_intlog10abs() is ill-defined for a zero value. Avoid calling it
altogether as there's nothing to round with a zero value.
2019-06-19 15:09:00 +02:00
Nikita Popov
317dfab81b
Fix memcpy null arg UB
2019-06-19 15:09:00 +02:00
Nikita Popov
ed2a242317
Fix signed shift UB
2019-06-19 15:09:00 +02:00
Nikita Popov
82a34e71c5
Avoid overflow UB in is_numeric_string
...
We intentionally overflow the signed space here, so make this an
unsigned variable and only cast to signed at the end.
2019-06-19 15:09:00 +02:00
Nikita Popov
3d4298697b
Fix shift UB in constants
...
We were shifting out the top bit of a signed integer.
2019-06-19 15:09:00 +02:00
Joe Watkins
11f30d67ea
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix setcookie Max-Age to use php_time
2019-06-19 12:43:17 +02:00
Joe Watkins
a5db319463
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix setcookie Max-Age to use php_time
2019-06-19 12:42:25 +02:00
Joe Watkins
31a1c1e67c
fix setcookie Max-Age to use php_time
2019-06-19 12:42:00 +02:00
Joe Watkins
5f9ee161ec
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
export php_time
2019-06-19 12:40:54 +02:00
Joe Watkins
264536877d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
export php_time
2019-06-19 12:40:23 +02:00
Joe Watkins
599b94ff14
export php_time
2019-06-19 12:39:51 +02:00
Joe Watkins
eda5d8afcf
refactor a little more to add some more useful error messages and raise the limits on waiting for slow machines
2019-06-19 11:41:24 +02:00
Joe Watkins
d6480fa231
Separate check for process creation and ability to accept connections
2019-06-19 11:09:26 +02:00
Christoph M. Becker
571c6bc3f3
Document removal of uint and ulong typedefs
2019-06-19 09:45:15 +02:00
Joe Watkins
fb95043acf
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Resolve discrepencies between second value yielded by gettimeofday and time, fixes #69044
2019-06-19 09:01:20 +02:00
Joe Watkins
025899e3b5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Resolve discrepencies between second value yielded by gettimeofday and time, fixes #69044
2019-06-19 08:59:04 +02:00
Joe Watkins
65067dff01
Resolve discrepencies between second value yielded by gettimeofday and time, fixes #69044
2019-06-19 08:56:20 +02:00
Christoph M. Becker
5a1ffefbc1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78173 : XML-RPC mutates immutable objects during encoding
2019-06-18 17:09:49 +02:00
Christoph M. Becker
96663fd6ae
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78173 : XML-RPC mutates immutable objects during encoding
2019-06-18 17:08:58 +02:00
Asher Baker
d54220bc79
Fix #78173 : XML-RPC mutates immutable objects during encoding
...
With opcache.protect_memory=1 enabled, the XML-RPC extension causes a
segfault on PHP 7.2 as it is modifying the recursion counter of objects
it touches, without first checking if they are immutable or not.
This doesn't affect 7.3+
2019-06-18 17:08:11 +02:00
Dmitry Stogov
148eb20226
Fixed bug #78175 (Preloading segfaults at preload time and at runtime)
2019-06-18 17:18:49 +03:00
Christoph M. Becker
04a6aac59b
Turn system_id into a true global
...
The system_id is identical for all threads and can be computed during
module startup, so there is no need to calculate and store it for each
thread.
2019-06-18 10:27:35 +02:00
Christoph M. Becker
c2c33aaaaa
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
2019-06-18 09:34:24 +02:00
Christoph M. Becker
740d9ecdee
Update NEWS
2019-06-18 09:33:35 +02:00
Joe Watkins
68785c00ef
fix flaky socket test
2019-06-18 08:30:46 +02:00
Remi Collet
a31f362b75
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
move NEWS entry
2019-06-18 07:51:17 +02:00
Remi Collet
efa1388cd3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
move NEWS entry
2019-06-18 07:51:05 +02:00
Remi Collet
e59b986fa7
move NEWS entry
2019-06-18 07:50:44 +02:00
BohwaZ
ce22ccc77b
Implement SQLite3 backup API
2019-06-17 23:34:51 +02:00
Nikita Popov
d924b426c9
Fix file clash in fgetcsv test
2019-06-17 17:25:43 +02:00
Christoph M. Becker
e58e2fd0d4
Improve create_verify_dir() diagnostics
...
If create_verify_dir() fails[1], we need more info why that happened.
[1] <https://ci.appveyor.com/project/cmb69/php-src/builds/25324138/job/dm1n12gqhdqa3ln5#L5753 >
2019-06-17 16:49:52 +02:00
Nikita Popov
4e9a65447f
Fix file conflicts in SplFileObject fputcsv tests
2019-06-17 15:08:52 +02:00
Dmitry Stogov
938d2359ae
Remove XFAIL mark
2019-06-17 14:56:28 +03:00
Dmitry Stogov
eda916cc98
Avoid uninitilized field access
2019-06-17 14:53:44 +03:00
Dmitry Stogov
1e0b0467b6
Fixed memory leaks in ext/ffi/tests/100.phpt on Mac OSX
2019-06-17 14:40:19 +03:00
Nikita Popov
ad1b62fca7
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-17 13:31:04 +02:00
Nikita Popov
11b354dd54
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-17 13:30:56 +02:00
Nikita Popov
03db04c3ab
Accept null for preg_quote delimiter argument
...
Related to bug #78163 .
2019-06-17 13:30:15 +02:00
Freddie Leeman
482784284a
Simplify pm.start_servers calculation in docs
...
This makes it more obvious that this is just the average.
2019-06-17 13:24:22 +02:00
Nikita Popov
1b63528d38
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-17 13:14:18 +02:00
Erik Lundin
9f0515c40c
Add syslog.filter=raw
...
This passes through syslog message unchanged, without splitting
messages at newlines.
2019-06-17 13:13:25 +02:00
Nikita Popov
d584f92195
Add debug output to posix_getlogin() test
2019-06-17 13:05:59 +02:00
Nikita Popov
6381b1ee82
Make ext/curl/tests/bug48203_multi.phpt more robust
...
We don't have a guarantee in which order the output here will
occur. And it's not really relevant for the test anyway, so use a
wildcard.
2019-06-17 12:43:45 +02:00
George Peter Banyard
b2d6d29632
Remove unnecessary short_open_tags use in tokenizer test
2019-06-17 12:43:00 +02:00
Nikita Popov
36d94f73bb
Enable intl on macos
2019-06-17 11:52:26 +02:00
Joe Watkins
116d42d990
bugs in fpm logging #4273 #4007
2019-06-17 07:48:37 +02:00
Nikita Popov
4befe320e3
Use uint64_t for time_sleep_until calculations
2019-06-16 19:20:08 +02:00
Christoph M. Becker
11c3215251
Prevent parallel test conflict
...
Cf. <https://travis-ci.org/php/php-src/jobs/546112543#L2865-L2866 >.
2019-06-16 11:48:48 +02:00
Joe Watkins
2283884475
this mtime comparison makes assumptions that cannot always hold true
2019-06-16 08:29:04 +02:00
Joe Watkins
7e1972796b
gettimeofday cannot be used to reliably implement high precision process synchronization
...
The use of gettimeofday in time_sleep_until is technically incorrect, it's not possible
to use gettimeofday in this way reliably on any platform: It relies on operating system
global structures, which may be modified by any other process on the system at any time.
While in practice, users may be ignoring this flaw, it entirely depends on the other software
running on the system to which the application is deployed, there is no possible way to write
a test that will always pass on any system, therefore it must be marked XFAIL.
2019-06-16 07:02:28 +02:00
Anatol Belski
5a83bfb37d
Set correct default version
2019-06-15 17:39:13 +02:00
Joe Watkins
91f0ef04af
PHP-7.4 branch should not run JIT tests, ever [ci skip]
2019-06-15 10:07:01 +02:00
Joe Watkins
3852a35fdb
This test is flaky, and some of it doesn't make sense.
...
I've refactored based on the original bug report, related bugs, and commits
to php-src that were related to them.
It is supposed to be testing windows specific behaviour related to non-blocking pipes,
nevertheless the test runs everywhere.
2019-06-15 09:57:51 +02:00
George Peter Banyard
cfdca10910
Remove dead code in sockets extension [ci skip]
2019-06-15 08:39:35 +02:00
Joe Watkins
afdf7ed5ba
fix flaky socket tests
2019-06-15 08:08:08 +02:00
Nikita Popov
7410155dab
Remove file/005_variation.phpt
...
As this test doesn't check differences in times before and after
operations, it doesn't actually verify anything and just wastes
30 seconds of test time.
As we already have other tests that do check how stat times change,
I'm removing it entirely.
2019-06-14 17:06:47 +02:00
Nikita Popov
8a5ce6f16f
Make curl_multi_info_read.phpt more robust
...
I don't think there's any need to make remote connections here
(and bugs.php.net is down right now...) so just use local files
instead.
2019-06-14 16:55:51 +02:00
George Peter Banyard
6bd66f77fc
Remove useless param in php_snmp_error()
...
It is always NULL.
2019-06-14 16:15:38 +02:00
Rosen Penev
32e6d08dcd
Fix compilation without deprecated OpenSSL 1.1 APIs
2019-06-14 15:38:12 +02:00
Joe Watkins
8f4e24eeef
disable this test temporarily
2019-06-14 14:22:25 +02:00
twosee
42cc58ff7b
Turn add_index_zval and add_next_index_zval into inline function
...
Avoids expression warnings and allows explicitly namespaced use in
C++.
Closes GH-4250.
2019-06-14 13:10:27 +02:00
Joe Watkins
dd10bf5450
Merge branch 'mac-tests' into PHP-7.4
...
* mac-tests:
fix mac tests on azure
2019-06-14 12:56:08 +02:00
Joe Watkins
f16b012116
fix mac tests on azure
2019-06-14 12:55:00 +02:00
Nikita Popov
e6aec81470
Fix SNMP build warnings
2019-06-14 12:45:46 +02:00
Dmitry Stogov
6e397e9887
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Backport 96a12578c1
2019-06-14 13:29:40 +03:00
Dmitry Stogov
96a6f7f7f5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Backport 96a12578c1
2019-06-14 13:29:30 +03:00
Dmitry Stogov
28808ca96d
Backport 96a12578c1
2019-06-14 13:29:13 +03:00
Dmitry Stogov
cfa3866578
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Backport 91a6cdbff5
2019-06-14 13:26:04 +03:00
Dmitry Stogov
a5b39abd86
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Backport 91a6cdbff5
2019-06-14 13:25:06 +03:00
Dmitry Stogov
40f463b560
Backport 91a6cdbff5
2019-06-14 13:24:47 +03:00
Dmitry Stogov
96a12578c1
More edge case fixes that may cause bug #78106
2019-06-14 13:10:02 +03:00
Dmitry Stogov
91a6cdbff5
Attempt to fix edge conditions that may cause bug #78106
2019-06-14 12:47:22 +03:00
Theodore Brown
f74109d9a4
Implement numeric literal separators
...
RFC: https://wiki.php.net/rfc/numeric_literal_separator
2019-06-14 11:37:04 +02:00
Nikita Popov
ec77cca5f3
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-14 11:13:43 +02:00
Nikita Popov
98457b6d60
Fix some leaks in ldap
...
The result of zval_get_string() needs to be released. In some places
where it is inconvenient to manage, I went back to convert_to_string.
It is safe in those places due to existing array separations.
Also fix a preexisting leak when getting controls, the previous
value was not destroyed.
2019-06-14 11:11:24 +02:00
Nikita Popov
646b64b119
Fix skipif syntax errors
...
Apparently I did this only on masster...
2019-06-14 09:29:14 +02:00
Joe Watkins
8b6b4870e7
disable phpdbg on i386 builds [ci skip]
2019-06-14 08:30:20 +02:00
Côme Chilliet
9684d5f282
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Some more string conversion handling, fixing bug #77958
Avoid converting zval when not needed
2019-06-13 22:15:13 +02:00
Côme Chilliet
5d2fe48785
Some more string conversion handling, fixing bug #77958
2019-06-13 22:12:34 +02:00
Côme Chilliet
c219d8d5c2
Avoid converting zval when not needed
...
Also added exception checks so that exception from __toString are
correctly handled in the future
2019-06-13 20:58:45 +02:00
Nikita Popov
19e2101dfa
Revert "ext/standard: Use PKG_CHECK_MODULES to detect the Argon2 library"
...
This reverts commit bdcef51bcb .
It seems that pkg-config support for libargon2 is still flaky:
* No pc file on Alpine.
* Custom builds of released libargon2 versions create a broken
pc file. This is fixed in master, but not released.
Go back to the old detection code for now.
2019-06-13 16:53:05 +02:00
Nikita Popov
ce2b36bc48
Condition some azure jobs on schedule trigger
2019-06-13 14:20:47 +02:00
Christoph M. Becker
3c5bb06536
Add BMP support to PHP info
2019-06-13 13:07:01 +02:00
Nikita Popov
e5be58f57c
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-13 12:54:10 +02:00
Nikita Popov
bada2049ca
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-13 12:52:32 +02:00
Nikita Popov
f1a8138055
Fixed bug #78106
...
When disabling opcache during the request via opcache.enable ini
setting, make sure we also disable ZCG(accelerator_enabled).
2019-06-13 12:51:35 +02:00
Nikita Popov
da275e6214
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-13 12:41:01 +02:00
Nikita Popov
ee137a7033
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-13 12:38:57 +02:00
Nikita Popov
f8a68fd935
Add test for bug #78106
...
Also add PHP_TEST_EXTRA_ARGS environment variable, which allows
to pass on -c, -d etc flags provided by run-tests.php. Otherwise
we won't get the built-in server to run with opcache.
2019-06-13 12:35:29 +02:00
Nikita Popov
cac6b04113
Fixed bug #78154
2019-06-13 10:59:01 +02:00
Nikita Popov
b64107531b
Fixed bug #78151
2019-06-13 09:37:30 +02:00
Nikita Popov
4603ce731b
Don't throw warning if testing multiple ports
2019-06-13 09:34:23 +02:00
Joe Watkins
b2b0e52466
test for bug #78151
2019-06-12 22:39:00 +02:00
Joe Watkins
175c7bf6fe
Revert "micro-optimization"
...
This reverts commit 374f769982 .
2019-06-12 20:04:47 +02:00
Nikita Popov
da56e77357
Enable -Werror on macos builds
2019-06-12 16:14:23 +02:00
Nikita Popov
7b8299893e
Fix ext/exif/tests/bug76557.phpt for 32-bit builds
...
The error message is different there.
2019-06-12 15:40:18 +02:00
Nikita Popov
bc8fece0cf
Don't warn if libcurl SSL library not detected
...
libcurl may link against 7 different ssl libraries, all of which
are thread-safe -- apart from openssl, of course. We check for
openssl and register locking callbacks in that case, but we should
not warn if any other library is used.
2019-06-12 15:26:50 +02:00
Joe Watkins
e1f65e2d97
Merge branch 'PHP-7.4' of git://github.com/php/php-src into PHP-7.4
2019-06-12 15:10:49 +02:00
Joe Watkins
3b6d36435f
we are not running database tests on macos, there is no need to install mysql or start pg
2019-06-12 15:09:41 +02:00
Joe Watkins
a7f8a2b731
we are not running database tests on macos, there is no need to install mysql or start pg
2019-06-12 15:09:28 +02:00
Nikita Popov
6fcb469991
Fix unsigned char mismatch
2019-06-12 14:58:06 +02:00
Nikita Popov
8f63e7e324
Make ATTRIBUTE_UNUSED more portable
2019-06-12 14:29:23 +02:00
Nikita Popov
cc89d26096
Fix ifdef position
...
Hopefully fixes the release build...
2019-06-12 13:50:30 +02:00
Nikita Popov
cdefeb715b
Use memset instead of brace initialization
...
Apparently {{0}} is not enough ... let's not rely on structure
layout specifics here.
2019-06-12 13:50:23 +02:00
Derick Rethans
945e5d35d7
Update NEWS for 7.4.0alpha2
2019-06-12 12:24:35 +01:00
Derick Rethans
ec57ba5edd
Update CREDITS for PHP 7.4.0alpha1
2019-06-12 12:24:35 +01:00
Derick Rethans
53bfa33ef5
Update NEWS for PHP 7.4.0alpha1
2019-06-12 12:24:35 +01:00
Nikita Popov
65ff4dddba
Remove always true condition
2019-06-12 13:17:25 +02:00
Nikita Popov
080e2316cf
Mark some operand fetching funs as ATTRIBUTE_UNUSED
...
Whether these are used depends on VM specialization.
2019-06-12 13:17:25 +02:00
Nikita Popov
16f79129c7
Fix unused variables in fpm_env.c
2019-06-12 13:17:25 +02:00
Nikita Popov
93c728b77c
Try to control ZEND_MM_ALIGNED_SIZE type
2019-06-12 13:17:25 +02:00
Nikita Popov
be36d92294
Fix unused value warnings in snprintf.c
2019-06-12 13:17:25 +02:00
Nikita Popov
52d80ccd24
Remove MYSQLND_LLU_SPEC/MYSQLND_LL_SPEC
...
No longer used, replaced by PRIu64/PRIi64.
2019-06-12 13:17:25 +02:00
Nikita Popov
e1e275eefd
Fix mysqlnd printf modifiers
...
By moving the the standard macros...
2019-06-12 13:17:25 +02:00
Nikita Popov
4d65d53805
Enable -Werror on m32 build
...
This one is clean now.
2019-06-12 13:17:25 +02:00
Nikita Popov
3e4b9659d3
Fix warnings in mysqlnd_alloc.c
...
And also separate the PHP_DEBUG codepaths more, to avoids having an
ifdef every other line...
2019-06-12 13:17:25 +02:00
Nikita Popov
9fa552f393
Fix incorrect enum value uses in xmlrpc
2019-06-12 13:17:25 +02:00
Nikita Popov
fdfb390f07
Remove unused php_mbX_int_to_char() functions
2019-06-12 13:17:25 +02:00
Nikita Popov
5be772a19c
Fix incorrect printf modifiers
2019-06-12 13:17:25 +02:00
Nikita Popov
2134cc25d2
Guard functions by SO_PASSCRED
2019-06-12 13:17:25 +02:00
Christoph M. Becker
37d0c7b0e4
Simplify GD null byte injection tests
...
These tests actually check that no file with a name containing a NUL is
created by the GD image output functions. This is superfluous, since
it is sufficient to check that the function failed, and that an
appropriate warning has been raised.
We also add missing nullbyte injection tests.
2019-06-12 12:04:01 +02:00
Nikita Popov
2f1d822d78
Preserve CFLAGS/LDFLAGS for curl ssl check
...
We need to add the curl-specific flags, but we also need to preserve
the general flags, to keep around important stuff like -m32.
2019-06-12 11:54:13 +02:00
Nikita Popov
365a905e00
Suppress int to char conversion warnings
2019-06-12 11:54:13 +02:00
Nikita Popov
d2921af348
Use labs() on long integer
2019-06-12 11:54:13 +02:00
Nikita Popov
1d8c323b64
Don't use sqlite3_aggregate_count()
...
This function has been deprecated, with the recommendation that
the count should be explicitly tracked in the aggregate context,
if it is needed.
2019-06-12 11:54:12 +02:00
Nikita Popov
26a1b2e28e
Fix type mismatch in two get_col callbacks
2019-06-12 11:54:12 +02:00
Nikita Popov
f601eb15e6
Fix -Wmissing-braces warnings
...
Unfortunate that = {} is a GNU extension.
2019-06-12 11:54:12 +02:00
Derick Rethans
06ddc025ac
Update credits pre-release
2019-06-12 08:58:11 +01:00
Joe Watkins
e2eb1ee1e3
fix flaky zip tests, order is OS dependent
2019-06-12 09:47:47 +02:00
Remi Collet
66bd7875f8
add comment about pg_config/pkgconfig
2019-06-12 09:39:11 +02:00
Nikita Popov
b654a07492
Revert option rename
...
Let's keep this at --with-password-argon2 to avoid churn, I don't
think we have a strong motivation to rename this one.
2019-06-12 09:28:25 +02:00
Nikita Popov
852ab5d83f
Use %define api.pure instead of %pure-parser
...
%pure-parser is deprecated. In our case there is no difference between
true & full, as we don't use locations.
2019-06-12 09:26:34 +02:00
Joe Watkins
c54a247cb0
fix flaky sockets test - form of response is OS dependent
2019-06-12 08:47:35 +02:00
Joe Watkins
abe38b5e48
fix flaky test on OSX
2019-06-12 08:33:07 +02:00
Joe Watkins
eac238fb6c
Revert "ext/pgsql: Use PKG_CHECK_MODULES to detect the pq library"
...
This reverts commit 1e265174ed .
2019-06-12 08:00:55 +02:00
Joe Watkins
2dfa495311
fix flaky gd tests
2019-06-12 07:52:28 +02:00
Joe Watkins
8ab3e7bc0c
disable phpdbg on macosx, it's not well tested there and is skewing results [ci skip]
2019-06-12 06:58:53 +02:00
Hugh McMaster
bdcef51bcb
ext/standard: Use PKG_CHECK_MODULES to detect the Argon2 library
2019-06-12 06:54:54 +02:00
Hugh McMaster
9d61036651
ext/ldap: Use PKG_CHECK_MODULES to detect the libsasl2 library
2019-06-11 17:11:53 +02:00
Nikita Popov
fa5513aefe
Remove unused gmp_unary_ui_op() function
2019-06-11 17:01:29 +02:00
Nikita Popov
e5411e17c7
Remove unused _setEdgePixel() and getPixelOverflowColorTC() functions
2019-06-11 16:59:12 +02:00
Nikita Popov
5c844c1d36
Fix fabs warning in gd_interpolation.c
...
Matches upstream code.
2019-06-11 16:57:24 +02:00
Nikita Popov
2290102172
Remove safeboolean use in gd_jpeg.c
...
This is a backport of
https://github.com/libgd/libgd/blob/e5502c7a3f1fe60536ec060f0211d97066c006ea/src/gd_jpeg.c .
2019-06-11 16:54:45 +02:00
Nikita Popov
0849a621fd
Fix abs(long) warnings in gd.c
...
I'm fixing this using (int) casts instead of labs() because this is
what upstream GD does.
2019-06-11 16:50:25 +02:00
Nikita Popov
fc65da5c59
Fix 32-bit warnings in timelib
...
This has already been fixed upstream in
https://github.com/derickr/timelib/commit/4df262e7585b2ad2c6b01a23190974f9aea298ed
so I'm backporting this change.
2019-06-11 16:14:10 +02:00
George Peter Banyard
7f5f277cf2
Remove unnecessary short_open_tag INI directive in tests
...
Closes GH-4249.
2019-06-11 16:14:10 +02:00
Nikita Popov
e5aba0f518
Build with ldap and ldap sasl on azure
...
We don't set up an ldap server, so this is mainly about testing
that the build works.
2019-06-11 15:48:40 +02:00
Nikita Popov
8d3a2a4a12
Remove ext/ldap/tests/bug76248.phpt
...
I wasn't able to make this test work reliably in CI, and the thing
it's testing does not seem worth spending more time on it.
2019-06-11 15:47:01 +02:00
Nikita Popov
83e0bfb50c
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-11 15:41:05 +02:00
Tyson Andre
5d3e3a62a2
Be more precise about possible types for mysqli methods
...
mysqli has an uncommon approach to 64-bit compatibility:
it will convert numbers that can't be represented on 32-bit
platforms to a string.
This is documented at
https://www.php.net/manual/en/mysqli-stmt.affected-rows.php#refsect1-mysqli-stmt.affected-rows-returnvalues
So if there's a query to a remote mysqli server that affects
more than 2.2 billion rows, then the opcache inference might be
incorrect.
(It's possible to add a MAY_BE_STRING_ON_32_BIT_PLATFORM bitflag macro to
account for this, but I don't think there's a need or want to?)
Patches 3162285b86
This is based on the list of php 7.4 functions using
MYSQLI_RETURN_LONG_INT in mysqli_api.c
2019-06-11 15:40:33 +02:00
Tyson Andre
07c63c6fdf
Fix opcache signatures for mysqli_stat
...
See mysqli_api.c and https://www.php.net/manual/en/mysqli.stat.php
2019-06-11 15:39:59 +02:00
Tyson Andre
7350e808c5
Fix bug in opcache flags for mysqli_get_charset
...
https://www.php.net/manual/en/mysqli.get-charset.php
tests/mysqli_field_seek.phpt has a test of this returning an object.
Looking at the source in ext/mysqli/mysqli_nonapi.c,
this should be object|null, not array|null
This might actually cause bugs in opcache's inferences,
(no proof of this)
so it might make sense to pull this patch into an earlier minor version.
2019-06-11 15:39:59 +02:00
Joe Watkins
0cfa2e51d4
Merge branch 'PHP-7.4' of git://github.com/php/php-src into PHP-7.4
2019-06-11 15:16:16 +02:00
Joe Watkins
69190ce5c0
This reverts 0e5d4ea555 to fix the build on MacOSX
...
On Mac thread_local and __thread are not ABI compatible, in addition, thread_local
comes with additional overhead, __thread seems to be the most suitable linkage to use
regardless of c++/c
2019-06-11 15:13:27 +02:00
Christoph M. Becker
fc9d452a17
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Next is 7.3.8
2019-06-11 13:32:14 +02:00
Christoph M. Becker
bcf20963c1
Next is 7.3.8
2019-06-11 13:31:30 +02:00
Nikita Popov
8f8fcbbd39
Support full variance if autoloading is used
...
Keep track of delayed variance obligations and check them after
linking a class is otherwise finished. Obligations may either be
unresolved method compatibility (because the necessecary classes
aren't available yet) or open parent/interface dependencies. The
latter occur because we allow the use of not fully linked classes
as parents/interfaces now.
An important aspect of the implementation is we do not require
classes involved in variance checks to be fully linked in order for
the class to be fully linked. Because the involved types do have to
exist in the class table (as partially linked classes) and we do
check these for correct variance, we have the guarantee that either
those classes will successfully link lateron or generate an error,
but there is no way to actually use them until that point and as
such no possibility of violating the variance contract. This is
important because it ensures that a class declaration always either
errors or will produce an immediately usable class afterwards --
there are no cases where the finalization of the class declaration
has to be delayed until a later time, as earlier variants of this
patch did.
Because variance checks deal with classes in various stages of
linking, we need to use a special instanceof implementation that
supports this, and also introduce finer-grained flags that tell us
which parts have been linked already and which haven't.
Class autoloading for variance checks is delayed into a separate
stage after the class is otherwise linked and before delayed
variance obligations are processed. This separation is needed to
handle cases like A extends B extends C, where B is the autoload
root, but C is required to check variance. This could end up
loading C while the class structure of B is in an inconsistent
state.
2019-06-11 13:09:33 +02:00
Nikita Popov
89b2d88659
Register class before fetching parent
...
We want the class declaration to be available while compiling the
parent class.
2019-06-11 13:09:33 +02:00
Joe Watkins
9ecc0a4f29
use XFAILIF rather than XFAIL to avoid warnings [ci skip]
2019-06-11 12:55:28 +02:00
Nikita Popov
51fb8dc422
Add specialized pair construction API
...
Closes GH-3990.
2019-06-11 12:29:55 +02:00
Remi Collet
feb92adc5c
next is 7.2.21
2019-06-11 12:20:26 +02:00
Remi Collet
67ecc8a326
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
next is 7.2.21
2019-06-11 12:19:39 +02:00
Remi Collet
3080fc3971
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
next is 7.2.21
2019-06-11 12:19:17 +02:00
Remi Collet
05c60abfdb
next is 7.2.21
2019-06-11 12:18:43 +02:00
Joe Watkins
a36e381e57
drop docker until tested locally
2019-06-11 11:09:06 +02:00
Joe Watkins
e52f63bea3
Merge branch 'PHP-7.4' of git://github.com/php/php-src into PHP-7.4
2019-06-11 10:45:41 +02:00
Joe Watkins
3ef151127f
checkout depth of one doesn't always work with batched builds, it seems
2019-06-11 10:42:25 +02:00
Nikita Popov
eecd8961d9
Add get_mangled_object_vars() function
2019-06-11 10:28:29 +02:00
Joe Watkins
3ff489d8e8
Merge branch 'i386-azure' into PHP-7.4
...
* i386-azure:
i386 build
2019-06-11 10:24:51 +02:00
Joe Watkins
c2a78c7cac
i386 build
2019-06-11 10:23:37 +02:00
Tyson Andre
5c8b702e77
Fix typo in opcache function flag info (mage->image)
...
ext/gd/gd.c seems to return null for wrong parameter count, false for
error, and long otherwise. See https://php.net/imagecolorallocate
In php 8.0, the MAY_BE_NULL can probably be removed.
2019-06-11 09:08:23 +02:00
Tyson Andre
b921564a35
Clean up opcache func flags for set_socket_blocking
...
It was removed in php 7.0. See https://php.net/set_socket_blocking
2019-06-11 09:05:57 +02:00
Tyson Andre
98b487e244
Fix a typo in opcache func info for "get_parrent_class"
...
This should only have one r.
http://php.net/get_parent_class mentions that it returns string|false
Also, I'm not 100% sure if this is right - should this include
MAY_BE_NULL to handle the case of too many parameters?
(then again, get_called_class() also returns null in the global scope)
```
php > var_export(get_parent_class(2,3));
Warning: get_parent_class() expects at most 1 parameter, 2 given in php
shell code on line 1
NULL
```
2019-06-11 08:59:12 +02:00
Hugh McMaster
1e265174ed
ext/pgsql: Use PKG_CHECK_MODULES to detect the pq library
2019-06-11 08:53:49 +02:00
Christoph M. Becker
27e592d3ce
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77937 : preg_match failed
2019-06-11 08:44:54 +02:00
Christoph M. Becker
b215d1339f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77937 : preg_match failed
2019-06-11 08:44:07 +02:00
Christoph M. Becker
f3ff72e54b
Fix #77937 : preg_match failed
...
On some recent Windows systems, ext\pcre\tests\locales.phpt fails,
because 'pt_PT' is accepted by `setlocale()`, but not properly
supported by the ctype functions, which are used internally by PCRE2 to
build the localized character tables.
Since there appears to be no way to properly check whether a given
locale is fully supported, but we want to minimize BC impact, we filter
out typical Unix locale names, except for a few cases which have
already been properly supported on Windows. This way code like
setlocale(LC_ALL, 'de_DE.UTF-8', 'de_DE', 'German_Germany.1252');
should work like on older Windows systems.
It should be noted that the locale names causing trouble are not (yet)
documented as valid names anyway, see
<https://docs.microsoft.com/en-us/cpp/c-runtime-library/locale-names-languages-and-country-region-strings?view=vs-2019 >.
2019-06-11 08:42:32 +02:00
Dmitry Stogov
374f769982
micro-optimization
2019-06-10 16:43:20 +03:00
Joe Watkins
1e5004060e
watchpoints have flaws in implementation
2019-06-10 14:23:37 +02:00
Joe Watkins
42d60addef
BIND_LEXICAL has a meaningless line number
2019-06-10 14:19:39 +02:00
Dmitry Stogov
46df9a858c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed possible misalignment in 32-bit build.
2019-06-10 12:53:04 +03:00
Dmitry Stogov
a0749fe483
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed possible misalignment in 32-bit build.
2019-06-10 12:52:50 +03:00
Dmitry Stogov
199eb2b110
Fixed possible misalignment in 32-bit build.
2019-06-10 12:51:59 +03:00
Joe Watkins
52ca8ca7d5
fix flaky ipv4 loopback test
2019-06-10 10:35:31 +02:00
Peter Kokot
05a434c9c7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Extend wildcard files section in EditorConfig [ci skip]
2019-06-09 22:55:21 +02:00
Peter Kokot
53b0f4ba4e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Extend wildcard files section in EditorConfig [ci skip]
2019-06-09 22:54:59 +02:00
Peter Kokot
65ada39360
Extend wildcard files section in EditorConfig [ci skip]
...
Changes:
- Trim trailing whitespace for all files except patches. There isn't
really any practical reason to not trim the trailing whitespace in all
other files. Binary files or phpt files that include trailing
whitespace as part of the test should be manually set in editors/IDEs
or by disabling the editorconfig for particular editing.
- Add *.ac, *.d, *.l, *.skl, *.re, *.wsdl, *.dtd, *.html, *.rng, *.xml,
*.xsd, *.xsl, buildconf, and Makefile* files settings.
Closes #4156
2019-06-09 22:53:58 +02:00
Peter Kokot
2dd6ec07d1
Simplify LiteSpeed SAPI module version
...
This patch syncs versioning of the LiteSpeed SAPI module by making it in
sync with the rest of the bundled PHP extensions and SAPIs.
Closes #4145
2019-06-09 22:32:47 +02:00
Peter Kokot
5b36c9fef6
Use PHP_VERSION for zend modules
...
Closes #4147
2019-06-09 22:32:47 +02:00
Jan Altensen
0741494f30
azure macos
...
Change-Id: I3465dcc865c254cea02feb619f6706fa0d164757
2019-06-09 22:21:46 +02:00
Joe Watkins
d116343818
azure image update [not skipping on purpose to test new configuration]
2019-06-09 13:39:35 +02:00
Joe Watkins
006b191126
Fix #78132 wrong line number on ZEND_BIND_STATIC for lexical vars
2019-06-08 21:47:07 +02:00
Dmitry Stogov
f76d83ab15
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Restored NEWS entry
2019-06-07 12:39:24 +03:00
Dmitry Stogov
15e01132cf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Restored NEWS entry
2019-06-07 12:38:37 +03:00
Dmitry Stogov
10b208f28d
Restored NEWS entry
2019-06-07 12:37:49 +03:00
Nikita Popov
d831f10724
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-07 10:57:51 +02:00
Nikita Popov
9569a0b8ca
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-07 10:57:43 +02:00
Nikita Popov
d7c7522be9
Enable STRICT_TRANS_TABLES in new test
...
The part testing error cases relies on this.
2019-06-07 10:57:09 +02:00
Dmitry Stogov
8fbfd8872a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)
2019-06-07 11:50:19 +03:00
Dmitry Stogov
972223c342
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)
2019-06-07 11:48:57 +03:00
Dmitry Stogov
83cdb89f8a
Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)
2019-06-07 11:36:39 +03:00
Nikita Popov
c72bc4475e
Use batch mode on Azure
2019-06-07 09:53:35 +02:00
Nikita Popov
1c4e93e8bd
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-07 09:49:09 +02:00
Nikita Popov
a5f98139c9
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-07 09:49:01 +02:00
Cameron Porter
7d1aa7534d
Fixed bug #38546
...
Properly support binding boolean parameters with emulated prepared
statements disabled. Also add the necessary mysqlnd support for
MYSQL_TYPE_TINY.
2019-06-07 09:48:43 +02:00
Hugh McMaster
d4c275d8ac
ext/xsl: Use PKG_CHECK_MODULES to detect the EXSLT library
2019-06-07 09:35:14 +02:00
Hugh McMaster
ab66179227
ext/xsl: Use PKG_CHECK_MODULES to detect the XSLT library
2019-06-07 09:35:12 +02:00
Peter Kokot
30a34eab81
[ci skip] Catch up with 642b8d00e0
2019-06-07 01:24:02 +02:00
Christoph M. Becker
3b05bdedcd
Use zero port in socket_(export|import)_stream-4-win.phpt
...
These regularly fail due to port clashes, though we don't seem to
use those ports in any other tests.
As we don't care about the specific port that is used here, pass
zero so that a random ephemeral port is used.
2019-06-06 16:19:19 +02:00
Christoph M. Becker
f5b44c7e8a
Fix bug #78094 : File Search Problem Excessive Time
...
Instead of checking GetBinaryType() for each file, we do a much cheaper
pre-check whether the filename extension matches .exe or .com, and call
GetBinaryType() only in this case. For BC we also report .bat and .cmd
files as executables again.
The patch has been provided by @weltling.
2019-06-06 15:55:46 +02:00
Christoph M. Becker
c358c280df
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test regarding Unix Domain Sockets on Windows
2019-06-06 15:02:41 +02:00
Christoph M. Becker
5f2f6180b9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test regarding Unix Domain Sockets on Windows
2019-06-06 15:00:35 +02:00
Christoph M. Becker
2df32942d3
Fix test regarding Unix Domain Sockets on Windows
...
Recent Windows versions actually support Unix Domain Sockets. Cf.
<https://github.com/curl/curl/pull/3939 >.
2019-06-06 14:59:58 +02:00
Nikita Popov
7780ba9660
Try to fix Windows build
2019-06-06 14:56:42 +02:00
Dmitry Stogov
741468d145
Use ZEND_ASSUME() to perform the following check only on "slow" path.
2019-06-06 14:22:10 +03:00
Dmitry Stogov
be74ca4976
Support for exceptions thrown during "Array to string conversion" error processing
2019-06-06 14:09:42 +03:00
Dmitry Stogov
a95014dc10
Reduce over-specialization for quite seldom instructions
2019-06-06 13:13:09 +03:00
Nikita Popov
3372f2cf2c
php_zip_pcre: Match pattern before stating for directories
...
For two reasons: First, it's generally cheaper to match a regex than
perform a stat (especially on Windows). Second, it will not fail on
concurrent modification of a directory in parts that are not matched
by the pattern, such as the spurious failure in ext/zip/tests/bug72660.phpt.
2019-06-06 11:46:23 +02:00
Christoph M. Becker
b2b528b973
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78114 : segfault when calling sodium_* functions from eval
2019-06-06 10:01:12 +02:00
Christoph M. Becker
22a3fa0b2e
Fix #78114 : segfault when calling sodium_* functions from eval
...
We must not follow the NULL pointer.
2019-06-06 10:00:15 +02:00
Dmitry Stogov
457392fa64
Cheaper checks for exceptions thrown from __toString()
2019-06-06 01:47:22 +03:00
Dmitry Stogov
90a2e4ba66
Fixed reference-counting
2019-06-06 01:40:40 +03:00
Joe Watkins
bed8ae1d0f
junit testcase classname is used as filename on azure
2019-06-05 19:27:50 +02:00
Joe Watkins
6f9a06cb74
this test is flaky on azure, and can't see why from current output
...
so refactored, and restored an accidentally removed check (resource)
2019-06-05 19:24:41 +02:00
Dmitry Stogov
3f4dfe1877
Prevent generation of specialized ZEND_ASSIGN_OP_..._STATIC_PROP handlers, that call unspecialized helper, anyway.
2019-06-05 17:38:13 +03:00
Joe Watkins
829d046241
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix flaky posix test
2019-06-05 16:35:55 +02:00
Joe Watkins
249c20023d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix flaky posix test
2019-06-05 16:35:43 +02:00
Joe Watkins
f4474e5724
fix flaky posix test
2019-06-05 16:34:50 +02:00
Nikita Popov
b964298c19
Deprecate ReflectionType::__toString()
...
We weren't able to do this in 7.1 because the deprecation notice
may be converted to an exception and __toString() can't throw,
which means that it ultimately become a fatal error. This issue
is resolved now, so we can mark the method as deprecated.
2019-06-05 15:33:52 +02:00
Nikita Popov
a31f46421d
Allow exceptions in __toString()
...
RFC: https://wiki.php.net/rfc/tostring_exceptions
And convert some object to string conversion related recoverable
fatal errors into Error exceptions.
Improve exception safety of internal code performing string
conversions.
2019-06-05 14:25:07 +02:00
Nikita Popov
528aa7932a
Use zero port in socket_(export|import)_stream-5.phpt
...
These regularly fail due to port clashes, though we don't seem to
use those ports in any other tests.
As we don't care about the specific port that is used here, pass
zero so that a random ephemeral port is used.
2019-06-05 11:58:11 +02:00
Remi Collet
a0ce1df024
ignore first gets time which is usually a few ms only
...
in previous version, max_ms was "1" and "10" in travis/appveyor
having 10 by default make it fails on fast computer
2019-06-05 11:48:48 +02:00
Nikita Popov
9cf6a5413a
Make mysqli_connect arguments explicitly nullable
...
It should be possible to skip any of these (and use the ini configured
defaults) by passing null, independently of strict_types settings.
Noticed while working on GH-4227.
2019-06-05 11:30:13 +02:00
Remi Collet
8f854c1099
keep DIR option to --with-unixODBC for old versions without libodbc.pc
2019-06-05 10:56:10 +02:00
Peter Kokot
ac9ce0f895
Fixed bug #78102
2019-06-05 10:04:57 +02:00
Nikita Popov
46d5a9bef9
Avoid concurrent directory writes in FilesystemIterator test
...
The test directory is often used for temporary files, let's use
the source directory, which should be more stable. If that doesn't
work we need to create a temporary directory.
2019-06-05 09:58:59 +02:00
Joe Watkins
cb9bb146d9
add azure pipelines badge to readme [ci skip]
2019-06-04 17:11:16 +02:00
Nikita Popov
524dbee15b
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-04 16:28:08 +02:00
Nikita Popov
d154301866
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-04 16:27:57 +02:00
Nikita Popov
a3e6b50442
Fixed bug #78050
...
This is a backport of a982125561 .
2019-06-04 16:26:34 +02:00
Nikita Popov
f4bac9a438
Actually load opcache on Azure
2019-06-04 16:14:34 +02:00
Nikita Popov
18060e5923
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-04 16:14:26 +02:00
Nikita Popov
a4633b13d4
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-04 16:14:14 +02:00
Nikita Popov
2d3bc71e89
Reload tsrmls_id in release builds as well
...
If TSRM is shut down and started again (something that phpdbg does),
then tsrmls_id needs to be reloaded everywhere. As tsrmls_id
update is a rare operation, doing that shouldn't be a problem.
2019-06-04 16:12:59 +02:00
Nikita Popov
d512075ff8
Fix potential port conflicts
2019-06-04 16:11:52 +02:00
Hugh McMaster
c9830f1c2c
ext/zip: Replace $LIBZIP_LIBDIR with $LIBZIP_LIBS
...
Closes GH-4220.
2019-06-04 15:31:35 +02:00
Nikita Popov
a982125561
Try to fix phpdbg + opcache compatibility
2019-06-04 15:08:55 +02:00
Christoph M. Becker
79ff867ed2
PHP 7.4 is built with Visual Studio 2019 on Windows
2019-06-04 14:41:25 +02:00
Nikita Popov
3f7210efa8
Try to make 17result.php more robust
...
This is our most common intermittent failure. I don't understand
why it happens and can't reproduce it, but defining an explicit
sort order seems worth a shot...
2019-06-04 12:18:21 +02:00
Nikita Popov
40f2cfe258
Azure: Don't build zend-test as shared
...
This is shared on Travis to perform a dl() sanity check. Revert to
building it statically here so we don't need to explicitly load it.
2019-06-04 10:18:00 +02:00
Hugh McMaster
32114b57f3
Use a common setup macro to detect the Expat library
...
Closes GH-4221.
2019-06-04 10:10:50 +02:00
Joe Watkins
550f95e645
should be or
2019-06-04 08:23:43 +02:00
Joe Watkins
666cc8d5da
always run
2019-06-04 08:12:53 +02:00
Joe Watkins
47a953919f
run/publish test on success and failure
2019-06-04 08:10:52 +02:00
Joe Watkins
b2aef9e47a
always run/publish tests, even when failing
2019-06-04 08:06:53 +02:00
Joe Watkins
d37c335118
always run/publish tests
2019-06-04 07:50:46 +02:00
Remi Collet
e0f7e7aff9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
this was in 7.3.5, not 7.3.6
2019-06-04 07:19:46 +02:00
Remi Collet
9a495911c8
this was in 7.3.5, not 7.3.6
2019-06-04 07:19:29 +02:00
Joe Watkins
b4c1369768
correct zts flags for 7.4
2019-06-04 05:04:24 +02:00
Joe Watkins
068dd5afa8
get the name of the branch right
2019-06-03 22:47:12 +02:00
Joe Watkins
74ce812007
Set up CI with Azure Pipelines
2019-06-03 22:27:50 +02:00
Nikita Popov
117f7720be
Prevent use of TLS 1.3 in stream_server_reneg_limit.phpt
...
TLS 1.3 does not support renegotiation, make sure this test does
not use it.
2019-06-03 18:58:52 +02:00
Nikita Popov
829f18b48d
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-03 15:15:22 +02:00
Nikita Popov
37bba7a678
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-03 15:15:07 +02:00
Nikita Popov
ac60007bec
Clear errors after SSL_CTX_load_verify_locations()
...
We report our own errors here. Make sure these don't clog up the
error queue.
2019-06-03 15:14:01 +02:00
Nikita Popov
2856afc70e
Make "MySQL server has gone away" errors more consistent
...
Don't generate explicit warnings for these in two places, use usual
error handling mechanism. Additionally suppress a number of warnings
if the server has gone away.
2019-06-03 14:27:47 +02:00
Joe Watkins
cf9fd3735a
remove reverted commit from changelog
2019-06-03 11:25:33 +02:00
Joe Watkins
ff96f25b12
Revert "Fix bug #62397 - disable_functions does not work with eval."
...
This reverts commit 050d299364 .
2019-06-03 11:20:12 +02:00
Hugh McMaster
f349d790b4
ext/zip: Remove un-needed symbol check for zip_open
...
Closes GH-4189.
2019-06-03 09:20:31 +02:00
Hugh McMaster
310f96fd13
ext/zip: Add PHP_EVAL_LIBLINE to replace PHP_ADD_LIBRARY_WITH_PATH
2019-06-03 09:20:12 +02:00
Hugh McMaster
7ec50c24bb
ext/ffi: Remove symbol check for ffi_open
...
Closes GH-4215.
2019-06-03 09:19:25 +02:00
Hugh McMaster
d39638a4ac
ext/enchant: Pass $ENCHANT_LIBS to PHP_CHECK_LIBRARY to fix shared builds
...
Closes GH-4216.
2019-06-03 09:18:51 +02:00
Hugh McMaster
72fe2b16f6
ext/skeleton: Update use of PHP_CHECK_LIBRARY
...
Closes GH-4218.
2019-06-03 09:18:22 +02:00
Jakub Zelenka
4feddd59dc
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-02 19:14:37 +01:00
Jakub Zelenka
8f69ca8dcd
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-02 19:13:18 +01:00
Jakub Zelenka
2e02579474
Fix bug #78079 (openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c)
...
It also fixes invalid setting of tag length
2019-06-02 19:10:56 +01:00
Anatol Belski
7a64150921
Don't involve output check in the test
2019-06-01 23:31:05 +02:00
Anatol Belski
7faaeec942
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix expect section
2019-06-01 14:51:11 +02:00
Anatol Belski
793fd6bce9
Fix expect section
2019-06-01 14:50:14 +02:00
Anatol Belski
c4414992be
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update SDK version for AppVeyor
2019-06-01 13:44:44 +02:00
Anatol Belski
547665c720
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update SDK version for AppVeyor
2019-06-01 13:44:10 +02:00
Anatol Belski
59b0b38d3c
Update SDK version for AppVeyor
2019-06-01 13:43:31 +02:00
Christoph M. Becker
637d8677b3
Fix ZTS issue regarding new Windows CTRL handling API
...
php_win32_signal_system_ctrl_handler() is called from a kernel thread,
so the former initialization of `vm_interrupt_flag` has no effect,
since it is defined as thread-local. This is, however, not necessary,
since the CTRL signal handling is supposed to work only for the main
thread anyway. We therefore change `vm_interrupt_flag` and the related
variables to true globals.
This also allows us to unmark the respective test case as XFAIL.
Furthermore, `vm_interrupt_flag` is declared as `zend_bool *`, so we
better treat it such.
2019-06-01 09:35:47 +02:00
Joe Watkins
d669d55fe1
skip where no groups available
2019-06-01 07:36:03 +02:00
Joe Watkins
22213de179
only clear when showing in parallel runner
2019-06-01 06:13:30 +02:00
Anatol Belski
b165672e9c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Change ZPP only if compiled with ICU >= 64
Update tests for ICU 64
2019-06-01 02:27:08 +02:00
Anatol Belski
2205546edf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Change ZPP only if compiled with ICU >= 64
Update tests for ICU 64
2019-06-01 02:26:07 +02:00
Anatol Belski
ee153deb1f
Change ZPP only if compiled with ICU >= 64
2019-06-01 02:18:56 +02:00
Nikita Popov
b01d9fdab1
Update tests for ICU 64
...
(cherry picked from commit 8a8bc5c452 )
2019-06-01 02:17:16 +02:00
Anatol Belski
d632bede91
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix var name
2019-05-31 20:50:53 +02:00
Anatol Belski
06eef1f70f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix var name
2019-05-31 20:50:17 +02:00
Anatol Belski
d293f6dcff
Fix var name
2019-05-31 20:49:42 +02:00
Thomas Gerbet
bfc10978ef
SimpleXMLElement and ResourceBundle implement Countable
...
Both classes already have a count() method and are considered
countable by \is_countable().
2019-05-31 18:59:19 +02:00
Nikita Popov
7f26171445
Remove confusing spkstr checks
...
This is a required parameter, it can never be NULL.
2019-05-31 17:00:00 +02:00
Nikita Popov
8a8bc5c452
Update tests for ICU 64
2019-05-31 15:39:03 +02:00
Nikita Popov
4ef7f70987
Fix NO_INTERACTION handling in parallel test runner
...
This printing shouldn't depend on NO_INTERACTION, the variable that
controls this is SHOW_ONLY_GROUPS.
2019-05-31 14:03:22 +02:00
Nikita Popov
67b84e4548
Fixed uninitialized var warning
...
Causes build failure on release+zts azure build. I'm rewriting this
code to separate the if/else handling, because they don't really
have anything in common anyway...
2019-05-31 12:55:13 +02:00
Nikita Popov
dd2bf44869
Add junit support for parallel test runner
2019-05-31 12:38:06 +02:00
Nikita Popov
137747bdaf
run-tests: Remove redundant 'suites' key
...
We don't have nestead testsuites or similar, so drop this confusing
key.
2019-05-31 12:04:23 +02:00
Dmitry Stogov
1df9f238fe
Better hot/cold code splitting
2019-05-31 12:20:21 +03:00
Nikita Popov
84333cad67
Remove stream_socket_sendto.phpt
...
Fails for me locally due to different number of warnings with
different messages. Rather than adding more wildcards I'm dropping
this test entirely, as it doesn't seem to test anything particularly
useful.
2019-05-31 11:09:56 +02:00
Nikita Popov
96a11bee1c
Add CONFLCITS file for fpm
...
We should not run FPM tests in parallel due to port clashes.
2019-05-31 10:54:41 +02:00
Nikita Popov
4b1f711823
Mark sapi_windows_set_ctrl_handler.phpt as XFAIL
2019-05-31 09:17:51 +02:00
Dmitry Stogov
2915a32f37
Fixed compilation warning
2019-05-31 00:59:52 +03:00
Dmitry Stogov
1814308e49
Don't specialize "cold" handlers
2019-05-31 00:31:57 +03:00
Dmitry Stogov
4e567ed1da
Removed useless specialization. Specialized handlers called not specialized helpers.
2019-05-31 00:15:25 +03:00
Dmitry Stogov
cf388033d5
Reduce register pressure by reloading values on CPUs with few general purpose registers
2019-05-31 00:14:10 +03:00
Craig Duncan
a08b3b6d19
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add a test for bug #65672
Ensure the internal properties cannot be overwritten
2019-05-30 19:14:04 +01:00
Craig Duncan
370997fb5d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add a test for bug #65672
Ensure the internal properties cannot be overwritten
2019-05-30 18:55:55 +01:00
Craig Duncan
8b53c7232e
Add a test for bug #65672
2019-05-30 18:55:42 +01:00
Craig Duncan
dc586bff36
Ensure the internal properties cannot be overwritten
2019-05-30 18:55:36 +01:00
Dmitry Stogov
ee56552913
Disable "bad" optimisations only for emulation loop
2019-05-30 20:35:30 +03:00
Anatol Belski
2ba9177d4f
[ci skip] Update libmagic.patch
2019-05-30 14:09:00 +02:00
Anatol Belski
6c62a074bb
[ci skip] Update year
2019-05-30 14:02:54 +02:00
Anatol Belski
a27eb4d7e1
[ci skip] Update NEWS
2019-05-30 13:59:21 +02:00
Anatol Belski
aed9a64cf6
Add test for bug #78075 , json detection
2019-05-30 13:31:48 +02:00
Joe Watkins
a3879208c5
have parallel test runner respect NO_INTERACTION
2019-05-30 07:46:31 +02:00
Anatol Belski
0c8454c02d
Partially reapply ba40f505e5
2019-05-30 02:48:01 +02:00
Anatol Belski
57c23df142
Fix datatype
2019-05-30 02:34:35 +02:00
Anatol Belski
622b10f06e
Ported limagic 5.37
2019-05-30 02:22:40 +02:00
Nikita Popov
24e22eb31b
Run sapi tests when running all tests
2019-05-29 17:07:12 +02:00
Nikita Popov
3ba64545ed
Update phpdbg oplog test
2019-05-29 17:05:01 +02:00
Nikita Popov
b32b8e91bd
Update cli reflection test
2019-05-29 17:02:36 +02:00
Nikita Popov
43be89ed87
Remove two zpp tests in sapi/cli/tests
...
These fail on master -- apparently we're not running these tests...
2019-05-29 17:00:12 +02:00
Nikita Popov
029b735a6e
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-29 16:48:28 +02:00
Nikita Popov
61a38bb274
SCCP: Fix leak when determining TYPE_CHECK from type info
...
As TYPE_CHECK is the only opcode where we do something like this,
I'm adding this hack.
2019-05-29 16:47:19 +02:00
Dmitry Stogov
b06f05bf47
zend_assign_to_variable() optimization
2019-05-29 13:58:37 +03:00
Dmitry Stogov
e14d77335c
Mark "cold" functions
2019-05-29 11:48:41 +03:00
Derick Rethans
8ec0cf8be7
Bump API numbers
2019-05-29 09:34:10 +01:00
Nikita Popov
3bd5b83615
Specify get_property_ptr_ptr handler for DatePeriod
...
This handler is required on 7.4. Just return NULL from it to fall
back to read_property.
2019-05-29 09:51:15 +02:00
Nikita Popov
5a0df6a414
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-29 09:47:54 +02:00
Nikita Popov
de7d0256a3
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-29 09:47:43 +02:00
Craig Duncan
5d67271db0
Add tests for DatePeriod properties
2019-05-29 09:47:10 +02:00
Dmitry Stogov
0d102515bf
zend_do_fcall_overloaded() doesn't have to be exported
2019-05-29 10:32:30 +03:00
Christoph M. Becker
7ca0ac8dc7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS for 7.3.6
2019-05-29 09:27:46 +02:00
Christoph M. Becker
f3cd6931ca
Update NEWS for 7.3.6
2019-05-29 09:27:23 +02:00
Gabriel Caruso
8c7757c233
Remove unused variable
2019-05-29 09:09:17 +02:00
Remi Collet
96030118a2
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
add NEWS entries for sec fix
2019-05-29 08:53:59 +02:00
Remi Collet
582469eef2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add NEWS entries for sec fix
2019-05-29 08:53:42 +02:00
Remi Collet
3051147019
add NEWS entries for sec fix
2019-05-29 08:53:23 +02:00
Joe Watkins
cc598d1ea9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
disabled functions must not have return type
Restore the execute bit for run-tests.php
2019-05-29 08:30:55 +02:00
Joe Watkins
6c73b2088a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
disabled functions must not have return type
2019-05-29 08:30:41 +02:00
Joe Watkins
7821cc3b9f
disabled functions must not have return type
2019-05-29 08:30:08 +02:00
Anatol Belski
08a0030b33
Fix conditional compilation
...
The new symbols are shared and don't need to depend on the availability
of __builtin_constant_p.
2019-05-29 02:40:09 +02:00
Anatol Belski
1a4ace05ae
These macros should not expect any argument
2019-05-29 02:29:02 +02:00
Dmitry Stogov
8c0b0c6a1e
Avoid cold code duplication
2019-05-29 01:43:27 +03:00
Craig Duncan
72c330f1e6
Restore the execute bit for run-tests.php
...
It looks like this was accidentally removed in 03f15f705a
2019-05-28 21:51:26 +01:00
Dmitry Stogov
83804519df
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
2019-05-28 20:10:02 +03:00
Nikita Popov
071b389bc6
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-28 16:41:17 +02:00
Nikita Popov
817b50826e
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-28 16:41:08 +02:00
Nikita Popov
59dfaa3f99
Fix type inference of SEND_UNPACK with empty array
...
An empty array will not be turned into an array of references.
This violated the invariant than an array has values iff it has
keys.
2019-05-28 16:40:56 +02:00
Nikita Popov
f19dd674e0
SCCP: Fix handling of ASSIGN_OBJ_REF
...
The generic BOT handling is not away of OP_DATA, so need to handle
this opcode before we get to that.
2019-05-28 16:15:37 +02:00
Dmitry Stogov
6738241aec
Avoid usage of internal get/set object handlers. They are going to be removed in PHP-8.
...
Scalar FFI values now should be accessed through special "cdata" property.
$x = FFI::new("int");
$x = 42;
should be changed into
$x = FFI::new("int");
$x->cdata = 42;
2019-05-28 17:08:35 +03:00
Nikita Popov
6893f1f98e
SCCP: Don't perform partial object propagation for typed props
2019-05-28 15:46:03 +02:00
Dmitry Stogov
b2cb6a4a27
Avoid double copying
2019-05-28 13:35:00 +03:00
Dik Takken
77cf3d7b11
Allow array_merge() / array_merge_recursive() without arguments
...
This allows writing
array_merge(...$arrays)
instead of
array_merge([], ...$arrays)
and is in line with similar changes to array_push() and array_unshift()
in PHP 7.3.
Closes GH-4175.
2019-05-28 11:14:15 +02:00
Dmitry Stogov
072f28938f
Put phpinfo() related code into cold code segment
2019-05-28 11:04:13 +03:00
Joe Watkins
2c6bc99019
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
bump version after release
2019-05-28 09:54:47 +02:00
Joe Watkins
dee977b7a7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump version after release
2019-05-28 09:54:15 +02:00
Joe Watkins
d661a75d54
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
bump version after release
2019-05-28 09:53:32 +02:00
Joe Watkins
5533f2490a
bump version after release
2019-05-28 09:52:52 +02:00
Stanislav Malyshev
ffc15e913c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77967 - Bypassing open_basedir restrictions via file uris
2019-05-27 21:36:10 -07:00
Stanislav Malyshev
9d473f1eac
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77967 - Bypassing open_basedir restrictions via file uris
2019-05-27 21:36:05 -07:00
Stanislav Malyshev
fbb6a27212
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77967 - Bypassing open_basedir restrictions via file uris
2019-05-27 21:36:00 -07:00
Stanislav Malyshev
c34895e837
Fix bug #77967 - Bypassing open_basedir restrictions via file uris
2019-05-27 18:48:48 -07:00
Stanislav Malyshev
670c2ee685
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:29 -07:00
Stanislav Malyshev
13dffa9d32
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:25 -07:00
Stanislav Malyshev
dc1d99e772
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:20 -07:00
Stanislav Malyshev
73ff4193be
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:09 -07:00
Stanislav Malyshev
892a188fc9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix function name
2019-05-27 17:21:28 -07:00
Stanislav Malyshev
e63b2ba310
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix function name
2019-05-27 17:21:23 -07:00
Stanislav Malyshev
9bca9ef6cf
Fix function name
2019-05-27 17:20:56 -07:00
Stanislav Malyshev
5e3dc08826
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
Fix bug #78069 - Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
Fix #77973 : Uninitialized read in gdImageCreateFromXbm
2019-05-27 16:49:31 -07:00
Stanislav Malyshev
c7eb0feed8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix bug #78069 - Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
Fix #77973 : Uninitialized read in gdImageCreateFromXbm
2019-05-27 16:49:25 -07:00
Stanislav Malyshev
e77c8e45ba
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS
Fix bug #78069 - Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
Fix #77973 : Uninitialized read in gdImageCreateFromXbm
2019-05-27 16:49:19 -07:00
Stanislav Malyshev
16e037bd46
Update NEWS
2019-05-27 16:48:32 -07:00
Stanislav Malyshev
7cf7148a8f
Fix bug #78069 - Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
2019-05-27 16:32:42 -07:00
Christoph M. Becker
ed6dee9a19
Fix #77973 : Uninitialized read in gdImageCreateFromXbm
...
We have to ensure that `sscanf()` does indeed read a hex value here,
and bail out otherwise.
2019-05-27 16:11:32 -07:00
Christoph M. Becker
c12d474653
Prevent parallel test conflicts
...
These ports are already used by another test, so we change them.
2019-05-27 18:42:52 +02:00
Nikita Popov
adec208bdb
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-27 17:44:11 +02:00
Nikita Popov
0cb43ec51c
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-27 17:43:13 +02:00
Michael Maroszek
a0c9d0849a
Fixed bug #76345
2019-05-27 17:42:20 +02:00
Nikita Popov
fd23f9104a
BIND_STATIC of implicit binding may be undef
...
Even though we don't need it at runtime, add the BIND_IMPLICIT
flag to BIND_STATIC as well, so we can distinguish this case in
type inference.
This fixes a JIT miscompile in arrow_functions/002.phpt.
2019-05-27 17:12:20 +02:00
Nikita Popov
070f877b76
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-27 16:15:03 +02:00
Nikita Popov
31ce1cbbb9
Func info: Fix calls to zero-arg varargs
...
The num_args does not include variadics, so a "zero-arg" function
may accept additional arguments through that. No functions seem
to be affected right now, but they will be after #4175 .
2019-05-27 16:14:51 +02:00
Nikita Popov
7cc17c4aac
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-27 16:14:16 +02:00
Nikita Popov
62f339c8d5
Func info: Fix calls to zero-arg varargs
...
The num_args does not include variadics, so a "zero-arg" function
may accept additional arguments through that. No functions seem
to be affected right now, but they will be after #4175 .
2019-05-27 16:12:42 +02:00
Dmitry Stogov
6a4ec6c7e4
Enable pcre valgrind support only in DEBUG build (it affects performance)
2019-05-27 16:20:20 +03:00
Hugh McMaster
a8f4e8fe73
ext/xml: Use PKG_CHECK_MODULES to detect the Expat library
2019-05-27 15:16:42 +02:00
Dmitry Stogov
62ded6efbc
Align .text segment for better huge pages usage
2019-05-27 13:37:19 +03:00
Gabriel Caruso
4bb6f9ba99
Make more tests run on Windows
2019-05-27 10:51:53 +02:00
Nikita Popov
e6fac86dc3
Accept flags argument in zend_lookup_class_ex()
...
Instead of a single boolean, so we have space for extension here.
2019-05-27 09:36:25 +02:00
Jakub Zelenka
cd6b7ebb68
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-26 18:51:10 +01:00
Jakub Zelenka
209b12e064
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-26 18:49:52 +01:00
Jakub Zelenka
8baf3ffde6
Add fpmi to the opcache supported sapis
2019-05-26 18:47:22 +01:00
Anatol Belski
aa9433e928
Upgrade bundled PCRE2 to 10.33
2019-05-25 11:37:30 +02:00
Hugh McMaster
ef34e00df3
Use PKG_CHECK_MODULES to detect valgrind, and share build config with pcre
2019-05-25 09:04:22 +02:00
Peter Kokot
e7a1409fe1
Define minimum required libffi version
2019-05-25 08:12:15 +02:00
Nikita Popov
32f87bb575
Add UPGRADING/NEWS entries
2019-05-24 11:00:13 +02:00
Nikita Popov
d7f3844c87
Deprecate use of parent where no parent exists
...
This deprecation is part of the covariance RFC.
2019-05-24 10:58:46 +02:00
David Carlier
d9747c23a2
list net/interfaces, trying to get the error on windows when possible
2019-05-24 10:22:39 +02:00
Nikita Popov
49a3b03e9f
Implement basic variance support
...
This is a minimal variance implementation: It does not support any
cyclic type dependencies. Additionally the preloading requirements
are much more restrictive than necessary. Hopefully we can relax
these in the future.
2019-05-24 09:30:37 +02:00
Nikita Popov
afec3a9208
Avoid early-binding on unresolved types
...
Fixes bug #76451 , and more importantly lays necessary groundwork for
covariant/contravariant types. Bug #76451 is just an edge case, but
once covariance is introduced this will become a common problem instead.
2019-05-24 09:30:13 +02:00
Nikita Popov
71ce7d32ea
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-23 13:41:17 +02:00
Nikita Popov
6f9dfd9473
Fix bug #77955
...
Free metadata before freeing the arena. I don't have a repro script,
but the added assertion fails for many existing tests prior to this
change.
2019-05-23 13:40:52 +02:00
Christoph M. Becker
c70975e0a5
Prevent further potential test conflicts
...
These tests partially use the same resource names; as a quick-fix we're
marking them all as conflicting.
2019-05-23 13:14:04 +02:00
Joe Watkins
979e7d0fee
fix notice in run-tests
2019-05-23 13:09:18 +02:00
Christoph M. Becker
ced8760ca8
Prevent potential test conflict
...
bug48746_tmp.lnk is also created by bug48746_2.phpt which might clash,
if both are run simultaneouly.
2019-05-23 11:40:39 +02:00
Nikita Popov
fc8fb77262
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-23 11:13:14 +02:00
Nikita Popov
b394654c1e
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-23 11:12:59 +02:00
Nikita Popov
9a74b23297
Fixed bug #78038 socket_select with references
2019-05-23 11:12:15 +02:00
Joe Watkins
e1151c9549
run-tests improvements:
...
Add XLEAK section, this is made necessary by the support
for valgrind tools other than memcheck.
XLEAK is to a leaking test what XFAIL is to a failing test.
Tidy up summary a little to exclude Expected Fail and Expected Leak
when there are no expected fail/leaks
2019-05-23 10:55:25 +02:00
Nikita Popov
64918c7702
Forbid use of not fully linked classes
2019-05-23 10:41:10 +02:00
Dmitry Stogov
fdb7fc6153
Fixed double mutex unlock
2019-05-23 11:20:46 +03:00
Nikita Popov
dcccdc471d
Don't require NO_ESCAPE for partial arrays in SCCP
2019-05-23 09:59:25 +02:00
Dmitry Stogov
5de750f41c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed race condition in opcache restart
2019-05-23 00:21:15 +03:00
Dmitry Stogov
d4867e099e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed race condition in opcache restart
2019-05-23 00:21:04 +03:00
Dmitry Stogov
fa6a4483e6
Fixed race condition in opcache restart
2019-05-23 00:20:35 +03:00
Dmitry Stogov
fe1db0c3d7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed dump of constant flags
2019-05-22 23:00:26 +03:00
Dmitry Stogov
aa9c76d027
Fixed dump of constant flags
2019-05-22 22:59:40 +03:00
Joe Watkins
536532c572
add support for valgrind tools to run-tests.php
2019-05-22 20:20:13 +02:00
Nikita Popov
7f68d5b7d8
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-22 12:45:25 +02:00
Nikita Popov
f308aa4e1e
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-22 12:45:16 +02:00
Sjon Hortensius
96404eb8e2
Fix #77956 - When mysqli.allow_local_infile = Off, return a client error
2019-05-22 12:44:55 +02:00
Christoph M. Becker
21bf9b0f4c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test case for cURL 7.65.0
2019-05-22 12:02:43 +02:00
Christoph M. Becker
69c634a56d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test case for cURL 7.65.0
2019-05-22 12:02:03 +02:00
Christoph M. Becker
62fe6ba20c
Fix test case for cURL 7.65.0
...
Reported and patch provided by @Jan-E.
2019-05-22 12:01:23 +02:00
Nikita Popov
b162c8f55a
Mark bug44811.phpt as an online test
...
For some reason this was checked on PHP-7.2 and PHP-7.3, but not
on PHP-7.4. Bad merge?
2019-05-22 11:43:56 +02:00
Nikita Popov
ce8be6f499
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-22 11:43:40 +02:00
Nikita Popov
3a719696bc
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-22 11:43:26 +02:00
Nikita Popov
3a0de243c3
Use a different URL in bug44811.phpt
2019-05-22 11:41:51 +02:00
Dmitry Stogov
7c99589be2
.text segment may be not the first one
2019-05-22 12:20:34 +03:00
Nikita Popov
ff4b0ce0e8
Fix bug #78034
...
Don't def non-cv variables in assign_obj_ref data operand.
2019-05-22 09:35:38 +02:00
Jaroslav Hanslík
d6c0c5ef8e
Fixed some arg infos to match documentation
2019-05-22 09:05:32 +02:00
Hugh McMaster
9df3e097b8
Use PKG_CHECK_MODULES to detect unixODBC
2019-05-22 09:04:05 +02:00
Rasmus Lerdorf
12c1d7419a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix precedence issue causing sub-second timeouts to be 0 in curl_multi_select
2019-05-21 14:46:44 -07:00
Rasmus Lerdorf
2d29263a9f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix precedence issue causing sub-second timeouts to be 0 in curl_multi_select
2019-05-21 14:46:24 -07:00
Rasmus Lerdorf
7b42cdf95e
Fix precedence issue causing sub-second timeouts to be 0 in
...
curl_multi_select
2019-05-21 14:44:11 -07:00
Nikita Popov
f260c0918f
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-21 17:35:28 +02:00
Nikita Popov
97ba6b0d8b
Don't evaluate functions with partial array arguments
2019-05-21 17:35:03 +02:00
Nikita Popov
436a47428b
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-21 17:17:45 +02:00
Nikita Popov
30f1b17262
Fix null check in sccp add_array_elem chain handling
...
We need to check result_use rather than result_def for a null zval.
Previously we were later assuming that the null zval is really a
partial array, which does not go well.
2019-05-21 17:15:07 +02:00
Nikita Popov
a87448bb55
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-21 17:03:52 +02:00
Nikita Popov
fc4836b193
Fix partial array handling in FE_RESET edge feasibility
2019-05-21 16:59:27 +02:00
Nikita Popov
cd188d0398
Handle partial arrays in zend_is_true() checks
2019-05-21 16:53:34 +02:00
Nikita Popov
bdce5849b7
Extract ct_eval_binary_op()
...
And use it in more places, though some of them are currently not
reachable by partial arrays to the best of my knowledge.
2019-05-21 16:43:41 +02:00
Nikita Popov
367788cbc3
Improve SCCP debug code
...
In particular properly dump partial arrays when tracing execution.
2019-05-21 16:42:13 +02:00
Remi Collet
9ef03a94ba
sodium: fix shared build
2019-05-21 16:14:52 +02:00
Remi Collet
1f8b9b8de6
enchant: fix shared build
2019-05-21 16:14:52 +02:00
Christoph M. Becker
8ba10b8fbc
Fix ASLR related invalid opline handler issues
...
Opcache stores `opline->handler`s in shared memory. These pointers are
invalid, if the main PHP DLL is loaded at another base address due to
ASLR. We therefore store the address of `execute_ex` in the mmap base
file, and check on startup whether it matches its current address. If
not, we fall back on the file cache if enabled, and bail out otherwise.
This still does not address cases where the opline handler is located
inside of another DLL (e.g. for some profilers, debuggers), but there
seems to be no general solution for now.
2019-05-21 14:33:33 +02:00
Remi Collet
24206783c3
fix typo breaking shared build
2019-05-21 14:25:55 +02:00
Christoph M. Becker
ee9908683b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Prevent test case failure
2019-05-21 11:19:05 +02:00
Christoph M. Becker
d23bc33dc1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Prevent test case failure
2019-05-21 11:18:32 +02:00
Christoph M. Becker
e6a191de1b
Prevent test case failure
...
If opcache.log_verbosity_level is greater than 1, opcache will raise
warnings, which will be written to stderr in the default case. These
warnings are actually to be expected, but would break the test, so we
make sure that the log_verbosity_level is 1 when running this test.
2019-05-21 11:17:51 +02:00
Nikita Popov
ef06a7bbda
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-21 10:05:03 +02:00
Nikita Popov
4ebd9a5366
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-21 10:04:51 +02:00
Vincent JARDIN
5f8c22d415
Support content_type stream context option in soap
...
Allows overriding the HTTP header using the HTTP context:
$client = new SoapClient('http://url.wsdl&v=latest ', [
'stream_context' => stream_context_create([
'http' => [
'content_type' => 'foobarX',
],
]),
]);
This is a backport of c55af3c65a
to the PHP 7.2 branch.
2019-05-21 10:04:15 +02:00
Christoph M. Becker
c982a4c3f9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
use {TMP} placeholder in phpt tests
2019-05-21 09:03:20 +02:00
Christoph M. Becker
11740abd6b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
use {TMP} placeholder in phpt tests
2019-05-21 09:03:01 +02:00
Holly Li (WIPRO LIMITED)
202e6936d6
use {TMP} placeholder in phpt tests
2019-05-21 09:02:37 +02:00
Dmitry Stogov
e2f8d906cf
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Prevent race condition in opcache_reset()
2019-05-21 00:08:12 +03:00
Dmitry Stogov
354a76bb80
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Prevent race condition in opcache_reset()
2019-05-21 00:08:03 +03:00
Dmitry Stogov
a8a019d68a
Prevent race condition in opcache_reset()
2019-05-21 00:07:17 +03:00
Dmitry Stogov
f53b9939fe
Fixed bug #78014 (Preloaded classes may depend on non-preloaded classes due to unresolved consts)
2019-05-20 18:15:38 +03:00
Christoph M. Becker
5f1d76a2c4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test wrt. opcache.error_log
2019-05-20 11:11:06 +02:00
Christoph M. Becker
db8ef71353
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test wrt. opcache.error_log
2019-05-20 11:10:20 +02:00
Christoph M. Becker
64ec9f4dbe
Fix test wrt. opcache.error_log
...
Since the test expects log messages to be written to stderr, we have to
make sure that opcache.error_log is set correctly when running the
test.
2019-05-20 11:09:44 +02:00
Joe Watkins
e11233dc49
Revert "Rename *.l files to *.re"
...
This reverts commit 969047749d .
2019-05-20 06:06:38 +02:00
Peter Kokot
f45b61b898
[ci skip] Migrate Coding standards docs to Markdown
2019-05-18 21:41:38 +02:00
Peter Kokot
fafcdc4d57
Move CODING_STANDARDS to CODING_STANDARDS.md
2019-05-18 21:39:26 +02:00
Gabriel Caruso
714d9fc358
Make chr ZPP failure message consistent with ext/standard
2019-05-18 15:59:07 -03:00
Peter Kokot
256100a9b5
[ci skip] Join Zend engine docs-alike files to readme
2019-05-18 20:39:18 +02:00
Peter Kokot
29bff939c7
Enhance makedist script
...
This enhances the makidst script:
- integrate both snapshot and makedist scripts together
- add help and options
- generated files are created in the php-src repository directly
- other minor enhancemenets such as CS fixes
- functionality moved from the Makefile to only shell script
- Add missed patching of the Zend Parsers to the main build step
- Add all *.tmp files to gitignore
2019-05-18 02:05:59 +02:00
Peter Kokot
969047749d
Rename *.l files to *.re
...
This syncs PHP lexer files to all use *.re extension. The *.re files are
processed with the RE2C tool.
2019-05-17 23:53:03 +02:00
Peter Kokot
63ef554fe4
Move copyright/license headers to CONTRIBUTING.md
...
These are more like a general contribution guidelines for the new files
added to the php-src repository.
2019-05-17 23:45:05 +02:00
Peter Kokot
0f7d641724
Add enchant pkg-config notice in UPGRADING
2019-05-17 19:39:22 +02:00
Hugh McMaster
0655191a9c
Use PKG_CHECK_MODULES to detect the Enchant library
2019-05-17 19:31:30 +02:00
Peter Kokot
83bfbc2903
Use *.data for tests data files
2019-05-17 19:04:43 +02:00
Christoph M. Becker
d3c95db18c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78025 : segfault when accessing properties of DOMDocumentType
2019-05-17 13:32:53 +02:00
Christoph M. Becker
fd607635a4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78025 : segfault when accessing properties of DOMDocumentType
2019-05-17 13:32:13 +02:00
Christoph M. Becker
e246dea9fe
Fix #78025 : segfault when accessing properties of DOMDocumentType
...
Instead of following the NULL pointer, we return an empty string.
2019-05-17 13:31:18 +02:00
Peter Kokot
bd1bd38a35
Use *.data for fixture files
2019-05-17 03:59:23 +02:00
Peter Kokot
16e910ccfd
Update UPGRADING about LiteSpeed
2019-05-17 03:18:02 +02:00
Peter Kokot
8e456d3b9e
Rename configure --with-litespeed to --enable-litespeed
...
This syncs the configuration option of the litespeed module to be
compliant with the approach of:
--with-foo (when something additional needs to be installed such as
libfoo)
--enable-foo (when extension/sapi doesn't have dependencies on some
library)
2019-05-17 03:14:13 +02:00
Bob Weinand
cbc90b1f6e
Merge branch 'deprecate_concat_add_sub' into PHP-8.4
2019-05-16 18:31:28 +02:00
Peter Kokot
ab2710c8d0
Rename *.tif to *.tiff for consistency
...
There really isn't any practical difference between these two, but repo
currently uses *.tiff files more than 8.3 variant filenames of *.tif.
Also these aren't part of the test.
2019-05-16 07:41:45 +02:00
Nikita Popov
806db1a793
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-15 14:36:45 +02:00
Nikita Popov
9d76fbd0c4
Fixed bug #78015
...
Don't try to evaluate various operations with partial array operands.
We could evaluate some of these, but let's be conservative for now...
2019-05-15 14:35:31 +02:00
Nikita Popov
c666f6ec3b
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-15 12:49:03 +02:00
Nikita Popov
5846119e50
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-15 12:48:35 +02:00
Nikita Popov
35353dc49a
Fixed bug #76980
...
If we perform a class fetch that is not marked as exception safe,
convert exceptions thrown by autoloaders into a fatal error.
Ideally fetching the interfaces would be exception safe, but as it
isn't right now, we must abort at this point.
2019-05-15 12:46:23 +02:00
Christoph M. Becker
b5f0bdc237
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS regarding re-tagging 7.3.6RC1
2019-05-15 11:32:43 +02:00
Christoph M. Becker
714d2d8ae1
Update NEWS regarding re-tagging 7.3.6RC1
2019-05-15 11:31:53 +02:00
Dmitry Stogov
f9e8015847
Removed ability to compile PHP without EX(run_time_cache). ZEND_EX_USE_RUN_TIME_CACHE was always defined.
2019-05-15 11:06:26 +03:00
Sara Golemon
a94bee32ef
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Bump for 7.2.20
2019-05-14 20:23:41 -04:00
Sara Golemon
8511c204c3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump for 7.2.20
2019-05-14 20:23:25 -04:00
Sara Golemon
4fa32d67bf
Bump for 7.2.20
2019-05-14 20:22:00 -04:00
Peter Kokot
c27b531af7
Update changelogs
2019-05-15 00:00:01 +02:00
Benjamin Eberlei
050d299364
Fix bug #62397 - disable_functions does not work with eval.
2019-05-14 23:49:55 +02:00
Peter Kokot
f1a53501e6
Rename *.dat to *.data for common file type
...
File extension in this case is not part of the test.
2019-05-14 23:31:42 +02:00
Peter Kokot
b4dec0e11d
Enhance the tokenizer data generator script
...
Changes:
- executable from any location (for example, project root)
- some minor common shell scripts CS fixes
- error reporting done based on the presence of the parser file
2019-05-14 21:50:29 +02:00
a07d422ade
Warn about non well-formed arguments in bcmath
...
Co-Authored-By: Nikita Popov <nikita.ppv@googlemail.com >
Co-Authored-By: Christoph M. Becker <cmbecker69@gmx.de >
2019-05-14 15:04:21 +02:00
Nikita Popov
3f19f5112a
Add RETURN_EMPTY_ARRAY() / RETVAL_EMPTY_ARRAY()
...
The usual wrappers around ZVAL_EMPTY_ARRAY()...
2019-05-14 14:59:10 +02:00
Dmitry Stogov
7bc4bd0229
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Moved NEWS entry
Fixed possible crashes, because of inconsistent PCRE cache and opcache SHM reset
2019-05-14 15:09:17 +03:00
Dmitry Stogov
bb7ecb8704
Moved NEWS entry
2019-05-14 14:55:28 +03:00
Dmitry Stogov
a43678aa12
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed possible crashes, because of inconsistent PCRE cache and opcache SHM reset
2019-05-14 14:54:30 +03:00
Dmitry Stogov
5c4d125d4c
Fixed possible crashes, because of inconsistent PCRE cache and opcache SHM reset
2019-05-14 14:53:52 +03:00
Christoph M. Becker
2244a7d9af
Prevent further potential test conflicts
2019-05-14 13:19:58 +02:00
Christoph M. Becker
46ae5648ca
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Prepare 7.3.7-dev
2019-05-14 11:45:42 +02:00
Christoph M. Becker
2d93cce03a
Prepare 7.3.7-dev
2019-05-14 11:44:58 +02:00
Christoph M. Becker
ac828b9394
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test case
2019-05-14 10:26:05 +02:00
Christoph M. Becker
1a98878bfe
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test case
2019-05-14 10:25:02 +02:00
Christoph M. Becker
704a0ab0c9
Fix test case
...
stderr is supposed to be redirected to NUL (which is roughly equivalent
to /dev/null on POSIX), but actually was redirected to a file.
2019-05-14 10:23:58 +02:00
Christoph M. Becker
15b394cce9
Prevent test conflicts
2019-05-14 10:11:29 +02:00
Peter Kokot
dcfc289732
Update changelog
2019-05-14 03:20:03 +02:00
Peter Kokot
47350ba6e7
Use pkg-config for sqlite3 and pdo_sqlite
...
Following other migrations to pkg-config usage for the *nix build system
this migrates also sqlite3 and pdo_sqlite extensions.
2019-05-14 03:14:33 +02:00
Peter Kokot
44952cd9d4
Add extensions naming conventions to ext_skel.php
...
- first character is a letter
- followed by any number of letters, numbers, or underscores
- prefferred are lower case letters
2019-05-14 03:04:40 +02:00
Peter Kokot
63e43e19ea
Convert CRLF to LF
2019-05-14 02:59:06 +02:00
Dmitry Stogov
9b18afcbca
Fixed test on platforms that don't support fastcall calling convention
2019-05-14 00:21:00 +03:00
Peter Kokot
da293a8ec4
Remove example file for pgsql extension
...
This removes the example script in favour of the manual:
https://www.php.net/manual/en/book.pgsql.php
Patch for integrating these functions as an example has been submitted
also to PHP manual via edit.php.net.
2019-05-13 22:14:58 +02:00
Jakub Zelenka
5036c293b3
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-13 18:51:41 +01:00
Jakub Zelenka
aa74c30466
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-13 18:51:05 +01:00
Jakub Zelenka
ad63bd169b
Add ping to the fpm test for bug #77934
2019-05-13 18:50:24 +01:00
CHU Zhaowei
e829d08729
Implement spread operator in arrays
...
RFC: https://wiki.php.net/rfc/spread_operator_for_array
Closes GH-3640.
2019-05-13 14:42:43 +02:00
Dmitry Stogov
49de3ce3ca
Check for supported libffi ABI
2019-05-13 15:15:51 +03:00
Christoph M. Becker
2e8518fdcf
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78003 : strip_tags output change since PHP 7.3
2019-05-13 13:11:07 +02:00
Christoph M. Becker
69bab6e5a5
Fix #78003 : strip_tags output change since PHP 7.3
...
A refactoring of the strip tags state machine[1] missed the special
treatment of `depth > 0` when a `>` is encountered in state 2 or 3. We
re-add it for BC reasons.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=5cf64742773ddbf9af69d962a4d12b567fcf0084 >
2019-05-13 13:10:24 +02:00
Dmitry Stogov
3322ae2eb2
ARM64 may be big endian
2019-05-13 13:33:03 +03:00
Dmitry Stogov
071793a0bb
Load 8 bytes at a time in hash_func. (Sebastian Pop)
2019-05-13 12:34:53 +03:00
Nikita Popov
bec6ff9021
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-13 11:06:35 +02:00
Nikita Popov
bec68d59a2
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-13 11:06:14 +02:00
Theodore Brown
b6b15fc65c
Fix #77993 : Wrong parse error for invalid hex literal on Windows
...
If a PHP file contains an invalid hex literal such as `0x_10`, the expected error
is `Parse error: syntax error, unexpected 'x_10' (T_STRING) in %s on line %d`.
This already worked correctly on Linux, but on Windows prior to this patch a different
error was produced: `Parse error: Invalid numeric literal in %s on line %d`.
2019-05-13 11:04:56 +02:00
GITSRC
5d3337076b
Require semicolon after SAVE_CURL_ERROR()
2019-05-13 11:01:37 +02:00
Vincent JARDIN
c55af3c65a
Support content_type stream context option in soap
...
Allows overriding the HTTP header using the HTTP context:
$client = new SoapClient('http://url.wsdl&v=latest ', [
'stream_context' => stream_context_create([
'http' => [
'content_type' => 'foobarX',
],
]),
]);
2019-05-13 10:51:03 +02:00
Christoph M. Becker
357da6bc59
Deprecate and ignore $version parameter of curl_version()
...
`curl_version()`[1] (of ext/curl) makes `curl_version_info()`[2] (of
libcurl) available to PHP userland. The latter requires to pass an
`age` argument which usually is `CURLVERSION_NOW`, so that the
information returned by the runtime matches the declarations used
during compile time. For C programs it is simply necessary to pass
this information, and in rare occasions it might make sense to pass
something else than `CURLVERSION_NOW`. curl.h notes:
| The 'CURLVERSION_NOW' is the symbolic name meant to be used by
| basically all programs ever that want to get version information.
For the PHP binding, using a newer `age` than available at compile time
will neither provide the PHP program more information, nor would using
an older `age` have tangible benefits.
We therefore deprecate the useless `$version` parameter, and if it is
passed nonetheless, we use `CURLVERSION_NOW` instead of the supplied
value, and raise a warning.
[1] <https://www.php.net/manual/en/function.curl-version.php >
[2] <https://curl.haxx.se/libcurl/c/curl_version_info.html >
2019-05-13 08:53:41 +02:00
Peter Kokot
addf2ad5fd
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Convert CRLF to LF
2019-05-13 03:53:49 +02:00
Peter Kokot
43e6fd1e2b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Convert CRLF to LF
2019-05-13 03:53:31 +02:00
Peter Kokot
f95b27c6f6
Convert CRLF to LF
...
These files are tracked with CRLF line endings in Git and can be
converted to LF. Neither are parts of tests or code itself.
2019-05-13 03:51:00 +02:00
Peter Kokot
ecb6a8db63
[ci skip] Remove outdated fastcgi info in favor of the manual
2019-05-13 02:57:20 +02:00
Peter Kokot
812dbed0e9
[ci skip] Refactor libgd docs
...
Changes to simplify managing libgd docs a bit:
- Move copyright statement and licensing info to common redistributable
bins file. All previous notices left intact and updated with the
upstream info.
- Remove unsynced and difficult to track README file compared to
upstream README.md file available at https://github.com/libgd/libgd
2019-05-12 23:51:39 +02:00
Peter Kokot
6abc6baa2a
[ci skip] Migrate intl error conventions docs to Markdown
2019-05-12 23:24:03 +02:00
Peter Kokot
1c53afbe32
[ci skip] Migrate oci8 README to Markdown
2019-05-12 22:09:09 +02:00
Peter Kokot
83e565e244
[ci skip] Migrate tests READMEs to Markdown
2019-05-12 22:03:10 +02:00
Peter Kokot
340da47167
[ci skip] Migrate libxmlrpc README to Markdown
2019-05-12 21:08:06 +02:00
Peter Kokot
75fb74860d
Normalize comments in *nix build system m4 files
...
Normalization include:
- Use dnl for everything that can be ommitted when configure is built in
favor of the shell comment character # which is visible in the output.
- Line length normalized to 80 columns
- Dots for most of the one line sentences
- Macro definitions include similar pattern header comments now
2019-05-12 18:43:03 +02:00
Theodore Brown
e96c776bd5
Fix typos in upgrade notes
2019-05-12 17:36:48 +02:00
Christoph M. Becker
b3085bd0d4
Prevent race conditions
...
Since all current ODBC test cases use the same DSN, there may be
conflicts when running tests in parallel. We prevent this by adding a
CONFLICTS marker which might be unnecessarily general, but get's the
job done, and still can be refined later.
2019-05-12 17:16:41 +02:00
Peter Kokot
f1552c864f
Remove unused variable
2019-05-12 03:23:37 +02:00
Vinicius Dias
188ece856d
Remove duplicate variables
...
Removing duplicate variables `$beginDtObj` and `$beginTimestamp`.
2019-05-12 03:02:38 +02:00
Hugh McMaster
3ece7df9cf
Use PKG_CHECK_MODULES to detect the iODBC library
2019-05-12 01:36:46 +02:00
Hugh McMaster
755f6f6ede
Use PKG_CHECK_MODULES to detect the systemd library
2019-05-12 00:19:03 +02:00
Jakub Zelenka
4bf37e467b
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-11 20:10:13 +01:00
Jakub Zelenka
0cad701374
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-11 20:08:57 +01:00
Jakub Zelenka
cc5c51e7f0
Fix bug #77934 (php-fpm kill -USR2 not working)
2019-05-11 20:07:39 +01:00
peter279k
d0ac3a6a86
Using PDO instead because of consistency
2019-05-11 21:05:49 +02:00
David Carlier
1f3f54f586
list interfaces/adding just "binary" state status.
2019-05-11 20:29:09 +02:00
Peter Kokot
836bbb4e2c
Remove dead DEBUG_CFLAGS setting
...
The USE_MAINTAINER_MODE has been removed via
a4c484a4d8 and
43ed903949
2019-05-11 19:53:14 +02:00
Peter Kokot
f7cdac6c97
Remove unused symbol definition
2019-05-11 19:47:54 +02:00
Peter Kokot
9219e56063
Remove redundant memory.h file
...
The memory.h file is part of the pre-C89 era and is on today's systems
only a simple wrapper for including the final string.h header file.
2019-05-11 19:47:54 +02:00
Peter Kokot
3a4df95793
Simplify ext/mbstring/libmbfl/config.h creation
...
- The config.h.in is part of the standalone libmbfl library and it is
forked and bundled.
2019-05-11 19:44:40 +02:00
Peter Kokot
ab257ed320
Integrate libmbfl docs to README.md and LICENSE
...
- All credits, license info preserved, only merged together to not have
to many places to edit.
- Changelogs integrated in the readme since they are not used anymore.
2019-05-11 18:29:30 +02:00
Peter Kokot
4e0e0b8152
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Convert CRLF to LF in *.wsdl files
2019-05-11 17:16:50 +02:00
Peter Kokot
bec22af8d7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Convert CRLF to LF in *.wsdl files
2019-05-11 17:15:08 +02:00
Peter Kokot
b15bfb9129
Convert CRLF to LF in *.wsdl files
...
These EOL types are part of different environments and not part of the
tests themselves.
2019-05-11 17:12:28 +02:00
Peter Kokot
8ef2121ee1
Fix comment to match the future zts configuration option
2019-05-11 15:03:17 +02:00
Peter Kokot
4bfb86cdca
Remove ffi README in favour of docs
...
- https://www.php.net/manual/en/book.ffi.php
- The FFI C parser is mentioned in the CONTRIBUTING.md file
2019-05-11 14:51:14 +02:00
Christoph M. Becker
330d773b3c
Prevent race condition
...
This test may conflict with readdir_variation3.phpt otherwise.
2019-05-11 09:52:19 +02:00
Peter Kokot
a68e0767b3
Rename *.jpeg files to *.jpg
...
These file extensions are not part of these tests and *.jpg is more
common.
2019-05-11 03:22:19 +02:00
Peter Kokot
e586d3f447
Bump config.guess and config.sub
...
```
wget -O config.guess 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD '
wget -O config.sub 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD '
```
2019-05-11 00:24:26 +02:00
Peter Kokot
313930a36a
Remove unused variables
2019-05-10 22:58:14 +02:00
Christoph M. Becker
1b0a33ec59
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix typo
2019-05-10 18:46:18 +02:00
Christoph M. Becker
49b5ffe48c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix typo
2019-05-10 18:44:47 +02:00
Christoph M. Becker
3759c6316d
Fix typo
...
Since opcache.enable defaults to 1 anyway, this change is only
cosmetic.
2019-05-10 18:43:40 +02:00
Kalle Sommer Nielsen
a2a84af4ed
Merge branch 'PHP-7.4' of git.php.net:/php-src into PHP-7.4
2019-05-10 02:38:12 +03:00
Kalle Sommer Nielsen
f13fdeadd6
NEWS and UPGRADING for the scatter filter
2019-05-10 02:37:02 +03:00
Kalle Sommer Nielsen
bcd11a1dfb
Implemented the gdScatter filter I wrote almost 10 years ago
...
This filter is available as of libgd 2.1.0 which is our bare minimum for
external compilation of ext/gd.
The scatter filter works by iterating over all pixels in the image and
shifting them randomly based on two modifier (`plus` and `sub`) values:
dest_x = (int)(x + ((rand() % (plus - sub)) + sub));
dest_y = (int)(y + ((rand() % (plus - sub)) + sub));
Additionally the scatter filter also supports by only shifting pixels where
the current pixel being iterated is one or more colors, allowing the scatter
filter to only effect solid colors in part of an image.
Note, due to the nature of randomness and implementation, pixels who were
shifted ahead of iteration will be shifted once more and therefore the
bottom right of an image may contain a slight scatter effect due to this.
2019-05-10 02:23:40 +03:00
Peter Kokot
1ab3704143
Remove unused variable
2019-05-10 01:05:19 +02:00
Peter Kokot
f7b62b115e
Remove dead code from configure.ac
...
SAPI apache has been removed and now there is apache2handler so this
warning hasn't been used for a while.
2019-05-10 00:44:09 +02:00
Peter Kokot
8fc21d5cd6
Disable checking for library in ext skeleton
2019-05-10 00:21:09 +02:00
George Wang
dc63b0e480
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-09 18:15:48 -04:00
George Wang
d2037b1bd4
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-09 18:14:11 -04:00
George Wang
af4143753f
Updated LiteSpeed SAPI to 7.3.2 to allow request header value length up to 64K.
2019-05-09 18:13:25 -04:00
Peter Kokot
ec518aef10
Remove unused functions
...
- _get_zval_ptr_cv_deref_BP_VAR_UNSET
- _get_zval_ptr_cv_deref_BP_VAR_IS
- _get_zval_ptr_cv_deref_BP_VAR_RW
- _get_zval_ptr_cv_deref_BP_VAR_W
2019-05-09 19:07:24 +02:00
Christoph M. Becker
d0d290d4aa
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix erroneous assertions
2019-05-09 16:56:57 +02:00
Christoph M. Becker
fd1ffa4692
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix erroneous assertions
2019-05-09 16:55:35 +02:00
Christoph M. Becker
27f168cf63
Fix erroneous assertions
...
Since PHP strings are binary safe (i.e. they may contain NUL bytes), we
must not assume that strlen()/wcslen() actually return the length of
the string. Only if the given in_len is zero, it is safe to assert
this.
2019-05-09 16:54:11 +02:00
Hugh McMaster
0025a39b45
Update the extension template file to use PKG_CHECK_MODULES
2019-05-09 16:05:46 +02:00
Nikita Popov
d0a56f707f
Fixed bug #71030
...
Make sure to always fetch the RHS of a list assignment first, instead
of special casing known self-assignments, which will not detect cases
using references correctly.
As a side-effect, it is no longer possible to do something like
byRef(list($x) = $y). This worked by accident previously, but only
if $y was a CV and the self-assignment case did not trigger.
However it shouldn't work for the same reason that byRef($x = $y)
doesn't. Conversely byRef(list(&$x) = $y) and byRef($x =& $y)
continue to be legal.
2019-05-09 14:31:39 +02:00
Nikita Popov
4b40a46bf1
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-09 12:36:20 +02:00
Nikita Popov
90318fbcbe
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-09 12:35:11 +02:00
Nikita Popov
35c80583f0
Fixed bug #75186
2019-05-09 12:33:53 +02:00
Christoph M. Becker
9840a11117
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix log_verbosity_bug.phpt
2019-05-09 12:16:16 +02:00
Christoph M. Becker
e46b3c3e70
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix log_verbosity_bug.phpt
2019-05-09 12:15:32 +02:00
Christoph M. Becker
e359812ce3
Fix log_verbosity_bug.phpt
...
This test may fail on Windows due to the file cache fallback. We
ensure that this will not happen.
2019-05-09 12:15:00 +02:00
Nikita Popov
54be40113d
Fixed bug #77951
...
Treat singleton references as non-references in ReflectionReference
and return null for them.
2019-05-09 12:02:16 +02:00
Peter Kokot
3c92b79ea0
Remove unused functions
...
- zend_mm_bitset_find_zero
- zend_mm_bitset_find_one
- zend_mm_bitset_find_zero_and_set
- zend_is_by_ref_func_arg_fetch
2019-05-08 22:02:39 +02:00
Peter Kokot
99b94fbb5c
Remove redundant example/test libsodium.php file
2019-05-08 22:00:22 +02:00
Peter Kokot
71acd7a2f7
Remove unused example/test fileinfo.php script
2019-05-08 21:58:52 +02:00
Peter Kokot
05350e621b
Remove example PHP script from FFI
...
FFI README.md already includes the PHP example with more information.
2019-05-08 21:55:59 +02:00
Peter Kokot
4eb67310a0
Remove vcsclean script
...
The vcsclean script is really only a wrapper for a git clean command.
Developers should use the more proper and clear native Git command
directly instead:
`git clean -Xfd`
2019-05-08 21:51:01 +02:00
Christoph M. Becker
ec10e191c4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add {TMP} placeholder for PHPT INI sections
2019-05-08 19:26:02 +02:00
Christoph M. Becker
236522529c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add {TMP} placeholder for PHPT INI sections
2019-05-08 19:22:21 +02:00
Christoph M. Becker
3d0a0f801b
Add {TMP} placeholder for PHPT INI sections
...
Several tests use `/tmp` in the `--INI--` section, but this is not
portable. We therefore introduce the `{TMP}` placeholder which
evaluates to the system's temporary directory using
`sys_get_temp_dir()`.
We also remove the doubtful `strpos()` optimization.
2019-05-08 19:21:38 +02:00
Nikita Popov
e4e6820d10
Use fast zpp for ReflectionClass constructor
...
At this point zpp overhead makes up a significant part of this
function.
2019-05-08 17:06:00 +02:00
Dmitry Stogov
90e285f6fd
Improve PHP hash function.
...
See Daniel Lemire's blog post https://lemire.me/blog/2016/07/21/accelerating-php-hashing-by-unoptimizing-it/
2019-05-08 16:47:12 +03:00
Nikita Popov
ee0fc1b5ae
Optimize $name/$class property population in reflection
...
Instead of going through write_property, directly assign to the
respective property slot.
2019-05-08 15:43:42 +02:00
Nikita Popov
f778e1a0b2
Refactor inheritance type check implementation
...
Extract the self/parent name resolution code and drop unnecessary
string copies/releases. Store the fe/proto types in local variables.
2019-05-08 12:13:06 +02:00
Nikita Popov
5c474010fb
Deduplicate inheritance type check implementation
...
Make the check covariant (insofar as it is allowed now, i.e.
nullability and iterable) and call it with appropriate argument
order for both parameter and return types.
This makes it simpler to extend to full variance support.
2019-05-08 11:51:23 +02:00
Nikita Popov
d5ef9c5b28
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-08 11:38:03 +02:00
Nikita Popov
e2ef4e9e2f
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-08 11:37:49 +02:00
Nikita Popov
d19b6aa5ba
Fix resolution of "parent" during inheritance check
...
We can't assume that the method we're checking against is part of
the parent class...
2019-05-08 11:35:26 +02:00
Christoph M. Becker
72e1da81b6
Deprecate CURLPIPE_HTTP1
...
`CURLPIPE_HTTP1` is deprecated and has no effect as of cURL 7.62.0[1].
We therefore deprecate the PHP constant as well, and trigger a warning
that it is no longer supported, if used against cURL 7.62.0 and up.
[1] <https://curl.haxx.se/libcurl/c/CURLMOPT_PIPELINING.html >
2019-05-07 17:05:07 +02:00
Sebastian Pop
6fad150cfd
[AArch64] Use NEON to initialize zend_hash
...
On A72, google-benchmark measure before and after the patch:
--------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------
BM_hash_init_before 43.6 ns 43.6 ns 16052937
BM_hash_init_after 27.0 ns 27.0 ns 25877296
Patch written by Ali Saidi <alisaidi@amazon.com >
and Sebastian Pop <spop@amazon.com >
2019-05-07 16:21:44 +02:00
Nikita Popov
7929f83078
Add --with-ffi on Travis
2019-05-07 15:44:22 +02:00
Nikita Popov
645ebcdfbf
Avoid some maybe uninitialized warnings in ffi
...
All false positives.
2019-05-07 15:44:22 +02:00
Sebastian Pop
79a84e00fa
speed up increment and decrement operators with overflow detection
...
On A72, google-benchmark measure before and after the patch:
--------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------
BM_inc_before 6.54 ns 6.54 ns 106985447
BM_dec_before 6.54 ns 6.54 ns 107011667
BM_inc_after 4.36 ns 4.36 ns 160525864
BM_dec_after 4.36 ns 4.36 ns 160524243
Before the patch:
fast_long_add_function:
ldr x0, [x1]
add x2, x0, 1
cmp x2, x0
blt .L11
str x2, [x1]
ret
.L11:
mov x0, 4890909195324358656
mov w2, 5
str x0, [x1]
str w2, [x1, 8]
ret
With the patch:
fast_long_add_function:
ldr x5, [x1]
adds x5,x5,1
bvs .L2
str x5, [x1]
ret
.L2:
mov x0, 4890909195324358656
mov w2, 5
str x0, [x1]
str w2, [x1, 8]
ret
php$ ./sapi/cli/php Zend/bench.php
Base: Patch:
simple 0.091 simple 0.091
simplecall 0.014 simplecall 0.014
simpleucall 0.041 simpleucall 0.041
simpleudcall 0.045 simpleudcall 0.045
mandel 0.193 mandel 0.193
mandel2 0.229 mandel2 0.229
ackermann(7) 0.044 ackermann(7) 0.044
ary(50000) 0.010 ary(50000) 0.010
ary2(50000) 0.008 ary2(50000) 0.008
ary3(2000) 0.096 ary3(2000) 0.102
fibo(30) 0.149 fibo(30) 0.148
hash1(50000) 0.016 hash1(50000) 0.016
hash2(500) 0.020 hash2(500) 0.020
heapsort(20000) 0.055 heapsort(20000) 0.055
matrix(20) 0.057 matrix(20) 0.057
nestedloop(12) 0.091 nestedloop(12) 0.091
sieve(30) 0.032 sieve(30) 0.032
strcat(200000) 0.010 strcat(200000) 0.010
------------------------ ------------------------
Total 1.199 Total 1.204
php$ ./sapi/cli/php Zend/micro_bench.php
Base: Patch:
empty_loop 0.051 empty_loop 0.050
func() 0.181 0.130 func() 0.181 0.131
undef_func() 0.186 0.135 undef_func() 0.186 0.136
int_func() 0.116 0.064 int_func() 0.116 0.065
$x = self::$x 0.235 0.183 $x = self::$x 0.229 0.179
self::$x = 0 0.198 0.147 self::$x = 0 0.199 0.148
isset(self::$x) 0.229 0.178 isset(self::$x) 0.225 0.174
empty(self::$x) 0.231 0.180 empty(self::$x) 0.227 0.177
$x = Foo::$x 0.144 0.093 $x = Foo::$x 0.142 0.092
Foo::$x = 0 0.107 0.056 Foo::$x = 0 0.105 0.054
isset(Foo::$x) 0.140 0.088 isset(Foo::$x) 0.140 0.089
empty(Foo::$x) 0.148 0.097 empty(Foo::$x) 0.144 0.094
self::f() 0.238 0.187 self::f() 0.240 0.190
Foo::f() 0.209 0.158 Foo::f() 0.201 0.150
$x = $this->x 0.123 0.072 $x = $this->x 0.120 0.070
$this->x = 0 0.124 0.073 $this->x = 0 0.124 0.074
$this->x += 2 0.151 0.099 $this->x += 2 0.151 0.101
++$this->x 0.137 0.086 ++$this->x 0.139 0.088
--$this->x 0.137 0.086 --$this->x 0.137 0.087
$this->x++ 0.170 0.119 $this->x++ 0.172 0.122
$this->x-- 0.171 0.119 $this->x-- 0.172 0.122
isset($this->x) 0.170 0.119 isset($this->x) 0.170 0.120
empty($this->x) 0.179 0.128 empty($this->x) 0.179 0.129
$this->f() 0.194 0.143 $this->f() 0.194 0.144
$x = Foo::TEST 0.188 0.137 $x = Foo::TEST 0.188 0.138
new Foo() 0.482 0.431 new Foo() 0.482 0.432
$x = TEST 0.109 0.058 $x = TEST 0.109 0.059
$x = $_GET 0.190 0.138 $x = $_GET 0.188 0.137
$x = $GLOBALS['v'] 0.242 0.191 $x = $GLOBALS['v'] 0.246 0.196
$x = $hash['v'] 0.196 0.145 $x = $hash['v'] 0.192 0.142
$x = $str[0] 0.146 0.094 $x = $str[0] 0.142 0.092
$x = $a ?: null 0.144 0.093 $x = $a ?: null 0.144 0.094
$x = $f ?: tmp 0.174 0.123 $x = $f ?: tmp 0.174 0.124
$x = $f ? $f : $a 0.153 0.101 $x = $f ? $f : $a 0.153 0.102
$x = $f ? $f : tmp 0.148 0.097 $x = $f ? $f : tmp 0.148 0.098
------------------------ ------------------------
Total 6.143 Total 6.108
2019-05-07 15:42:19 +03:00
Sebastian Pop
adc3b72076
speed up add and sub operators with overflow detection
...
On A72, google-benchmark measure before and after the patch:
--------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------
BM_add_before 13.3 ns 13.3 ns 52626058
BM_sub_before 8.72 ns 8.72 ns 80259343
BM_add_after 4.80 ns 4.80 ns 145926004
BM_sub_after 4.80 ns 4.80 ns 145936496
Before the patch:
fast_long_add_function:
ldr x1, [x1]
ldr x2, [x2]
add x3, x1, x2
eor x4, x1, x2
tbz x4, #63 , .L5
.L2:
mov w1, 4
str x3, [x0]
str w1, [x0, 8]
ret
.p2align 2
.L5:
eor x4, x1, x3
tbz x4, #63 , .L2
scvtf d0, x1
scvtf d1, x2
mov w1, 5
str w1, [x0, 8]
fadd d0, d0, d1
str d0, [x0]
ret
With the patch:
fast_long_add_function:
ldr x5, [x1]
ldr x6, [x2]
adds x5, x5, x6
bvs .L2
mov w6, 4
str x5, [x0]
str w6, [x0, 8]
ret
.L2:
ldr x1, [x1]
mov w3, 5
ldr x2, [x2]
str w3, [x0, 8]
scvtf d0, x1
scvtf d1, x2
fadd d0, d0, d1
str d0, [x0]
ret
php$ ./sapi/cli/php Zend/bench.php
Base: Patch:
simple 0.091 simple 0.091
simplecall 0.014 simplecall 0.014
simpleucall 0.041 simpleucall 0.041
simpleudcall 0.045 simpleudcall 0.045
mandel 0.193 mandel 0.193
mandel2 0.229 mandel2 0.229
ackermann(7) 0.044 ackermann(7) 0.044
ary(50000) 0.010 ary(50000) 0.010
ary2(50000) 0.008 ary2(50000) 0.008
ary3(2000) 0.096 ary3(2000) 0.095
fibo(30) 0.149 fibo(30) 0.148
hash1(50000) 0.016 hash1(50000) 0.016
hash2(500) 0.020 hash2(500) 0.020
heapsort(20000) 0.055 heapsort(20000) 0.054
matrix(20) 0.057 matrix(20) 0.057
nestedloop(12) 0.091 nestedloop(12) 0.091
sieve(30) 0.032 sieve(30) 0.032
strcat(200000) 0.010 strcat(200000) 0.010
------------------------ ------------------------
Total 1.199 Total 1.197
php$ ./sapi/cli/php Zend/micro_bench.php
Base: Patch:
empty_loop 0.051 empty_loop 0.051
func() 0.181 0.130 func() 0.181 0.130
undef_func() 0.186 0.135 undef_func() 0.186 0.135
int_func() 0.116 0.064 int_func() 0.116 0.064
$x = self::$x 0.235 0.183 $x = self::$x 0.233 0.182
self::$x = 0 0.198 0.147 self::$x = 0 0.198 0.147
isset(self::$x) 0.229 0.178 isset(self::$x) 0.229 0.178
empty(self::$x) 0.231 0.180 empty(self::$x) 0.231 0.180
$x = Foo::$x 0.144 0.093 $x = Foo::$x 0.144 0.093
Foo::$x = 0 0.107 0.056 Foo::$x = 0 0.107 0.056
isset(Foo::$x) 0.140 0.088 isset(Foo::$x) 0.140 0.088
empty(Foo::$x) 0.148 0.097 empty(Foo::$x) 0.148 0.097
self::f() 0.238 0.187 self::f() 0.238 0.187
Foo::f() 0.209 0.158 Foo::f() 0.209 0.158
$x = $this->x 0.123 0.072 $x = $this->x 0.123 0.072
$this->x = 0 0.124 0.073 $this->x = 0 0.124 0.073
$this->x += 2 0.151 0.099 $this->x += 2 0.153 0.101
++$this->x 0.137 0.086 ++$this->x 0.138 0.086
--$this->x 0.137 0.086 --$this->x 0.138 0.086
$this->x++ 0.170 0.119 $this->x++ 0.172 0.121
$this->x-- 0.171 0.119 $this->x-- 0.172 0.121
isset($this->x) 0.170 0.119 isset($this->x) 0.170 0.119
empty($this->x) 0.179 0.128 empty($this->x) 0.179 0.128
$this->f() 0.194 0.143 $this->f() 0.194 0.143
$x = Foo::TEST 0.188 0.137 $x = Foo::TEST 0.188 0.136
new Foo() 0.482 0.431 new Foo() 0.479 0.427
$x = TEST 0.109 0.058 $x = TEST 0.109 0.058
$x = $_GET 0.190 0.138 $x = $_GET 0.190 0.139
$x = $GLOBALS['v'] 0.242 0.191 $x = $GLOBALS['v'] 0.242 0.191
$x = $hash['v'] 0.196 0.145 $x = $hash['v'] 0.196 0.145
$x = $str[0] 0.146 0.094 $x = $str[0] 0.145 0.094
$x = $a ?: null 0.144 0.093 $x = $a ?: null 0.144 0.093
$x = $f ?: tmp 0.174 0.123 $x = $f ?: tmp 0.174 0.123
$x = $f ? $f : $a 0.153 0.101 $x = $f ? $f : $a 0.153 0.101
$x = $f ? $f : tmp 0.148 0.097 $x = $f ? $f : tmp 0.148 0.097
------------------------ ------------------------
Total 6.143 Total 6.143
2019-05-07 15:38:17 +03:00
Hugh McMaster
cc9c5d8057
Use PKG_CHECK_MODULES to detect the ffi library
2019-05-07 14:28:33 +02:00
Nikita Popov
09ea55cb4e
Deprecate left-associative ternary
...
Deprecate nesting ternary operators without explicit parentheses.
RFC: https://wiki.php.net/rfc/ternary_associativity
2019-05-07 14:06:29 +02:00
Sebastian Pop
68a7578243
[AArch64] use rev64 to reverse strings
...
The execution time goes from 4.388s down to 0.563s on a Graviton A1
instance for the benchmark:
function reverse_strings() {
$a = "foo";
for ($i = 0; $i < 100000; $i++) {
strrev($a);
$a .= "o";
}
}
2019-05-07 10:40:45 +02:00
Nikita Popov
d9a2d76a43
Remove outdated info from README.ZEND_MM
...
[ci skip]
2019-05-07 09:54:46 +02:00
Peter Kokot
361d0b3426
Convert CRLF line endings to LF
...
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.
Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)
To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`
Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).
Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.
Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
2019-05-07 04:40:01 +02:00
Peter Kokot
c453196be4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Convert CRLF line endings to LF
2019-05-07 04:35:43 +02:00
Peter Kokot
d153fbc5a9
Convert CRLF line endings to LF
...
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.
Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)
To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`
Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).
Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.
Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
2019-05-07 04:34:37 +02:00
Peter Kokot
b8caba92e2
Remove empty section
2019-05-07 04:26:03 +02:00
Peter Kokot
88f64d4a7b
[ci skip] Add password registry RFC to changelog
2019-05-07 02:22:29 +02:00
Peter Kokot
eb9ad31b48
[ci skip] Rename libbcmath license file to LICENSE
...
- More common filename accross the PHP repository
- Additionally, this patch replaces some legacy form feed (FF or ^L)
characters (for printers) to LF (\n) newline character.
2019-05-07 01:09:25 +02:00
Peter Kokot
975cb57930
[ci skip] Move OpenLDAP license to redistributable info file
2019-05-06 23:02:46 +02:00
Peter Kokot
426bcdf021
Fix double incremenation in ffi
...
This removes the warning of:
`incremented both in the loop header and in the loop body` in the
compilation step.
2019-05-06 09:45:11 +03:00
Peter Kokot
c025cf47c0
Rename uppercase JPG file to lowercase jpg
...
To not introduce new file type and since it is not related to a test.
Lowercase JPG file type more common and recommended to use.
2019-05-06 05:18:27 +02:00
Peter Kokot
6be6cac6f4
[ci skip] Move wddx to dedicated section
2019-05-06 00:58:21 +02:00
Peter Kokot
e58fddf7a3
Remove phpextdist
...
This script hasn't been used since using PEAR as a package manager for
PHP extensions since it is using Makefile.in as an indicator if the
current directory is extension. Instead of this script extensions can
be packaged differently and more properly with either current PEAR
or with some other manual method.
2019-05-06 00:15:20 +02:00
Peter Kokot
340c39acfa
Remove duplicate test file
...
Files ext/oci8/tests/field_funcs0.phpt and
ext/oci8/tests/field_funcs.phpt are the same.
2019-05-06 00:11:40 +02:00
peter279k
8417142a8f
Remove duplicate getimagesize_variation_003 test
2019-05-05 23:55:09 +02:00
Jakub Zelenka
b348c46e29
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-05 21:06:30 +01:00
Jakub Zelenka
36a7d9fca4
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-05 21:05:55 +01:00
Jakub Zelenka
9977de0028
Fix OpenSSL online test for ca context
...
The php.net is redirected to https so use nginx.org
2019-05-05 21:04:28 +01:00
Christoph M. Becker
30409d6753
Properly initialize variable
...
Not all code paths assign to `handle`, even though it may be used, so
we make sure that it is initialized to a sane value in the first place.
2019-05-05 17:49:54 +02:00
Christoph M. Becker
a760c79f1e
Fix typo
2019-05-05 15:40:33 +02:00
Christoph M. Becker
e4757ecc80
Re-add common PDO tests to Firebird test suite
...
These have been inadvertently dropped when changing the test suite to
not require ext/interbase anymore, so we add them back.
We also change the required environment variable names to match the
usual PDO names. Particularly, we replace `PDO_FIREBIRD_TEST_HOSTNAME`
and `_DATABASE` with the more flexible `PDO_FIREBIRD_TEST_DSN`.
2019-05-04 14:24:15 +02:00
Christoph M. Becker
ae21dc46da
Fix memory leak exhibited by bug_aaa.phpt
...
Since a statement may be executed multiple times, we need to free
already allocated storage for output data before allocating new
storage.
2019-05-04 14:20:11 +02:00
peter279k
ba0913a2e5
Fix undefined variable, and remove unused test-pdo
2019-05-03 18:14:32 +02:00
Peter Kokot
a9e07b937c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update `NEWS` with changes made at #4093
2019-05-03 17:33:05 +02:00
Javier Spagnoletti
78d24429f2
Update NEWS with changes made at #4093
2019-05-03 17:32:40 +02:00
Christoph M. Becker
508892e266
Fix comment
...
0x2d == 45, not 46. However, `CURLMOPT_PUSHFUNCTION` is actually
available as of cURL 7.44.0[1], while we make the respective PHP
constants available only as of cURL 7.46.0[2].
[1] <https://curl.haxx.se/libcurl/c/CURLMOPT_PUSHFUNCTION.html >
[2] <http://git.php.net/?p=php-src.git;a=blob;f=ext/curl/interface.c;h=fdf855278eef6f32f26c49b54f56aca9bd7007c3;hb=HEAD#l1289 >
2019-05-03 16:50:56 +02:00
Kalle Sommer Nielsen
fdb16f8c20
NEWS
2019-05-02 23:34:46 +03:00
Simon Welsh
6e3438bc62
Include the request method in CLI server logs
2019-05-02 23:32:22 +03:00
peter279k
826e4aca59
Remove test-pcntl script
2019-05-02 23:25:32 +03:00
Kalle Sommer Nielsen
1c893b89bd
PDO_Firebird test update, round 2
...
- This renames the environment variables to: PDO_FIREBIRD_TEST_XXX to be in line with other PDO test suites
- Adds an skipif.inc file that skips the tests if no database is set
- The test suite can now be run without PDO_FIREBIRD_TEST_HOSTNAME
$ set PDO_FIREBIRD_TEST_HOSTNAME=localhost
$ set PDO_FIREBIRD_TEST_DATABASE=C:\dev\php.fdb
$ nmake test TESTS=ext/pdo_firebird/tests
2019-05-02 23:19:27 +03:00
Kalle Sommer Nielsen
c9599c1c72
Rewrite PDO_Firebird tests to not depend on ext/interbase
...
I have no idea how I managed to get this to work, but there is 4 new environment variables that
can be specified for the connection:
- PDO_FIREBIRD_USERNAME
- PDO_FIREBIRD_PASSWORD
- PDO_FIREBIRD_HOSTNAME
- PDO_FIREBIRD_DATABASE
(See testdb.inc for more info)
The only way I could get this to work on my local machine was with a DSN like:
- firebird:dbname=localhost:C:\php.fdb
Hence why the 'hostname' can be specified.
There is also a bit mess in regards to cleanup of this extension tests, but I really do not want to dwell down there, if someone dares to do so, then please be my guest.
2019-05-02 21:48:24 +03:00
Nikita Popov
2934f9da4d
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-02 15:13:24 +02:00
Javier Spagnoletti
6b73e692c9
Add more missing CURL_VERSION_* constants
...
And also check for CURL_VERSION_* constants in the sync-constants.php
script.
Related to request #72189 : Add missing `CURL_VERSION_*` constants.
2019-05-02 15:11:42 +02:00
f3e5bbe6f3
Implement arrow functions
...
Per RFC: https://wiki.php.net/rfc/arrow_functions_v2
Co-authored-by: Levi Morrison <levim@php.net >
Co-authored-by: Bob Weinand <bobwei9@hotmail.com >
2019-05-02 15:04:03 +02:00
Kalle Sommer Nielsen
eaab0a2b6f
Remove some more interbase leftovers
2019-05-01 23:45:06 +03:00
Kalle Sommer Nielsen
9cbf5ebf8b
Fix typo
2019-05-01 23:38:17 +03:00
Kalle Sommer Nielsen
c8a20dfdca
NEWS for ext/interbase unbundling
2019-05-01 23:35:30 +03:00
Kalle Sommer Nielsen
b458fcb87f
Move ext/interbase to pecl/database/interbase
...
https://wiki.php.net/rfc/deprecate-and-remove-ext-interbase
2019-05-01 23:27:04 +03:00
Dmitry Stogov
ec5f7df732
Use ZEND_HASH_FOREACH with direct callback, instead of callbacks
2019-04-30 14:50:01 +03:00
Christoph M. Becker
f655ca29a7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS wrt. sec fixes
2019-04-30 09:36:31 +02:00
Christoph M. Becker
d91b643c87
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS wrt. sec fixes
2019-04-30 09:36:09 +02:00
Christoph M. Becker
1210c3b960
Update NEWS wrt. sec fixes
2019-04-30 09:34:53 +02:00
蝦米
e4ed2bf922
fix typo
2019-04-30 09:18:17 +02:00
Stanislav Malyshev
db0de953ba
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
2019-04-30 00:06:10 -07:00
Stanislav Malyshev
66b32f25d5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
2019-04-30 00:05:43 -07:00
Stanislav Malyshev
cb5af4e8a0
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
2019-04-30 00:05:32 -07:00
Stanislav Malyshev
f80ad18afa
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
...
I do not completely understand what is going on there, but I am pretty
sure dir_entry <= offset_base if not a normal situation, so we better not
to rely on such dir_entry.
2019-04-30 00:05:23 -07:00
Stanislav Malyshev
f7d59844e1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77821 : Potential heap corruption in TSendMail()
2019-04-29 22:09:15 -07:00
Stanislav Malyshev
506a764089
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77821 : Potential heap corruption in TSendMail()
2019-04-29 22:09:10 -07:00
Stanislav Malyshev
2c3933821f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77821 : Potential heap corruption in TSendMail()
2019-04-29 22:09:04 -07:00
Christoph M. Becker
6c631ccfef
Fix #77821 : Potential heap corruption in TSendMail()
...
`zend_string_tolower()` returns a copy (not a duplicate) of the given
string, if it is already in lower case. In this case we must not not
`zend_string_free()` both strings. The cleanest solution is to call
` zend_string_release()` on both strings, which properly handles the
refcount.
2019-04-29 22:08:19 -07:00
Dmitry Stogov
8cdd215894
Also, use ZEND_ACC_PRELOADED for classes
2019-04-30 02:07:02 +03:00
Peter Kokot
ce65d2354c
Remove TSRM configuration header
...
TSRM configuration header file was once created by separate autoconf
build system for TSRM and is with the current code not directly needed
like this anymore.
2019-04-29 22:34:43 +02:00
Christoph M. Becker
c5faefa646
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77943 : imageantialias($image, false); does not work
2019-04-29 17:24:18 +02:00
Christoph M. Becker
a30b919872
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77943 : imageantialias($image, false); does not work
2019-04-29 17:23:45 +02:00
Christoph M. Becker
18a9ae412f
Fix #77943 : imageantialias($image, false); does not work
...
Firstly, we must not call `gdImageSetAntiAliased()` (which sets the
color to anti-alias), but rather modify the `gdImage.AA` flag.
Furthermore, we have to actually use the supplied boolean value.
We also make sure that we don't attempt to enable anti-aliasing for
palette images.
2019-04-29 17:23:16 +02:00
Christoph M. Becker
4b93393f7b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add tests for bug77943
2019-04-29 16:29:49 +02:00
Christoph M. Becker
44494c09bc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add tests for bug77943
2019-04-29 16:29:29 +02:00
Christoph M. Becker
3891e0d13a
Add tests for bug77943
2019-04-29 16:29:08 +02:00
Christoph M. Becker
85cf1cb077
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77943 : imageantialias($image, false); does not work
2019-04-29 16:18:54 +02:00
Christoph M. Becker
3fc1bdc81c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77943 : imageantialias($image, false); does not work
2019-04-29 16:18:27 +02:00
Christoph M. Becker
cd94cf60a2
Fix #77943 : imageantialias($image, false); does not work
...
Firstly, we must not call `gdImageSetAntiAliased()` (which sets the
color to anti-alias), but rather modify the `gdImage.AA` flag.
Furthermore, we have to actually use the supplied boolean value.
We also make sure that we don't attempt to enable anti-aliasing for
palette images.
2019-04-29 16:16:46 +02:00
Nikita Popov
55ecfe4ef3
Add UPGRADING entries
2019-04-29 14:17:44 +02:00
Hugh McMaster
a7b5b341b3
Use PKG_CHECK_MODULES to detect the zip library
2019-04-29 14:16:16 +02:00
Hugh McMaster
4bce02898d
Use PKG_CHECK_MODULES to detect the libsodium library
2019-04-29 14:16:16 +02:00
Hugh McMaster
c9ee822bb6
Always use pkg-config from the host architecture
2019-04-29 14:16:16 +02:00
Nikita Popov
b1c5f7b265
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-29 13:53:57 +02:00
Nikita Popov
ff2b5bda59
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-29 13:53:45 +02:00
Nikita Popov
5da0579259
Fixed bug #77945
...
Make sure that we proper distinguish between empty string key and
no key during SDL serialization.
2019-04-29 13:52:18 +02:00
Christoph M. Becker
71e9013bab
Properly initialize out parameter
...
The MS docs on `SQLColAttribute()`[1] state regarding the
`NumericAttributePtr` parameter:
| Please note that some drivers may only write the lower 32-bit or
| 16-bit of a buffer and leave the higher-order bit unchanged.
| Therefore, applications should initialize the value to 0 before
| calling this function.
[1] <https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlcolattribute-function?view=sql-server-2017 >
2019-04-29 12:17:38 +02:00
Jury
c79d5b86e0
Adds json_encode test for unpacked arrays
2019-04-29 10:23:38 +02:00
Christoph M. Becker
c68dc6b5e3
Extend CURLFile to support streams
...
Due to former restrictions of the libcurl API, curl multipart/formdata
file uploads supported only proper files. However, as of curl 7.56.0
the new `curl_mime_*()` API is available (and already supported by
PHP[1]), which allows us to support arbitrary *seekable* streams, which
is generally desirable, and particularly resolves issues with the
transparent Unicode and long part support on Windows (see bug #77711 ).
Note that older curl versions are still supported, but CURLFile is
still restricted to proper files in this case.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=a83b68ba56714bfa06737a61af795460caa4a105 >
2019-04-29 10:21:07 +02:00
Nikita Popov
22e9a5e0c3
Fix typo in TRY_ASSIGN macro name
2019-04-29 09:58:45 +02:00
Christoph M. Becker
9481cb43b3
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix tests
2019-04-29 09:07:13 +02:00
Christoph M. Becker
7faaf5a89a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests
2019-04-29 09:05:04 +02:00
Christoph M. Becker
9bf11045db
Fix tests
...
These tests are obviously meant to test successful and failing uri:
DSNs, but did not pass proper file:// URIs, so actually ended up
testing for invalid data source URIs twice. We fix this, and adjust
the expectations accordingly.
We also unfork the -win32 variant, since both test cases are almost
identical, and the expected error message may be either one.
2019-04-29 09:04:33 +02:00
Peter Kokot
c79eb107a0
Simplify checking of *nix build tools
...
The buildmk.stamp file has been created by the *nix build checking step
to run the check step only once. Instead of poluting the project root
directory, the stamp file can be also omitted. Performance difference is
very minimal to not justify having the stamp check at all today anymore.
This patch integrates the buildcheck.sh to buildconf script directly.
2019-04-29 01:30:27 +02:00
Peter Kokot
b931dacc88
Remove unused TSRM/readdir.h header
...
This was once part of TSRM but then got refactored into the windows
implementation win32/readdir.h directly. Instead of including such files
directly code should use zend_virtual_cwd.h which is already part of the
php.h file.
2019-04-29 00:51:13 +02:00
Christoph M. Becker
8446554fed
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Make MySQLPDOTest::extractVersion() more liberal
2019-04-28 23:50:43 +02:00
Christoph M. Becker
06b130579e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Make MySQLPDOTest::extractVersion() more liberal
2019-04-28 23:49:19 +02:00
Christoph M. Becker
fc9cdb723b
Make MySQLPDOTest::extractVersion() more liberal
...
MySQL/MariaDB version strings may have suffixes which may contain dots;
for instance, Debian stretch has 5.5.5-10.1.37-MariaDB-0+deb9u1 or
such. Therefore, we make the version extraction more liberal, and only
require that there are at least three parts separated by dot, and
ignore additional parts.
We also fix an erroneous test expectation, which would be triggered on
CI now, right away. This patch has been provided by petk@.
2019-04-28 23:48:27 +02:00
Peter Kokot
76df951eb5
Enhance the buildconf force option
...
The force option used to only remove the Autoconf cache files. Now it
also removes entire configure file so the configure file always gets
rebuilt when needs be done.
Additionally, the buildconf now also accepts the shorter version of the
force option:
buildconf -f
2019-04-28 21:15:54 +02:00
Peter Kokot
f9db357623
Automatically remove aclocal.m4 if present
...
Commit 4e7064d173 removed the usage of
`aclocal.m4`. When using Git repositories, many times cleaning of the
generated files is not done prior to running phpize or buildconf. For
example:
git clone git://github.com/php/php-src
cd php-src
git checkout PHP-7.3
./buildconf
./configure
git checkout PHP-7.4
./buildconf # -> warnings
./configure # -> errors
To not accidentally include `aclocal.m4` file in the generated configure
this enhances build system experience a bit more by removing aclocal.m4
file prior to start building configure file using phpize or buildconf.
2019-04-28 21:05:34 +02:00
Jakub Zelenka
78bed33862
Update NEWS with added TLS 1.3 info
2019-04-28 18:48:35 +01:00
Jakub Zelenka
3c056a9e75
Enable TLS 1.3 by default
2019-04-28 17:37:43 +01:00
Jakub Zelenka
c2e9c71e36
Fix tests and logic for TLS 1.3
2019-04-28 17:37:43 +01:00
codarrenvelvindron
5c05f5e6d3
Added tls 1.3 support for PHP
2019-04-28 17:37:43 +01:00
Peter Kokot
807901072d
[ci skip] Remove outdated and redundant Apache README
...
PHP manual includes more information and a bit more updated than this
README.
2019-04-28 02:29:08 +02:00
Peter Kokot
74e72496fa
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
Update NEWS
Fix #77024 : SplFileObject::__toString() may return array
2019-04-28 00:51:38 +02:00
Peter Kokot
f83c207d60
Update NEWS
2019-04-28 00:51:18 +02:00
Peter Kokot
1bdd97a601
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix #77024 : SplFileObject::__toString() may return array
2019-04-28 00:50:54 +02:00
Peter Kokot
6d8892aacd
Update NEWS
2019-04-28 00:50:40 +02:00
Craig Duncan
91c6fb881e
Fix #77024 : SplFileObject::__toString() may return array
...
- Correct the behaviour of casting spl files to strings
- Add a test for Bug 77024
2019-04-28 00:44:48 +02:00
David Carlier
bb06030bf7
Little detection change proposal.
...
As pointed out, the further path is called by open rather than shm_open.
2019-04-27 21:18:27 +02:00
Christoph M. Becker
d0719be436
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
PHP, meet MySQL
2019-04-27 19:22:30 +02:00
Christoph M. Becker
3309f2fbb9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
PHP, meet MySQL
2019-04-27 19:22:10 +02:00
Christoph M. Becker
57d5dc5688
PHP, meet MySQL
...
All pdo_mysql tests are skipped on AppVeyor because "No such host is
known". We change the DSN to use semicolons instead of spaces to fix
that.
2019-04-27 19:21:51 +02:00
Christoph M. Becker
3464929d64
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77944 : Wrong meta pdo_type for bigint on LLP64
2019-04-27 18:48:09 +02:00
Christoph M. Becker
e561d4100b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77944 : Wrong meta pdo_type for bigint on LLP64
2019-04-27 18:47:32 +02:00
Christoph M. Becker
16609880f8
Fix #77944 : Wrong meta pdo_type for bigint on LLP64
...
When actually fetching the data, bigint (unsigned) column values are
returned as integers on LLP64 architectures, so their pdo_type has to
be PDO::PARAM_INT accordingly.
2019-04-27 18:46:27 +02:00
Nikita Popov
2371c65a28
Fix file name clash in zlib tests
2019-04-26 15:05:42 +02:00
Nikita Popov
33e8a7b368
Enable -Werror in CI
...
Add --enable-werror configure option and use it on Travis. It's not
possible to directly use CFLAGS, because it also affects configure
checks which often throw warnings.
We can't enable something similar for Windows builds at this time,
because they throw a lot more warnings.
2019-04-26 09:56:16 +02:00
Christoph M. Becker
be74a00464
Fix VirtualProtect() related Phar issues
...
We must not (try to) modify shared values, but rather have to use our
own copies, if unixified filenames are required on Windows. To avoid
excessive string duplication, we add checks whether the filenames are
already unixified (i.e. do not contain backslashes). To improve the
performance if we need to copy strings, we use do_alloca() and friends.
Besides generally being somewhat messy, the handling of unixified
filenames is still suboptimal performance-wise, but we leave this for a
future cleanup, and focus on fixing the issue at hand for now.
We also enable opcache.protect_memory for the AppVeyor CI.
2019-04-26 09:09:22 +02:00
Christoph M. Becker
09345d70fd
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77940 : test using outdated mon_thousands_sep for Swedish
2019-04-25 23:29:25 +02:00
Christoph M. Becker
70239ea1d3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77940 : test using outdated mon_thousands_sep for Swedish
2019-04-25 23:29:03 +02:00
Christoph M. Becker
7ddfe73e69
Fix #77940 : test using outdated mon_thousands_sep for Swedish
...
Of course, we should expect a comma, not a period.
2019-04-25 23:28:41 +02:00
Christoph M. Becker
f532618776
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77940 : test using outdated mon_thousands_sep for Swedish
2019-04-25 19:40:37 +02:00
Christoph M. Becker
3e31ae5d70
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77940 : test using outdated mon_thousands_sep for Swedish
2019-04-25 19:40:05 +02:00
Christoph M. Becker
bfbfb9dabd
Fix #77940 : test using outdated mon_thousands_sep for Swedish
...
This time so that it works for all Windows 10 versions (hopefully).
2019-04-25 19:39:42 +02:00
Christoph M. Becker
627c0017b0
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77940 : test using outdated mon_thousands_sep for Swedish
2019-04-25 08:59:35 +02:00
Christoph M. Becker
dcba479848
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77940 : test using outdated mon_thousands_sep for Swedish
2019-04-25 08:59:09 +02:00
Christoph M. Becker
37ca6a7a2a
Fix #77940 : test using outdated mon_thousands_sep for Swedish
2019-04-25 08:58:13 +02:00
Christoph M. Becker
6dbb1d9318
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77938 : socket_get_option error
2019-04-25 00:06:15 +02:00
Christoph M. Becker
ad0acc0aa9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77938 : socket_get_option error
2019-04-25 00:04:37 +02:00
Christoph M. Becker
fe202d99c8
Fix #77938 : socket_get_option error
...
Since tcp_socket/ssl streams are not representable, we suppress the
redirect to fix the test case.
2019-04-25 00:03:45 +02:00
Dmitry Stogov
21c36341af
Use better macros
2019-04-24 22:27:40 +03:00
Dmitry Stogov
9e9407c22e
settype() optimization
2019-04-24 22:23:49 +03:00
George Peter Banyard
8b8d5a4bd1
Remove html_errors from INI Quick Reference as INI values are identical to Engine values
2019-04-24 19:21:52 +02:00
Dmitry Stogov
e188e4170f
Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference
2019-04-24 18:28:29 +03:00
Remi Collet
eef351b7c7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
news entry for litespeed
2019-04-24 09:46:20 +02:00
Remi Collet
191e15309f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
news entry for litespeed
2019-04-24 09:46:06 +02:00
Remi Collet
5d21a15cc3
news entry for litespeed
2019-04-24 09:45:48 +02:00
Dmitry Stogov
db2ffcf157
Optimize constant SWITCH_LONG and SWITCH_STRING
2019-04-24 00:08:17 +03:00
Dmitry Stogov
4d0d7ce349
Don't eliminate BIND_STATIC if it may cause undefined constant warning
2019-04-23 22:39:14 +03:00
Peter Kokot
beb58ca128
Move Autoconf Archive macros to a common m4 dir
...
In PHP the build dir is used as a directory for external macros
including Autoconf Archive macros.
2019-04-23 20:37:31 +02:00
Peter Kokot
4e7064d173
Move acinclude.m4 to build/php.m4
...
The acinclude.m4 file is in a usual Autotools build processed with
Automake's aclocal tool. Since PHP currently doesn't use Automake and
aclocal this file can be moved into the build directory. PHP build
system currently generates a combined aclocal.m4 file that Autoconf
can processes automatically.
However, a newer practice is writing all local macros in separate
dedicated files prefixed with package name, in PHP's case PHP_MACRO_NAME
and putting them in a common `m4` directory. PHP uses currently `build`
directory for this purpose.
Name `php.m4` probably most resembles such file for PHP's case.
PHP manually created the aclocal.m4 file from acinclude.m4 and
build/libtool.m4. Which is also not a particularly good practice [1], so
this patch also removes the generated alocal.m4 usage and uses
m4_include() calls manually in the configure.ac and phpize.m4 files
manually.
- sort order is not important but can be alphabetical
- list of *.m4 files prerequisites for configure script generation
updated
- Moving m4_include() before AC_INIT also removes all comments starting
with hash character (`#`) in the included files.
[1] https://autotools.io/autoconf/macros.html
2019-04-23 20:28:45 +02:00
Peter Kokot
96a9fb2052
Simplify libxmlrpc bundling and building
...
The xmlrpc library is a forked, modified and bundled into the PHP source
code. Instead of having a separate *nix build system files in the xmlrpc
library this patch removes unneeded build checks.
- AC_PROG_CC is not needed to be called by the extension itself since it
is already part of the main configure.ac and the phpize's
configure.ac.
- UNDEF_THREADS_HACK is not used in the current codebase.
- Symbols defined by XMLRPC_HEADER_CHECKS are not used in the current
code.
- Symbols defined by XMLRPC_FUNCTION_CHECKS are not used in the current
code.
- AC_PROG_RANLIB is already done by the TSRM's files and isn't needed
for the xmlrpc extension to work.
- AC_PROG_LN_S is already done by the PHP main configure.ac and also
isn't needed by the xmlrpc extension to be built.
2019-04-23 20:17:33 +02:00
Nikita Popov
3cfbbf2956
Make DateInterval objects uncomparable
...
Arbitrary DateInterval objects don't have well-defined comparison
semantics. Throw a warning and treat the objects as uncomparable.
Support for comparing DateInterval objects returned by
DateTime::diff() may be added in the future.
2019-04-23 13:12:06 +02:00
bugreportuser
d65f93f92b
Remove duplicate zend_unset_timeout()
2019-04-23 12:44:20 +02:00
Nikita Popov
eb7d57eb77
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-23 12:43:37 +02:00
Nikita Popov
68892410f7
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-23 12:43:32 +02:00
Nikita Popov
4831e150c5
Fixed bug #77843
2019-04-23 12:43:07 +02:00
Nikita Popov
a7a318d3c0
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-23 11:40:43 +02:00
Nikita Popov
cedee4408b
Fixed bug #77931
2019-04-23 11:40:13 +02:00
Peter Kokot
24cd183fdf
Merge branch 'pull-request/4046' into PHP-7.4
...
* pull-request/4046:
Remove php.gif from the project root directory
2019-04-23 08:59:44 +02:00
Peter Kokot
9443bd1bbf
[ci skip] Remove CLI sapi README
...
Removing in favour of:
- https://www.php.net/manual/en/features.commandline.introduction.php
- https://www.php.net/manual/en/features.commandline.differences.php
2019-04-23 08:51:23 +02:00
Peter Kokot
07a95b4017
Remove sinclude from tsrm.m4
...
This was once part of a standalone TSRM build and is not used in current
build system anymore.
2019-04-23 08:27:11 +02:00
Dmitry Stogov
1827d784b5
Remove unused BIND_STATIC insructions
2019-04-23 02:21:08 +03:00
Christoph M. Becker
808eaa095e
Merge link.c and link_win32.c
2019-04-22 13:53:17 +02:00
CrazyMiaoo
9df15fc26b
Add gcc global register for aarch64
2019-04-22 14:29:30 +03:00
Christoph M. Becker
6710929c04
Fix parameter order
...
The parameter order of `php_sys_link()` should be identical on Windows
and POSIX, bug commit c9861bd[1] got that wrong.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=c9861bd7a974ef1555395b879c1035a0bbc12ef1 >
2019-04-22 12:38:24 +02:00
Dmitry Stogov
abacb5e8ea
Fixed wrong opline
2019-04-22 11:05:56 +03:00
George Wang
bd86ae4b8a
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-21 15:59:49 -04:00
George Wang
fb4c811835
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-21 15:59:07 -04:00
George Wang
ce73841cdc
Improved LSAPI_End_Response_r() .
2019-04-21 15:04:54 -04:00
George Wang
ccf051c317
Fixed bug in litespeed_finish_request(), disable fastcgi_finish_request() alias for now.
2019-04-21 14:59:51 -04:00
Peter Kokot
b1d3509e8c
Refactor Zend/acinclude.m4 local macro
...
There is now only a single M4 macro in the legacy acinclude.m4 file. A
separate acinclude file was once used with a standalone Zend engine
building but with current build system this can be simplified a bit.
2019-04-21 15:53:19 +02:00
Peter Kokot
1c94aac89e
[ci skip] Fix CS in Markdown files
...
Checked and quickfixed with Markdown linter
- 80 columns line width (~)
- code highlighting
- ...
Some most obvious outdated content updated a bit more.
2019-04-21 15:33:20 +02:00
Rodrigo Prado
80f3c69ae9
Updated visual text elements using markdown
2019-04-21 11:06:19 +02:00
Peter Kokot
aff1a927d9
Remove php.gif from the project root directory
...
The PHP logo is also displayed in the main README.md file using a shiny
SVG format so there is no need to use GIF format.
2019-04-21 03:20:47 +02:00
Peter Kokot
47c5fa0710
[ci skip] Fix logo location
2019-04-21 03:16:11 +02:00
Peter Kokot
bb95805327
[ci skip] Fix typo
2019-04-20 22:55:37 +02:00
Peter Kokot
e8a8128665
Refactor docs files for bcmath library
2019-04-20 22:41:00 +02:00
Peter Kokot
36c7946522
Move ucgendata README to generator file header
2019-04-20 22:35:25 +02:00
Peter Kokot
b58bd11ae5
Remove zend.ico
...
The usage of the `zend.ico` image file was removed via
4b3e198023 and is in current code base
not used anymore.
2019-04-20 22:22:56 +02:00
Rodrigo Prado
ba0f7f7e43
Added test for imagecolorclosesthwb
...
The function was not tested yet.
See http://gcov.php.net/viewer.php?version=PHP_HEAD&func=tested_functions
2019-04-20 19:31:45 +02:00
Vitor Mattos
c050045faa
Add test for date timestamp
...
- [date_timestamp_get] adding coverage for date_timestamp_get alias to
DateTime::getTimestamp feature at PHPRio TestFest
- [date_timestamp_get] adding coverage for date_timestamp_get basic
feature at PHPRio TestFest
- Combine tests into single file
2019-04-20 19:21:10 +02:00
Peter Kokot
2e8819549b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update changelog
Update changelog
Fix #77921 : static.php.net doesn't work anymore
2019-04-20 19:13:21 +02:00
Peter Kokot
0b8414832e
Update changelog
2019-04-20 19:13:06 +02:00
Peter Kokot
2549f7d220
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update changelog
Fix #77921 : static.php.net doesn't work anymore
2019-04-20 19:12:31 +02:00
Peter Kokot
295c66911f
Update changelog
2019-04-20 19:12:17 +02:00
Peter Kokot
4450288344
Fix #77921 : static.php.net doesn't work anymore
...
This embeds the PHP logo image in the FPM status HTML page instead of
using remote location. The phpinfo() output also uses such approach
and browser compatibility looks decent [1].
1: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
2019-04-20 19:00:51 +02:00
Peter Kokot
a353d4c218
Update changelogs
2019-04-20 16:16:18 +02:00
Peter Kokot
caea088ac7
Remove PHP_SETUP_KERBEROS m4 macro
...
With recent transition to pkg-config/pkgconf this macro has been now a
simple wrapper for PKG_CHECK_MODULES and PHP_EVAL_INCLINE so it's better
to omit it altogether and use these two in the *.m4 code directly.
2019-04-20 16:12:54 +02:00
Gabriel Rodrigues Couto
e28db2276b
Fixed bug #77011
...
Added ".tbd" extension support for libiconv on Mac to use
CommandLineTools SDK shared library.
2019-04-20 15:22:06 +02:00
Hugh McMaster
aba72ebf15
Use PKG_CHECK_MODULES to detect the kerberos libraries
2019-04-20 15:13:24 +02:00
Peter Kokot
4ff2d96cc9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update Git repository for Windows build tool kit
2019-04-19 21:11:23 +02:00
Peter Kokot
d1bce98597
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update Git repository for Windows build tool kit
2019-04-19 21:11:01 +02:00
Peter Kokot
06fa35568e
Update Git repository for Windows build tool kit
2019-04-19 21:09:46 +02:00
Fabien Villepinte
baa9669392
Fix typo in comments
2019-04-19 13:11:50 -03:00
Christoph M. Becker
994e20ec4f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Use php-sdk-2.2.0beta5 on AppVeyor
2019-04-18 16:52:03 +02:00
Christoph M. Becker
fd4c42efab
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Use php-sdk-2.2.0beta5 on AppVeyor
2019-04-18 16:51:38 +02:00
Christoph M. Becker
a7ada30ac6
Use php-sdk-2.2.0beta5 on AppVeyor
2019-04-18 16:51:10 +02:00
Nikita Popov
3974180f92
Remove dead "props" member from date objects
2019-04-18 15:05:43 +02:00
Nikita Popov
dbaf9b7924
Revert "Fix zend_test interned strings loaded via dl()"
...
This reverts commit 7435ab3375 .
It looks like we can't access EG(current_module) here in ZTS builds.
As the problematic asserts have now been disabled outside RC_DEBUG,
I'm just reverting this commit and leaving things as they were.
2019-04-18 13:49:42 +02:00
Dmitry Stogov
5ffa5217fc
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Check assert only when RC_DEBUG is enabled
2019-04-18 14:27:05 +03:00
Dmitry Stogov
3a04adce82
Check assert only when RC_DEBUG is enabled
2019-04-18 14:26:15 +03:00
Hugh McMaster
9f0c9b7ad6
Rename --enable-libxml to --with-libxml to meet naming guidelines
2019-04-18 13:08:02 +02:00
Hugh McMaster
cc930cdd75
Use PKG_CHECK_MODULES to detect libxml2
2019-04-18 13:04:54 +02:00
Hugh McMaster
29d1b7fd52
Remove support for --with-libxml-dir
2019-04-18 13:04:54 +02:00
Nikita Popov
05c2e87e84
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-18 12:59:05 +02:00
Nikita Popov
b2f49c69b1
Add a dl() test to Travis
...
Compile the zend_test extension as shared and try loading it with dl()
to test for obvious issues. Doing this as a standalone call because this
is very specific to the CI setup.
2019-04-18 12:57:54 +02:00
Nikita Popov
7435ab3375
Fix zend_test interned strings loaded via dl()
2019-04-18 12:33:53 +02:00
Nikita Popov
c6b5e2933c
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-18 12:14:49 +02:00
Nikita Popov
e9aa0337ab
Fix more dl() interned string assertions
2019-04-18 12:14:07 +02:00
Nikita Popov
4aa78b67e7
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-18 12:10:09 +02:00
Nikita Popov
a5b7f3bd81
Fix more dl() interned string assertions
2019-04-18 12:08:09 +02:00
Nikita Popov
ed4c24274b
Fix dl() module unloading in post deactivate
...
FOREACH_END_DEL() does not call the destructor by itself, we need to
explicitly call it. Due to the missing dtor call the functions were
not unregistered early, which resulted in later shutdown segfaults.
2019-04-18 10:10:15 +02:00
Dmitry Stogov
38f9c8d93d
Don't initialize return value before calling user functions
2019-04-18 02:31:12 +03:00
Dmitry Stogov
4c1a25ad5f
Fixed compatibility with phpdbg
2019-04-18 01:33:56 +03:00
Peter Kokot
02c1f3293e
Join build makefiles together
...
Changes:
- Joins build/build.mk and build/build2.mk files together since there
isn't any practical reason for having two different files with the
current build system.
- Makefile is now more portable. All special syntaxes are omitted, for
example, a conditional assignment operators `?=`. This makes buildconf
more useful on Solaris make derivative, so there is no longer need to
override make with gmake: `MAKE=gmake ./buildconf`.
- Suppressing autoconf and autoheader warnings is not needed anymore
with current build system. Instead, the option `-Wall` has been used
when running `./buildconf --debug` to get more useful debug info
about current M4.
2019-04-17 21:52:58 +02:00
Dmitry Stogov
663056aa5f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
It's safe to keep old string if it's stored not in SHM.
2019-04-17 22:08:55 +03:00
Dmitry Stogov
bfadd9fdaf
It's safe to keep old string if it's stored not in SHM.
2019-04-17 21:57:17 +03:00
Dmitry Stogov
93c6a32b7c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed dl() function. It failed in DEBUG build without opcache because of assert during string interning.
2019-04-17 19:32:34 +03:00
Dmitry Stogov
ac12cc85aa
Fixed dl() function. It failed in DEBUG build without opcache because of assert during string interning.
2019-04-17 19:31:28 +03:00
Christoph M. Becker
87912ca3b9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77911 : Wrong warning for session.sid_bits_per_character
2019-04-17 17:24:36 +02:00
Christoph M. Becker
f0ccd9ffc6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77911 : Wrong warning for session.sid_bits_per_character
2019-04-17 17:24:15 +02:00
Christoph M. Becker
d20053a556
Fix #77911 : Wrong warning for session.sid_bits_per_character
2019-04-17 17:23:23 +02:00
Nikita Popov
487d4d07b4
Remove some uses of deprecated internal_encoding settings in tests
2019-04-17 14:24:11 +02:00
Nikita Popov
f73f190c3f
Fix internal_encoding fallback in mbstring
...
By introducing a hook that is called whenever one of
internal_encoding / input_encoding / output_encoding changes, so
that mbstring can adjust it's internal state.
This also makes internal_encoding work with zend multibyte.
2019-04-17 14:05:53 +02:00
Dmitry Stogov
3ccd3aba90
Eliminate FETCH $GLOBALS followed by FETCH_DIM/UNSET_DIM/ISSET_ISEMPTY_DIM
2019-04-17 11:52:56 +03:00
Gabriel Caruso
825fc6b438
Fix typo
...
Introduced via 9a85a944d8
2019-04-17 05:44:06 -03:00
Derick Rethans
4a3f64dfef
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-17 09:40:28 +01:00
Derick Rethans
6088713216
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-17 09:40:18 +01:00
Ignace Nyamagana Butera
7b1a4e2400
Fixed bug #77909 : DatePeriod::__construct() with invalid recurrence count value
...
Improve error message on invalid reccurence count
Adding test when reccurence is -1
2019-04-17 09:39:03 +01:00
Christoph M. Becker
346ac968b3
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix tests for non English environments
2019-04-17 09:58:12 +02:00
Christoph M. Becker
ec8457d982
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests for non English environments
2019-04-17 09:57:37 +02:00
Christoph M. Becker
6fe75f9e45
Fix tests for non English environments
2019-04-17 09:56:55 +02:00
Peter Kokot
b09fa9ed53
Simplify generated_lists generation
...
The `generated_lists` file is generated as a helper for build related
Makefile to include a list of *.m4 files prerequisites. When some of
these *.m4 files change, the configure script is regenerated when
buildconf is run. This can be simplified using dynamic environment
variable passed to the Makefile directly so it avoids another file from
being generated in the project root directory and shipping it with the
PHP release or creating a dedicated gitignore rule.
This is portable across all POSIX compatible makes So this patch
includes GNU Make, and everybody elses' make derivative support.
2019-04-16 17:25:08 +02:00
Artem Panfilov
12ee246ae4
ext/pcre/config0.m4: add ac_cv_have_pcre2_jit variable
...
The HAVE_PCRE_JIT_SUPPORT check uses AC_RUN_IFELSE, which is not
available when cross-compiling. As a fallback, JIT support is enabled
based on CPU architecture. However, this may be wrong,
e.g. when the JIT the feature was not enabled in the pcre2 build.
Add a cache variable for the PCRE JIT feature to make it possible to
override the check.
2019-04-16 17:15:38 +02:00
Remi Collet
e65574fa1f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
next is 7.2.19
2019-04-16 13:12:49 +02:00
Remi Collet
e90bce7f08
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
next is 7.2.19
2019-04-16 13:12:33 +02:00
Remi Collet
6c44a71e4a
next is 7.2.19
2019-04-16 13:11:23 +02:00
Nikita Popov
bd6ebf40b2
Don't overwrite iterator count during real init
2019-04-16 12:21:20 +02:00
Nikita Popov
2bdd212887
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-16 12:21:16 +02:00
Nikita Popov
f9a755d0d2
Fix HT flags copying wrt iterator count
...
HT_FLAGS() includes the full flag word, including the iterator
count. When we're fully reassigning it, we need to make sure that
we either really do want to copy the iterator count (as in some
cases in array.c) or we need to mask only the actual flag byte.
Add an assert to hash_iterators_del() to make sure the iterator
count is non-zero (which is how I ran into this) and make sure that
the iterator count is correctly preserved during array splicing.
2019-04-16 12:14:45 +02:00
Christoph M. Becker
c60a852e3c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Prepare main branch for PHP 7.3.6
2019-04-16 11:56:58 +02:00
Christoph M. Becker
5ae49c43dc
Prepare main branch for PHP 7.3.6
2019-04-16 11:56:03 +02:00
Nikita Popov
32fb2d9343
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-16 10:39:48 +02:00
Nikita Popov
9a85a944d8
s/mysql_connect()/mysqli_connect() in php.ini
2019-04-16 10:39:40 +02:00
Nikita Popov
9a9eed472b
Fix second part of bug #77903
...
When a HT iterator is one past the end and we rehash, we need to make
sure that it is move to the new one past the end position, to make
sure that newly inserted elements are picked up.
2019-04-16 10:38:20 +02:00
Nikita Popov
e1b4cabbd6
Partial fix for bug #77903
...
In the hash position APIs, make sure we always advance to the next
non-undef element and not just when the position is 0 (similar to
what foreach does). This can happen when the position of an
ArrayIterator is one past its current end and a new element is
inserted not directly at that position because the array is packed.
There is still a bug here (as shown in the tests), but this is a
separate issue that also affects plain array iteration in foreach.
2019-04-16 10:23:11 +02:00
Christoph M. Becker
a83b68ba56
Use curl_mime_*() functions if available
...
As of curl 7.56.0, `curl_formadd()` is deprecated in favor of
`curl_mime_*()`, so we use the latter if available.
2019-04-16 08:43:21 +02:00
Dmitry Stogov
10aeed5be4
Merge branch 'PHP-7.4' of git.php.net:php-src into PHP-7.4
...
* 'PHP-7.4' of git.php.net:php-src:
Remove not needed extension generated files gitignores
Add test for curl_version()
Fixed bug #77895
Zero sockaddr struct
Fix saproxy_property_write signature
Correctly destroy reference in ArrayObject sort
2019-04-16 00:09:45 +03:00
Dmitry Stogov
3f7bf35e16
execute_data->return_value is not used for internal functions
2019-04-16 00:08:16 +03:00
Peter Kokot
6884253461
Remove not needed extension generated files gitignores
...
These were refactored and moved to build directory via:
2957651c5c and
7e445ef3b1
2019-04-15 20:03:48 +02:00
Rodrigo Prado
8e68a9d9eb
Add test for curl_version()
2019-04-15 15:57:11 +02:00
Nikita Popov
2d7d5ab5c6
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-15 15:27:37 +02:00
Nikita Popov
a2f3ec1777
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-15 15:27:30 +02:00
Nikita Popov
619c4e9f2e
Fixed bug #77895
2019-04-15 15:26:58 +02:00
Nikita Popov
ca8f563f99
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-15 15:00:56 +02:00
Nikita Popov
e05c6a25f9
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-15 15:00:49 +02:00
Nikita Popov
9b1950b005
Zero sockaddr struct
...
in6 has a bunch of extra fields that we're leaving uninitialized. I
don't see them locally, but there's valgrind warnings on gcov.
2019-04-15 14:59:05 +02:00
Nikita Popov
0c8a2d8d2a
Fix saproxy_property_write signature
2019-04-15 14:33:47 +02:00
Nikita Popov
5fc71c7dba
Correctly destroy reference in ArrayObject sort
...
The reference may be captured in an exception backtrace, in which
case the refcount may be more than one.
2019-04-15 13:21:45 +02:00
Dmitry Stogov
cb3cfc9ff8
Removed tests that always (or almost always) true
2019-04-15 13:18:16 +03:00
Nikita Popov
433d68fce1
Try to fix stat_variation3-win32.phpt
...
After fixing comparison operator typos in
f73c104927 this test is failing. I
believe the comparison here should be using < rather than ==.
2019-04-15 11:40:37 +02:00
Nikita Popov
7f6c22cb3d
Fix last maybe uninit warnings on 7.4
...
Most of these only occur under GCC 5. Not fond of all the workarounds
(especially the PDO one), but it gets us a clean build...
2019-04-15 11:35:13 +02:00
Nikita Popov
908660c1d7
Avoid maybe uninit warning in libmagic
...
GCC 5 false positive, gone in newer versions.
2019-04-15 10:59:45 +02:00
Nikita Popov
c9ff095758
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-15 10:54:39 +02:00
Nikita Popov
5611058766
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-15 10:54:31 +02:00
Nikita Popov
917952453c
Fix uninitialized cert_captured
...
This is a legimitimate bug and also shows up under valgrind.
2019-04-15 10:53:33 +02:00
Nikita Popov
3f19592f92
Disable strict aliasing warnings
...
It seems like GCC 5 likes to warn about exactly those trivial strict
aliasing violations that it's not going to miscompile anyway and the
warnings are gone in newer versions. Just disable the noise.
2019-04-15 10:43:49 +02:00
Nikita Popov
b2ec07e64c
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-15 10:25:20 +02:00
Nikita Popov
14047b50b4
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-15 10:25:11 +02:00
Nikita Popov
e9c0367fdc
Fixed bug #77882
2019-04-15 10:22:40 +02:00
Côme Chilliet
f31435b855
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Updated NEWS
Fix a NULL dereferencing crash in php-ldap
2019-04-15 10:20:12 +02:00
Côme Chilliet
3e1eff251b
Updated NEWS
2019-04-15 10:19:19 +02:00
Côme Chilliet
ea0f26420d
Fix a NULL dereferencing crash in php-ldap
...
This happens when parsing a control response to a VLV request which does
not contain a "context" string.
See bug #77869
2019-04-15 10:16:29 +02:00
Rodrigo Prado
f1dbe6160c
Remove functions from func_info that were removed in PHP 7
2019-04-15 10:04:41 +02:00
Nikita Popov
f73c104927
Fix incorrect compare_stats operator
2019-04-15 09:48:39 +02:00
Gabriel Caruso
656db96eb9
Remove HAVE_* for always available extensions
2019-04-14 11:44:12 -03:00
Peter Kokot
69b20f51e1
Disable PACKAGE_* preprocessor symbols
...
Autoconf defines PACKAGE_* symbols:
- PACKAGE_NAME
- PACKAGE_VERSION
- PACKAGE_TARNAME
- PACKAGE_STRING
- PACKAGE_BUGREPORT
- PACKAGE_URL
and appends them to the generated config.h.in files. With AC_INIT change
via afd52f9d99 where package version, URL,
bug report location and similar meta data are defined, these
preprocessor macros are then non empty strings in the generated
configuration header file. When using phpize, PHP shares the config
files in extensions, warnings of redefined macros appear, such as:
- `warning: 'PACKAGE_NAME' macro redefined`
This patch now disables these non utilized symbols in the generated
config header files.
Better practice would be to include only API specific headers where
needed but this would require even more refactorings. Some extensions
such as pcre, pgsql, and pdo_pgsql solve this issue by undefining some
of these symbols before including the library configuration headers in
the code also. Because these symbols can be defined by any library which
uses Autotools.
Additionally, the unused PACKAGE_* symbols were cleaned for the bundled
libmbfl library and with this patch not needed undef code removed.
2019-04-13 07:00:17 +02:00
Peter Kokot
769db42341
Remove PHP_READDIR_R_TYPE
...
The PHP_READDIR_R_TYPE m4 macro has been removed via
2b28f71891 .
HAVE_POSIX_READDIR_R in windows header file is also not needed anymore.
2019-04-13 04:50:05 +02:00
George Wang
f0f1388d60
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-12 17:48:22 -04:00
George Wang
7f551c728c
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-12 17:44:32 -04:00
George Wang
1e7f1b90e8
LiteSpeed SAPI 7.3, better process management, new API function litespeed_finish_request().
2019-04-12 17:43:45 -04:00
Nikita Popov
a3459084e1
Try to fix windows build
...
noreturn attribute has to be on the declaration as well.
2019-04-12 17:04:44 +02:00
Nikita Popov
3c23084cf6
Fix strict aliasing violation in phpdbg
...
By explicitly computing the message length from bytes. This also
makes sure that the length is interpreted in an endianness-independent
manner.
2019-04-12 16:46:23 +02:00
Nikita Popov
4cfa4fb55d
Don't use php_strtok_r in build_tablename
...
This is unnecessary convoluted... we just want to find the position
of the dot. Using php_strtok_r requires a copy of the string, and the
implementation also relied on the specific semantics of the scratch
space that strtok_r uses.
2019-04-12 16:17:35 +02:00
Nikita Popov
7207110362
Fix uninit warning in gd.c
...
This matches the upstream implementation.
2019-04-12 16:03:01 +02:00
Nikita Popov
91d59b122a
Avoid uninit warning in ftp
2019-04-12 15:54:29 +02:00
Nikita Popov
4b1491a7b1
Remove dubious memcmp optimization in iconv
...
This violates strict aliasing, and appears entirely unnecessary --
the compiler can optimize fixed size memcmp's by itself.
2019-04-12 15:12:39 +02:00
Nikita Popov
b6b98bdf64
Avoid uninit warnin in http_fopen_wrapper
...
This one looks semi-legit, in case php_stream_eof() returns false
but php_stream_get_line() fails. Not totally sure this cannot
happen, so rewriting to check both conditions at once.
2019-04-12 15:12:39 +02:00
Nikita Popov
e1ab686228
Avoid uninit warning in dtoa
...
This code is extremely convoluted, I have no idea whether or not
this one is legitimate. Suppressing with explicit initialization.
2019-04-12 15:12:39 +02:00
Nikita Popov
339b0af429
Avoid misc uninitialized variable warnings
2019-04-12 15:12:39 +02:00
Nikita Popov
3d9c48035b
Avoid uninitialized variable warnings in gmp
2019-04-12 15:12:39 +02:00
Nikita Popov
733c61a894
Add test for get_cfg_var with array variable
...
And fix incorrect variable shadowing in add_config_entry(). However,
the test doesn't hit this case, as it requires a nested array. I'm
not sure if it's possible to produce nested arrays from ini?
2019-04-12 15:12:39 +02:00
Nikita Popov
afee7ed110
Avoid unitialized variable warning in soap
...
Extract envelope fetch into separate function, so the control
flow becomes more obvious.
2019-04-12 15:12:39 +02:00
Christoph M. Becker
54bdb25d9f
Include libpq-fs.h on Windows, too
...
That's more future proof than defining hard-coded macros.
2019-04-12 14:12:08 +02:00
Christoph M. Becker
de401683c9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix tests wrt. internationalization
2019-04-12 13:08:44 +02:00
Christoph M. Becker
8ed3b74a0c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests wrt. internationalization
2019-04-12 13:08:13 +02:00
Christoph M. Becker
d07a6fdedf
Fix tests wrt. internationalization
2019-04-12 13:07:39 +02:00
Nikita Popov
4f28bbda51
Fix SOAP bailout handling
...
This code was reusing the _bailout variable from
SOAP_CLIENT_BEGIN/END_CODE(). As _bailout is not volatile, modifying
it after the setjmp call and then reading it back on return is
illegal. Use a separate local bailout variable instead.
This fixes the miscompile introduced by marking zend_bailout() as
noreturn.
2019-04-12 12:51:17 +02:00
Nikita Popov
3744533468
Enable -Wall on release builds for GCC
...
-Wall was already enabled for debug builds, enable it for release
builds as well.
2019-04-12 12:51:17 +02:00
Nikita Popov
ba40f505e5
Fix unused variable warnings in libmagic
...
These variables are only used in assertions.
2019-04-12 12:03:26 +02:00
Nikita Popov
49ce7c0014
Remove odd variable assignment in escape_analysis
...
As we are breaking out of the for loop setting i = ssa_vars_count
doesn't do anything, but it confuses GCC into throwing a no-overflow
assumption warning.
2019-04-12 11:56:37 +02:00
Nikita Popov
c09b63595e
Fix potentially uninitialized warnings in phpdbg
2019-04-12 11:46:03 +02:00
Nikita Popov
88bfd2ae98
Regroup expressions in php_schema.c to avoid array bounds warnings
2019-04-12 11:11:53 +02:00
Nikita Popov
edcf087ff9
Avoid potentially-uninitialized warnings in readline
2019-04-12 11:01:56 +02:00
Nikita Popov
e5edbd0fe6
Fix uninitializde heredoc_tag use in readline
...
Could happen if "<<<" is directly followed by a newline.
2019-04-12 10:56:54 +02:00
Nikita Popov
ce408504d5
Mark zend_bailout() as a noreturn function
2019-04-12 10:41:53 +02:00
Nikita Popov
1ef5b79b6b
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-12 10:37:17 +02:00
Nikita Popov
354a1c27aa
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-12 10:37:08 +02:00
Nikita Popov
3b53d28e60
Fix key leaks in mb_convert_encoding()
2019-04-12 10:36:58 +02:00
Nikita Popov
8e8d129d7f
Use EMPTY_SWITCH_DEFAULT_CASE in php_unicode.c
...
Avoids a potentially uninitialized variable warning.
2019-04-12 10:26:11 +02:00
Nikita Popov
0f777c768c
Run compile step under travis_wait
...
If there are no warnings, we may end up compiling more than 10
minutes without output, in which case the build times out. Use
travis_wait to avoid this.
2019-04-12 10:05:15 +02:00
Nikita Popov
0774d67ff9
Avoid directory clash in realpath tests
2019-04-12 09:57:07 +02:00
Dmitry Stogov
55cc280429
Backported call frame initialization improvement
2019-04-12 02:35:42 +03:00
Dmitry Stogov
88a2268d6b
Replace "ZEND_CALL_CTOR" hack by additional live-range
2019-04-12 00:49:45 +03:00
Dmitry Stogov
db93c26e6d
Added test
2019-04-11 21:37:10 +03:00
Christoph M. Becker
27844773d8
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix potential OPcache file cache related issues
2019-04-11 18:31:17 +02:00
Christoph M. Becker
d2d1a50b04
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix potential OPcache file cache related issues
2019-04-11 18:30:27 +02:00
Anatol Belski
5477d68300
Fix potential OPcache file cache related issues
...
To solve issues detected during testing, we backport the following
commits to PHP 7.2:
129c5c1181
9ac133a0b3
ce72bc6b65
2019-04-11 18:28:49 +02:00
Nikita Popov
09b2e20333
Work around -Walloc-size-larger-than bug
2019-04-11 17:44:20 +02:00
Markus Staab
7bb22df5cf
Fixed typo
2019-04-11 16:56:36 +02:00
Nikita Popov
2b28f71891
Use readdir() instead of readdir_r()
...
readdir_r() is deprecated in modern glibc versions. readdir() is
thread safe in practice, as long as there are no concurrent accesses
on the *same* directory stream.
2019-04-11 16:52:36 +02:00
Nikita Popov
3e0f9c2c94
Remove curl gnutls locking
...
This is only relevant for the gcrypt backend, which is no longer in
use. I couldn't find any hard info on when exactly gcrypt support was
dropped, but nette is the default since 2.11.1. Most code that still
has the gcrypt handling is checking against < 2.12. In either case,
those versions were released in 2010/2011.
2019-04-11 16:45:45 +02:00
Nikita Popov
9d663cba1a
Fix libgd warnings
2019-04-11 15:54:09 +02:00
Nikita Popov
ca47732eee
Remove incorrect mbstring includes
...
And thus fix unused variable warnings.
2019-04-11 15:47:41 +02:00
Nikita Popov
44a1cd4fcd
Remove unused function prototype
2019-04-11 15:39:24 +02:00
Nikita Popov
c51eafe931
Remove restrict zend_portability define
...
We're not using this anywhere, and it causes warnings, so I'm
dropping it. If we do end up needing this, it should be reintroduced
with a ZEND_ prefix.
2019-04-11 15:32:30 +02:00
Nikita Popov
2d823cb681
Fix error message in spl_autoload test
2019-04-11 15:22:59 +02:00
Nikita Popov
b65cb7e2aa
Fix libmagic warnings
2019-04-11 15:20:05 +02:00
Nikita Popov
f6521659ca
Add script to generate libmagic.patch
2019-04-11 15:12:20 +02:00
Nikita Popov
2916ecabe0
Remove the readline thread-safety warning
...
Would be nice to have this in configure, but we'd have to change
the ordering of extension & Zend processing for that.
2019-04-11 14:14:21 +02:00
Nikita Popov
651fd1a962
Fix pointer signedness warning in mysqlnd
2019-04-11 14:14:21 +02:00
Nikita Popov
29eb35616a
Remove unused rcsid variables
2019-04-11 14:14:21 +02:00
Nikita Popov
539a16fdb8
Avoid curl ssl callback warnings with OpenSSL 1.1
2019-04-11 14:14:21 +02:00
Sebastian Bergmann
e71cfae419
Fix typo
2019-04-11 13:34:02 +02:00
Dmitry Stogov
a1b7ccdfc6
Fixed bug #77877 (call_user_func() passes $this to satatic methods).
2019-04-11 14:24:04 +03:00
Nikita Popov
cd8312a77e
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-11 12:36:01 +02:00
Nikita Popov
a61d24e4d8
Avoid onig match param unused variable warning
2019-04-11 12:35:24 +02:00
Nikita Popov
d087a356fe
Suppress warnings using zend_quiet_write
2019-04-11 12:22:52 +02:00
Nikita Popov
30df87f77d
Generate ZEND_COUNT for sizeof()
...
sizeof() is an alias of count(), so we should generate the same
code for them.
2019-04-11 10:48:52 +02:00
Nikita Popov
b213f13a26
Make tsrm_env_lock() void
...
We're not checking the return value and the NTS version of this
generates warnings. If we want to handle lock failures, we should
do a hard abort inside tsrm_env_lock() itself.
2019-04-11 10:40:54 +02:00
Anatol Belski
d207c9a78a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Ensure double slashes are replaced by the path normalization
2019-04-10 15:47:36 +02:00
Nikita Popov
eb8c07fe2f
Support VirtualProtect for opcache.protect_memory
...
Don't enable this on AppVeyor yet, as there is still an open
issue in phar.
2019-04-10 15:31:18 +02:00
Anatol Belski
ce72bc6b65
Ensure double slashes are replaced by the path normalization
2019-04-10 15:20:36 +02:00
Anatol Belski
db7aba538d
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix phar:// include handling with file cache
2019-04-10 14:57:04 +02:00
Anatol Belski
1aa30bb71c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix phar:// include handling with file cache
2019-04-10 14:56:29 +02:00
Anatol Belski
f31d7ca85e
Fix phar:// include handling with file cache
2019-04-10 14:55:15 +02:00
Nikita Popov
33a149afba
Remove posix_getlogin() check from posix_getpwnam() test
...
It doesn't make sense to pass false to posix_getpwnam(). I'm not
sure what exactly this is guarding against, but it won't work in
this form.
2019-04-10 14:43:52 +02:00
Nikita Popov
397ee767fd
Make zlib include_path tests more robust
...
One file is placed inside the script directory, we need to make
sure it has a unique name as well.
2019-04-10 13:39:17 +02:00
Nikita Popov
c02a5931f4
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-10 13:07:01 +02:00
Nikita Popov
b67ca4f07c
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-10 13:06:55 +02:00
Nikita Popov
8f13599a64
Fix 29nb_async_connect.phpt
...
Intermediate states are unreliable across versions (I think), make
sure we go through the whole connect procedure.
2019-04-10 13:06:02 +02:00
Nikita Popov
2191eac3b3
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-10 12:23:01 +02:00
Nikita Popov
6615b9c287
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-10 12:22:34 +02:00
Nikita Popov
c7a86a38a3
Fix pgsql use after free trying to reuse closed connection
...
When a connection is closed, we also need to remove the hash entry
from the regular_list, as it now points to freed memory. To do this
store a reverse mapping from the connection to the hash string.
It would be nicer to introduce a wrapping structure for the pgsql
link resource that could store the hash (and notices), but that would
require large changes to the extension, so I'm going for a more
minimal fix here.
2019-04-10 12:18:57 +02:00
ROVAST
231fecee27
fix a spell mistake
...
possbile => possible
2019-04-10 10:45:13 +02:00
Nikita Popov
d50dcbe659
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-10 10:38:52 +02:00
Nikita Popov
ed1df9d135
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-10 10:38:32 +02:00
Nikita Popov
b55715d61a
Fix use after free on pg_close() of default connection
2019-04-10 10:38:24 +02:00
Nikita Popov
ce5e5b0aa3
Use release for regex in imap
...
The regex may be used as a cache key now.
2019-04-10 10:01:49 +02:00
Nikita Popov
e2ea0f105c
Fix bug #77866 : Port Serializable SPL classes to use __unserialize()
...
Payloads created using Serializable are still supported.
2019-04-10 09:36:39 +02:00
Nikita Popov
cb145e18b2
Fixed bug #77873
2019-04-09 17:27:02 +02:00
Nikita Popov
b870685c5b
Fix leak on error in new serialization mechanism
2019-04-09 17:19:44 +02:00
Dmitry Stogov
a5e86d8264
Fixed ext/ffi/tests/044.phpt failure on 32-bit Linux
2019-04-09 16:12:13 +03:00
Dmitry Stogov
ec5d4c79d2
Eliminated check for assignment to itself
2019-04-09 15:37:19 +03:00
Dmitry Stogov
5fdee9394f
Micro-optimization
2019-04-09 14:38:49 +03:00
Peter Kokot
8021d52fb6
Remove duplicated substitude for Makefile
...
The substitution is already done in the CLI's config.m4 file. Current
SAPIs only provide one PHP_EXECUTABLE variable, i.e. PHP CLI so the one
in the configure.ac can be removed.
2019-04-09 02:09:42 +02:00
Dmitry Stogov
53189b5ebc
Merge branch 'PHP-7.4' of git.php.net:php-src into PHP-7.4
...
* 'PHP-7.4' of git.php.net:php-src:
Remove HAVE_STRERROR
2019-04-09 01:18:44 +03:00
Dmitry Stogov
fe0a0897ba
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Repare SWITCH VM
2019-04-09 01:17:10 +03:00
Dmitry Stogov
8e5a2096a9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Repare SWITCH VM
2019-04-09 01:11:02 +03:00
Dmitry Stogov
7b8212f4d1
Repare SWITCH VM
2019-04-09 00:41:11 +03:00
Peter Kokot
e6a6017f78
Remove HAVE_STRERROR
...
Checking for the strerror function presence is no longer needed since it
is part of the C89 standard [1] and can be safely assumed that all
current systems have it.
Check in the configure.ac and Windows defined symbol are still left
until the file library (libmagic) will be updated.
[1]: https://port70.net/~nsz/c/c89/c89-draft.html
2019-04-08 23:39:45 +02:00
Florian Berberich
07df6594b5
Added range options to the float validation filter
...
php_filter_int (called via the constant FILTER_VALIDATE_INT) has the options min_range
and max_range. they allow the user to not only test if a value is a double but also if
the value is inside a specific range. php_filter_float (called via the constant
FILTER_VALIDATE_FLOAT) didn't provide this yet, making validation of numeric but
not-only-int values more complicated for the user.
this commits implements the options min_range and max_range for the function
php_filter_float to fix this inconsistency.
2019-04-08 13:22:26 +02:00
Nikita Popov
897cb8bc6f
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-08 13:00:20 +02:00
Nikita Popov
a90ac8b5b2
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-08 13:00:05 +02:00
twosee
bdac9ef10d
Preserve keys in emulate_read_fd_set()
...
Keys are already preserved in the non-emulated case.
2019-04-08 12:58:46 +02:00
Nikita Popov
c3ca4dd53e
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-08 11:41:53 +02:00
Nikita Popov
08a3062816
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-08 11:41:48 +02:00
Nikita Popov
d7b5954f28
Fixed bug #77853
2019-04-08 11:40:50 +02:00
Nikita Popov
9e2937d0f2
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-08 11:13:10 +02:00
Nikita Popov
0a25b41f6d
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-08 11:12:52 +02:00
Nikita Popov
eea61cda7d
Fixed bug #77844
...
We should probably return an integer result from the operation in
typed mode, right now the result is always a string.
2019-04-08 11:11:58 +02:00
Nikita Popov
e86820eb56
Fix invalid function by-ref prop assign handling
2019-04-08 10:18:26 +02:00
Nikita Popov
c708c4b404
Avoid time(NULL) call if explicit timestamp given
...
As suggested by Benjamin Coutu.
2019-04-08 09:43:47 +02:00
Peter Kokot
6acba73876
Add AS_HELP_STRING to phpdbg options
2019-04-07 23:24:10 +02:00
Peter Kokot
fbb8ada009
[ci skip] Mention docs dir
2019-04-07 23:16:08 +02:00
Peter Kokot
e06836a1a3
Remove checks for locale.h, setlocale, localeconv
...
The `<loccale.h>` header file, setlocale, and localeconv are part of the
standard C89 [1] and on current systems can be used unconditionally.
Since PHP 7.4 requires at least C89 or greater, the `HAVE_LOCALE_H`,
`HAVE_SETLOCALE`, and `HAVE_LOCALECONV` symbols defined by Autoconf in
configure.ac [2] can be ommitted and simplifed.
The bundled libmagic (file) has also been patched already in version
5.35 and up in upstream location so when it will be patched also in
php-src the check for locale.h header is still left in the configure.ac
and in windows headers definition file.
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.4
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
Omit the bundled libmagic files
2019-04-07 18:32:54 +02:00
Peter Kokot
5f8915786f
Remove HAVE_SIGNAL_H
...
The `<signal.h>` header file is part of the standard C89 headers [1] and
on current systems can be included unconditionally.
Since file requires at least C89 or greater, the `HAVE_SIGNAL_H` symbol
defined by Autoconf in Zend.m4 [2] can be ommitted and simplifed.
The bundled libmagic (file) also ommits the usage of HAVE_SIGNAL_H since
5.35 however current version in PHP is very modified 5.34 version and
will be refactored separately. Check for HAVE_SIGNAL_H is therefore
still done in the configure.ac.
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
2019-04-07 15:55:34 +02:00
Peter Kokot
fd1ad1e25a
Remove HAVE_LIMITS_H
...
The `<limits.h>` header file is part of the standard C89 headers [1]
and on current systems can be included unconditionally.
Since PHP requires at least C89 or greater, the `HAVE_LIMITS_H` symbol
defined by Autoconf in configure.ac [2] can be ommitted and simplifed
however due to bundled file library (libmagic) and timelib still using
it, the removal there was omitted and done only in Zend.m4 file.
Current bundled libraries libtime, oniguruma, and libmagic still include
partial `HAVE_LIMITS_H` usage and will be more refactored when this is
possible.
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
2019-04-07 15:20:02 +02:00
Peter Kokot
afd52f9d99
Refactor AC_INIT in configure.ac and PHP versions
...
Since Autoconf 2.53 the AC_INIT call with only a single argument has
been made obsolete and now includes several other optional arguments to
make installation experience a bit better by providing program version
and links to the project in the `./configure -h` output. This patch also
updates win build version. The phpize.m4 AC_INIT has been updated with
the call without arguments.
2019-04-07 05:52:14 +02:00
Stanislav Malyshev
3eae4f677a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Always use ZEND_SECURE_ZERO() when cleaning up data
bump versions after release
2019-04-06 19:06:21 -07:00
Stanislav Malyshev
805a330681
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Always use ZEND_SECURE_ZERO() when cleaning up data
bump versions after release
2019-04-06 19:06:16 -07:00
Stanislav Malyshev
d1d692abe7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Always use ZEND_SECURE_ZERO() when cleaning up data
bump versions after release
2019-04-06 19:05:37 -07:00
Stanislav Malyshev
588db7cecf
Always use ZEND_SECURE_ZERO() when cleaning up data
...
Optimizing compilers have an annoying tendency to throw out
memsets over data that they think aren't used anymore. Apply secure
zero-out in cases where this has potential to happen.
2019-04-06 18:15:42 -07:00
Peter Kokot
8bcc7acbb0
[ci skip] Update release process docs to Markdown
...
- Markdown
- CS syncs
- Some partial readability fixes
- The protocol hasn't been changed
2019-04-07 00:57:41 +02:00
Christoph M. Becker
3393ae6e77
Fix ASAN configuration
...
Commit 6a624c1[1] mostly replaced `COMPILER_NAME` with
`COMPILER_NAME_LONG` and `COMPILER_NAME_SHORT`, but not all
occurrences, what broke the Clang ASAN configuration. We fix this by
getting rid of `COMPILER_NAME` altogether.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=6a624c1dfda0dbfaaff3e453e6cb58de12748fb3 >
2019-04-06 17:38:18 +02:00
Joe Watkins
1b85e72032
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Follow up #77849 PDOStatement objects in undefined state after clone
2019-04-06 01:31:32 +02:00
Joe Watkins
0c6a68fa36
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Follow up #77849 PDOStatement objects in undefined state after clone
2019-04-06 01:27:58 +02:00
Joe Watkins
a2b8a62abf
Follow up #77849 PDOStatement objects in undefined state after clone
2019-04-06 01:26:47 +02:00
Joe Watkins
7f4a6b1478
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77849 Disable cloning of PDO handle/connection objects to avoid segfault
2019-04-06 00:56:23 +02:00
Joe Watkins
0d5be6ce91
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77849 Disable cloning of PDO handle/connection objects to avoid segfault
2019-04-06 00:55:46 +02:00
Cameron Porter
9ec1525eb5
Fix bug #77849 Disable cloning of PDO handle/connection objects to avoid segfault
2019-04-06 00:54:59 +02:00
Christoph M. Becker
7d186bc416
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update Appveyor CI to php-sdk-2.2.0beta4
2019-04-05 23:16:12 +02:00
Christoph M. Becker
31fe6cfe76
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update Appveyor CI to php-sdk-2.2.0beta4
2019-04-05 23:15:50 +02:00
Christoph M. Becker
7b0ed8975d
Update Appveyor CI to php-sdk-2.2.0beta4
2019-04-05 23:15:22 +02:00
Peter Kokot
8184d87136
[ci skip] Bring release process docs up 2 date
...
This syncs the latest version and the PHP-7.4 version release process
docs.
2019-04-05 22:37:01 +02:00
Peter Kokot
1dd5ab0cad
Add opcache.lockfile_path and opcache.lockfile_path to ini settings
...
Some default opcache settings were missing.
2019-04-05 19:44:56 +02:00
Markus Staab
87b62fe7bc
typo
2019-04-05 07:57:43 +02:00
Dmitry Stogov
d6848625d7
Optimized "smart branch" instructions
2019-04-05 00:25:45 +03:00
Dmitry Stogov
9038d5c6ee
Make is_identical() functions return zend_bool (instead of int)
2019-04-04 18:18:12 +03:00
Dmitry Stogov
575c3576a7
unused variable
2019-04-04 17:52:17 +03:00
Christoph M. Becker
2d2a374bd1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix typos
2019-04-04 14:24:56 +02:00
Christoph M. Becker
54bed8d2ea
Fix typos
2019-04-04 14:22:36 +02:00
Matteo Beccati
15ff5db6b9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Ref #76801 remove old file source from file_sources hash in case of file included more than once
2019-04-03 14:36:20 +02:00
Matteo Beccati
9f02f9fd5c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Ref #76801 remove old file source from file_sources hash in case of file included more than once
2019-04-03 14:36:11 +02:00
Alessandro Chitolina
4029c0b6a2
Ref #76801 remove old file source from file_sources hash in case of file included more than once
2019-04-03 14:35:57 +02:00
Dmitry Stogov
dd4d43c97d
Remove RC1 and RCN from scalar types.
2019-04-03 12:38:25 +03:00
Dmitry Stogov
c941f1d8c7
Fixed SCCP support for ZEND_ASSIGN_OBJ_REF
2019-04-03 11:22:59 +03:00
Dmitry Stogov
e03f532829
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed CFG construction for SWITCH opcodes
2019-04-03 03:11:15 +03:00
Dmitry Stogov
0f811bb7b6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed CFG construction for SWITCH opcodes
2019-04-03 03:09:47 +03:00
Dmitry Stogov
56a5d0bd91
Fixed CFG construction for SWITCH opcodes
2019-04-03 03:09:03 +03:00
Dmitry Stogov
9ef2377d33
array_merge() may return argument with incremented reference counter
2019-04-03 00:44:31 +03:00
Peter Kokot
bb8ea4d64d
Clean ext/spl/tests/bug42364.phpt files after tests
2019-04-02 23:24:21 +02:00
Dmitry Stogov
f53240dbc4
Use fastcall calling convention
2019-04-02 23:49:13 +03:00
Dmitry Stogov
9cb926d8d1
Improved comparison opcode handlers
2019-04-02 23:46:21 +03:00
Kalle Sommer Nielsen
dce7f244a9
Remove dead JPEG2000 code
2019-04-02 21:18:06 +03:00
Christoph M. Becker
849c49a714
Update NEWS
2019-04-02 16:54:15 +02:00
Joe Watkins
731eeb8dec
bump versions after release
2019-04-02 16:50:20 +02:00
Remi Collet
8354c28cc5
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix paste issue
2019-04-02 11:06:06 +02:00
Remi Collet
002983e463
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix paste issue
2019-04-02 11:05:54 +02:00
Remi Collet
f7755163b7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
fix paste issue
2019-04-02 11:05:39 +02:00
Remi Collet
dc1cd3daf2
fix paste issue
2019-04-02 11:05:09 +02:00
Christoph M. Becker
efb4597ecc
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Pointer arithmetic on void pointers is illegal
2019-04-02 10:42:35 +02:00
Christoph M. Becker
b8fdaa7c42
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Pointer arithmetic on void pointers is illegal
2019-04-02 10:41:26 +02:00
Christoph M. Becker
f6efe70505
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Pointer arithmetic on void pointers is illegal
2019-04-02 10:40:56 +02:00
Christoph M. Becker
01a4de5c58
Pointer arithmetic on void pointers is illegal
...
We quick-fix this by casting to char*; it might be more appropriate to
use char pointers in the first place.
2019-04-02 10:39:44 +02:00
Stanislav Malyshev
c0af0ae5a4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:13:06 -07:00
Stanislav Malyshev
da5fbb8c36
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:13:00 -07:00
Stanislav Malyshev
c83af86f8b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:12:54 -07:00
Stanislav Malyshev
887a7b5714
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:12:26 -07:00
Derick Rethans
83c9906bdb
Updated to version 2019.1 (2019a)
2019-04-01 10:38:41 +01:00
Derick Rethans
4f118e87d4
Empty merge
2019-04-01 10:38:41 +01:00
Derick Rethans
a22bd7a3a8
Updated to version 2019.1 (2019a)
2019-04-01 10:38:40 +01:00
Stanislav Malyshev
0eea9a6429
Unfortunately, travis CI has old oniguruma library
...
So we can't test it there.
2019-04-01 00:30:56 -07:00
Stanislav Malyshev
077ce33aa9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS & UPGRADING
Add fallbacks for older oniguruma versions
Add mbstring.regex_stack_limit to php.ini-*
Implement RF bug #72777 - ensure stack limits on mbstring functions.
2019-04-01 00:05:36 -07:00
Stanislav Malyshev
3d5b6f234e
Update NEWS & UPGRADING
2019-04-01 00:03:49 -07:00
Stanislav Malyshev
bc8f292c05
Merge branch 'mb-limit-73' into PHP-7.3
...
* mb-limit-73:
Add fallbacks for older oniguruma versions
Add mbstring.regex_stack_limit to php.ini-*
Implement RF bug #72777 - ensure stack limits on mbstring functions.
2019-04-01 00:00:14 -07:00
Stanislav Malyshev
9dcf95ab76
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
2019-03-31 23:11:30 -07:00
Stanislav Malyshev
d2a86e1c0f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
2019-03-31 23:11:27 -07:00
Stanislav Malyshev
682d28abf7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS
2019-03-31 23:11:24 -07:00
Stanislav Malyshev
c684d32fb8
Update NEWS
2019-03-31 23:11:15 -07:00
Stanislav Malyshev
f45e7861ef
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:10:04 -07:00
Stanislav Malyshev
9efaac30ae
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:09:57 -07:00
Stanislav Malyshev
f3ab302270
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:09:18 -07:00
Stanislav Malyshev
f3aefc6d07
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:09:06 -07:00
Anatol Belski
1686c3fa47
Improve ascii check
2019-04-01 02:16:52 +02:00
Anatol Belski
f7b053f5da
Rework conditions and make them more future proof
2019-03-31 22:10:56 +02:00
Anatol Belski
dd0aca0c11
Implement stricter CRT check
...
This aligns with the recommendations about VS2015, VS2017 and VS2019
compatibility.
More info below
https://devblogs.microsoft.com/cppblog/cpp-binary-compatibility-and-pain-free-upgrades-to-visual-studio-2019/
2019-03-31 17:33:36 +02:00
Anatol Belski
e4a664ecf8
Fix return
2019-03-31 14:31:57 +02:00
Anatol Belski
6a624c1dfd
Rework the VS version evaluation
...
For the latest versions, refer also to the Visual Studio version, not to
the exact toolset version. The latest Visual Studio versions are moving
fast and the method existed previously is not sutable to keep up
anymore. Instead of refering to the exact toolset, it refers to the
Visual Studio version and implies the latest toolset available there.
That is still not ideal, another situation can arise where VS version is
not changed, but the toolset version is. It might be better to refer to
it a generic way in the future or even omit at all, and improve the
internal compatibility checks instead.
2019-03-31 14:26:00 +02:00
Anatol Belski
ddce7ada4c
Implement stricter extension compatibility check
...
This hardens the dynamic module loading by checking the linker compatibility
between the core and the dynamic module. This likely should be extended
for the CRT as well, as 2015, 2017 and 2019 versions of Visual Studio
all have same DLL name for the CRT.
2019-03-31 14:26:00 +02:00
Christoph M. Becker
2733420f82
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77827 : preg_match does not ignore \r in regex flags
2019-03-31 13:35:50 +02:00
Christoph M. Becker
d8b7728b0e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77827 : preg_match does not ignore \r in regex flags
2019-03-31 13:33:21 +02:00
Christoph M. Becker
88460c017a
Fix #77827 : preg_match does not ignore \r in regex flags
2019-03-31 13:31:54 +02:00
Joe Watkins
2c78b80e1e
typo [ci skip]
2019-03-31 09:46:55 +02:00
Joe Watkins
79c6636f15
correct readme [ci skip]
2019-03-31 09:43:53 +02:00
Stanislav Malyshev
e12c069d33
Add fallbacks for older oniguruma versions
2019-03-30 23:18:33 -07:00
Anatol Belski
ba2269ab9e
Fix memory leak
2019-03-30 23:04:52 +01:00
Anatol Belski
4d028a9ee9
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix memory leak
2019-03-30 21:30:48 +01:00
Anatol Belski
a2c87c7f29
Fix memory leak
2019-03-30 21:28:51 +01:00
Anatol Belski
22091084fa
Use wchar_t as native type in C
2019-03-30 21:08:03 +01:00
Peter Kokot
8346b4c9f1
Move README files to a dedicated docs directory
...
The new dedicated docs directory has been introduced after a discussion
on GitHub[1].
Main issue it is addressing is the reduction of too many README files in
the project root directory. The new directory is dedicated for notes and
quick documentation files that either can't be put in the manual or wiki
pages or that relate to the php-src repository specifically and need to
live together with the source code.
Also the `docs` directory is by GitHub used for some repository
configuration files such as pull request templates, and contributing
documentation helper files that are integrated in the interface.
[1]: https://github.com/php/php-src/pull/3988
2019-03-30 19:38:34 +01:00
Matteo Beccati
1ce4ab1ecc
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed SKIPIF when --disable-mbregex is used
2019-03-30 18:30:20 +01:00
Matteo Beccati
263c587854
Fixed SKIPIF when --disable-mbregex is used
2019-03-30 18:29:49 +01:00
Matteo Beccati
f030f34622
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed SKIPIF when --disable-mbregex is used
2019-03-30 18:29:44 +01:00
Matteo Beccati
0dbb581cf4
Fixed SKIPIF when --disable-mbregex is used
2019-03-30 18:28:33 +01:00
Peter Kokot
04a9d6b915
[ci skip] Add ffi_parser.c info
2019-03-30 16:09:23 +01:00
Peter Kokot
a8e879c53f
Join README.GIT-RULES and CONTRIBUTING.md
...
This patch joins two very much related pieces of docs together in a
single file dedicated to all sorts of contributing info.
Some more changes:
- Branches info copied from the current master branch
- LXR and bonsai info removed
- Duplicated info reduced a bit
- Security branch updated to 7.1
- Refactor intro for Git commit rules
- Updated README.GIT-RULES file usage in win32/build/confutils.js
- Refactored configure.ac
2019-03-30 15:58:23 +01:00
Peter Kokot
acf0411855
[ci skip] Mention PHP_PROG_BISON and PHP_PROG_RE2C
2019-03-30 13:59:14 +01:00
Anatol Belski
039500adb6
Fix handling and extend ext/ffi/tests/044.phpt
2019-03-30 12:53:32 +01:00
Peter Kokot
3207741df0
Refactor PHP_PROG_BISON and PHP_PROG_RE2C
...
This patch refactors these macros to also checks for the required given
versions of bison and re2c.
- PHP_PROG_RE2C and PHP_PROG_BISON take optional args - minmimum version
required, and bison also excluded versions.
- Instead of caching values this uses manual checking and messaging
outputs.
- It looks like the minimum version of RE2C 0.13.4 is working ok so far.
The genfiles script improvements:
- Add make override in genfiles
- Move checkings from makedist to genfiles
- Refactored output messages
- Various minor enhancements
2019-03-30 02:01:02 +01:00
Joe Watkins
072eb6dd77
tsrm environment lock
2019-03-29 19:06:02 +01:00
Dmitry Stogov
61ad294f26
Partial support for GCC mode attribute.
2019-03-29 17:28:57 +03:00
Matteo Beccati
4726c35ca3
Removed declaration inside for loops
2019-03-29 14:24:09 +01:00
Matteo Beccati
16b40a1806
Fixed SKIPIF when --disable-mbregex is used
2019-03-29 14:09:39 +01:00
Dmitry Stogov
a2b39aa0de
Fixed memory leaks
2019-03-29 14:33:49 +03:00
Dmitry Stogov
24fa2008dd
Allow usage of incomplete types for external variables, function parameters and return values
2019-03-29 14:14:56 +03:00
Christoph M. Becker
6219815110
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test expectation
2019-03-29 09:58:37 +01:00
Christoph M. Becker
9d8b913de5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test expectation
2019-03-29 09:56:58 +01:00
Christoph M. Becker
0aa1a2c833
Fix test expectation
...
The `W32_SM_SENDMAIL_FROM_MALFORMED` error message will only be shown
if the `$additional_headers` parameter is passed to `mail`, which is
not the case for this test. Instead we have to expect `BAD_MSG_RPATH`.
2019-03-29 09:55:04 +01:00
Stanislav Malyshev
bc4cb277d3
Add mbstring.regex_stack_limit to php.ini-*
2019-03-28 22:57:07 -07:00
Dmitry Stogov
745dd94e55
Added support for more GCC extensions: attributes, __extension__, __asm__ (ignored)
2019-03-29 02:36:55 +03:00
Bob Weinand
3b23694aac
Deprecate unparenthesized concatenation and addition/subtraction
...
Implementing RFC https://wiki.php.net/rfc/concatenation_precedence
2019-03-28 23:54:38 +01:00
Dmitry Stogov
adf930c038
Ignore "__format__" attribute
2019-03-29 00:52:39 +03:00
Dmitry Stogov
94e3db64b2
Allow incomplete array variables - extern const char * const sys_errlist[]
2019-03-29 00:15:12 +03:00
Dmitry Stogov
a3e52afebe
Fixed bug #77768 (FFI: Builtin Types Should Not Raise Error On Redeclaration)
2019-03-29 00:02:26 +03:00
Peter Kokot
5e16f5b8d8
Remove php7.spec.in file
...
RPM specification file was introduced via
7c2f1384d4 for PHP to include official
RPM packages long time agon. With removal of the makerpm script via
3d51d4c90c and Linux repositories to
manage such updated and customized info in their repositories this file
is most likely not needed anymore.
2019-03-28 17:42:11 +01:00
Nikita Popov
d9fbbbc868
Add additional protected visibility prototype test
...
See https://github.com/php/php-src/pull/3993 for context.
2019-03-28 10:14:58 +01:00
Nikita Popov
7f72d771e8
Revert "Switch to bison location tracking"
...
This reverts commit e528762c1c .
Dmitry reports that this has a non-trivial impact on parsing
overhead, especially on 32-bit systems. As we don't have a strong
need for this change right now, I'm reverting it.
See also comments on
https://github.com/php/php-src/commit/e528762c1c59bc0bd0bd6d78246c14269630cf0f .
2019-03-28 09:29:08 +01:00
Stanislav Malyshev
bcb99a3bf7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Validate subject encoding in mb_split and mb_ereg_match
Validate pattern against mbregex encoding
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-28 00:44:42 -07:00
Stanislav Malyshev
66c35b083b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Validate subject encoding in mb_split and mb_ereg_match
Validate pattern against mbregex encoding
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-28 00:42:56 -07:00
Stanislav Malyshev
402adc1df1
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Validate subject encoding in mb_split and mb_ereg_match
Validate pattern against mbregex encoding
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-28 00:35:22 -07:00
Yasuo Ohgaki
738016bd88
Implement RF bug #72777 - ensure stack limits on mbstring functions.
...
The patch creates new config: mbstring.regex_stack_limit, which
defaults to 100000.
2019-03-28 00:31:57 -07:00
Joe Watkins
330517987b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix build: readline support must be disabled by default in phpdbg
2019-03-28 07:35:33 +01:00
Joe Watkins
62a652a0d5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix build: readline support must be disabled by default in phpdbg
2019-03-28 07:35:15 +01:00
Joe Watkins
b7442f1bb8
fix build: readline support must be disabled by default in phpdbg
2019-03-28 07:34:45 +01:00
Nikita Popov
0ecac37c40
Validate subject encoding in mb_split and mb_ereg_match
...
We were already validating the subject encoding in most functions,
but not these two.
2019-03-27 23:20:27 -07:00
Nikita Popov
40fe50daf6
Validate pattern against mbregex encoding
...
Oniguruma does not consistently perform this validation itself (at least
on older versions), so make sure we check pattern encoding validity on the
PHP side.
2019-03-27 23:19:46 -07:00
Dmitry Stogov
363e8dd69d
Support for __restrict and few GCC attributes
2019-03-28 03:01:20 +03:00
Dmitry Stogov
984d05f948
Use semantic predicates to simplify lookahead and reduce backtracking
2019-03-28 01:21:06 +03:00
Nikita Popov
0585548106
Treat abstract ctors the same, regardless of origin
...
Abstract ctor signatures should always be respected by all children,
independently of whether it comes from an interface or an abstract
class. Previously abstract ctor signatures (if they didn't come from
an interface) were only checked to one level of inheritance.
2019-03-27 18:09:09 +01:00
Nikita Popov
d1e5006c14
Fix lineno for more inheritance errors
...
And also include explicit linenos in tests.
2019-03-27 13:02:28 +01:00
Nikita Popov
251f293cb7
Make line numbers for inheritance errors more precise
...
Use the line of the conflicting child method, rather than either the
first or last line of the class.
2019-03-27 12:42:35 +01:00
Joe Watkins
fd5d659779
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Consider phpdbg as cli
2019-03-27 10:38:56 +01:00
Joe Watkins
218154e695
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Consider phpdbg as cli
2019-03-27 10:38:45 +01:00
Samuele Kaplun
79f046f89e
Consider phpdbg as cli
...
* When configuring extensions, considers the PHPDBG SAPI as CLI thus
allowing e.g. to have the pcntl extension available within PHPDBG.
Signed-off-by: Samuele Kaplun <kaplun@protonmail.com >
2019-03-27 10:38:03 +01:00
Joe Watkins
78f0725e69
Merge branch 'PHP-7.4' of git://github.com/php/php-src into PHP-7.4
2019-03-27 10:09:34 +01:00
Joe Watkins
56293d0637
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77805 phpdbg build fails when readline is shared
2019-03-27 10:04:36 +01:00
Joe Watkins
eb405a2192
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77805 phpdbg build fails when readline is shared
2019-03-27 10:04:07 +01:00
Joe Watkins
7af270eb28
Fix #77805 phpdbg build fails when readline is shared
2019-03-27 10:02:42 +01:00
Sara Golemon
7e7fa77a2e
Validate interoperability between libsodium and libargon for argon2i(d) hashing
2019-03-27 00:36:36 -04:00
Sara Golemon
d124640704
Increase default time cost for argon2 password hashing
2019-03-27 00:36:19 -04:00
Joe Watkins
f177a2ac58
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
more work on phpdbg conditional breaks
2019-03-27 00:02:43 +01:00
Joe Watkins
1e4cff9ddb
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
more work on phpdbg conditional breaks
2019-03-27 00:02:31 +01:00
Joe Watkins
6d3a2b4693
more work on phpdbg conditional breaks
2019-03-27 00:02:15 +01:00
Joe Watkins
903c1e379b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77800 phpdbg segfaults on conditional breakpoints
2019-03-26 23:06:54 +01:00
Joe Watkins
e177d26d0e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77800 phpdbg segfaults on conditional breakpoints
2019-03-26 23:06:15 +01:00
Joe Watkins
7df8e4fc0a
Fix #77800 phpdbg segfaults on conditional breakpoints
2019-03-26 23:05:06 +01:00
Peter Kokot
434388a610
Add minimum required PHP version to run-tests.php
...
This integrates a simple minimum PHP version info in the tool and to
also define the minimum version that the tool syntax should support.
2019-03-26 22:31:01 +01:00
Nikita Popov
0122f395c7
Add zend_error_at API that accepts a filename and lineno
...
Use this for the opcache preloading warnings, as an example usage.
2019-03-26 15:47:00 +01:00
Nikita Popov
a9b01b60d8
Make PCRE cache per-request on CLI
...
There will only be one request on the CLI SAPI, so there is no
advantage to having a persistent PCRE cache. Using a non-persistent
cache allows us to use arbitrary strings as cache keys.
2019-03-26 10:10:41 +01:00
Peter Kokot
886b2a22e9
[ci skip] Join contributing and patches docs
...
This joins two similar contextual information together in the main
CONTRIBUTING.md file.
Additionally:
- http links updated to https where possible
- sentences and sections refactored more so they make some sence. GitHub
pull requests are preferred way for contributing code.
- reorder paragraphs and contextual info
- s/mail list/mailing list
- PHP internals refactorings
- use canonical https://www.php.net
2019-03-25 22:55:50 +01:00
Peter Kokot
0d2dadc0e2
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
Fix #77794 : Incorrect Date header format in built-in server
2019-03-25 21:57:39 +01:00
Peter Kokot
6ef6d31776
[ci skip] Update NEWS
2019-03-25 21:57:20 +01:00
Peter Kokot
58e00df9fe
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
Fix #77794 : Incorrect Date header format in built-in server
2019-03-25 21:56:39 +01:00
Peter Kokot
72a2ab39ba
[ci skip] Update NEWS
2019-03-25 21:46:41 +01:00
Niklas Keller
7f9872387e
Fix #77794 : Incorrect Date header format in built-in server
...
- Fix the date format to be compliant with https://tools.ietf.org/html/rfc7231#section-7.1.1.2
- Fix date format length and use GMT time
- Previously, local time was used instead of GMT.
- Remove extra whitespace
- Simplify string appends in php_cli_server.c
2019-03-25 21:41:45 +01:00
Dmitry Stogov
164b7ec549
Regenerate parser
2019-03-25 21:45:10 +03:00
Nikita Popov
065255a0f8
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-25 17:46:28 +01:00
Nikita Popov
e4d9d91462
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-25 17:45:03 +01:00
Vlad Temian
ec2ecb7e12
Fix bug #77680 : Correctly implement recursive mkdir on FTP stream
...
If the root directory was missing, an extra CWD without arguments was
made. Also, the MKD contained an empty string.
Now the CWD will use / and MKDs will be issued starting from the root
directory.
2019-03-25 17:43:46 +01:00
Nikita Popov
0b835e3e24
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-25 17:36:15 +01:00
Nikita Popov
e97577edde
Fixed bug #77793
...
By making sure that we always first increment the refcount of the
new value before we destroy the old one.
2019-03-25 17:33:17 +01:00
Nikita Popov
5c26268e76
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-25 16:43:33 +01:00
Nikita Popov
91d4d175ab
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-25 16:43:21 +01:00
Nikita Popov
85095dfd09
Fixed bug #72175
...
Make sure we don't close the connection we're trying to reuse...
2019-03-25 16:41:21 +01:00
Nikita Popov
071ffa2e79
Don't use parallel testing with -j1
2019-03-25 14:15:26 +01:00
Nikita Popov
3c61972451
Drop lightning for concurrent worker count
...
This looked rather awkward even on terminals that have full unicode
support.
2019-03-25 14:13:10 +01:00
Tyson Andre
936356bf1e
Make run-tests.php compatible with php 7.0-7.2
...
Motivation:
As an extension author, I want to speed up running tests in php <=7.3,
both locally and in CI (e.g. with valgrind).
This can be done by manually copying php 7.4's run-tests.php script
to replace the one generated by `phpize`
- list() doesn't work in php 7.0
- negative string offset doesn't work in php 7.2
If run-tests.php can be copied from php-src without any manual patches,
that would be the easiest.
Related to #2822 - I didn't see any discussion for/against compatibility
with older php versions
2019-03-25 13:58:22 +01:00
Peter Kokot
8b94042c47
Enhance Autoconf version checking
...
With this required Autoconf version is now defined only on two places:
- configure.ac
- scripts/phpize.m4
and additionally:
- Script can be run from other locations
- Synced CS and portability a bit
2019-03-24 02:12:46 +01:00
Peter Kokot
092ebd032c
[ci skip] Move CREDITS from root to README
2019-03-24 01:57:19 +01:00
Guilliam Xavier
516d27775d
Fix tokenizer_data_gen.sh for non-posix bison
...
And run it to update tokenizer_data.c after recent changes in
zend_language_parser.y that reordered some tokens
2019-03-24 01:53:59 +01:00
George Peter Banyard
6b362e063c
Remove enable-wddx from Travis compile as it WDDX has been unbundled as of PHP 7.4
2019-03-23 23:23:21 +01:00
Peter Kokot
f63829852e
[ci skip] Remove text editor modelines
...
These were already removed 92ac598aab
and this fixes some leftovers. These files don't really need these
settings.
2019-03-23 21:09:38 +01:00
Joe Watkins
994a897586
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix bug #76801 : phpdbg too many open files error
2019-03-23 09:49:28 +01:00
Joe Watkins
93740a2482
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix bug #76801 : phpdbg too many open files error
2019-03-23 09:48:20 +01:00
Alessandro Chitolina
b8b880932e
fix bug #76801 : phpdbg too many open files error
2019-03-23 09:47:49 +01:00
Remi Collet
88c37e0b84
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
ensure pcre.jit=1 for this test
2019-03-22 15:31:53 +01:00
Remi Collet
e68fd40e22
ensure pcre.jit=1 for this test
2019-03-22 15:31:36 +01:00
Remi Collet
cf25a3d64d
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
ensure pcre.jit=1 for these tests
2019-03-22 15:02:13 +01:00
Remi Collet
bb47fb0783
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
ensure pcre.jit=1 for these tests
2019-03-22 15:01:49 +01:00
Remi Collet
2e9dccef78
ensure pcre.jit=1 for these tests
2019-03-22 15:00:31 +01:00
Nikita Popov
197b0373f6
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-22 13:07:11 +01:00
Nikita Popov
30ddfd49ed
Fixed bug #77773
2019-03-22 13:07:00 +01:00
Nikita Popov
9457cfca37
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-22 12:41:34 +01:00
Nikita Popov
620a753185
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-22 12:41:02 +01:00
Nikita Popov
da35fa2cb8
Fixed bug #77772
2019-03-22 12:39:27 +01:00
Nikita Popov
d373c11e71
Implement new custom object serialization mechanism
...
RFC: https://wiki.php.net/rfc/custom_object_serialization
2019-03-22 10:43:06 +01:00
Nikita Popov
e7e2056d1a
Remove HAVE_PCRE/HAVE_BUNDLED_PCRE checks
...
PCRE is always available.
2019-03-22 10:29:18 +01:00
rjhdby
5456a6ea92
Deduplicate code in zend_builtin_functions.c
2019-03-22 09:47:09 +01:00
Nikita Popov
e528762c1c
Switch to bison location tracking
...
Locations for AST nodes are now tracked with the help of bison
location tracking. This is more accurate than what we currently do
and easier to extend with more information.
A zend_ast_loc structure is introduced, which is used for the location
stack. Currently it only holds the start lineno, but can be extended
to also hold end lineno and offset/column information in the future.
All AST constructors now accept a zend_ast_loc* as first argument, and
will use it to determine their lineno. Previously this used either the
CG(zend_lineno), or the smallest AST lineno of child nodes.
On the parser side, the location structure for a whole rule can be
obtained using the &@$ character salad.
2019-03-21 16:27:48 +01:00
Nikita Popov
1cf84f1579
Try to create interned strings in preg_split as well
...
And convert last_match to last_match_offset, which is more
convenient now.
2019-03-21 10:19:48 +01:00
Nikita Popov
621b1f0312
Cleanup add_offset_pair API
...
Accept the two offsets directly, rather than doing length calculations
at all callsites. Also extract the logic to create a possibly interned
string.
Switch the split implementation to work on a char* subject internally,
because ZSTR_VAL(subject_str) is a mouthful...
2019-03-21 10:08:29 +01:00
Nikita Popov
6311581ac6
Fix bug #73948
...
If PREG_UNMATCHED_AS_NULL is used, make sure that unmatched capturing
groups at the end are also set to null, rather than just those in the
middle.
2019-03-21 09:50:20 +01:00
Remi Collet
c1095cfed7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix test
2019-03-21 09:20:03 +01:00
Remi Collet
5c8d69bf6f
fix test
2019-03-21 09:19:42 +01:00
Kalle Sommer Nielsen
26f98ecd19
Sync the changes to ext/filter with 7.4, now that it works.
...
- Removed --with-pcre-dir
- The filter extension can now be built as shared on Unix with ./configure
2019-03-20 20:09:45 +02:00
Christoph M. Becker
6bbb18a0b6
Unbundle ext/wddx
...
The extension is now available from <https://pecl.php.net/package/wddx >.
Cf. <https://wiki.php.net/rfc/deprecate-and-remove-ext-wddx >.
2019-03-20 14:15:50 +01:00
Remi Collet
c8c86e76cf
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix tests after fix for #76717
2019-03-20 14:08:30 +01:00
Remi Collet
cf65905974
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests after fix for #76717
2019-03-20 14:08:18 +01:00
Remi Collet
a467a89f16
Fix tests after fix for #76717
2019-03-20 14:07:26 +01:00
Nikita Popov
abc457fe1d
Fixed bug #74345
...
Export zend_release_fcall_info_cache(). It is only necessary to
call it if the fcc may not have been used -- if it is passed to
zend_call_function() and friends, then they will take care of
freeing trampolines.
2019-03-20 12:06:42 +01:00
Remi Collet
ed808c59e4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
NEWS
Revert "Fix #77609 : Tests from mailparse extension fails"
2019-03-20 11:55:44 +01:00
Remi Collet
999370b756
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
NEWS
Revert "Fix #77609 : Tests from mailparse extension fails"
2019-03-20 11:55:06 +01:00
Remi Collet
a785ccd21a
NEWS
2019-03-20 11:54:49 +01:00
Remi Collet
32e7b0864c
Revert "Fix #77609 : Tests from mailparse extension fails"
...
This reverts commit 3ead672394 .
2019-03-20 11:54:27 +01:00
Nikita Popov
fb109bacea
Mark bug76348.phpt as online test
2019-03-20 11:40:09 +01:00
Dmitry Stogov
2ccc27bcfc
Fixed incorrect error message
2019-03-20 02:41:08 +03:00
Dmitry Stogov
14359eb7eb
Fixed typo
2019-03-20 01:31:35 +03:00
Peter Kokot
864366ef20
Upgrade deprecated directives and use non-posix bison
...
With Bison 3.0 some directives are deprecated:
- %name-prefix "x" should be %define api.prefix {x}
- %error-verbose should be %define parse.error verbose
Bison 3.3 also started emiting more warnings and since PHP souce parsers
are not POSIX compliant this patch fixes this as pointed out via
495a46aa1d .
2019-03-19 20:29:20 +01:00
Peter Kokot
38b22448f8
Remove extension readmes
...
This patch removes several extension readmes in favor of the PHP manual
and where possible.
2019-03-19 20:25:32 +01:00
Sara Golemon
e487390564
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Bump versions for 7.2.18
2019-03-19 14:33:13 -04:00
Sara Golemon
4c55b1c16d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump versions for 7.2.18
2019-03-19 14:32:28 -04:00
Sara Golemon
963428a75d
Bump versions for 7.2.18
2019-03-19 14:31:08 -04:00
Remi Collet
11bdc3eca4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
comment out sqlite3.defensive = 1 follow common practice, this is the default value
2019-03-19 16:28:10 +01:00
Remi Collet
5686e6e33e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
comment out sqlite3.defensive = 1 follow common practice, this is the default value
2019-03-19 16:27:57 +01:00
Remi Collet
78c9a53df7
comment out sqlite3.defensive = 1
...
follow common practice, this is the default value
2019-03-19 16:26:26 +01:00
Christoph M. Becker
eae32eee28
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Prepare main branch for PHP 7.3.5
2019-03-19 16:22:12 +01:00
Christoph M. Becker
a2de42041c
Prepare main branch for PHP 7.3.5
2019-03-19 16:20:55 +01:00
Remi Collet
29fa3ac8b5
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix test for upcoming pcre2 10.33
2019-03-19 16:16:13 +01:00
Remi Collet
c421d9afec
fix test for upcoming pcre2 10.33
...
"group name ..." => "subpattern name ..."
2019-03-19 16:15:14 +01:00
Nikita Popov
f53e7394eb
Respect OFFSET_CAPTURE when padding preg_match_all() results
...
This issue was mentioned in bug #73948 . The PREG_PATTERN_ORDER
padding was performed without respecting the PREF_OFFSET_CAPTURE
flag, which resulted in unmatched subpatterns being either null or
[null, -1] depending on where they occur. Now they will always be
[null, -1], consistent with other usages.
2019-03-19 15:35:15 +01:00
Nikita Popov
2783670daa
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-19 13:59:43 +01:00
Nikita Popov
661bce47ae
Fixed bug #76127
...
Per documentation, and consistent with other preg functions, we
should return false if an error occurred.
2019-03-19 13:57:39 +01:00
Nikita Popov
4fe3d108af
Don't create a new array for empty/null match every time
...
If PREG_OFFSET_CAPTURE is used, unmatched subpatterns will be either
[null, -1] or ['', -1] depending on PREG_UNMATCHED_AS_NULL mode.
Instead of creating a new array like this every time, cache it inside
a global (per-request -- could make it immutable though).
Additionally check whether the subpattern is an empty string or
single character string and use an existing interned string in that
case. Empty / single-char subpatterns are common, so let's avoid
allocating strings for them.
2019-03-19 13:06:21 +01:00
Nikita Popov
38b16274d1
Revert unintended change
...
I wanted to cache subpat names, but we can't do that because the
cache relives request boundaries.
2019-03-19 12:01:37 +01:00
Nikita Popov
525f19bef5
Use zend_string for subpat_names table
...
When used with preg_match_all or preg_replace_callback(_array),
subpattern names can be used in the matches array many times.
Switch the subpat_names table to use zend_string, so we don't have
to allocate a new string every time. Also don't bother creating the
table if no $matches were passed.
This might be a regression for the case where preg_match() is used
with many trailing named subpatterns that are skipped in the result
array, but that seems rather contrived.
2019-03-19 11:59:25 +01:00
Dmitry Stogov
defd421c0f
Improve white-space handling
2019-03-19 13:52:55 +03:00
Nikita Popov
f2438a57ff
Avoid copying subpat twice if named subpats are used
2019-03-19 11:18:43 +01:00
Nikita Popov
12bcdd68b4
Fix #77094 : Add flags support for pcre_replace_callback(_array)
2019-03-19 10:38:21 +01:00
Nikita Popov
cfa2f0f598
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-19 10:03:11 +01:00
Nikita Popov
d53e9c7392
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-19 10:03:05 +01:00
Vlad Temian
fe2885d80a
Fixed bug #77765
...
Set mode 40755 for directories, via FTP stream stat.
Because we already manage to CWD into the current directory,
we should set 40755 as mode, instead of 40644.
2019-03-19 10:02:38 +01:00
Nikita Popov
97bcfe54e7
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-19 09:55:52 +01:00
Nikita Popov
20c261b2fe
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-19 09:55:42 +01:00
Miriam Lauter
09e522322a
Fix #77767 : phpdbg break command help message shows incorrect aliases
...
Previously the aliases for at and del were listed as A and d
in the help message for break. This patch corrects the aliases
to be @ and ~ respectively.
2019-03-19 09:55:10 +01:00
Dmitry Stogov
9357953bab
micro-optimization
2019-03-19 02:02:14 +03:00
Peter Kokot
abfab2148d
Leave bundled generated files untouched
...
When building lexer and parser files leave bundled files untouched as
are tracked in the Git. *.orig files also don't need to be cleaned
anymore.
2019-03-18 23:02:57 +01:00
Christoph M. Becker
5b8a7412f4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix order
2019-03-18 20:08:49 +01:00
Christoph M. Becker
5ead86a35e
Fix order
2019-03-18 20:07:38 +01:00
Christoph M. Becker
fb51f2c7ba
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77578 : Crash when php unload
2019-03-18 19:26:08 +01:00
Christoph M. Becker
a529826d95
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77578 : Crash when php unload
2019-03-18 19:24:56 +01:00
Christoph M. Becker
41bc51ce2d
Fix #77578 : Crash when php unload
...
Since we're putting `ITypeLib *`s into the hash, we're getting
`ITypeLib *`s back, not `ITypeLib **`s.
2019-03-18 19:21:38 +01:00
Dmitry Stogov
46d5551fc3
Optimization for ASCII data
2019-03-18 19:33:51 +03:00
Nikita Popov
967037bb8d
Don't use random mode in mysqli_query test
...
MYSQLI_ASYNC is also valid here, at least with mysqlnd. Rather than
using a random mode that is prone to failing once in a blue moon,
use a fixed invalid value.
2019-03-18 16:58:49 +01:00
Nikita Popov
2b9acd37f0
Fixed bug #72685
...
We currently have a large performance problem when implementing lexers
working on UTF-8 strings in PHP. This kind of code tends to perform a
large number of matches at different offsets on a single string. This
is generally fast. However, if /u mode is used, the full string will
be UTF-8 validated on each match. This results in quadratic runtime.
This patch fixes the issue by adding a IS_STR_VALID_UTF8 flag, which
is set when we have determined that the string is valid UTF8 and
further validation is skipped.
A limitation of this approach is that we can't set the flag for interned
strings. I think this is not a problem for this use-case which will
generally work on dynamic data. If we want to use this flag for other
purposes as well (mbstring?) then it might be worthwhile to UTF-8 validate
strings during interning. But right now this doesn't seem useful.
2019-03-18 16:58:48 +01:00
Christoph M. Becker
8c9d8c3f66
Avoid unnecessary global variable
2019-03-18 15:57:27 +01:00
Christoph M. Becker
7cdb232e37
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add bison version check to configure
2019-03-18 15:05:19 +01:00
Christoph M. Becker
7ef2fa6d0d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add bison version check to configure
2019-03-18 15:04:09 +01:00
Christoph M. Becker
f21c054903
Add bison version check to configure
...
Since we're already checking for the minimum required re2c version,
also checking for the minimum required bison version is sensible.
2019-03-18 15:02:52 +01:00
Christoph M. Becker
9ca9394f5b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Simplfy test case
2019-03-18 14:59:08 +01:00
Nikita Popov
275fa53564
Accept zend_string* instead of char* in php_pcre_match_impl()
2019-03-18 12:32:06 +01:00
Xinchen Hui
ab8782d1e6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Simplfy test case
2019-03-18 19:30:11 +08:00
Xinchen Hui
e072537e7f
Simplfy test case
...
(I was working on the same bug while nikic committed the similar fix
2019-03-18 19:28:23 +08:00
Nikita Popov
7ad04a0537
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-18 12:16:18 +01:00
Nikita Popov
763a7b8ca3
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 12:16:12 +01:00
Nikita Popov
b3a669bec1
Make test independent of icu version
...
We don't really care about the actual output here, just that it
doesn't fail.
2019-03-18 12:14:58 +01:00
Nikita Popov
65c9a3f1a1
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-18 11:41:19 +01:00
Nikita Popov
623a11d7de
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 11:39:58 +01:00
Nikita Popov
433758ceb3
Allow DateTimeImmutable in datefmt_format_object()
...
As pointed out in a comment on bug #65683 .
2019-03-18 11:39:16 +01:00
Nikita Popov
4eb9e93728
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-18 11:07:36 +01:00
Nikita Popov
82fbaab53c
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 11:07:27 +01:00
Nikita Popov
4f03401628
Partial fix for bug #77751
...
This avoids the segfault, but it will not make writing to the
SplFileObject during output shutdown work.
2019-03-18 11:06:23 +01:00
Nikita Popov
f7abb1e253
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-18 10:51:20 +01:00
Nikita Popov
da7add3525
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 10:51:00 +01:00
Nikita Popov
54bf8c820f
Fixed bug #77743
2019-03-18 10:49:53 +01:00
Christoph M. Becker
e0e5d26c9c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #76956 : Wrong value for 'syslog.filter' documented in php.ini
2019-03-18 10:20:41 +01:00
Christoph M. Becker
ad2d2e41de
Fix #76956 : Wrong value for 'syslog.filter' documented in php.ini
2019-03-18 10:19:30 +01:00
Nikita Popov
1b411c039f
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-18 10:14:03 +01:00
Nikita Popov
c4464526cd
Remove x86 bit test optimization
...
This is undefined behavior and we cannot rely on it. Additionally it
breaks builds using undefined behavior sanitizers.
2019-03-18 10:12:15 +01:00
Nikita Popov
00cfa1a367
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 10:11:25 +01:00
Nikita Popov
a573c0e9ed
Fix unused variable warning
2019-03-18 10:11:00 +01:00
Nikita Popov
51ed4a8d8f
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-18 10:04:59 +01:00
Nikita Popov
61eebb559e
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 10:04:29 +01:00
twosee
bd6eabd659
Don't disable object slot reuse while running shutdown functions
...
We only need to do this once we're running destructors. The current
approach interferes with some event loop code that runs everything
inside a shutdown function.
2019-03-18 10:02:31 +01:00
Peter Kokot
4b081c2783
[ci skip] Update changelog
2019-03-18 02:14:18 +01:00
Peter Kokot
ccc29473ec
Sync AC_CHECK_SIZEOF m4 macro calls
...
- AC_CHECK_SIZEOF is now called mostly only in PHP_CHECK_STDINT_TYPES()
macro except for some parts checking for the 32 or 64 bit architecture.
- SIZEOF_CHAR removed since it is always 1
- ZEND_BIN_ID is now of a more logical pattern `BIN_48888` on 64bit
architectures and `BIN_44444` on 32bit instead of literal string
`BIN_SIZEOF_CHAR48888` on 64bit and `BIN_SIZEOF_CHAR44444` on 32bit.
The unneeded SIZEOF_CHAR part has been removed.
- XMLRPC_TYPE_CHECKS removed
- The `long long int` is the same as `long long` and redundant checks
removed accordingly.
- Removed PHP_CHECK_64BIT macro. Checking if current platform is 64bit
or not can be also done simply by using a check of the long type on
place. This removes redundant m4 macro PHP_CHECK_64BIT.
2019-03-18 02:11:23 +01:00
Fabien Villepinte
b6f9ade9f2
Remove unused variables
2019-03-17 23:29:51 +01:00
Derick Rethans
eabca6f87a
Merge remote-tracking branch 'refs/remotes/origin/PHP-7.4' into PHP-7.4
2019-03-17 15:16:08 -04:00
Derick Rethans
dd4ce986d2
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-17 15:13:16 -04:00
Peter Kokot
bcaf90e5eb
Remove outdated README for ext/json
...
The php manual already includes introduction to the JSON extension. The
re2c and bison version required to build parser and lexer files have
changed so to move this info on a central place this removes the README.
2019-03-17 20:10:26 +01:00
Derick Rethans
d209ccd4cc
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-17 14:55:53 -04:00
Derick Rethans
ab07bc1fff
Fixed 7.2 compat issue
2019-03-17 14:53:56 -04:00
Derick Rethans
0325e78f4f
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-17 14:38:11 -04:00
Derick Rethans
7e7ef44fab
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-17 14:38:04 -04:00
Derick Rethans
1307275b43
Merge branch 'pr/3888' into PHP-7.2
2019-03-17 14:37:52 -04:00
Ignace Nyamagana Butera
6eb83a63e1
Fixed bug #75113 : Added DatePeriod::getRecurrences() method.
2019-03-17 14:37:35 -04:00
Nuno Lopes
33d4282526
remove unneeded AC_REQUIRE([AC_PROG_YACC])
...
thanks Peter Kokot for noticing
2019-03-17 08:10:41 -04:00
Peter Kokot
20af19b9b3
Remove duplicate PHP_C_BIGENDIAN check
...
The bigendian check is already done via configure.ac and the variable
ac_cv_c_bigendian_php is already set.
2019-03-17 01:31:28 +01:00
Peter Kokot
e525ce30a5
Move distribution generator script to scripts/dev
...
The more proper place for shell scripts dedicated for development, and
releasing PHP should be the scripts/dev directory. Having a cleaner root
project directory helps find the main README.md and files relevant to
install PHP.
These scripts are also used by the release managers mostly who create
release packages and aren't used often by the majority of developers
working on and installing PHP.
2019-03-16 23:51:05 +01:00
Peter Kokot
78ab79b916
Enhance the buildconf script
...
Changes:
- Added a short introduction what this script does
- Added usually the expected -h and --help options with explanation
for a reason for this script and its usage.
- Messages changed a bit so the PHP installation procedure becomes
simpler without needing to constantly remind the reader what to run
and what not in the documentations and installation instructions.
- cd into current working directory of the buildconf (this enables
running the script from other locations and inside other scripts).
- check if make exists
2019-03-16 23:43:25 +01:00
Nuno Lopes
2619b138c0
snmp: remove unused var
2019-03-16 19:36:12 +01:00
Peter Kokot
86f2681460
[ci skip] Remove make install step from README
...
The `make install` step touches files outside of the source directory
and might cause confusions with people. It should be mentioned in more
details elsewhere in the installation chapter instead and how to
override it.
2019-03-16 18:37:49 +01:00
Nuno Lopes
434fae97f2
check for bison binary, not yacc
...
this fixes compilation with recent bison
2019-03-16 12:22:44 -04:00
Peter Kokot
d7022d2d25
[ci skip] Update changelog
2019-03-16 15:18:50 +01:00
Nuno Lopes
f9e1d242f5
bump minimum bison version to 3.0 after last parser changes
2019-03-16 06:32:43 -04:00
Peter Kokot
78596973b3
Make credits script executable from other paths
2019-03-16 01:37:34 +01:00
Fabien Villepinte
cf8a4b03dc
Use separate output files in xmlreader tests
2019-03-15 23:50:22 +01:00
Fabien Villepinte
26dfce7f36
Replace dirname(__FILE__) by __DIR__ in tests
2019-03-15 22:55:30 +01:00
Pedro Magalhães
63802a8446
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Added test for #77535 fix
2019-03-15 18:13:37 +00:00
Pedro Magalhães
3a04b507ec
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Added test for #77535 fix
2019-03-15 18:12:55 +00:00
Pedro Magalhães
f167b06d4c
Added test for #77535 fix
2019-03-15 18:11:51 +00:00
Nikita Popov
585f4cbb21
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-15 17:08:01 +01:00
Nikita Popov
7899f6a906
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-15 17:07:48 +01:00
Nikita Popov
97f9fd6949
Don't immediately destroy curl pushfunction
2019-03-15 17:07:19 +01:00
Nikita Popov
2a04efe0e4
Remove unnecessary precedence/associativity annotations
...
Some of these are entirely unnecessary. Some specify an associativity
for operators where the concept doesn't make sense and has no effect:
Explicit associativity is only meaningful for binary operators. For
unary operators and constrained operations like instanceof or assignment
the associativity specification has no effect and only serves to confuse.
For example assignments were specified as %left, even though they will
actually behave as right-associative due to the variable requirement on
the LHS. Similarly instanceof was specified as %nonassoc, but it will
behave as left-associative, due to the restrictions places on the RHS.
2019-03-15 12:01:58 +01:00
Xinchen Hui
b419590893
Fixed bug #77697 (Crash on Big_Endian platform)
2019-03-15 16:58:08 +08:00
Thiago Carvalho
4cfa01bfb8
Add tests to XMLReader
2019-03-15 00:12:13 +01:00
Peter Kokot
97d25c87d2
Clean build system
...
Changes:
- AC_TYPE_SIZE_T called on only one place (configure.ac)
- AC_FUNC_ALLOCA called on only one place (configure.ac)
- AC_TYPE_UID_T called on only one place (configure.ac)
- HAVE_STRSTR removed since strstr is part of C89 standard [1]
- Remove checks for strtol and strpbrk
- Checking for the presence of perror function is not needed anymore
since it is part of C89 standard and PHP calls it unconditionally.
- Checking for functions strdup, setenv, strerror, and memmove done only
on one place (configure.ac)
- outdated check for snprintf removed
1: https://port70.net/~nsz/c/c89/c89-draft.html
2019-03-14 20:20:12 +01:00
Peter Kokot
3a857852a8
Remove HAVE_STRFTIME
...
Function strftime is part of the C89 standard [1] and current systems
don't need to check for its presence anymore.
Additionally, checks for strftime function in tests have been removed
since the PHP strftime function is now always available.
1: https://port70.net/~nsz/c/c89/c89-draft.html
2019-03-14 19:42:29 +01:00
c9s
a59881fa04
ext/session: remove the redundant convert_to_long
2019-03-14 17:29:10 +01:00
Nikita Popov
8bb5582751
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-14 17:26:17 +01:00
Nikita Popov
217c05da52
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-14 17:25:54 +01:00
Nikita Popov
e7d40afb7a
Fixed bug #77742
...
By avoiding integer overflow in the implementation entirely. The
multiplication was already explicitly checked for overflow, so also
add a check for the addition and remove the overflow checks after
the calculation.
2019-03-14 17:24:50 +01:00
Xinchen Hui
82174e68b6
updated NEWS
2019-03-14 16:47:16 +08:00
Xinchen Hui
e3965913c4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77738 (Nullptr deref in zend_compile_expr)
2019-03-14 16:46:46 +08:00
Xinchen Hui
c7920aba3e
Fixed bug #77738 (Nullptr deref in zend_compile_expr)
2019-03-14 16:46:04 +08:00
Dmitry Stogov
9499484ed2
Implemented a faster way to access predefined TSRM resources - CG(), EG(), etc.
2019-03-14 03:01:01 +03:00
Peter Kokot
a1b7bc0c81
Integrate README.EXT_SKEL to help option
...
- Sync help output using heredoc
- Add extension building instructions
- Building with phpize is preferred option. Mention also tests
- Refactor print_success()
2019-03-13 20:56:10 +01:00
Peter Kokot
50a6a0d819
Fix duplicate symbols _zend_ce_weakrefs
...
The zend_ce_weakref need to be external...
2019-03-13 11:38:21 +01:00
Peter Kokot
75023cf9a9
[ci skip] Mention removed m4 macros
2019-03-13 00:16:34 +01:00
Anatol Belski
e10349152b
Sync with ZEND_ENABLE_STATIC_TSRMLS_CACHE enablement in ext/mbstring
2019-03-12 21:33:43 +01:00
Dmitry Stogov
824a933398
Better data packing
2019-03-12 22:19:11 +03:00
Dmitry Stogov
04b67bac32
Avoid reinitailization of ZTS cache pointer. Initialize it once in TSRM.c
2019-03-12 17:35:50 +03:00
Dmitry Stogov
7139c381f1
Fixed ZTS cache usage
2019-03-12 16:58:02 +03:00
Dmitry Stogov
cf4ee57dc9
Fixed ZTS cache usage
2019-03-12 15:25:51 +03:00
Dmitry Stogov
25d4af9413
Fixed ZTS cache usage
2019-03-12 15:13:52 +03:00
Dmitry Stogov
b0d76ed4ad
Fixed ZTS cache usage
2019-03-12 15:05:56 +03:00
Dmitry Stogov
f1b306fe11
Switch to use ZTS cache
2019-03-12 14:15:47 +03:00
Dmitry Stogov
5aa1176238
Cleanup unused module globals
2019-03-12 13:44:05 +03:00
Dmitry Stogov
c48f5fe841
Fixed ZTS cache usage
2019-03-12 12:07:25 +03:00
Nikita Popov
5b778e852e
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-12 09:58:29 +01:00
Nikita Popov
a7739be22f
Fixed bug #77722
2019-03-12 09:58:09 +01:00
Remi Collet
99ee5db5e0
add --enable-rtld-now in upgrade info
2019-03-12 08:26:22 +01:00
Remi Collet
233888e36a
use DL_LOAD in litespeed
2019-03-12 08:23:11 +01:00
Remi Collet
d633cbac1c
add --enable-rtld-now build option to change dlopen behavior
2019-03-12 08:23:06 +01:00
Joe Watkins
b003e0a0f5
weakrefs upgrading note
2019-03-12 06:52:43 +01:00
Joe Watkins
6529d7acd9
zend_weakrefs
2019-03-12 00:35:35 +01:00
Anatol Belski
a526a6b4c1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Die hard if mc.exe or mt.exe not found
2019-03-11 20:59:51 +01:00
Anatol Belski
95c8f67a4c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Die hard if mc.exe or mt.exe not found
2019-03-11 20:59:23 +01:00
Anatol Belski
6814ba11bc
Die hard if mc.exe or mt.exe not found
...
Even configure would pass, that producess quite subtle build errors
which are better to avoid at configure stage already.
2019-03-11 20:41:45 +01:00
bohwaz
58c25bf679
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-11 18:02:03 +01:00
Christoph M. Becker
aefe0dfd61
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-11 16:31:26 +01:00
Christoph M. Becker
e7ce7c6bb2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-11 16:30:16 +01:00
bohwaz
e93259bb23
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-11 16:26:15 +01:00
Nikita Popov
cc354a0790
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-11 15:36:40 +01:00
Nikita Popov
6818ca3c02
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-11 15:36:27 +01:00
Nikita Popov
1fd32e9c2f
Fixed bug #76717
...
Print INT_MIN as -INT_MAX-1 to avoid it getting parsed as a float
literal due to integer overflow.
2019-03-11 15:35:02 +01:00
Nikita Popov
ac79d42ba6
Free trampolines from get_closure in is_callable
...
Also extract this logic into a function, as it's duplicated a few times.
2019-03-11 14:00:33 +01:00
Dmitry Stogov
409e0dd29f
Closure::fromCallable() supports only regular methods and magic method invoked through __call()/__callStatic().
...
It doesn't support method of internal classes invoked through C object or class handlers.
This commit prevents crash described at bug #77708 , but doesn't implement the desired behavior.
2019-03-11 15:39:34 +03:00
Dmitry Stogov
e7f0a60d54
Reset fields
2019-03-11 15:38:49 +03:00
Dmitry Stogov
e623df650f
Fixed bug #77707 (FFI loses type information for opaque types)
2019-03-11 14:26:17 +03:00
Dmitry Stogov
a1868d2291
Fixed bug #77706 (Improve error messages in FFI for incompatible arguments)
2019-03-11 13:27:23 +03:00
Andrew Brampton
c79ce48ddb
Fix #71890 : Add support for crc32c Castagnoli's polynomial.
...
This variant of crc32 is heavily used by storage systems, such as iSCSI, SCTP,
Btrfs, ext4, and is increasingly being used in API (such as Google Cloud
Storage, and Apache Kafka).
2019-03-11 10:19:35 +01:00
David Carlier
f8a2497584
Fix shm api detection test for opcache module on FreeBSD
...
Per man page the shm_open path should start with / and contain no
further slashes.
2019-03-11 10:19:35 +01:00
Joe Watkins
df6e9fae8f
drop unused parameter from zend_startup
2019-03-11 10:10:14 +01:00
c9s
9f6f6fe219
Remove function_table var from the caller
...
function_table var is not used in call_user_function macro anymore
hence replace the usage with NULL
2019-03-11 10:00:39 +01:00
Daniel Stenberg
d9d253fa6b
curl_exec: remove bad check for CURLE_PARTIAL_FILE
...
This check introduced in 2004 is wrong and removed. A HEAD request with
curl does *not* cause this error code - only if you make a regular GET
request but tell curl to send a HEAD using CURLOPT_CUSTOMREQUEST and
then you've asked for it.
You do a proper HEAD request with curl by setting the CURLOPT_NOBODY
option to 1L.
This was the case in 2004. This is still the case in 2019. This is also
documented in libcurl documentation.
This check hides the possibly serious error when this error code is
genuinely and correctly returned by curl because the transfer was
truncated and ended up partial.
As can be seen, I objected to this change already in the original bug:
https://bugs.php.net/bug.php?id=27341
2019-03-11 09:56:25 +01:00
Stanislav Malyshev
4a12fb4aba
This option doesn't exist for a long time.
2019-03-11 01:14:14 -07:00
Gabriel Caruso
6c4e2079c0
Use EXPECT when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2019-03-11 00:05:44 -03:00
Gabriel Caruso
c67c2c4d8f
Fix tests filenames
2019-03-10 23:57:32 -03:00
hassan
173e126a77
Add meaningful error message for ext/zip
2019-03-11 00:15:29 +01:00
Jakub Zelenka
bc57efb78f
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-10 16:36:55 +00:00
Jakub Zelenka
f8850ccd85
Speed up TLS wrapper test for min and max versions
2019-03-10 16:36:13 +00:00
Jakub Zelenka
ee4fa7d482
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-10 16:34:58 +00:00
Jakub Zelenka
769d2d9b62
Speed up TLS wrapper tests when SSLv3 disabled
...
If SSLv3 is disabled in OpenSSL, then sslv3 is not available so the accept
times out. This commit removes the extra accept if SSLv3 is disabled.
2019-03-10 16:23:44 +00:00
johnstevenson
b37a6aafce
Fix bc break in Windows readlink
...
GetFinalPathNameByHandleW is given a file handle to a symbolic link,
rather than one to the target, and therefore returns an incorrect path.
Fix symlink with relative path and add test
2019-03-10 15:48:31 +01:00
Anatol Belski
44b7126c6d
Don't use Opcache with the master test process
...
Additionally, enable opcache.file_cache to mitigate possible reattach
failures in the tests.
2019-03-10 13:56:32 +01:00
Anatol Belski
591d6b86ab
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update libmagic.patch [skip ci]
2019-03-08 21:55:48 +01:00
Anatol Belski
3e92365fa2
Update libmagic.patch [skip ci]
2019-03-08 21:55:15 +01:00
Anatol Belski
93a38b1f7c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix typo in libmagic version
2019-03-08 21:45:18 +01:00
Fabien Villepinte
d9a3cb0b36
Fix typo in libmagic version
2019-03-08 20:51:09 +01:00
Anatol Belski
c8ebfaa4eb
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #77576 pull the libmagic implementation of gmtime_r
2019-03-08 20:48:24 +01:00
Anatol Belski
65ffdc2adf
Fixed bug #77576 pull the libmagic implementation of gmtime_r
...
PHP already has all the checks to handle the *_r function variants.
Thus, reusing it to get right symbols.
2019-03-08 20:32:15 +01:00
Anatol Belski
6ecdd78d7a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Sync with behavior change in OpenSSL 1.1.1b
fix news
bump versions after release
2019-03-08 15:56:48 +01:00
Anatol Belski
58cb3312d6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync with behavior change in OpenSSL 1.1.1b
fix news
bump versions after release
2019-03-08 15:55:34 +01:00
Anatol Belski
9177542b4d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync with behavior change in OpenSSL 1.1.1b
fix news
bump versions after release
2019-03-08 15:54:27 +01:00
Anatol Belski
66bd861fcd
Sync with behavior change in OpenSSL 1.1.1b
...
A behavior change in revealed by some openssl_decrypt() based test,
where an encrypt API is used with a decrypt context. The EVP_Cipher*
functions will automatically choose the right operation depending on the
context passed.
(cherry picked from commit 19a44ffb7b )
2019-03-08 15:47:32 +01:00
Nikita Popov
59dd1979ef
More zpp error/variation test removals
2019-03-08 13:46:39 +01:00
Kalle Sommer Nielsen
aa33ab9696
Give Peter credit for his work on the Unix build system
2019-03-07 23:27:10 +02:00
Peter Kokot
f5fa9ddbd5
Clean *nix build system
...
- remove some outdated and not used macro calls
- remove some unused variables
- Remove not needed comment from tokenizer config.m4
- Remove not needed comment
- remove not needed local variables for editors and syntax highlighting
2019-03-07 20:58:14 +01:00
Peter Kokot
9df6a1e4dd
Add AS_HELP_STRING to *nix build configure options
...
The Autoconf's default AS_HELP_STRING macro can properly format help
strings [1] so watching out if columns are aligned manually is not
anymore.
[1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
2019-03-07 20:36:59 +01:00
Nikita Popov
2580a7ba09
More zpp error/variation test removals
2019-03-07 17:09:43 +01:00
Nikita Popov
c8e10c6119
More zpp error/variation test removals
2019-03-07 15:54:31 +01:00
Dmitry Stogov
372248d5c2
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
ws
2019-03-07 14:00:02 +03:00
Dmitry Stogov
0a416b3d97
ws
2019-03-07 13:59:18 +03:00
Dmitry Stogov
2f2d15791a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #77345 (Stack Overflow caused by circular reference in garbage collection)
2019-03-07 13:53:43 +03:00
Dmitry Stogov
5da591c529
Fixed bug #77345 (Stack Overflow caused by circular reference in garbage collection)
2019-03-07 13:33:19 +03:00
Stanislav Malyshev
e5860474b7
Add support for MemorySanitizer
2019-03-06 17:07:38 -08:00
2957326956
Refactor README.md file
...
- Initial refactorings of the README.md file with some more user
oriented information about the php-src repository and PHP in general.
- SVG logo added
- README.WIN32-BUILD-SYSTEM file contents moved to README.md
- INSTALL file contents moved to README.md
- Windows releases now instead of install.txt file ship with the
README.md.
- A brief installation section added with help options mentioned for the
configure and make.
- Also mentioned the `-j` option for build and tests
Co-authored-by: Javier Eguiluz <javier.eguiluz@gmail.com >
Co-authored-by: Gabriel Caruso <carusogabriel34@gmail.com >
Co-authored-by: Matthias Kaschubowski <nihylum@gmail.com >
2019-03-07 01:57:53 +01:00
Peter Kokot
c348ed13ac
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update editorconfig
2019-03-07 01:05:43 +01:00
Peter Kokot
59e76ec01d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update editorconfig
2019-03-07 01:05:22 +01:00
Peter Kokot
488544b336
Update editorconfig
...
Changes:
- New property max_line_length
- COMMIT_EDITMSG file added when writing commit messages
- Markdown files can have trimmed trailing whitespace also to simplify
settings.
- https link used to EditorConfig page.
- Added also *.y, *.cpp, and *.inc files
- The tab_width moved to a new all files section
2019-03-07 01:03:56 +01:00
Peter Kokot
bebcdcc745
Remove legacy AC_CHECK_TYPE calls for uint and ulong
...
The AC_CHECK_TYPE was refactored in more recent versions of Autoconf
and the call with two arguments is obsolete and not recommended anymore.
This patch also refactors some leftovers of using ulong and uint which
are not standard nor common usages of types in C.
The ulong can be used as zend_ulong and uint usage is actually
`unsigned int`.
The usage of HAVE_ULONG removed since it is not used in current code
base.
Legacy edgecase for some legacy HPUX systems removed:
- sys/stream.h header is not checked and the HAVE_SYS_STREAM_H is
not defined with current build system.
- flags are unsigned int
- max_allowed_packet changed to unsigned int
2019-03-06 22:49:16 +01:00
Nikita Popov
8c62c69265
More zpp error/variation test removals
...
Some of these tests also check non-zpp conditions -- however, there is
always some other test that also checks those error conditions.
2019-03-06 13:40:22 +01:00
Stanislav Malyshev
db777e9199
Fix shifting signed values too far
...
Signed shift of 31 for int and 63 for long is flagged as undefined
behavior by UBSan (-fsanitize=undefined) and seems to be indeed so
according to the standard.
The patch converts such cases to use unsigned.
2019-03-06 00:50:09 -08:00
Christoph M. Becker
f651397b1f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77700 : Writing truecolor images as GIF ignores interlace flag
2019-03-06 00:38:12 +01:00
Christoph M. Becker
0d88388912
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77700 : Writing truecolor images as GIF ignores interlace flag
2019-03-06 00:37:38 +01:00
Christoph M. Becker
41fb0eaa11
Fix #77700 : Writing truecolor images as GIF ignores interlace flag
...
We revert the interlace flag related part of commit ff2822a[1], since
contrary to the transparent color, the interlace flag is not retained
by `gdImageCreatePaletteFromTrueColor()`. This also matches upstream
libgd.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=ff2822a82b740edb8ccf307f080bae188c200fb9 >
2019-03-06 00:34:40 +01:00
Joe Watkins
b6308f5b48
fix news
2019-03-05 20:50:07 +01:00
Joe Watkins
58c5df3d37
bump versions after release
2019-03-05 18:28:47 +01:00
Nikita Popov
10b4113638
Remove more zpp error tests
2019-03-05 17:09:09 +01:00
Gabriel Caruso
e907fbaf7c
Remove unnecessary check for always available extension
2019-03-05 12:54:24 -03:00
Nikita Popov
7e3f4a2390
Remove more zpp error/variation tests
2019-03-05 14:09:33 +01:00
Nikita Popov
4bd18db8cc
Remove custom error handler in mbstring tests
...
To make it more obvious what is tested and what the error messages
are.
2019-03-05 11:41:53 +01:00
Nikita Popov
94d509363d
Remove more zpp error tests
2019-03-05 11:02:31 +01:00
Nikita Popov
b26df0e395
Remove tests for zpp failure conditions
...
These tests only check zpp error conditions, so drop them per
zpp testing policy.
2019-03-05 10:22:23 +01:00
Remi Collet
aeb156d8dc
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
add NEWS entry
2019-03-05 07:33:11 +01:00
Remi Collet
72bfb2523a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add NEWS entry
2019-03-05 07:32:54 +01:00
Remi Collet
0e836f523a
add NEWS entry
2019-03-05 07:32:24 +01:00
Dmitry Stogov
ff5fa0d631
Fixed support for callbacks with "void" return type
2019-03-05 01:03:47 +03:00
Christoph M. Becker
d4d0e2e6b8
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
2019-03-04 19:51:17 +01:00
Christoph M. Becker
007ac353dd
Update NEWS
2019-03-04 19:50:41 +01:00
Stanislav Malyshev
ebf3711fca
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77630 - safer rename() procedure
2019-03-04 09:18:55 -08:00
Stanislav Malyshev
609195e991
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77630 - safer rename() procedure
2019-03-04 09:18:22 -08:00
Stanislav Malyshev
2cc1ab81c2
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77630 - safer rename() procedure
2019-03-04 09:17:14 -08:00
Stanislav Malyshev
e3133e4db7
Fix bug #77630 - safer rename() procedure
...
In order to rename safer, we do the following:
- set umask to 077 (unfortunately, not TS, so excluding ZTS)
- chown() first, to set proper group before allowing group access
- chmod() after, even if chown() fails
2019-03-04 09:15:11 -08:00
Fabien Villepinte
972a65c882
Replace --with-gd by --enable-gd for Travis
2019-03-04 14:48:09 +01:00
Anatol Belski
53c44a43dd
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test portability
2019-03-04 14:30:32 +01:00
Anatol Belski
a976283c34
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test portability
2019-03-04 14:30:01 +01:00
Anatol Belski
040196972c
Fix test portability
2019-03-04 14:28:47 +01:00
Christoph M. Becker
70b69579d3
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
2019-03-04 13:47:45 +01:00
Christoph M. Becker
6ff0b24ef4
Update NEWS
2019-03-04 13:47:14 +01:00
Nikita Popov
ade5474792
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-04 13:16:25 +01:00
Nikita Popov
4c68aaabf1
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-04 13:16:01 +01:00
Nikita Popov
3f00c9367d
Fixed bug #77691
...
We cannot replace an op1_def opcode with an ASSIGN, if it also has
a used res_def. Usually this doesn't happen because the res_def use
can be eliminated first. The example is a case where operand replacement
on the res_def use fails.
2019-03-04 13:11:12 +01:00
Peter Kokot
2957651c5c
Move Makefile.global and Makefile.gcov to build directory
...
These files can be stored in the build directory instead of bloating the
project root directory.
2019-03-04 12:30:42 +01:00
Nikita Popov
deb44d405e
Revert "Detect invalid uses of parent:: during compilation"
...
This reverts commit a9e6667817 .
Breakage found in the wild: Mockery uses a parent:: call in the
implementation regardless of whether the class has a parent or not:
https://github.com/mockery/mockery/blob/4324afeaf9d95b492507e6587abb3f024e2576de/library/Mockery/Mock.php#L600
This change is not worth the compat break in 7.4.
2019-03-04 12:24:02 +01:00
Peter Kokot
a8c3e22d23
Replace PHP_TM_GMTOFF with AC_CHECK_MEMBERS
...
Changes:
- PHP_TM_GMTOFF removed
- HAVE_TM_GMTOFF replaced with HAVE_STRUCT_TM_TM_GMTOFF
- HAVE_TM_ZONE replaced with HAVE_STRUCT_TM_TM_ZONE
- HAVE_TZNAME removed
The PHP_TM_GMTOFF macro can be replaced with Autoconf's AC_CHECK_MEMBERS
that defines the HAVE_STRUCT_TM_TM_GMTOFF symbol instead of the
HAVE_TM_ZONE.
The HAVE_TZNAME symbol is not used in current code. The obsolete
HAVE_TM_ZONE symbol has been replaced with more proper
HAVE_STRUCT_TM_TM_ZONE. These are defined by the AC_STRUCT_TIMEZONE
macro.
2019-03-04 12:13:12 +01:00
Peter Kokot
1c32d751c7
Remove mkinstalldirs, install-sh and missing
...
These scripts are part of Automake [1] and are in current *nix build
system not used anymore nor empty files need to be created.
[1] https://www.gnu.org/software/automake/manual/html_node/Auxiliary-Programs.html
2019-03-04 12:10:50 +01:00
Remi Collet
cb1f63f422
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
add NEWS entries
2019-03-04 11:09:31 +01:00
Remi Collet
06f7c177c8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add NEWS entries
2019-03-04 11:09:17 +01:00
Remi Collet
2694953ada
add NEWS entries
2019-03-04 11:09:01 +01:00
Nikita Popov
6be93b29eb
Don't generate script for proc_open_pipes tests
...
Commit the generated script instead, which is much simpler than
the code generating it...
2019-03-04 10:52:50 +01:00
Nikita Popov
e27ba75e0f
Use separate output files in x2gd tests
2019-03-04 10:48:09 +01:00
Nikita Popov
15711a4db0
Use separate directories for win32 dir tests
...
Also remove one redundant piece of cleanup code.
2019-03-04 10:36:55 +01:00
Stanislav Malyshev
071e18c697
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow
2019-03-03 23:33:54 -08:00
Stanislav Malyshev
6d60ed69a1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow
2019-03-03 23:33:48 -08:00
Stanislav Malyshev
3e8d8f7fb3
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow
2019-03-03 23:33:43 -08:00
Stanislav Malyshev
e0f5d62bd6
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow
2019-03-03 23:05:32 -08:00
Stanislav Malyshev
534a18c08f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
Fix test error message
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
Fix bug #77540 - Invalid Read on exif_process_SOFn
Fix integer overflows on 32-bits
Fix #77431 SplFileInfo::__construct() accepts NUL bytes
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
2019-03-03 22:20:49 -08:00
Stanislav Malyshev
e3f7c352dc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix test error message
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
Fix bug #77540 - Invalid Read on exif_process_SOFn
Fix integer overflows on 32-bits
Fix #77431 SplFileInfo::__construct() accepts NUL bytes
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
2019-03-03 22:20:42 -08:00
Stanislav Malyshev
8363df3703
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS
Fix test error message
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
Fix bug #77540 - Invalid Read on exif_process_SOFn
Fix integer overflows on 32-bits
Fix #77431 SplFileInfo::__construct() accepts NUL bytes
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
2019-03-03 22:20:35 -08:00
Stanislav Malyshev
759e841b24
Update NEWS
2019-03-03 20:10:12 -08:00
Stanislav Malyshev
44f87fbf36
Fix test error message
2019-03-03 19:30:14 -08:00
Stanislav Malyshev
8ac6fee856
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
...
Also fix for bug #77659
2019-03-03 18:35:43 -08:00
Stanislav Malyshev
5f0e62a3e5
Fix bug #77540 - Invalid Read on exif_process_SOFn
2019-03-03 18:35:26 -08:00
Stanislav Malyshev
5e824a88d0
Fix integer overflows on 32-bits
2019-03-03 18:35:04 -08:00
Christoph M. Becker
254a5914ad
Fix #77431 SplFileInfo::__construct() accepts NUL bytes
...
`SplFileInfo::__construct()` has to expect a path instead of a string,
analogous to `SplFileObject::__construct()`.
2019-03-03 18:23:46 -08:00
Stanislav Malyshev
7f0ab7c20c
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
2019-03-03 18:22:32 -08:00
Peter Kokot
cb77d9c3cc
[ci skip] Remove oniguruma and libzip leftovers
...
Oniguruma and libzip are unbundled from php-src.
2019-03-04 01:26:56 +01:00
Peter Kokot
d6dac94ab1
Remove outdated hack for AIX 4
...
AIX 4 is not supported anymore for a while. This hack was added very
long time ago into PHP and is not needed anymore.
2019-03-03 14:51:36 +01:00
Peter Kokot
6bb657fc34
Remove AC_PROG_CC_C_O
...
The AC_PROG_CC_C_O macro checks if compiler can use both -c and -o
options together and if not it defines the NO_MINUS_C_MINUS_O symbol.
It is not used in current codebase and therefore removed.
2019-03-03 14:47:49 +01:00
Anatol Belski
8cd345acb1
Heedlessly enable thread LS cache for ext/hash.
...
It's always static now and as such always has access to the cached
TLS pointer.
2019-03-02 21:25:35 +01:00
Peter Kokot
6a54282728
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
Fix shared module generation on AIX bug #77676
2019-03-02 18:52:30 +01:00
Peter Kokot
fa574ddd6f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix shared module generation on AIX bug #77676
2019-03-02 18:52:01 +01:00
Peter Kokot
637713c1a4
Update NEWS
2019-03-02 18:50:33 +01:00
Kevin Adler
700f876a1a
Fix shared module generation on AIX bug #77676
...
Makefiles for PHP extensions generated by phpize expect the PHP_MODULES
to contain a list of libtool .la files so that it can read the $dlname
variable from them by sourcing them in to a shell. On AIX, the code was
setting PHP_MODULES to a list of .so files, which meant the dlname was
blank, preventing the tests from being able to run.
Change the AIX code path in the PHP_SHARED_MODULE macro to match the
output on other platforms, using libtool .la files.
2019-03-02 18:45:55 +01:00
Peter Kokot
7431eb72fe
Remove LIBZEND_CHECK_INT_TYPE and PHP_CHECK_TYPES
...
Checking for int32_t and uint32_t types is already done by the
PHP_CHECK_STDINT_TYPES m4 macro.
The PHP_CHECK_TYPES m4 macro has been once used by the mysqlnd and has
been removed via 14caf174ff and
additionally, the internal unused macro _PHP_DEF_HAVE_FILE has been
removed.
Additionally, the unused PHP_HAVE_STDINT_TYPES symbol has been removed.
2019-03-02 12:23:21 +01:00
Peter Kokot
220e682710
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
Fix #77609 : Tests from mailparse extension fails
2019-03-01 22:45:32 +01:00
Peter Kokot
c2fb85547d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix #77609 : Tests from mailparse extension fails
2019-03-01 22:44:37 +01:00
Peter Kokot
c39fb1fc4f
Update NEWS
2019-03-01 22:44:22 +01:00
Ralf Habacker
3ead672394
Fix #77609 : Tests from mailparse extension fails
...
Add installed php extensions to temporary created ini file
In php extensions configured with phpize, a temporarily generated
php.ini is used for testing, but currently contains no installed
PHP extensions, which is required by the mailparse extension,
for example.
Installed extensions must be added with their absolute path,
because the extension_dir parameter is already occupied.
See https://bugs.php.net/bug.php?id=77609
2019-03-01 22:32:01 +01:00
Peter Kokot
a700451706
Remove obsolescent AC_HEADER_STDC and memcpy check
...
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems anymore, including the `AC_HEADER_STDC`.
This macro checks if given system has C89 compliant header files such
as `<string.h>`, `<stdlib.h>`, `<stdarg.h>`, `<float.h>`,... and defines
the `STDC_HEADERS` symbol [2]. Case is that current systems should be
well supported with at least C89 standard headers [3].
Given headers are still additionally checked with the `AC_PROG_CC`
macro, yet not needed anyway.
Additionally, the HAVE_MEMCPY check has been removed. The memcpy
function is standardized by C89 and later.
Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
[3] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
2019-03-01 19:22:44 +01:00
c9s
7c351ba65c
Fix out-dated docs and typo
...
[ci skip]
2019-03-01 16:14:11 +01:00
Nikita Popov
51dacafc64
Use separate files for SplFileObject::setCsvControl() tests
2019-03-01 15:32:02 +01:00
Nikita Popov
6878d1026b
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-01 14:55:24 +01:00
Nikita Popov
8be12e770f
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-01 14:55:15 +01:00
Jay Satiro
5025eb05bd
curl_error: return an empty string if no error occurred
...
CURLOPT_ERRORBUFFER doc says "Do not rely on the contents of the
buffer unless an error code was returned." [1]
Prior to this change the error buffer was returned even if no error had
occurred, and that buffer may contain incorrect information in such a
case. [2]
[1]: https://curl.haxx.se/libcurl/c/CURLOPT_ERRORBUFFER.html
[2]: https://github.com/curl/curl/issues/3629
2019-03-01 14:54:37 +01:00
Nikita Popov
2e31786627
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-01 14:52:02 +01:00
Nikita Popov
16cda039b5
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-01 14:51:55 +01:00
Kevin Adler
006355c9fa
Fix bug #77677 : WCOREDUMP not available on all systems
...
Add #ifdef WCOREDUMP around all uses.
Also Change core dump message to yes/no/unknown in lsapilib.
2019-03-01 14:51:15 +01:00
Nikita Popov
df93506f56
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-01 14:35:26 +01:00
Nikita Popov
4dc0662eca
Check for NULL GC type in objects_store_del
...
This might happen if OBJ_RELEASE is used on an object that was already
released by GC. Specific cases of this issue were previously fixed in
ffaee27478 and
72104d2b6e , however the issue still
affects 3rd-party extensions using OBJ_RELEASE.
The whole GC type NULL + OBJ_IS_VALID + IS_FREE_CALLED system seems
overly complicated and can probably be simplified in 7.4.
2019-03-01 14:32:11 +01:00
Dmitry Stogov
c896b3ea48
Unused parameter
2019-03-01 14:34:17 +03:00
Dmitry Stogov
a1109b28f4
Keep original debug info
2019-03-01 14:11:37 +03:00
Dmitry Stogov
7d5e2e532c
Enable Posix Shared Memory on Linux
2019-03-01 12:15:56 +03:00
Rodrigo Prado
54ef8d13d8
Test for function posix_getpwnam() basic functionality
...
The coverage for the function posix_getpwnam() that was not covered yet.
http://gcov.php.net/PHP_HEAD/lcov_html/ext/posix/posix.c.gcov.php#1182
Rodrigo Prado de Jesus <royopa [at] gmail [dot] com>
User Group: PHPSP #PHPTestFestBrasil
2019-03-01 02:01:52 +01:00
Peter Kokot
e763cc7425
Fix file permissions
...
Git can track executable (0755) and non-executable (0644) file modes.
This patch fixes file permissions in the php-src repository according to
the predefined executable files with 0755 permissions (shell scripts)
and all others with 0644 permissions.
2019-02-28 22:07:16 +01:00
Peter Kokot
f64ae64f52
Remove PHP_DECLARED_TIMEZONE and HAVE_DECLARED_TIMEZONE
...
The HAVE_DECLARED_TIMEZONE symbol usage has been introduced in
2fd8cbff2a
and then removed via
667a9b9bce .
2019-02-28 21:17:49 +01:00
Nikita Popov
ff315098f4
Free map_base_ptr during post_startup
2019-02-28 17:23:18 +01:00
Nikita Popov
105a04aaac
Don't remove CONST CAST in CONCAT operand
...
CONCAT assumes that CONST operands are strings, so we cannot
blindly remove CAST operands.
2019-02-28 16:42:30 +01:00
Nikita Popov
1b998bb9cb
Remove unnecessary convert_to_string_safe macro
...
I'm assuming that the reason this existed was to avoid modifying
an interned string. However, the current code handles this case
fine already.
2019-02-28 16:30:05 +01:00
Nikita Popov
89a7b7cc96
Fix leak in resolve_property_types
...
We need to free the original string as well, not just the lowercased
one.
2019-02-28 16:14:56 +01:00
Nikita Popov
f4ded492c9
Don't return inside _DO_THROW macro
...
Returning inside _DO_THROW() is kind of pointless if we are going
to comment most uses with "this is gonna return".
2019-02-28 15:45:47 +01:00
Nikita Popov
248f9cf33f
Remove more leftovers of mysqli embedded server
2019-02-28 15:43:29 +01:00
Derick Rethans
9624e87a8f
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-28 13:52:33 +00:00
Derick Rethans
d63a7aa6cf
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-28 13:51:10 +00:00
Derick Rethans
7d001aff03
Merge branch 'DateIntervalBogusData' into PHP-7.2
2019-02-28 13:50:58 +00:00
Derick Rethans
a890c5beb8
Fixed bug #50020 (DateInterval:createDateFromString() silently fails)
2019-02-28 13:50:35 +00:00
Anatol Belski
9d356bab50
Sync with 7be0e06b48
2019-02-28 14:03:49 +01:00
Christoph M. Becker
345a75f541
Remove dead code
...
`_php_image_output()` is only ever called for `PHP_GDIMG_CONVERT_WBM`,
`PHP_GDIMG_TYPE_GD` and `PHP_GDIMG_TYPE_GD2`. All other image types
solely use the more flexible `_php_image_output_ctx()`.
2019-02-28 13:11:41 +01:00
Nikita Popov
7be0e06b48
Remove mysqli embedded server support
...
This code is not compatible with PHP 7.0. The fact that nobody
complained that the mysqli embedded server functionality doesn't
build anymore seems like a strong signal that we can drop it...
2019-02-28 12:55:16 +01:00
Anatol Belski
a5e986181a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Sync with behavior change in OpenSSL 1.1.1b
2019-02-28 12:53:05 +01:00
Anatol Belski
58d3dd466f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync with behavior change in OpenSSL 1.1.1b
2019-02-28 12:52:28 +01:00
Anatol Belski
19a44ffb7b
Sync with behavior change in OpenSSL 1.1.1b
...
A behavior change in revealed by some openssl_decrypt() based test,
where an encrypt API is used with a decrypt context. The EVP_Cipher*
functions will automatically choose the right operation depending on the
context passed.
2019-02-28 12:48:47 +01:00
Nikita Popov
a0b527eb33
Disable test parallelization on AppVeyor with opcache
...
This is too unstable due to shared opcache state. Disabling it until
this issue is resolved to reduce the number of spurious failures.
2019-02-28 10:57:24 +01:00
Nikita Popov
a18e5c61cd
Mark ext/xmlreader/tests/bug70309.phpt as online test
...
The relax NG schema is fetched from a remote server. We could
include it in the repo, but it's 500KB. A minimized test case would
be better.
Also, apparently this bug has never been reported upstream and just
patched in the libxml we build on Windows?
2019-02-28 10:12:40 +01:00
Nikita Popov
5e6846cad7
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-28 09:59:07 +01:00
Nikita Popov
019fd1d9ba
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-28 09:58:47 +01:00
Nikita Popov
9ad9cc71ff
Fixed bug #77669
2019-02-28 09:58:01 +01:00
Bob Weinand
9d5db37cee
Fix test (order of warning / notice changes due to delaying until runtime)
2019-02-28 09:10:35 +01:00
Peter Kokot
6d487ee177
Remove unused package2.xml file
2019-02-28 01:09:19 +01:00
Peter Kokot
6ee82a2a48
Remove not needed PHP_PDO_PEAR_CHECK m4 macro
2019-02-28 01:08:48 +01:00
Peter Kokot
00e050e7c7
Remove ZEND_FP_EXCEPT macro and HAVE_FP_EXCEPT
...
Usage of the HAVE_FP_EXCEPT symbol has been removed via
c334058412 and isn't used in current code
anymore.
2019-02-27 22:53:55 +01:00
Peter Kokot
5cf570c914
Remove unused PHP_AC_BROKEN_SNPRINTF m4 macro
...
The snprintf function is part of the C99 standard and newer systems in
most cases all support it as defined in the standard. However, some old
Windows and HP-UX systems the function behaves differently. These checks
were also removed and PHP now uses a replacement for the snprintf
function. With gradual transition to C99 usage as a minimum requirement,
it will also be able to be replaced to system's snprintf function
directly.
Additionally in this context the unused HAVE_VSNPRINTF and check for
vsnprintf have been removed. PHP uses its own vsnprintf implementation
for now until more reliable C99 compliant function can be used from the
C libraries.
2019-02-27 21:20:30 +01:00
Peter Kokot
3aeb7b0e77
Remove deprecated PHP_EXTENSION m4 macro
...
The PHP_EXTENSION macro was used before the introduction of the updated
build system in the 9d9d39a0de . The
extensions at that time possibly still used the Makefile.in and Automake
and the PHP_EXTENSION macro has been replaced with the PHP_NEW_EXTENSION
macro.
Today, the once deprecated macro can be removed in favor of only
PHP_NEW_EXTENSION macro.
2019-02-27 20:12:53 +01:00
Bob Weinand
94d3e40102
Delay array to string conversion notice until runtime
2019-02-27 18:46:31 +01:00
Bob Weinand
a72c741624
Uncomment cleanup for runtime_compile_time_binary_operands.phpt
2019-02-27 13:02:14 +01:00
rjhdby
fcfec9102b
Add runtime_compile_time_binary_operands.phpt
2019-02-27 12:59:06 +01:00
Joe Watkins
b9ab686179
Merge branch 'PHP-7.4' of git://github.com/php/php-src into PHP-7.4
2019-02-27 09:18:04 +01:00
Joe Watkins
1ca9d818b8
Fix #77673 ReflectionClass::getDefaultProperties returns spooky array
2019-02-27 09:17:09 +01:00
Nikita Popov
d73789ef91
Sync types in .gdbinit, improve property dumping
...
If an object doesn't have a property table, we need to go through
the property into table and read the corresponding slots.
2019-02-26 17:26:16 +01:00
Benjamin Eberlei
d303225c3a
Make regex replacements in zend_vm_gen.php more obvious
...
Change specializing preg_replace code in VM to be map of search to
replacement for easier understanding.
2019-02-25 17:44:26 +01:00
Nikita Popov
b4cbf6faca
Fix tests bareword fallback with error suppression
...
Re-merge commit a369326003995c137046c908e79b6ab482d34cec into PHP-7.4
(cherry picked from commit aad39879f2 )
(cherry picked from commit 76f8a908bb )
2019-02-25 17:43:07 +01:00
Nikita Popov
a8daef51e1
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-25 13:02:58 +01:00
Nikita Popov
461e140afc
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-25 13:01:18 +01:00
Nikita Popov
af37d58cf7
Fix assertion in Exception::getMessage() if $message is a ref
...
And same for other properties. Encountered in Symfony.
2019-02-25 13:00:16 +01:00
Nikita Popov
251e948946
Fix some directory collisions in dir tests
2019-02-25 09:34:20 +01:00
Nikita Popov
c937c55d75
Fix some port collisions in sockets tests
2019-02-25 09:24:45 +01:00
Xinchen Hui
4ac954ac3e
Fixed compiler warning
2019-02-25 15:04:04 +08:00
Xinchen Hui
fb3f078eeb
Update NEWS
2019-02-25 15:00:37 +08:00
Xinchen Hui
e8768b338c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77660 (Segmentation fault on break 2147483648)
2019-02-25 15:00:23 +08:00
Xinchen Hui
1c22ace058
Fixed bug #77660 (Segmentation fault on break 2147483648)
2019-02-25 15:00:14 +08:00
Xinchen Hui
3b5475e9ee
Update NEWS
2019-02-25 14:42:18 +08:00
Xinchen Hui
3c3d59aa39
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77664 (Segmentation fault when using undefined constant in custom wrapper)
2019-02-25 14:42:01 +08:00
Xinchen Hui
4a72dd782d
Fixed bug #77664 (Segmentation fault when using undefined constant in custom wrapper)
2019-02-25 14:41:46 +08:00
Jakub Zelenka
20af026acd
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-24 13:15:17 +00:00
Jakub Zelenka
900d4cdb9e
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-24 13:14:36 +00:00
Jakub Zelenka
043ce4c8a1
Revert "Disable bug77390.phpt"
...
This reverts commit 139492b1ae .
2019-02-24 13:12:38 +00:00
Jakub Zelenka
01c00953ff
Print empty string in test for but 77390 just once
2019-02-24 13:11:27 +00:00
Jakub Zelenka
c814b34b1d
Use spaces instead of tabs in bug 77390 test
2019-02-24 13:05:43 +00:00
Peter Kokot
b33fa18eab
Remove unused PHP_AC_BROKEN_SPRINTF and AC_ZEND_BROKEN_SPRINTF
...
The sprintf function has been normalized to php_sprintf via
61364b5bb1 .
This patch removes the checks to make a custom sprintf function
The ZEND_BROKEN_SPRINTF has been removed and the
hardcoded #define zend_sprintf sprintf is used.
The php_sprintf and zend_sprintf are now symbols to sprintf.
This patch now removes the custom PHP definitions of the php_sprintf and
zend_sprintf functions in favor of the C99 sprintf which is also
standardized in C89 already. Once, on some systems sprintf didn't behave
in same way.
2019-02-23 22:26:47 +01:00
Peter Kokot
6926cf356e
Replace Hebrew characters with escape sequences
...
calendar.c includes ISO-8859-8 encoded Hebrew characters, which may
cause compile errors, and is causing issues when saving file as UTF-8.
This patch replaces characters with appropriate escape sequences.
Following 99fdf5916e .
2019-02-23 22:17:15 +01:00
Nikita Popov
139492b1ae
Disable bug77390.phpt
...
This is causing a lot of spurious failures on AppVeyor.
2019-02-22 17:39:43 +01:00
Nikita Popov
52605aafc5
Fix anon class handling in ext mode
...
Opcode order changes in 7.4 and the EXT_STMT is now declare the
DECLARE_ANON. Fix this by returning the opline from compile_class_decl
to avoid any fragile opcode searching.
2019-02-22 15:43:08 +01:00
Nikita Popov
dda2074bf7
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-22 13:42:13 +01:00
Nikita Popov
66fda0cdb1
Remove result def during jmp_set optimization
2019-02-22 13:41:47 +01:00
Nikita Popov
ea115a617f
Fix removal of unreachable code in SCCP
...
Due to a wrongly placed check, we were only performing the
unreachable code removal if there were loop vars...
2019-02-22 12:44:36 +01:00
Nikita Popov
4a98f42330
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-22 12:00:35 +01:00
Nikita Popov
33c2b47de3
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-22 12:00:20 +01:00
Nikita Popov
2cfb09caa7
Fix inference warning about missing key type
2019-02-22 11:55:16 +01:00
Nikita Popov
bb75a53771
Fix get_unresolved_initializer for static props
...
For static props the offset is a simple index.
2019-02-22 11:25:52 +01:00
Nikita Popov
1c9fe30425
Fix directory collisions in zlib tests
2019-02-22 11:25:52 +01:00
Nikita Popov
e2cc0b823c
Fix more file name collisions in phar tests
2019-02-22 11:25:52 +01:00
Christoph M. Becker
b6d8d9cb7e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77648 : BOM in sapi/apache2handler/php_functions.c
2019-02-22 11:11:27 +01:00
Christoph M. Becker
831eba0eac
Fix #77648 : BOM in sapi/apache2handler/php_functions.c
2019-02-22 11:10:50 +01:00
Nikita Popov
d3e00decd4
Use separate files in phar tests
2019-02-22 10:50:56 +01:00
Nikita Popov
914c1ec1d4
Stricter validation for popen mode argument on Windows
...
Context: The ext/standard/tests/file/popen_pclose_error-win32.phpt
test often fails under parallel testing, because the "is not recognized
as an internal or external command" message doesn't actually have a
guaranteed position in the output.
While looking into this, I noticed that this test on Windows tests
something very different (invalid comand) than on Linux (invalid mode).
Here I'm adjusting the Windows popen implementation so it immediately
fails on a `rw` mode, just like it does on Linux.
2019-02-22 10:50:56 +01:00
Christoph M. Becker
427ebce629
Avoid potentially superfluous string reallocation
...
If we're not going to register the constant, it makes no sense to
allocate a `zend_string` and free it shortly after.
2019-02-22 10:35:19 +01:00
Nikita Popov
a37c926591
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-22 10:14:28 +01:00
Nikita Popov
bd2a00acdf
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-22 10:13:21 +01:00
Nikita Popov
5388143855
Fixed bug #77652
2019-02-22 10:11:54 +01:00
Christoph M. Becker
f319419d51
Properly clean up test case
...
If we had to create an initial $start directory, we should remove it
at the end of the test.
2019-02-22 09:43:12 +01:00
Dmitry Stogov
22691f9ef7
Use different method to suppress "false" memory leak reports
2019-02-22 10:11:43 +03:00
Joe Watkins
4d3415636d
While the compiler does not have the FBC set for zend_get_call_op, optimizer does, and so incorrectly results in ignoring these flags.
...
If someone has a better patch, please merge it ASAP, this appears to be correct as I and Nikita originally thought.
Revert "Revert "zend_get_call_op ignoring compiler flags zend_get_call_op will ignore ZEND_COMPILE_IGNORE_USER_FUNCTIONS and ZEND_COMPILE_IGNORE_USER_FUNCTIONS, breaking the intention of these flags""
This reverts commit 0bbbd0f9e7 .
2019-02-21 23:54:26 +01:00
Joe Watkins
0bbbd0f9e7
Revert "zend_get_call_op ignoring compiler flags zend_get_call_op will ignore ZEND_COMPILE_IGNORE_USER_FUNCTIONS and ZEND_COMPILE_IGNORE_USER_FUNCTIONS, breaking the intention of these flags"
...
This reverts commit 46807ec5da .
2019-02-21 22:40:02 +01:00
Peter Kokot
dd9a7d91a5
Remove unused PDO_MYSQL_LIB_CHK m4 macro
...
This was once used by the ext/mysql extension named as MYSQL_LIB_CHK.
The call got removed via fd1578c196 . In
PDO this is not called anymore and can be removed.
2019-02-21 21:44:02 +01:00
Fabien Villepinte
9a4926b25f
Fix typo in error message
2019-02-21 18:24:39 +01:00
Frank Denis
b824424481
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77646
2019-02-21 16:45:43 +01:00
Frank Denis
5c221bcd01
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77646
2019-02-21 16:34:42 +01:00
Frank Denis
08089b575b
Fix bug #77646
2019-02-21 16:33:03 +01:00
Frank Denis
9609950331
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77646
2019-02-21 16:19:44 +01:00
Frank Denis
e7ca69f1fa
Fix bug #77646
2019-02-21 16:14:33 +01:00
Nikita Popov
be6f1f68bd
Remove use of file resources from string function tests
...
These tests are pointless (they don't even have anything to do
with resources, they just use get_resource_type() as a peculiar way
to create a string), and cause unnecessary IO dependency.
2019-02-21 15:50:35 +01:00
Nikita Popov
cc4c313886
Make (v)fprintf tests more robust
...
By using a separate file for each test. Also drop some unnecessary
SKIPIF checks for file creation. We assume that files can be created in
the test directories all over the place, so don't check for it here.
2019-02-21 15:40:43 +01:00
Nikita Popov
8c2288bb0a
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-21 13:46:31 +01:00
Nikita Popov
e5d8ac92a4
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-21 13:45:53 +01:00
Nikita Popov
934691fabb
Fixed bug #77597
...
The same variable was reused in two nested loops... The test doesn't
fail on 7.2, but I'm fixing this here anyway as the code is clearly
wrong, and probably erroneous in other situations.
2019-02-21 13:42:47 +01:00
Nikita Popov
6964ba0905
Make zip oo_addglob test more robust
...
Use a separate directory for the test, so files created in the main
test directory cannot influence it.
2019-02-21 12:19:02 +01:00
Nikita Popov
caee56d709
Don't parallelize dba tests
2019-02-21 12:13:38 +01:00
Nikita Popov
2210c6823c
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-21 12:06:48 +01:00
Nikita Popov
af324e24df
Fix issue mentioned in #77302
...
Apparently Serializable::serialize() can return NULL, which is encoded
as N;. As we do not allow back-references to non-object values in
PHP 7.3 we need to make sure that any references are also compiled to
N;.
2019-02-21 12:04:49 +01:00
Joe Watkins
46807ec5da
zend_get_call_op ignoring compiler flags zend_get_call_op will ignore ZEND_COMPILE_IGNORE_USER_FUNCTIONS and ZEND_COMPILE_IGNORE_USER_FUNCTIONS, breaking the intention of these flags
2019-02-21 11:22:30 +01:00
Nikita Popov
e3d502f4de
Enable parallel tests on AppVeyor
...
I'll be keeping an eye on spurious failures resulting from this...
2019-02-21 11:05:36 +01:00
Nikita Popov
152e5393e5
Add special "all" conflict
...
If a test conflicts with "all", then no other tests may be run in
parallel. This is needed for windows_mb_path tests, which rely on
the console codepage, which is shared across all parallel workers.
Also add support for comments in the CONFLICTS section/file.
2019-02-21 11:04:43 +01:00
Nikita Popov
6b110b151d
Fixed bug #77643
...
Resolve property initializers against the correct class, even when
parent slots are reused.
2019-02-21 10:59:30 +01:00
Nikita Popov
0989b70015
Print more precise warning for unresolved constants
2019-02-21 10:35:59 +01:00
Dmitry Stogov
67682356fb
Reinstall pcntl tick handler on each request (it cleared after the first request).
2019-02-20 22:36:51 +03:00
Peter Kokot
3d05a6bfea
[ci skip] Update changelog
2019-02-20 20:07:23 +01:00
Peter Kokot
acfafc2083
Remove unused PHP_SYS_LFS m4 macro
...
This was once named as AC_SYS_LFS and today it is not used in current
PHP code base anymore.
2019-02-20 20:03:21 +01:00
Peter Kokot
44b874ac75
Remove unused PHP_SOLARIS_PIC_WEIRDNESS m4 macro
...
This has been once used for Solaris systems and has been removed via
827ad656cb
2019-02-20 20:02:59 +01:00
Peter Kokot
d936b2c4fd
Remove unused PHP_TARGET_RDYNAMIC m4 macro
...
This has been once used with apache sapi. Since PHP 7.0 it is not used
in the PHP anymore.
2019-02-20 20:02:25 +01:00
Peter Kokot
3a6ac84aaf
Remove unused AM_SET_LIBTOOL_VARIABLE m4 macro
...
It was once used with Automake and Zend's build files. Call has been
removed via e1f101d798
2019-02-20 20:01:31 +01:00
Dmitry Stogov
16d0824aef
Supress memory leak reports
2019-02-20 18:18:44 +03:00
Nikita Popov
967fa51db0
Don't use uniqid for temporary POST data files
...
uniqid() is not necessarily unique when multiple testing processes
run in parallel.
2019-02-20 16:01:15 +01:00
Nikita Popov
e5304bb647
Add a --shuffle mode to run-tests
...
Makes it easier to find paralellization issues. Of course only works
if the tests aren't order-dependent...
2019-02-20 15:59:13 +01:00
Dmitry Stogov
4f2ad75dbe
Remember __COMPILER_HALT_OFFSET__(s) in preloaded scripts
2019-02-20 17:10:10 +03:00
Nikita Popov
e53e753c0e
Support passing single file to bless_tests.php
...
Or a mix of multiple directories/files. Also make the file executable.
2019-02-20 12:45:27 +01:00
Nikita Popov
57fef27521
Use PHP_BINARY by default in run-tests.php
...
You pretty much always want to run with -P, make it the default.
2019-02-20 12:38:40 +01:00
Nikita Popov
10e189de76
Enable parallel tests on Travis
...
I'll keep an eye on spurious failures resulting from this.
2019-02-20 12:19:01 +01:00
Nikita Popov
4f2b46dbaf
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-20 12:12:11 +01:00
Nikita Popov
b3e0e555c8
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-20 12:11:56 +01:00
Abyr Valg
74888bede8
OpenSSL: Improve non-blocking eof test
2019-02-20 12:11:30 +01:00
Nikita Popov
991ea9cc60
Make zip oo_addpattern test more robust
...
Use a separate directory for the tests, so that no other tests can
concurrently create files in the same directory.
2019-02-20 12:06:02 +01:00
Nikita Popov
a92db42568
Use "modify" error message for FUNC_ARG fetch as well
...
Avoid differences based on whether a W or FUNC_ARG fetch is performed.
2019-02-20 11:54:22 +01:00
Nikita Popov
c0e15a3b7f
Implement fine-grained conflict handling
...
Tests can specify conflict keys, either in --CONFLICTS-- or
a per-directory CONFLICTS file. Non-conflicting tests may be run
in parallel.
2019-02-20 11:20:40 +01:00
Nikita Popov
0513d59ed3
Make proc_open_bug69900.phpt more robust against parallelization
...
With multiple workers running this might take more than 1ms. Bump
this up to the same threshold that was already used for CI.
2019-02-20 11:20:14 +01:00
Nikita Popov
f5872614d8
Make ext/spl/tests/bug42364.phpt more robust
...
If tests are run in parallel, files may be created and deleted in
the directory. Create a separate directory just for this test to
avoid this dependence.
2019-02-20 11:19:55 +01:00
Dmitry Stogov
12edc453e5
Disable preloading for sensetive opcache tests
2019-02-20 11:47:19 +03:00
Dmitry Stogov
c143794dd9
Prevent error reporting during preloading request start-up
2019-02-20 11:35:56 +03:00
Nikita Popov
d94a1907b7
Use zend_parse_parameters_none() in XmlWriter::openMemory()
...
And fix incorrect uses in tests
2019-02-20 09:31:08 +01:00
Dmitry Stogov
6e17fbefde
Added reference to parser generator
2019-02-20 10:26:56 +03:00
Peter Kokot
a3e3fa78f2
Fix typo
2019-02-20 09:32:42 +03:00
Peter Kokot
e765e9a8e0
Simplify even more - use PHP_VERSION directly
2019-02-20 09:32:42 +03:00
Peter Kokot
e5fe8ad6e5
Bump FFI extension version to PHP_VERSION
...
This simplifies bumping the FFI extension version.
2019-02-20 09:32:42 +03:00
Christopher Jones
7317de59ec
Correct skipif use for OCI8 password tests
2019-02-20 11:12:08 +11:00
Christopher Jones
55b539bdc2
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-20 11:11:16 +11:00
Christopher Jones
4a6a9c79fd
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-20 11:11:06 +11:00
Christopher Jones
7a9c20f3fd
Correct skipif use for OCI8 password tests
2019-02-20 11:10:57 +11:00
Dmitry Stogov
2cd24e9d7a
Skip tests f oci8 extension is not loaded
2019-02-20 02:35:25 +03:00
Dmitry Stogov
a7c99f3dc5
Reorder conditions
2019-02-20 02:33:21 +03:00
Dmitry Stogov
f2e515e9eb
Use ZEND_ACC_REUSE_GET_ITERATOR flag instead of run-time class modification
2019-02-20 02:32:29 +03:00
Dmitry Stogov
555fb294ec
Don't preload tests without --FILE-- section
2019-02-20 00:06:57 +03:00
Dmitry Stogov
6b00238979
Order of classes may matter
2019-02-19 23:50:17 +03:00
Dmitry Stogov
0510b41a06
Don't restrict preloading with "open_basedir" directive.
2019-02-19 23:17:38 +03:00
Peter Kokot
b1b392763e
Rename non-existing site phpdbg.com to localhost
2019-02-19 20:21:20 +01:00
Joe Watkins
a3994a9e16
begin handlers are currently invoked without access to the arguments being sent, this moves the opcode after SEND
2019-02-19 18:21:32 +01:00
Dmitry Stogov
b2073253bf
Better new-line handling
2019-02-19 19:22:42 +03:00
Dmitry Stogov
723acab660
Fixed memory leak
2019-02-19 19:21:36 +03:00
Nikita Popov
002c096871
Remove some zpp failure tests
...
These tests exclusively check zpp failure conditions, so drop them.
2019-02-19 17:12:08 +01:00
Dmitry Stogov
1133ee1167
Check for USER_FUNCTION
2019-02-19 18:39:44 +03:00
Dmitry Stogov
26ab6edffc
Accurate handling of not preloaded classes
2019-02-19 18:09:44 +03:00
Nikita Popov
d9094d4d64
Avoid port conflicts in stream socket tests
...
Also drop some useless --CLEAN-- sections.
2019-02-19 15:55:13 +01:00
Nikita Popov
2f447dd61f
Remove spurious + before --CREDITS--
2019-02-19 15:55:00 +01:00
Nikita Popov
7207686fcf
Avoid file conflicts in mail tests
2019-02-19 15:54:46 +01:00
Nikita Popov
832b89d108
Avoid file conflicts in XmlWriter tests
2019-02-19 15:54:11 +01:00
Nikita Popov
db894844e7
Avoid port conflicts in ext/sockets tests
2019-02-19 15:53:24 +01:00
Nikita Popov
fa915614fe
Make parallel run-tests compatible with IO capture tests
...
Inherit the main stdin/stdout/stderr streams into the worker processes.
We don't talk to workers via these pipes, so there shouldn't be a
problem doing this.
2019-02-19 15:53:15 +01:00
Dmitry Stogov
5cde3afda7
Better line handling
2019-02-19 17:16:48 +03:00
Dmitry Stogov
bf51b081f5
Filter preloading warning messages
2019-02-19 17:09:07 +03:00
Dmitry Stogov
1f2dc0492d
Don't try to eliminate requre/include with stream wrappers
2019-02-19 16:54:51 +03:00
Dmitry Stogov
440cdf7837
Stop PHP in case of fatal error during preloading
2019-02-19 16:46:56 +03:00
Dmitry Stogov
eb03df813c
ws
2019-02-19 15:51:12 +03:00
Christoph M. Becker
7f09fb021f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Prepare main branch for PHP 7.3.4
2019-02-19 13:10:04 +01:00
Christoph M. Becker
2ec59b3ef3
Prepare main branch for PHP 7.3.4
2019-02-19 13:06:40 +01:00
Remi Collet
c6640b2397
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
bump version to 7.2.17-dev
2019-02-19 12:47:09 +01:00
Remi Collet
961900fa17
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump version to 7.2.17-dev
2019-02-19 12:47:00 +01:00
Remi Collet
b243f2feca
bump version to 7.2.17-dev
2019-02-19 12:46:52 +01:00
Nikita Popov
32c0cbcbc1
Merge remote-tracking branch 'php-src/PHP-7.4' into PHP-7.4
2019-02-19 10:09:06 +01:00
Tyson Andre
12ffee57d6
Fixed bug #77631
...
Do not include unbound anonymous classes in get_declared_classes().
Note that earlier PHP versions would include the anonymous class in
get_declared_classes(), and return false until the class was bound,
but would not crash.
2019-02-19 10:07:40 +01:00
Joe Watkins
f8cd8eb740
ZEND_COMPILE_EXTENDED_INFO split Currently a tool may not decide between debugging and profiling behaviour: We split ZEND_COMPILE_EXTENDED_INFO into ZEND_COMPILE_EXTENDED_FCALL and ZEND_COMPILE_EXTENDED_STMT We define ZEND_COMPILE_EXTENDED_INFO as ZEND_COMPILE_EXTENDED_STMT|ZEND_COMPILE_EXTENDED_FCALL
2019-02-19 10:07:02 +01:00
Tyson Andre
cdfe11f80d
Fix ffi test on Windows
...
Fixes a bug in test added in
5661feb1ef , by checking that the
relevant SO exists.
Also adds an additional test that is based on zend_printf, and
should work on both Linux and Windows.
2019-02-19 10:03:14 +01:00
Remi Collet
24433e9d25
fix build with external libpcre2
2019-02-19 09:54:32 +01:00
Remi Collet
b537203d20
use pkg-config for libedit
2019-02-19 09:10:06 +01:00
Remi Collet
2850e09cbc
add readline_list_history with libedit >= 3.1 and mingweditline
2019-02-19 08:51:56 +01:00
BlackEagle
a8336fb7b9
gd imageloadfont, verify error while reading header
...
when reading the header verify we get an error when the header is
invalid.
Signed-off-by: BlackEagle <ike.devolder@gmail.com >
2019-02-19 03:26:00 +01:00
Andy McNeice
5bbf0c698f
added basic test for UConverter::setSourceEncoding()
2019-02-19 03:18:26 +01:00
Andy McNeice
d194ceb0c2
added basic test for UConverter::getDestinationEncoding()
2019-02-19 03:15:01 +01:00
Andy McNeice
6d9a4f11e6
added basic test for UConverter::getSourceEncoding()
2019-02-19 03:09:49 +01:00
Pedro Magalhães
40278879fd
UPGRADING entry for pcntl_unshare [skip ci]
2019-02-18 19:58:56 +00:00
Andrea Faulds
5ee81e0b9d
run-tests.php: fix typo
2019-02-18 20:32:16 +01:00
Pedro Magalhães
bc54e59a3a
Implement pcntl_unshare
2019-02-18 19:20:18 +00:00
Peter Kokot
3068a32cd0
Sync header and footer with the rest of the files
...
- Local variables for editors have been removed
- Copyright year ranges can be also simplified
2019-02-18 18:16:07 +01:00
Tyson Andre
da3316ff0f
Fix typos in code comments in Zend/ [skip ci]
2019-02-18 17:56:28 +01:00
Tyson Andre
8588a45851
Fix arginfo for tidy's global functions
...
See https://secure.php.net/tidy_getopt , etc.
I can't find any other obvious incorrect reflection.
2019-02-18 17:49:02 +01:00
Tyson Andre
9249d82019
Fix typos in code comments [skip ci]
2019-02-18 17:48:12 +01:00
Tyson Andre
cb4c74dfe3
Fix a typo in the error messages for FFI [skip ci]
2019-02-18 17:47:41 +01:00
Dmitry Stogov
5661feb1ef
Fixed bug #77632 (FFI Segfaults When Called With Variadics)
2019-02-18 18:11:55 +03:00
Dmitry Stogov
2ed013c38a
Use "quick" macro variants for known argument numbers
2019-02-18 17:52:33 +03:00
Andrea Faulds
39792f5bb7
run-tests.php: experimental parallel testing support
2019-02-18 14:58:53 +01:00
Nikita Popov
709b8aaf9f
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-18 14:04:30 +01:00
Nikita Popov
3b3fafa637
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-18 14:04:15 +01:00
Nikita Popov
928c42211f
Make MADV_HUGEPAGE conditional on USE_ZEND_ALLOC_HUGE_PAGES
...
There have been multiple reports of large slowdowns due to the
use of MADV_HUGEPAGE, so make it conditional on
USE_ZEND_ALLOC_HUGE_PAGES, just like MAP_HUGETLB already is.
2019-02-18 14:03:07 +01:00
Dmitry Stogov
c9ffae1bec
Fixed bug #77633
...
Add a new class flag to inherit get_iterator() when implementing
the Iterator/IteratorAggregate interfaces and use it for
ArrayIterator.
2019-02-18 13:47:44 +01:00
Nikita Popov
7d0d94e230
Use mremap in zend_mm_chunk_extend if available
...
As suggested by https://twitter.com/grsecurity . This saves an
mmap+munmap cycle in case the mapping cannot be extended in-place.
2019-02-18 12:06:59 +01:00
Dmitry Stogov
3ef9f23fce
Fixed use-after-free during preloading, when q class with unresolved constant uses a preloaded trait.
2019-02-18 13:46:13 +03:00
Nikita Popov
05363890a0
Release constant names during preloading
2019-02-18 11:15:32 +01:00
Nikita Popov
b7b3a600cb
Don't suppress errors during in preload testing
2019-02-18 11:03:38 +01:00
Nikita Popov
2f3d61971f
Don't catch opcache_compile_file failures during preloading
...
Compiler failures are not side-effect free, they may leave behind
parts of the file that were successfully compiled before the
failure occurred. The preloading code is not prepared to deal with
this.
2019-02-18 11:03:38 +01:00
Nikita Popov
cc0e01a2fa
Handle exception patterns in bless_tests.php
2019-02-18 11:03:38 +01:00
Tom Van Herreweghe
5b15908ed7
Test the warning for giving full path to dl()
2019-02-17 20:22:23 +01:00
MarkBaker
cf0dd817f2
Tests for XMLWriter write cdata and raw
2019-02-17 19:43:19 +01:00
MarkBaker
a84227650a
SplDoublyLinkedList Iterating a DLL by reference shouldn't be permitted
2019-02-17 19:35:13 +01:00
MarkBaker
40a26587e8
Range of new tests for xmlreader functionality and exceptions/errors
2019-02-17 19:23:01 +01:00
Peter Kokot
90054c1a69
Remove unused --copy option from the makedist
...
The --copy option was once used with Automake. It has been
removed via 128119b9ab .
2019-02-16 21:48:45 +01:00
Peter Kokot
e0c88039b6
Move some scripts from root directory to scripts/dev/
...
At the time of this commit, there is a dedicated folder for development
related tools and such scripts might fit better there to not bloat the
project root directory too much.
Move snapshot to scripts/dev/snapshot
2019-02-16 16:58:48 +01:00
Andrea Faulds
6662fb5c8f
run-tests.php: fix all tab-space indentation inconsistency
2019-02-16 01:54:16 +01:00
Andrea Faulds
41fbeb6c56
run-tests.php: move all top-level code into a function
...
Prerequisite for parallelised testing:
https://github.com/php/php-src/pull/2822
Quoth Nikita @
https://github.com/php/php-src/pull/3789#issuecomment-462724550 :
> @hikari-no-yume Please feel free to directly commit the first commit
> (to PHP-7.4). That's probably a big and unnecessary source of
> conflicts, and makes reviewing harder as well.
2019-02-16 01:05:04 +01:00
Christoph M. Becker
f1588d841c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77626 : Persistence confusion in php_com_import_typelib()
2019-02-15 18:57:17 +01:00
Christoph M. Becker
767fa3dc02
Fix #77626 : Persistence confusion in php_com_import_typelib()
...
We apply only the most minimal fix here, and will cater to the
unnecessary re-allocation for PHP-7.4.
We don't need to add a regression test, since bug39606.phpt and
bug77621.phpt already show the misbehavior.
2019-02-15 18:56:24 +01:00
Nikita Popov
e15d657c1a
Link anonymous classes during preloading
2019-02-15 17:50:40 +01:00
Nikita Popov
970dcd240f
Don't assume that all includes have been executed
2019-02-15 17:36:40 +01:00
Nikita Popov
1b31b45f6f
Set filename & lineno information for preload inheritance error
2019-02-15 17:03:57 +01:00
Nikita Popov
92fae00ee0
Handle bailouts during preload linking
2019-02-15 16:56:32 +01:00
Nikita Popov
a9497cecf3
Fix preload auto globals handling
...
We need to compute the auto globals mask before EG(symbol_table)
is cleaned out.
2019-02-15 16:37:12 +01:00
Christoph M. Becker
0520eb8772
Deprecate marking typelibs to load constants case-insensitively
...
This is an amendment to commit fae2246[1] which missed this opportunity
to still introduce case-insensitive constants without a deprecation
warning.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=fae22461f95dfe8153fb74a53b9c5daeec47387f >
2019-02-15 16:24:54 +01:00
Dmitry Stogov
d4bef4ce7b
Avoid useless code duplication, because of unused specialization
2019-02-15 17:49:39 +03:00
rjhdby
d6a53ed5e0
Unify clone method error message
2019-02-15 15:08:02 +01:00
Dmitry Stogov
78a1d76962
Reduce slow code size
2019-02-15 17:03:04 +03:00
Nikita Popov
e6e9bea257
Avoid uninitialized entries in properties_info_table
...
Also don't place it into xlat, there's only ever one user.
2019-02-15 14:43:37 +01:00
Christoph M. Becker
fae22461f9
Deprecate case-insensitive constants via typelib import
...
As of PHP 7.3.0, case-insensitive constants are deprecated. We catch
up on this with regard to ext/com_dotnet, which allows to import
constants from typelibs, by triggering a deprecation notice whenever
`com_load_typelib()` is called with `$case_sensitive` being `false`,
and whenever `com.autoregister_casesensitive` is set to `false`,
regardless of whether there are actually constants in the typelib which
would be imported.
2019-02-15 13:07:56 +01:00
Nikita Popov
ade9d5e95b
Suppress zend_throw_error during preload constant resolution
...
Related to bug #77615 .
2019-02-15 13:03:46 +01:00
Nikita Popov
c15007956d
Add preloading support for typed properties
...
During preloading, try to resolve all property types to CEs. Add a
flag that tracks this. If not all property types can be resolved,
then the class is not eligible for preloading.
2019-02-15 12:41:45 +01:00
Nikita Popov
a2e9534798
Add a --preload testing mode to run-tests.php
...
Not intended for general use, it has many false positives.
2019-02-15 11:23:23 +01:00
Nikita Popov
3cafa7f4df
Assign (un)serialize_func during compilation
...
This avoids writing this cache at runtime, which is illegal if
preloading is used.
Not every serialize/unserialize function actually belongs to the
Serializable interface, but I think it's not a problem to assign
these anyway -- whether they are used ultimately depends on whether
Serializable is implemented.
Alternatively it might make sense to just drop these entirely. I
don't think this is performance critical functionality.
2019-02-15 11:20:28 +01:00
Nikita Popov
ffc7e953ea
properties_info_table may be in arena or shm
...
For immutable classes it should be shm instead of in arena.
Related to bug #77615 .
2019-02-15 10:27:30 +01:00
Christoph M. Becker
c62e106610
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77621 : Already defined constants are not properly reported
2019-02-15 00:39:10 +01:00
Christoph M. Becker
8946ad3000
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77621 : Already defined constants are not properly reported
2019-02-15 00:37:39 +01:00
Christoph M. Becker
de738496c2
Fix #77621 : Already defined constants are not properly reported
...
We must not check uninitialized values (i.e. `c.value`), and we have to
use proper types for printf-style formats (i.e. `char *` instead of
`zend_string *`).
2019-02-15 00:35:21 +01:00
BlackEagle
fee9f3a8f4
gd imageloadfont test while reading header
...
Cover error when the header of an gd font loading is interrupted by end
of file.
Signed-off-by: BlackEagle <ike.devolder@gmail.com >
2019-02-14 22:29:35 +01:00
Rodrigo Prado de Jesus
c2eb68aafe
Add test to function posix_getlogin()
...
Increased the coverage lines 587-595 in file ext/posix/posix.c
User Groups: PHPVale PHPSP PHPDF PHPWomenBR
Hangout presented by #PHPTestFestBrasil on 2017-11-14
https://www.youtube.com/watch?v=bBWkzZEadNo
2019-02-14 20:49:25 +01:00
Rodrigo Prado
2c90beacf0
Create posix_getpwnam_basic_01.phpt
...
User Group: PHPSP #phptestfestbrasil
2019-02-14 20:36:53 +01:00
Riccardo Magliocchetti
4411cb6656
Add basic test for posix getgrnam
2019-02-14 20:28:11 +01:00
Rodrigo Prado
34ca922125
Small change in the test to pass
...
This test was not passing because the VM called by travis CI is slow, see below the failure:
http://gcov.php.net/viewer.php?version=PHP_HEAD&func=tests&file=ext%2Ffileinfo%2Ftests%2Fcve-2014-3538-mb.phpt
User Group: PHPSP #phptestfestbrasil
http://phpsp.org.br/
2019-02-14 20:12:00 +01:00
Robrecht Plaisier
31a01302dd
Added basic stream_filter_register test
2019-02-14 20:03:35 +01:00
rjhdby
6bf1f434f0
use local resources instead remote
2019-02-14 19:51:40 +01:00
Fabien Villepinte
b996476578
Remove outdated pgsql README
...
[ci skip]
2019-02-14 17:06:37 +01:00
Nikita Popov
adf2f39745
Fix build without global regs
2019-02-14 14:01:39 +01:00
Nikita Popov
29d87caebf
Fix typo in XML test
...
Uncovered by the change in e63febb1c7 .
2019-02-14 12:59:08 +01:00
David Walker
e63febb1c7
Fixed bug #75921
...
Ensure that the "creating default object from empty value" warning is
always thrown. Previously some cases were missing the warning, in
particular those going through FETCH_OBJ_W rather than a dedicated
opcode (like ASSIGN_OBJ).
One slightly unfortunate side-effect of this change is that something
like $a->b->c = 'd' will now generate two warnings rather than one
when $a is null (one for property b, one for property c).
2019-02-14 12:50:25 +01:00
Nikita Popov
dab5462484
Use #ifdef instead of #if
2019-02-14 11:56:33 +01:00
Nikita Popov
96daef0458
Make ABI of SIMD optimized functions independent of compiler flags
...
Always export these as normal functions and only use function pointers
internally if necessary.
2019-02-14 11:49:21 +01:00
Nikita Popov
1a5cff334d
Remove bogus ctor checks in get_class_methods() + reflection
...
Contrary to the comments, these only hide constructors (old or new
style) if they a) are inherited b) come from a trait and c) are
aliased -- which doesn't make any sense at all.
2019-02-14 11:47:31 +01:00
Dmitry Stogov
43a7d95016
Fixed bug #77613 (method visibility change) (reverted ZEND_ACC_CTOR and ZEND_ACC_DTOR flags removal)
2019-02-14 13:12:50 +03:00
Nikita Popov
8b6dba25c7
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-14 10:43:45 +01:00
Nikita Popov
eb063c8a9f
Fixed bug #77612
...
Port php_setcookie() to use the smart_str API to ensure that there
can be no string truncation issues.
2019-02-14 10:42:59 +01:00
Nikita Popov
3ece2640ea
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-14 10:02:58 +01:00
Nikita Popov
7bc162f928
Work around compiler flag dependent ABI
2019-02-14 09:59:10 +01:00
Manuel Kea Baldassarri
ea3cda0315
http_build_query add type cases
2019-02-13 22:00:09 +01:00
Peter Kokot
17310fd7d7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Refactor timelib.m4
2019-02-13 19:26:37 +01:00
Peter Kokot
a89948320b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Refactor timelib.m4
2019-02-13 19:26:02 +01:00
Peter Kokot
0ffa84d740
Refactor timelib.m4
...
The ext/date/lib is bundled library and also includes additional
timelib.m4 macros and checks specific for PHP.
All the checks in the timelib.m4 are already done in the PHP's
configure.ac:
- headers except for io.h and strings.h
- two functions checked strftime and gettimeofday
- if size of longint is 8
- if size of int is 4
- int32_t and uint32_t types using the PHP_CHECK_STDINT_TYPES
Macro `AC_TIMELIB_C_BIGENDIAN` defined in timelib.m4 is not used.
The two checkings for strtoll and atoll have been moved to date extension's
config0.m4 file.
Additional check for headers <io.h> and <strings.h> has been added to
config0.m4 of the date extension.
Therefore the timelib.m4 can be simplified and removed from the bundled
library to have easier maintenance in the later branches and also
upstream library.
2019-02-13 19:24:39 +01:00
Nikita Popov
6347f0b937
Implement ReflectionReference
...
RFC: https://wiki.php.net/rfc/reference_reflection
2019-02-13 12:21:18 +01:00
Anatol Belski
34122ede21
Update NEWS and UPGRADING [ci skip]
2019-02-12 19:14:32 -08:00
Anatol Belski
4f4cf9874d
Change the way timer queue timer is deleted
...
As discussed in bug #77580 , passing INVALID_HANDLE_VALUE for the
completion event improves compatibility with Wine/ReactOS. The timer
callback itself is supposed to complete fast enough, no behavior change
is to expect.
2019-02-12 18:30:55 -08:00
Rodrigo Prado
b86d7738fb
Add test socket_setopt() basic functionality
...
Rodrigo Prado de Jesus royopa@gmail.com
User Group: PHPSP #PHPTestFestBrasil
---------------------------------------------------------------
The function was not coveraged yet
sockets Function socket_setopt no
http://gcov.php.net/viewer.php?version=PHP_HEAD&func=tested_functions
2019-02-13 02:30:48 +01:00
Nikita Popov
e1cc714445
Fix test
...
Missing this change in 9364153942 .
2019-02-12 18:02:16 +01:00
Nikita Popov
9364153942
Fixed bug #76430
...
It's somewhat ambiguous what exactly the correct behavior is
supposed to be, I'm just picking something more or less reasonable
here.
2019-02-12 17:36:07 +01:00
legale
d77ad27415
Implement mb_str_split()
...
RFC: https://wiki.php.net/rfc/mb_str_split
2019-02-12 16:42:51 +01:00
Dmitry Stogov
083cfc07cc
Use TSRM macros
2019-02-12 17:40:29 +03:00
Dmitry Stogov
626bc3a2de
More accurate handling of global registers (allow VM with single global register)
2019-02-12 17:39:02 +03:00
kasper Franz
c4b77e03b1
Correct section number in UPGRADING
...
This make the top list follow the bottom numbering
[ci skip]
2019-02-12 15:09:09 +01:00
Johannes Schlüter
10cbf9f886
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-12 15:01:06 +01:00
Johannes Schlüter
6043e66739
Merge remote-tracking branch 'origin/PHP-7.4' into PHP-7.4
2019-02-12 15:00:51 +01:00
Johannes Schlüter
aa7fbdf2cd
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 15:00:15 +01:00
Johannes Schlüter
a4bce453bc
Merge remote-tracking branch 'origin/PHP-7.3' into PHP-7.3
2019-02-12 14:59:59 +01:00
Johannes Schlüter
56dba3f3d0
Merge remote-tracking branch 'origin/PHP-7.2' into PHP-7.2
2019-02-12 14:59:27 +01:00
Nikita Popov
1449d49670
Fix FFI test on Windows
2019-02-12 13:57:44 +01:00
Nikita Popov
aaebf3b653
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-12 11:43:53 +01:00
Nikita Popov
5297bed454
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 11:43:34 +01:00
DanielCiochiu
07877c46e3
Fixed bug #75546
...
By respecting the SILENT flag when checking the visibility of a
class constant.
2019-02-12 11:42:33 +01:00
Dmitry Stogov
dbd7fbabe9
typo
2019-02-12 13:24:14 +03:00
Nikita Popov
9848f24a6a
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-12 10:50:29 +01:00
Nikita Popov
2ea5a9cc64
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 10:50:22 +01:00
Nikita Popov
8e34de4756
Fixed bug #77608
...
Remove special handling of doubles and escape them as usual instead.
2019-02-12 10:49:20 +01:00
David Carlier
4e87e56e22
Adding bunch of FreeBSD socket options flags specifics.
...
SO_USER_COOKIE primarly to be traced via dtrace instrumentation.
If SO_USER_COOKIE is available, the rest is so the former is
two years old while the rest is from around 2008.
2019-02-12 10:27:33 +01:00
Nikita Popov
120137ca14
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-12 10:10:30 +01:00
Nikita Popov
97dd1591af
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 10:10:22 +01:00
hsldymq
b5cb3ac8ec
Make pid & uid available while handling realtime signals
2019-02-12 10:09:33 +01:00
Nikita Popov
e27af3bbea
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-12 09:57:38 +01:00
Nikita Popov
8ed775f548
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 09:57:18 +01:00
Nikita Popov
a109fddba4
Remove "defensive copy" of DatePeriod properties
...
get_properties() constructs these as fresh objects with no relation
to the internals, there is no need to clone them again. Additionally
the current implementation leaks memory, because the original objects
are never freed (see PR #3121 ).
2019-02-12 09:54:52 +01:00
Jachim Coudenys
d8b2705d62
Test mb_str* functions for 'unknown encoding' warnings
2019-02-12 09:31:58 +01:00
Nikita Popov
478ff4027c
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-12 09:29:19 +01:00
Nikita Popov
c553d17f11
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 09:29:05 +01:00
Ben Ramsey
c4294440ff
Fixed bug #77564 : Memory leak in exif_process_IFD_TAG
...
The memory leak occurs when more than one UserComment tag is present in
the EXIF data. It's still considered corrupt EXIF data, but this ensures
the memory is freed before trying to set to already allocated memory.
2019-02-12 09:28:33 +01:00
Dmitry Stogov
7d4de1a77e
Fixed possible crash
2019-02-12 11:21:09 +03:00
Dmitry Stogov
62fd45f530
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #77599 (Unbuffered queries; native prepared statements memory leak)
2019-02-12 11:03:55 +03:00
Dmitry Stogov
b6e58dcd22
Fixed bug #77599 (Unbuffered queries; native prepared statements memory leak)
2019-02-12 10:55:05 +03:00
Dmitry Stogov
26e26969c1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Avoid dependency on "struct flock" fields order.
2019-02-12 10:22:13 +03:00
Dmitry Stogov
470f5891d4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Avoid dependency on "struct flock" fields order.
2019-02-12 10:21:59 +03:00
Dmitry Stogov
9222702633
Avoid dependency on "struct flock" fields order.
2019-02-12 10:15:16 +03:00
Anatol Belski
8724f9b38e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Replace broken binary SDK version
2019-02-11 22:30:49 -08:00
Anatol Belski
b71146bde4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Replace broken binary SDK version
2019-02-11 22:30:28 -08:00
Anatol Belski
186b5de575
Replace broken binary SDK version
2019-02-11 22:28:34 -08:00
Anatol Belski
3cfba42b0e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update SDK version for AppVeyor
2019-02-11 22:14:17 -08:00
Anatol Belski
ee0963c58c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update SDK version for AppVeyor
2019-02-11 22:13:42 -08:00
Anatol Belski
e74a918621
Update SDK version for AppVeyor
2019-02-11 22:12:16 -08:00
Christoph M. Becker
6ac8b0a783
Deprecate ext/wddx
...
Cf. <https://wiki.php.net/rfc/deprecate-and-remove-ext-wddx >.
2019-02-11 19:31:46 +01:00
Anatol Belski
877ce69b30
Fix 32-bit build
2019-02-11 10:24:16 -08:00
Darek Slusarczyk
9eacd9174c
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-11 18:47:58 +01:00
Darek Slusarczyk
6f7a47db5d
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-11 18:18:57 +01:00
Darek Slusarczyk
83d2bc9b6d
Merge branch 'PHP-7.1' into PHP-7.2
2019-02-11 18:08:21 +01:00
Darek Slusarczyk
2eaabf06fc
security fix - by default 'local infile' is disabled:
...
- set default for mysqli.allow_local_infile=0
- explicitly disable PDO::MYSQL_ATTR_LOCAL_INFILE in case of lack of driver options
- add getAttribute support for PDO::MYSQL_ATTR_LOCAL_INFILE
- update existing tests where needed
- add new tests [checking default value and setting on] the 'local infile' in ext/mysqli and ext/pdo_mysql
2019-02-11 18:04:51 +01:00
Nikita Popov
2ca123e8f0
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-11 15:50:53 +01:00
Nikita Popov
4da67537c1
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-11 15:50:47 +01:00
Ahmed Abdou
ec28d4c247
Fix bug #51068 (glob:// do not support current path relative)
...
Fix DirectoryIterator glob://* current path relative queries
2019-02-11 15:50:27 +01:00
Nikita Popov
7a17be7f31
Add bless_tests.php
...
Helper script to perform certain kinds of trivial test updates.
2019-02-11 15:35:34 +01:00
Nikita Popov
6054b2363c
Remove oniguruma lines from CONTRIBUTING
2019-02-11 15:33:28 +01:00
Nikita Popov
a6c535e658
Add UPGRADING notes for oniguruma unbundling
2019-02-11 15:00:33 +01:00
Anatol Belski
2d7658959e
Unbundle oniguruma in config.w32
2019-02-11 14:53:19 +01:00
Nikita Popov
e91d8ac5f6
Add MB_ONIGURUMA_VERSION and use it in a version dependent test
2019-02-11 14:53:19 +01:00
Nikita Popov
d1c1481081
Unbundle oniguruma
...
And also switch detection over to pkg-config.
2019-02-11 14:53:19 +01:00
Nikita Popov
f5d2a30466
Validate subject encoding in mb_split and mb_ereg_match
...
We were already validating the subject encoding in most functions,
but not these two.
2019-02-11 12:31:59 +01:00
Nikita Popov
2e594265b8
Validate pattern against mbregex encoding
...
Oniguruma does not consistently perform this validation itself (at least
on older versions), so make sure we check pattern encoding validity on the
PHP side.
2019-02-11 12:10:40 +01:00
Nikita Popov
52c2d47c90
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-11 11:33:18 +01:00
Nikita Popov
be64a06b1c
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-11 11:33:04 +01:00
johnstevenson
fe4d7248cc
Fix #77552 : Uninitialized buffer in stat functions
2019-02-11 11:31:55 +01:00
Nikita Popov
e93d6d97aa
Disable PEAR by default
...
Installation of PEAR can be enabled using --with-pear, but will
through a deprecation warning during ./configure.
2019-02-11 11:10:13 +01:00
Nikita Popov
5ee11887df
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-11 09:36:35 +01:00
Guilliam Xavier
b3935ed2af
Fix tests bareword fallback with error suppression
...
(cherry picked from commit aad39879f2 )
(cherry picked from commit 76f8a908bb )
2019-02-11 09:36:03 +01:00
Xinchen Hui
515c51953f
regenerate with re2c 1.0.3
2019-02-11 15:42:55 +08:00
Xinchen Hui
4f044f680c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77589 (Core dump using parse_ini_string with numeric sections)
Conflicts:
Zend/zend_ini_scanner.c
2019-02-11 15:33:59 +08:00
Xinchen Hui
92055ca79b
Fixed bug #77589 (Core dump using parse_ini_string with numeric sections)
...
Section name should not be typed(NULL, FALSE, TRUE etc)
2019-02-11 15:27:29 +08:00
Christopher Jones
98b73dbd94
Merge PDO_OCI tracing attribute PR
2019-02-11 17:05:36 +11:00
Christopher Jones
a1b8e6b1c1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Merge PDO_OCI PR
PDO_OCI tracing attribute PR merge
pdo_oci: Add client identifier and module attrs
pdo_oci: Register new attr constants and add tests
pdo_oci: Add PDO_OCI_ATTR_ACTION and CLIENT_INFO
2019-02-11 17:03:51 +11:00
Christopher Jones
bdce2954c3
Merge PDO_OCI PR
2019-02-11 16:38:23 +11:00
Christopher Jones
983ba59e3e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
PDO_OCI tracing attribute PR merge
pdo_oci: Add client identifier and module attrs
pdo_oci: Register new attr constants and add tests
pdo_oci: Add PDO_OCI_ATTR_ACTION and CLIENT_INFO
2019-02-11 16:36:39 +11:00
Christopher Jones
1f86dcdd13
PDO_OCI tracing attribute PR merge
2019-02-11 16:19:13 +11:00
Cameron Porter
38363f4820
pdo_oci: Add client identifier and module attrs
...
Add tests for the new attributes, and check the setAttribute return
value.
2019-02-11 16:10:47 +11:00
Cameron Porter
fc940f0703
pdo_oci: Register new attr constants and add tests
2019-02-11 16:10:47 +11:00
Cameron Porter
a095472e62
pdo_oci: Add PDO_OCI_ATTR_ACTION and CLIENT_INFO
...
Add the ability to set the action and client info on the database
session for PDO OCI using PDO attributes.
2019-02-11 16:10:47 +11:00
Mark Niebergall
f28bf785fd
Added test for non existent file for iptcembed
2019-02-10 22:43:12 +01:00
Peter Kokot
eaddc9f7d9
Fix failing tests for readline() without input
...
If PHP readline extension is using libedit or readline the output is
different with the readline library also the prompt is output.
2019-02-10 22:31:32 +01:00
Ward Cappelle
f9d66caddf
Expand FTP delete basic test with "unknown file" coverage
...
A port of the original https://github.com/phpcommunity/phptestfest-php-src/pull/148 pull
request, created earlier during #PHPTestFest (User Group: PHP-WVL & PHPGent).
Expands the existing FTP delete command test with coverage for deletion of
non-existing files (which returns a 550 status code).
2019-02-10 20:41:08 +01:00
Jonathan Stevens
e94d98e288
Tests for readline() without input
2019-02-10 20:31:23 +01:00
Enrico Zimuel
f57acf08aa
Added test for openssl_pkcs12_export_to_file_error
2019-02-10 20:18:17 +01:00
Tom Van Herreweghe
3f93f1591e
Tests the 'Dynamically loaded extensions are not enabled' warning for dl()
...
Signed-off-by: Tom Van Herreweghe <tom.van.herreweghe@dx-solutions.be >
2019-02-10 20:13:12 +01:00
Rodrigo Prado
27b366c9e4
Test function quotemeta() - using an empty string is given as str.
...
Rodrigo Prado de Jesus <royopa [at] gmail [dot] com>
User Group: PHPSP #PHPTestFestBrasil
Test function quotemeta() - using an empty string is given as str.
This test coverage line 2722 from file /ext/standard/string.c and is not a ZPP test.
http://gcov.php.net/PHP_HEAD/lcov_html/ext/standard/string.c.gcov.php#L2722
2019-02-10 20:06:35 +01:00
Er Galvão Abbott
eadfdb9617
Add test case for pcntl_setpriority basic behaviour
2019-02-10 20:03:08 +01:00
Mark Niebergall
e727facd47
Added test for xml_parser_set_option
...
- For skipping white space and triggering invalid encoding value error
2019-02-10 19:52:31 +01:00
Pete Albrecht
76703ae5a1
fnmatch error when pattern or filename too long
...
i3logix PHP Testfest 2017
2019-02-10 19:38:46 +01:00
Peter Kokot
5ca12f6c5f
[ci skip] Update changelog
2019-02-10 19:18:07 +01:00
Guilliam Xavier
3dd2abe3e6
Delete duplicate test file
...
`Zend/tests/cast_to_array_fixed.phpt` was created as exact duplicate of
`Zend/tests/cast_to_array.phpt`
2019-02-10 12:41:30 +01:00
Peter Kokot
650a217b0c
Fix failing tests
...
The run-tests script executes the cleaning section separately and interfers
with the running test itself less. This fixes two failing tests on Windows
platforms.
2019-02-10 01:27:38 +01:00
Peter Kokot
4ae5691a60
Fix failing readline() basic test
...
Test for readline() basic doesn't seem to capture the STDIN in the
output for some systems such as macOS and Windows.
2019-02-09 23:40:42 +01:00
MarkBaker
31b2dcb26c
Tests for __set_state magic method
...
Tests for __set_state magic method for DateTime, DateTimeImmutable,
DateTimeZone and DatePeriod.
2019-02-09 17:18:23 +01:00
Mark Niebergall
1253a68926
Add test for date_time_immutable invalid arguments
2019-02-09 17:05:22 +01:00
Florian Engelhardt
1227284fb5
Added basic test for ZipArchive::unchangeName()
2019-02-09 16:33:43 +01:00
Florian Engelhardt
ec814c3a62
Added basic test for ZipArchive::unchangeIndex()
2019-02-09 16:27:30 +01:00
Anatol Belski
2ca3becd17
Fix TS build, ref #77377
2019-02-08 18:42:48 -08:00
Anatol Belski
12bfd9a5f5
Implement FR #77377 handle CTRL+C in Windows
2019-02-08 18:10:31 -08:00
David Stockton
e1dd8cd678
Add test for null return on version_compare with bad operator
2019-02-09 02:52:17 +01:00
MarkBaker
c5f9855283
Test to verify that closures can't be instantiated
2019-02-09 02:46:09 +01:00
Er Galvão Abbott
d22dd5f93a
Add test for pcntl_getpriority() basic behaviour
2019-02-09 02:39:46 +01:00
Joel Clermont
0506c0224a
readline - add basic test
2019-02-09 01:21:52 +01:00
Rodrigo Prado
dc1937e386
updated typo in test
...
User Group: PHPSP #phptestfestbrasil
2019-02-09 00:07:20 +01:00
Peter Kokot
c245898bfa
Update and fix remaining year ranges (2019)
...
This patch follows previous license year ranges updates. With new
approach source code files now have simplified headers with license
information without year ranges.
2019-02-08 23:14:29 +01:00
Nikita Popov
c0ce258b53
Fix incorrect outbuf freeing
2019-02-08 12:59:48 +01:00
Nikita Popov
0d4471fd28
Fix double free if post inc of typed property throws
...
We either need to add an extra ref because the copy is used as the
retval, which is freed by HANDLE_EXCEPTION, or we need to undef it
(done here).
2019-02-08 12:43:11 +01:00
Nikita Popov
a9d4caeece
Add ZEND_TRY_ASSIGN_BOOL API
...
Cherry-picked from master, this is of course also necessary in 7.4...
2019-02-08 12:30:54 +01:00
Nikita Popov
7a6fa7f624
Fix refcounting of prop types coming from traits
2019-02-08 12:20:31 +01:00
Nikita Popov
fa123b51cc
Fix invalid free
2019-02-08 10:49:54 +01:00
Nikita Popov
cf7406b1f4
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-08 10:10:00 +01:00
Nikita Popov
471b1d54d5
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-08 10:09:39 +01:00
YanTao
3b09123de3
Fix FTPS passive mode of data channel event poll
...
Bugfix: when using passive mode of FTPS protocol, data channel events
should be polled when creating data connection channel, instead of polling
the event of ftp's self control channel, which may cause ftp transfer
problem while using ftps and passive mode.
2019-02-08 09:50:29 +01:00
Anatol Belski
206a925a17
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Sync test with changes in libcurl 7.64.0
Sync test for libcurl 7.64.0
2019-02-07 22:29:30 -08:00
Anatol Belski
1bbf7013c8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync test with changes in libcurl 7.64.0
Sync test for libcurl 7.64.0
2019-02-07 22:28:45 -08:00
Anatol Belski
e27301c7b3
Sync test with changes in libcurl 7.64.0
2019-02-07 22:22:38 -08:00
Anatol Belski
c9f0e12353
Sync test for libcurl 7.64.0
2019-02-07 22:21:59 -08:00
Peter Kokot
2b4495bf4d
[ci skip] Move OPcache configure option changes
2019-02-08 00:31:25 +01:00
Peter Kokot
c706a26d69
[ci skip] Update changelog
2019-02-07 18:13:45 +01:00
Derick Rethans
65d81833bb
Use pkg-config for ICU, as the old icu-config has been deprecated
2019-02-07 14:00:39 +01:00
Derick Rethans
125045a9b1
Merge branch 'PHP-7.4' of git.php.net:php-src into PHP-7.4
2019-02-07 11:14:10 +00:00
Derick Rethans
b65a5b2aec
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-07 11:13:01 +00:00
Derick Rethans
8be649d908
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-07 11:12:42 +00:00
Nikita Popov
c32da66e12
Remove --disable-opcache-filecache option
...
This is no longer an experimental feature, and we have the ability
to control this at runtime via an ini setting.
2019-02-07 12:07:25 +01:00
Derick Rethans
e2edaa0cee
Use pkg-config for ICU, as the old icu-config has been deprecated
2019-02-07 10:18:32 +00:00
Nikita Popov
a093de8cc1
Require icu-uc and icu-i18n next to icu-io
2019-02-07 11:00:51 +01:00
Nikita Popov
1a4ffcd2b4
Fix DIM_OBJ specialization in zend_vm_get_opcode_handler_func
...
DIM_OBJ also specializes over ASSIGN_STATIC_PROP nowadays.
2019-02-07 10:06:25 +01:00
Christoph M. Becker
edb7ef4f8c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix NEWS
2019-02-05 23:05:37 +01:00
Christoph M. Becker
b2907527e9
Fix NEWS
...
Bug #77287 is already fixed in PHP 7.3.2.
2019-02-05 23:04:31 +01:00
Nikita Popov
b5f852a8cb
Some more test removals
...
Noticed these while implementing error handler changes.
2019-02-05 12:42:18 +01:00
Nikita Popov
8bc663f43b
Remove zpp variation tests
2019-02-05 09:38:55 +01:00
Dmitry Stogov
da919a8b65
Remove copyright years.
2019-02-05 10:33:28 +03:00
Côme Chilliet
d93ce17959
Mark ldap_control_paged_result and ldap_control_paged_result_response as deprecated
...
These functions have serious limitations and may confuse users.
Same operations can be done using the new ldap control system in search
operations.
2019-02-04 12:20:51 +01:00
Dmitry Stogov
223d535d05
Reset common fields of EG(trampoline)
2019-02-04 13:57:03 +03:00
Peter Kokot
92ac598aab
Remove local variables
...
This patch removes the so called local variables defined per
file basis for certain editors to properly show tab width, and
similar settings. These are mainly used by Vim and Emacs editors
yet with recent changes the once working definitions don't work
anymore in Vim without custom plugins or additional configuration.
Neither are these settings synced across the PHP code base.
A simpler and better approach is EditorConfig and fixing code
using some code style fixing tools in the future instead.
This patch also removes the so called modelines for Vim. Modelines
allow Vim editor specifically to set some editor configuration such as
syntax highlighting, indentation style and tab width to be set in the
first line or the last 5 lines per file basis. Since the php test
files have syntax highlighting already set in most editors properly and
EditorConfig takes care of the indentation settings, this patch removes
these as well for the Vim 6.0 and newer versions.
With the removal of local variables for certain editors such as
Emacs and Vim, the footer is also probably not needed anymore when
creating extensions using ext_skel.php script.
Additionally, Vim modelines for setting php syntax and some editor
settings has been removed from some *.phpt files. All these are
mostly not relevant for phpt files neither work properly in the
middle of the file.
2019-02-03 21:03:00 +01:00
Christoph M. Becker
020ca5bf2b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
[ci skip] Add missing notes regarding gc_status()
2019-02-03 18:32:01 +01:00
Christoph M. Becker
c0228f741e
[ci skip] Add missing notes regarding gc_status()
2019-02-03 18:28:43 +01:00
Joe Watkins
ed1afdd617
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Properly check for array_replace_recursive in sccp.c
2019-02-03 08:42:07 +01:00
Joe Watkins
e1c93d1fb2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Properly check for array_replace_recursive in sccp.c
2019-02-03 08:41:26 +01:00
Tyson Andre
cf56832d00
Properly check for array_replace_recursive in sccp.c
...
Due to a typo, this code used to check for array_merge_recursive
twice.
2019-02-03 08:40:21 +01:00
Nikita Popov
e366ceebad
Deprecate mb_ereg_replace with non-string pattern
...
I'm counting this towards the non-string needle deprecation from
https://wiki.php.net/rfc/deprecations_php_7_3 . I wasn't aware that
mb_ereg_replace() is also affected by this issue. It's even more
ridiculous than usual here, because the integer is interpreted as
an ASCII codepoint, even though these are supposed to be multibyte
functions :(
2019-02-01 15:02:31 +01:00
Nikita Popov
882dcb43f7
Fix bogus $PHP_PCRE_REGEX checks
...
This variable was dropped in the pkg-config migration, which resulted
in spurious warnings about using valgrind with external PCRE. Fix the
checks to use the right variable.
2019-02-01 11:42:41 +01:00
Dmitry Stogov
d91e3beaa3
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #77329 (Buffer Overflow via overly long Error Messages)
2019-02-01 11:13:25 +03:00
Dmitry Stogov
203a2da30a
Fixed bug #77329 (Buffer Overflow via overly long Error Messages)
2019-02-01 11:11:15 +03:00
Nikita Popov
340c6d3927
Revert "Don't silence fatal errors with @"
...
This reverts commit abd36289e2 .
This wasn't ready for merging yet, there are still some test
failures.
2019-01-31 09:39:10 +01:00
Nikita Popov
abd36289e2
Don't silence fatal errors with @
2019-01-31 07:11:05 +01:00
Joe Watkins
25dc5f18e4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug 76596: phpdbg supports display_errors=stderr
2019-01-30 18:28:55 +01:00
Joe Watkins
7d1df603ad
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug 76596: phpdbg supports display_errors=stderr
2019-01-30 18:28:25 +01:00
Kevin Abel
3890c8bce5
Fix bug 76596: phpdbg supports display_errors=stderr
2019-01-30 18:27:57 +01:00
Joe Watkins
b8e683e868
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77546 iptcembed broken function
2019-01-30 17:10:33 +01:00
Guillaume Degoulet
f27f902266
Fix #77546 iptcembed broken function
2019-01-30 17:09:12 +01:00
David Carlier
6a8260a0ac
opcache/FreeBSD huge code page pragma support
...
Sort of following up on super pages support earlier, here
we also detect page mappings possibly eligible to go to
super pages.
2019-01-30 12:01:44 +01:00
Zeev Suraski
a453619499
Take out some last remnants of the yearly copyright range
2019-01-30 11:48:30 +01:00
Zeev Suraski
a81202ac49
Adios, yearly copyright ranges
2019-01-30 11:48:28 +01:00
Zeev Suraski
0cf7de1c70
Remove yearly range from copyright notice
2019-01-30 11:03:12 +02:00
Christoph M. Becker
73733b9a2d
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Prepare main branch for PHP 7.2.16
2019-01-30 01:30:37 +01:00
Christoph M. Becker
362d6ce834
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Prepare main branch for PHP 7.2.16
2019-01-30 01:29:05 +01:00
Christoph M. Becker
cbc5a141f7
Prepare main branch for PHP 7.2.16
2019-01-30 01:27:57 +01:00
Nikita Popov
16460ebc81
Merge branch 'PHP-7.3' into PHP-7.4
2019-01-29 09:40:19 +01:00
Nikita Popov
14684af0d0
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-29 09:40:06 +01:00
Nikita Popov
34898e9766
Make special assert() handling independent of compiler flags
2019-01-29 09:39:12 +01:00
Nikita Popov
8eeb1102d0
Avoid mention of php7 in credits script
2019-01-28 11:26:45 +01:00
Nikita Popov
768bc7a0b8
Merge branch 'PHP-7.3'
2019-01-28 09:23:53 +01:00
Nikita Popov
ab3c94a54f
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-28 09:23:23 +01:00
ekinhbayar
ef68cd3249
Fixed bug #77530 : PHP crashes when parsing "(2)::class"
2019-01-28 09:22:18 +01:00
Nikita Popov
b93aefc1a7
Fix assign to self detection
2019-01-27 20:50:08 +01:00
rjhdby
3a0fc00424
zend_compile.c: zend_is_variable(). Removed unnecessary checks. Naming according to internal logic.
2019-01-27 08:38:08 +01:00
Jakub Zelenka
9be6b16983
Merge branch 'PHP-7.3'
2019-01-25 14:16:57 +00:00
Jakub Zelenka
0da13086bd
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-25 14:16:08 +00:00
Jakub Zelenka
dc2ffdeed7
Fix bug #77390 (feof might hang on TLS streams in case of fragmented TLS records)
...
Simplified version of the fix from Abyl Valg so credit to him.
2019-01-25 14:13:11 +00:00
Jakub Zelenka
d9b29029f9
Update and integrate openssl client proxy test
2019-01-25 14:09:55 +00:00
Abyr Valg
0c84c2ef50
Add a test for fragmented SSL packets
2019-01-25 14:09:55 +00:00
Dmitry Stogov
662243cb30
Don't hide real peak usage.
2019-01-25 13:36:32 +03:00
Nikita Popov
909d0a3d78
Fixed bug #77518
2019-01-25 11:12:34 +01:00
Nikita Popov
7f13557843
Merge branch 'PHP-7.3'
2019-01-25 11:03:29 +01:00
Nikita Popov
f78e681428
Fixed bug #77498
...
I've renamed the function to the same name as the exported symbol
in master.
2019-01-25 11:01:06 +01:00
Dmitry Stogov
0ff71aead1
Fixed crash
2019-01-25 11:53:31 +03:00
Nikita Popov
24085b187a
Remove unused prototype in mbstring
...
Reported by legale.
2019-01-24 16:11:35 +01:00
Andreas Treichel
b1e9c73b27
Allow strip_tags with an array of allowed tagnames
2019-01-24 15:56:32 +01:00
Dmitry Stogov
bf774d4d75
Reduce amount of updated memory
2019-01-24 18:01:24 +03:00
Dmitry Stogov
4887896e21
Fixed crash
2019-01-24 18:00:45 +03:00
Nikita Popov
5e4c6dec12
Merge branch 'PHP-7.3'
2019-01-24 15:14:09 +01:00
Nikita Popov
3c98c2d0cb
Fixed bug #77514
2019-01-24 15:13:49 +01:00
Dmitry Stogov
f80b1b0c56
Delay hash table allocation
2019-01-24 16:01:04 +03:00
Dmitry Stogov
ab9a9a6b20
Disallow PHP startup, in case some ext ext/standard sub-module is not initialized sucessfully.
2019-01-24 15:59:33 +03:00
Nikita Popov
2baae68961
Merge branch 'PHP-7.3'
2019-01-24 13:45:48 +01:00
Nikita Popov
d460e06cb9
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-24 13:45:40 +01:00
Nikita Popov
08c5679380
Merge remote-tracking branch 'php-src/PHP-7.2' into PHP-7.2
2019-01-24 13:45:27 +01:00
Nikita Popov
e7089a830a
Merge branch 'PHP-7.3'
2019-01-24 13:40:54 +01:00
Nikita Popov
e926dc9305
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-24 13:40:36 +01:00
Nikita Popov
cce2e33c84
Revert "Prefix error_code with underscore in FastZPP implementation"
...
This reverts commit 6305119a51 .
This is a source-compatibility break for extensions that define
custom FastZPP macros, such as ext/uv:
https://github.com/bwoebi/php-uv/blob/a983eb17b69f74a45d785ddc6a7bff3d4531b88c/php_uv.c#L75
I don't think that FastZPP was intended to be used this way, but
let's revert this from release branches to avoid extension breakage.
2019-01-24 13:36:47 +01:00
Christoph M. Becker
6f3880c62f
Improve wording
...
As suggested by Tom Sommer[1].
[1] <https://github.com/php/php-src/commit/8a4c2f16217fb8f8d098355f3943f31e82bcfd71#r32037340 >
2019-01-24 13:09:18 +01:00
Christoph M. Becker
d7480bda76
Fix README.RELEASE_PROCESS
...
According to current practice, and as discussed with other RMs.
2019-01-24 12:41:53 +01:00
Dmitry Stogov
fd41b99d58
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77494 (Disabling class causes segfault on member access)
2019-01-24 13:08:00 +03:00
Dmitry Stogov
aa9a8dbda3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77494 (Disabling class causes segfault on member access)
2019-01-24 13:07:31 +03:00
Dmitry Stogov
73f222d722
Fixed bug #77494 (Disabling class causes segfault on member access)
2019-01-24 13:06:36 +03:00
Nikita Popov
1d984cc707
Merge branch 'PHP-7.3'
2019-01-24 10:58:24 +01:00
Nikita Popov
e0f97ae7ec
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-24 10:57:45 +01:00
Nikita Popov
526344aa5e
Add flag to disable jumptable optimization
...
This is useful for coverage. While it is currently safe to just
skip over the SWITCH_* opcodes, this may not be true in the future
due to opcache optimizations, so it's safer to disable emission of
SWITCH_* opcodes entirely.
2019-01-24 10:56:04 +01:00
Gabriel Caruso
04723f2101
Make more tests run os MacOS
2019-01-22 19:17:27 -02:00
Nikita Popov
89a4c172e2
Remove the "o" serialization format
...
We never generate the "o" format during serialization, so let's not
keep this unnecessary attack surface around.
2019-01-22 18:09:49 +01:00
Christoph M. Becker
0daebf9a01
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Prepare main branch for PHP 7.3.3
2019-01-22 14:06:34 +01:00
Christoph M. Becker
19a9a6ba24
Prepare main branch for PHP 7.3.3
2019-01-22 14:04:03 +01:00
Nikita Popov
d3e5a2487f
Merge branch 'PHP-7.3'
2019-01-22 12:28:44 +01:00
Nikita Popov
76760901fa
Fixed bug #77287
...
There may be an EXT_NOP opcode before the parameter list, we should
skip over it.
2019-01-22 12:15:06 +01:00
Nikita Popov
a50198d0fe
Implement ??= operator
...
RFC: https://wiki.php.net/rfc/null_coalesce_equal_operator
$a ??= $b is $a ?? ($a = $b), with the difference that $a is only
evaluated once, to the degree that this is possible. In particular
in $a[foo()] ?? $b function foo() is only ever called once.
However, the variable access themselves will be reevaluated.
2019-01-22 11:12:04 +01:00
Nikita Popov
50ddff94b9
Make tokenizer test robust against token renumbering
2019-01-22 11:12:04 +01:00
Dmitry Stogov
a3503f0402
Most opcodes that don't consume their OP1 operand, must be terminated with real consumer, and don't have to be checked.
...
These checks are replaced by ZEND_ASSERT.
2019-01-22 02:11:50 +03:00
Dmitry Stogov
8cb1ae92e6
Use SSA instead of bogus reverse linear scan.
2019-01-22 01:33:35 +03:00
Dmitry Stogov
960f922ed2
Fixed odd ROPE_ADD instruction placement.
2019-01-21 23:34:09 +03:00
Christoph M. Becker
d0092c2125
[ci skip] List FFI extension
2019-01-21 20:24:16 +01:00
Dmitry Stogov
6c983c6221
Use ZEND_FUNC_FREE_LOOP_VAR flag to avoid useless iterations.
2019-01-21 22:18:07 +03:00
Christoph M. Becker
467d8b3ff7
[ci skip] Add opcache.preload directive
2019-01-21 17:55:53 +01:00
Dmitry Stogov
abd0651020
Avoid double live ranges recalculation.
2019-01-21 18:17:10 +03:00
Christoph M. Becker
36c825575e
[ci skip] Note preloading and ext/ffi in UPGRADING
2019-01-21 15:58:02 +01:00
Christoph M. Becker
3815a03117
Remove superfluous variable
...
This has been missed when libsqlite3 has been unbundled.
2019-01-21 15:32:34 +01:00
Dmitry Stogov
97ccafd4c6
Live ranges construction optimization
2019-01-21 17:25:24 +03:00
Christoph M. Becker
570d4311b6
Use pkg-config to detect and configure for system libgd
...
Formerly, a single option `--with-gd` was sufficient to enable the
extension, and to determine whether to use the system or the bundled
libgd depending on whether a directory was passed. Since pkg-config
determines the path automatically, we now offer `--enable-gd` (whether
the extension should be build) and `--with-external-gd` (whether to use
the system libgd).
2019-01-21 14:01:34 +01:00
Nikita Popov
3269e88468
Implement single-pass live range calculation
...
Instead of interleaving creation of live-ranges with the main
compiler code, compute them in a separate pass over the opcodes
as part of pass_two. Additionally, do not keep live ranges
synchronized during optimization in opcache and instead use the
same mechanism to recompute them after optimization.
2019-01-21 11:47:27 +01:00
George Wang
276d3a7d15
Merge branch 'PHP-7.3'
2019-01-20 15:11:58 -05:00
George Wang
6a0a600176
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-20 15:11:37 -05:00
George Wang
66d72377d0
Checkin LiteSpeed SAPI 7.2.
2019-01-20 15:10:19 -05:00
Anatol Belski
52f81c9551
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS [ci skip]
Update NEWS [ci skip]
2019-01-20 16:00:46 +01:00
Anatol Belski
a1b1c53d13
Update NEWS [ci skip]
2019-01-20 16:00:25 +01:00
Anatol Belski
969e57c7ac
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
2019-01-20 15:59:08 +01:00
Anatol Belski
d978590c74
Update NEWS [ci skip]
2019-01-20 15:58:19 +01:00
Tyson Andre
58a2ced052
[ci skip] Fix typos in UPGRADING
2019-01-19 17:46:03 +01:00
Anatol Belski
1bd7a9d6d1
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Skip test on unsuitable build
2019-01-19 13:56:51 +01:00
Anatol Belski
52730fa30a
Skip test on unsuitable build
...
This test reveals a difference between TS and NTS through all the
versions, which is probably too late to fix at this stage of 7.3.
While NTS always relies on the system getcwd(), TS uses a fake CWD
which might get out of sync when the real dir is deleted. Thus,
skip test on unsuitable build. Investigate possibilities to fix this
edge case for later versions.
2019-01-19 13:53:32 +01:00
Christoph M. Becker
089f7c0bc2
Sync with upstream
...
Even though libgd/libgd#492 is not a relevant bug fix for PHP, since
the binding doesn't use the `gdImage*Ptr()` functions at all, we're
porting the fix to stay in sync here.
2019-01-19 11:30:12 +01:00
Christoph M. Becker
6aff4d01c7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix failing test
2019-01-19 11:21:07 +01:00
Christoph M. Becker
2966da70cf
Fix failing test
2019-01-19 11:13:13 +01:00
Christoph M. Becker
387c45a9bb
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77479 : imagewbmp() segfaults with very large images
2019-01-19 10:18:55 +01:00
Christoph M. Becker
1907cbd8b3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77479 : imagewbmp() segfaults with very large images
2019-01-19 10:18:20 +01:00
Christoph M. Becker
44fa0b0f31
Fix #77479 : imagewbmp() segfaults with very large images
...
We must not proceed working with the Wbmp structure, if it hasn't been
allocated.
2019-01-19 10:16:02 +01:00
Anatol Belski
52057c3aa2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Make test output more reliable
2019-01-19 03:34:36 +01:00
Anatol Belski
4254bf87ba
Make test output more reliable
2019-01-19 03:33:37 +01:00
Anatol Belski
1f4a04fb3f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77484 Zend engine crashes when calling realpath in invalid working dir
2019-01-19 02:39:42 +01:00
Anatol Belski
8b20e7b68b
Fixed bug #77484 Zend engine crashes when calling realpath in invalid working dir
2019-01-19 02:36:51 +01:00
Nikita Popov
1bc86bcdd8
Merge branch 'PHP-7.3'
2019-01-18 15:03:00 +01:00
Nikita Popov
986b9b5ae3
Add additional no_sanitize_address attributes
...
To fix bug #77447 in release mode as well.
2019-01-18 15:02:30 +01:00
Nikita Popov
345936aeb1
Merge branch 'PHP-7.3'
2019-01-18 12:49:08 +01:00
Nikita Popov
14b5302591
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-18 12:48:52 +01:00
Lauri Kenttä
dbe7f2a41a
Fix seeking in php://input
2019-01-18 12:44:47 +01:00
Nikita Popov
6beecbb0aa
Merge branch 'PHP-7.3'
2019-01-18 12:06:42 +01:00
Nikita Popov
de38ce1a2e
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-18 12:05:11 +01:00
Pedro Magalhães
32ae716037
Fixed bug #76675
...
Leave a reference to the resource in the php_curl.
2019-01-18 12:04:25 +01:00
Dmitry Stogov
c69d830d45
Micro-optimization
2019-01-18 12:43:42 +03:00
Dmitry Stogov
77db3d524e
Optimize zend_handle_fetch_obj_flags()
2019-01-18 01:22:14 +03:00
Dmitry Stogov
e6182bd4ea
Improved ZEND_TRY_ASSIGN... API to avoid unnecessary double copying and reduce code bloat.
2019-01-18 00:53:48 +03:00
Jakub Zelenka
c16ea99f5d
Merge branch 'PHP-7.3'
2019-01-17 20:05:09 +00:00
Jakub Zelenka
25ffdc8dc9
List me in the openssl maintainers
...
I have been basically doing that since 2015 or so
2019-01-17 20:04:44 +00:00
Jakub Zelenka
4f7b6fc8ec
Merge branch 'PHP-7.3'
2019-01-17 18:38:59 +00:00
Jakub Zelenka
766b4fd515
Fix bug #77430 (php-fpm crashes with Main process exited)
2019-01-17 18:37:09 +00:00
Dmitry Stogov
0941f25811
Removed useless Z_REFCOUNTED_P() checks.
2019-01-17 10:53:58 +03:00
Christoph M. Becker
6d11d8d3ed
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #73614 : gdImageFilledArc() doesn't properly draw pies
2019-01-16 20:23:17 +01:00
Christoph M. Becker
26b5aa8584
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #73614 : gdImageFilledArc() doesn't properly draw pies
2019-01-16 20:22:37 +01:00
Christoph M. Becker
61cfa34e11
Fix #73614 : gdImageFilledArc() doesn't properly draw pies
...
The fix for PHP bug 43828[1] changed the algorithm from drawing filled
pies from drawing multiple triangles to drawing a single polygon. Due
to quirks of the filled polygon drawing algorithm, we had to filter out
extraneous vertices. This lead, however, to a bug regarding displaced
starting and ending points near 90° and 270° degrees, which we fix by
reinserting these vertices if they had been removed.
This fix is a port of libgd/libgd@1406b1a .
[1] <https://bugs.php.net/bug.php?id=43828 >
2019-01-16 20:10:04 +01:00
Dmitry Stogov
8661b6dd5d
Reduce slow code size
2019-01-16 14:26:32 +03:00
Dmitry Stogov
44f4370880
Micro-optimization
2019-01-16 12:49:28 +03:00
Dmitry Stogov
9f05f64240
Extend zend_get_property_offset() to return property_info for typed properties.
2019-01-16 11:56:53 +03:00
Dmitry Stogov
cbfb3f3fff
Fixed tests
2019-01-16 11:55:52 +03:00
Dmitry Stogov
fd27fd4a15
Fixed and improved incorrect usage of value_type argument.
2019-01-16 11:06:19 +03:00
Dmitry Stogov
6a2d2af06a
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
Fix param list for build without global reg
2019-01-16 02:30:15 +03:00
Dmitry Stogov
0b21a4ba45
Separated zend_assign_to_typed_prop()
2019-01-16 02:13:43 +03:00
Anatol Belski
cd43a4629f
Fix param list for build without global reg
2019-01-15 22:31:52 +01:00
Dmitry Stogov
a5446cc01c
Reuse zend_incdec_typed_ref() and separate zend_incdec_typed_prop()
2019-01-16 00:22:34 +03:00
Dmitry Stogov
938ba93f4a
Separated zend_binary_assign_op_typed_ref() and zend_binary_assign_op_typed_prop() helpers
2019-01-15 18:49:05 +03:00
Dmitry Stogov
239305d12e
Fixed uninitialized result of PRE_INC/PRE_DEC in case of exception.
...
Separated increment/decrement of typed reference into helper.
2019-01-15 18:03:46 +03:00
Nikita Popov
97fc84ca06
Add dummy get_gc handler for iterator wrapper
...
get_gc is assumed to be non-NULL in master, and get_gc can be called
on the iterator wrapper if during generator GC, so we need to define
this handler. For now it's just a dummy, though for full support we'd
have to also add a get_gc iterator handler that is called here.
2019-01-15 13:52:32 +01:00
Nikita Popov
48ca2c0833
Document pkg-config related changes
...
Creating a separate section in UPGRADING for this, as there are a
lot of these, and there's going to be more of them.
2019-01-15 10:15:05 +01:00
Nikita Popov
19d8a6b771
Migrate ext/gd to pkg-config
...
* --with-webp-dir becomes --with-webp
* --with-jpeg-dir becomes --with-jpeg
* --with-png-dir is removed. libpng is required.
* --with-zlib-dir is removed. zlib is required.
* --with-xpm-dir becomes --with-xpm.
We also enable --with-webp on Travis.
2019-01-15 10:15:05 +01:00
Nikita Popov
61d00c0c55
Fix handling of UNDEF properties in compound assign
...
Restore NULLing of UNDEF values in get_property_ptr_ptr for the
BP_VAR_R and BP_VAR_RW cases.
2019-01-15 09:55:55 +01:00
Dmitry Stogov
6f6532d32b
Use fastcall calling convention
2019-01-15 11:14:33 +03:00
Dmitry Stogov
c87c6f81f0
Removed missed and unused function declaration
2019-01-15 10:28:01 +03:00
David Carlier
62c7432fa3
Refactor subset of openssl module.
...
Proposal to abstract a subset of the openssl module,
to be able to use two ways encryption outside of this context.
2019-01-14 19:38:26 +00:00
Dmitry Stogov
ccdd8d6a3c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77308 (Unbuffered queries memory leak)
2019-01-14 13:59:58 +03:00
Dmitry Stogov
1a306cc9a1
Fixed bug #77308 (Unbuffered queries memory leak)
2019-01-14 13:59:30 +03:00
Nikita Popov
38d0c5bacd
Merge branch 'PHP-7.3'
...
[ci skip]
2019-01-14 11:50:09 +01:00
Nikita Popov
5c3b17ca68
Merge branch 'PHP-7.2' into PHP-7.3
...
[ci skip]
2019-01-14 11:49:58 +01:00
wbob
5ac9990ddf
document open_basedir and realpath cache coupling in php.ini
...
[ci skip]
2019-01-14 11:49:45 +01:00
Nikita Popov
3b74e8c165
Merge branch 'PHP-7.3'
2019-01-14 11:45:07 +01:00
Nikita Popov
c8c5a3ab8a
Fixed bug #77447
...
By disabling asan for CPU support helpers used in ifunc resolvers.
2019-01-14 11:44:48 +01:00
Dmitry Stogov
7f053c2c49
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77263 (Segfault when using 2 RecursiveFilterIterator)
2019-01-14 13:21:03 +03:00
Dmitry Stogov
920450534e
Fixed bug #77263 (Segfault when using 2 RecursiveFilterIterator)
2019-01-14 13:18:28 +03:00
Dmitry Stogov
2f89baf5c7
Fixed 32/64-bit mismatch
2019-01-14 13:15:52 +03:00
Nikita Popov
93a221ec4b
Merge branch 'PHP-7.3'
2019-01-14 10:24:11 +01:00
Nikita Popov
d6212835f2
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-14 10:23:44 +01:00
Nikita Popov
3ad0ebdf5c
Fixed bug #77454
2019-01-14 10:22:48 +01:00
Dmitry Stogov
e089d506d5
Added FFI extension
2019-01-14 11:47:50 +03:00
Nikita Popov
d0fd2be642
Revert removal of private __clone() methods
...
I thought these were redundant, because we already NULL out the
clone_obj object handler. However, it turns out that reflection is
using private __clone() to determine clonability (isCloneable) for
the case where we only have a class, rather than an object.
As such, removing these methods would be a BC break.
This reverts commit e7131a4e9f .
This reverts commit 55bd88ce0d .
2019-01-14 09:19:30 +01:00
Nikita Popov
e25e2bd9bd
Change zend_try_array_init_size arg to uint32_t
...
If this is all the underlying API supports, it doesn't make sense to
accept something larger here...
2019-01-14 09:16:07 +01:00
Kalle Sommer Nielsen
1ff33f3161
Kill this new and insanely annoying warning
...
Nikita, if this is not the right way to go about it, then please amend it
2019-01-14 09:05:44 +02:00
Anatol Belski
30668755b6
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update SDK version for AppVeyor
2019-01-12 22:15:13 +01:00
Anatol Belski
e3e2a7f7a8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update SDK version for AppVeyor
2019-01-12 22:14:35 +01:00
Anatol Belski
8f66ca8189
Update SDK version for AppVeyor
2019-01-12 22:13:14 +01:00
e219ec144e
Implement typed properties
...
RFC: https://wiki.php.net/rfc/typed_properties_v2
This is a squash of PR #3734 , which is a squash of PR #3313 .
Co-authored-by: Bob Weinand <bobwei9@hotmail.com >
Co-authored-by: Joe Watkins <krakjoe@php.net >
Co-authored-by: Dmitry Stogov <dmitry@zend.com >
2019-01-11 15:49:06 +01:00
Eli Schwartz
fe8fdfa3bd
ext/openssl: port to pkg-config macro and consistently require its use
...
openssl 0.9.8 in July 2005 first added pkg-config support, which is
earlier than the minimum supported version for php. This should
therefore be uiversally supported.
2019-01-11 11:49:37 +01:00
Sammy Kaye Powers
74c0e580ef
Improve openssl_random_pseudo_bytes()
...
CSPRNG implementations should always fail closed. Now
openssl_random_pseudo_bytes() will fail closed by throwing an
`\Exception` in fail conditions.
RFC: https://wiki.php.net/rfc/improve-openssl-random-pseudo-bytes
2019-01-11 11:16:05 +01:00
Nikita Popov
894e78b494
Merge branch 'PHP-7.3'
2019-01-11 10:55:36 +01:00
Nikita Popov
b35a20e919
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-11 10:55:26 +01:00
Ondřej Surý
1ea58b6e78
Fix rl_completion_matches detection
...
Also fix a typo when checking for rl_on_new_line in readline library.
2019-01-11 10:55:07 +01:00
Nikita Popov
42cd5db142
Merge branch 'PHP-7.3'
2019-01-11 10:29:45 +01:00
Nikita Popov
e6eac08abd
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-11 10:29:34 +01:00
Kevin Adler
332b58f865
Fix bug #77361 (configure fails on 64-bit AIX when opcache enabled)
...
In f904830012 , support for GNU Hurd was added to the opcache and
the configure check to ensure the opcache knows the flock struct
layout prior to building was changed check for two cases: BSD layout
and Linux layout. All the existing hard-coded cases in
ZendAccelerator.h follow these two cases, except for 64-bit AIX.
This means that even though building on 64-bit AIX would work,
the configure script refuses to continue.
Add a new configure check for the 64-bit AIX case and a new
compiler definition HAVE_FLOCK_AIX64. Now that all the cases are
covered, simplify the ifdef logic around these three HAVE_FLOCK_*
macros:
- The macOS and the various BSD flavors fall under HAVE_FLOCK_BSD
- Linux, HP-UX, GNU Hurd, 32-bit AIX, and SVR4 environments
fall under HAVE_FLOCK_LINUX
- 64-bit AIX falls under HAVE_FLOCK_AIX64
The only difference between the existing HAVE_FLOCK_LINUX and
the hard-coded Linux/HP-UX/Hurd case is that the latter
initialized the 5th member to 0, but since the C standard already
says that un-initialized members will be initialized to 0,
it's effectively the same.
2019-01-11 10:21:02 +01:00
Christoph M. Becker
8c21ce5b2e
Fix misleading variable type
...
We port libgd/libgd@0414bb2da0 .
2019-01-11 00:21:44 +01:00
Jakub Zelenka
4eeacba6cb
Merge branch 'PHP-7.3'
2019-01-10 20:17:58 +00:00
Jakub Zelenka
9c010cefa3
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-10 20:16:06 +00:00
Alexander Kurilo
1a1e12c2a9
Fix cleaning up after openssl_pkcs7_verify_basic test
2019-01-10 20:09:42 +00:00
Alexander Kurilo
1fab01be5b
Generate certs for openssl tests on the fly
...
The idea is to create an easy way to provide a certificate that never
expires. In order to make it cross-platform, PHP is used rather than
openssl CLI app. Using openssl to generate certificates for tests that
test openssl might be not the best idea but pros seem to outweight cons
that this "recursice dependency" adds
2019-01-10 20:09:42 +00:00
Christoph M. Becker
41c3e3d853
Remove unused variables and functions
...
We remove the unused variables altogether, and port
libgd/libgd@f50c24e467 to silence the
compiler warnings.
2019-01-10 18:00:27 +01:00
Christoph M. Becker
d1f3746c94
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #73281 : imagescale(…, IMG_BILINEAR_FIXED) can cause black border
2019-01-10 16:28:43 +01:00
Christoph M. Becker
3f9ddeb122
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #73281 : imagescale(…, IMG_BILINEAR_FIXED) can cause black border
2019-01-10 16:27:43 +01:00
Christoph M. Becker
6b4cdbaade
Fix #73281 : imagescale(…, IMG_BILINEAR_FIXED) can cause black border
...
We port the upstream fixes for libgd/libgd#329 and libgd/libgd#224 .
2019-01-10 16:11:23 +01:00
Nikita Popov
e88a081641
Remove unnecessary Z_PARAM_ZVAL_DEREFs
2019-01-10 15:35:00 +01:00
Christoph M. Becker
50ba0149d9
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77272 : imagescale() may return image resource on failure
2019-01-10 14:25:53 +01:00
Christoph M. Becker
1e407256f2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77272 : imagescale() may return image resource on failure
2019-01-10 14:25:11 +01:00
Christoph M. Becker
772b1cb245
Fix #77272 : imagescale() may return image resource on failure
...
`_gdScaleHoriz()` and `_gdScaleVert()` may fail, but don't signal
failure since they are void functions. We change that according to
upstream libgd.
We also remove the unused `Scale()` function, which doesn't exist in
upstream libgd either, right away.
2019-01-10 14:05:09 +01:00
Nikita Popov
a0d0cb847f
Return only debug props in PDORow
...
Previously this returned properties of a different object, including
INDIRECTs directly, which violates our invariants. Switch this to
only return properties for debugging purposes, without INDIRECTs.
If someone complains we can extend this to other purposes, as needed.
2019-01-10 12:37:28 +01:00
Nikita Popov
5f7b934f8b
Use serialize_deny handler in PDORow
...
Instead of a custom handler denying serialization, use the standard
one.
2019-01-10 12:37:26 +01:00
Nikita Popov
32de3469d9
Manually initialize PDORow handlers
...
Makes it easier to see what is specified and what isn't, and allows
grepping...
2019-01-10 12:37:24 +01:00
Nikita Popov
cf3317c790
Merge branch 'PHP-7.3'
2019-01-10 10:58:07 +01:00
Nikita Popov
00e5d0e859
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-10 10:57:41 +01:00
Nikita Popov
5d33024a5d
Fixed bug #77439
2019-01-10 10:57:04 +01:00
Nikita Popov
61b0122698
Merge branch 'PHP-7.3'
2019-01-10 10:27:57 +01:00
Nikita Popov
ade702a0d2
Fixed bug #77434
...
Mark arrays containing partial arrays as partial. This was already
done for the ADD_ARRAY_ELEMENT case, but not for ASSIGN_DIM.
2019-01-10 10:25:55 +01:00
Xinchen Hui
b1a4f90ea9
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Incase of invalid read
2019-01-10 14:53:36 +08:00
Xinchen Hui
16176ad0e3
Incase of invalid read
2019-01-10 14:50:39 +08:00
Nikita Popov
d6e32c6ba7
Require that write_property value is not a reference
...
We explicitly dereference values before claling write_property,
so no need to do duplicate work.
2019-01-09 17:09:48 +01:00
Anatol Belski
537454cf60
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Revert visibility
2019-01-09 16:17:11 +01:00
Anatol Belski
300249226b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Revert visibility
2019-01-09 16:16:47 +01:00
Andrey Hristov
7a88f89a90
Revert visibility
...
(cherry picked from commit 71ffae9605 )
2019-01-09 13:39:48 +01:00
Christoph M. Becker
50f38f9027
Update oniguruma.patch wrt. latest security fixes
2019-01-09 12:26:38 +01:00
Christoph M. Becker
d13a74f72d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Sync NEWS with 7.3.1
2019-01-09 11:47:39 +01:00
Christoph M. Becker
c4c6b80b9c
Sync NEWS with 7.3.1
...
All these bugs are fixed in PHP-7.3.1 already.
2019-01-09 11:46:48 +01:00
jvoisin
fbdaabba62
Fix some sign-related issues in comparisons
2019-01-09 10:01:12 +01:00
Nikita Popov
270e137ff0
Merge branch 'PHP-7.3'
2019-01-09 09:51:28 +01:00
Lauri Kenttä
63c38c9e49
Fixed bug #77289
...
Use mysqlnd_restart_psession and mysqlnd_end_psession in PDO MySQL.
This makes sure we free last_message while ZMM is still live.
2019-01-09 09:50:26 +01:00
Nikita Popov
a22881520c
Merge branch 'PHP-7.3'
2019-01-09 09:28:04 +01:00
Nikita Popov
bf4dab0163
Make operator swapping depend on IGNORE_OVERLOADING flag
...
Add MUL back to the list and instead make the entire optimization
depend on IGNORE_OVERLOADING, which is there exactly so we can make
these kinds of assumptions.
2019-01-09 09:27:56 +01:00
Sara Golemon
2ecd13232a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Bump for 7.1.27
2019-01-08 14:20:30 -05:00
Sara Golemon
85f440362b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump for 7.1.27
2019-01-08 14:20:18 -05:00
Sara Golemon
bbc10549e8
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Bump for 7.1.27
2019-01-08 14:19:37 -05:00
Sara Golemon
fabade1573
Bump for 7.1.27
2019-01-08 14:17:43 -05:00
Christoph M. Becker
0b395ad532
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Sync NEWS with 7.3.1
2019-01-08 17:24:35 +01:00
Christoph M. Becker
d7873ad8ff
Sync NEWS with 7.3.1
...
All these bugs are fixed in PHP-7.3.1 already.
2019-01-08 17:23:30 +01:00
Xinchen Hui
dd61845cf8
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77266 (Assertion failed in dce_live_ranges)
2019-01-08 19:19:44 +08:00
Xinchen Hui
cd49db9d47
Fixed bug #77266 (Assertion failed in dce_live_ranges)
2019-01-08 19:19:01 +08:00
Nikita Popov
579c7d0412
Merge branch 'PHP-7.3'
2019-01-08 10:21:54 +01:00
Nikita Popov
76c687feaf
Fixed bug #77428
...
mb_ereg_replace historically has not supported escaping backslashes
with backslashes. Go back to that behavior for BC reasons.
2019-01-08 10:21:01 +01:00
Nikita Popov
c8a5deaddd
Merge branch 'PHP-7.3'
2019-01-08 09:38:11 +01:00
Nikita Popov
7f8cab2535
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-08 09:38:02 +01:00
Nikita Popov
1165a9068c
Don't swap operands of ZEND_MUL
...
If this is used with operator overloading, then the operation does
not necessarily commute (for example, matrix multiplication).
2019-01-08 09:37:49 +01:00
Remi Collet
7f22abe286
Merge branch 'PHP-7.3'
...
* PHP-7.3:
cleanup merge
2019-01-08 09:34:24 +01:00
Remi Collet
b9072788cd
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
cleanup merge
2019-01-08 09:34:05 +01:00
Remi Collet
0d9935739c
cleanup merge
2019-01-08 09:33:41 +01:00
Nikita Popov
466cf77aa4
Merge branch 'PHP-7.3'
2019-01-08 09:26:44 +01:00
Nikita Popov
f7a7d32e65
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-08 09:26:31 +01:00
twosee
6305119a51
Prefix error_code with underscore in FastZPP implementation
...
To avoid conflicts with parameter names.
2019-01-08 09:25:35 +01:00
Andrey Hristov
d12443efc7
Const changes
2019-01-07 20:16:33 +02:00
Andrey Hristov
8975e4dcd7
Simplify the command factory
...
Since more than an year it not possible to create commands in the heap
but they are allocated on the stack and directly run. In this regard, it
doesn't make sense to have all the vararg stuff. Commands made sense
to be created and pushed onto a stack then a general executor will
run thru the stack and execute/handle the commands.
2019-01-07 18:47:39 +02:00
Nikita Popov
ba5cb2eb32
Remove unnecessary uses of object_and_properties_init
...
Use object_init_ex instead if the properties are NULL.
2019-01-07 16:00:29 +01:00
Andrey Hristov
711e1fb33b
Mark const what should not be changed
2019-01-07 15:07:24 +02:00
Derick Rethans
362f8b5f97
Merge branch 'PHP-7.3'
2019-01-07 12:49:01 +00:00
Derick Rethans
24b446291d
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-07 12:48:49 +00:00
Derick Rethans
bd1d2c7bfe
Update tests due to data changes in tzdata 2018i
2019-01-07 12:48:42 +00:00
Christoph M. Becker
90364da364
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix NEWS
Updated to version 2018.9 (2018i)
2019-01-07 13:11:31 +01:00
Christoph M. Becker
deb88f2269
Fix NEWS
...
The fixes for bug #77359 and #77360 have been ported to PHP-7.3.1, and
the release has been postponed by one week.
2019-01-07 13:11:04 +01:00
Derick Rethans
1eedfe70ae
Updated to version 2018.9 (2018i)
2019-01-07 11:50:17 +00:00
Derick Rethans
4aa430dafa
Empty merge
2019-01-07 11:50:17 +00:00
Derick Rethans
11105e90c4
Updated to version 2018.9 (2018i)
2019-01-07 11:50:16 +00:00
Derick Rethans
7ad9d6a63b
Empty merge
2019-01-07 11:50:16 +00:00
Derick Rethans
81da7f75e3
Updated to version 2018.9 (2018i)
2019-01-07 11:50:14 +00:00
Remi Collet
2747b70fdd
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] fix NEWS
2019-01-07 11:12:58 +01:00
Remi Collet
ddccc1db73
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] fix NEWS
2019-01-07 11:12:46 +01:00
Remi Collet
3e780d7f25
[ci skip] fix NEWS
2019-01-07 11:12:13 +01:00
Remi Collet
36cb111150
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] fix NEWS
2019-01-07 11:03:14 +01:00
Remi Collet
88fc59d4c9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] fix NEWS
2019-01-07 11:02:58 +01:00
Remi Collet
03a630ded7
[ci skip] fix NEWS
2019-01-07 11:02:40 +01:00
Nikita Popov
767cbd93c9
Merge branch 'PHP-7.3'
2019-01-07 10:05:33 +01:00
Nikita Popov
6f75890e7b
Fix one issue reported in bug #77310
...
SCCP did not handle array ASSIGN_* with a BOT operand correctly.
2019-01-07 10:05:23 +01:00
Stanislav Malyshev
b5669d207b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Still leaking for some reason, XFAIL for now, I'll look into it later.
2019-01-07 01:04:16 -08:00
Stanislav Malyshev
ea168c706a
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Still leaking for some reason, XFAIL for now, I'll look into it later.
2019-01-07 01:03:55 -08:00
Stanislav Malyshev
8eff852c1b
Still leaking for some reason, XFAIL for now, I'll look into it later.
2019-01-07 01:03:55 -08:00
Stanislav Malyshev
289c45109c
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Still leaking for some reason, XFAIL for now, I'll look into it later.
2019-01-07 01:03:26 -08:00
Stanislav Malyshev
27625f063e
Still leaking for some reason, XFAIL for now, I'll look into it later.
2019-01-07 01:03:04 -08:00
Stanislav Malyshev
28057f3827
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
Add NEWS
[ci skip] Add NEWS
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 23:35:27 -08:00
Stanislav Malyshev
aeec40cb50
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
Add NEWS
[ci skip] Add NEWS
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 23:35:09 -08:00
Stanislav Malyshev
cfe77ea543
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
Add NEWS
[ci skip] Add NEWS
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 23:34:26 -08:00
Stanislav Malyshev
1afebfb3fa
Merge branch 'PHP-5.6' into PHP-7.1
...
* PHP-5.6:
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
[ci skip] Add NEWS
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 23:33:34 -08:00
Stanislav Malyshev
9d6c59eeea
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
2019-01-06 23:31:15 -08:00
Stanislav Malyshev
8fa0bc68b8
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix tests - newer versions check Unicode
Add NEWS
Add NEWS
Fix test
2019-01-06 13:50:48 -08:00
Stanislav Malyshev
7ed3cfb2e8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests - newer versions check Unicode
Add NEWS
Fix test
2019-01-06 13:50:28 -08:00
Stanislav Malyshev
d0d0d922de
Fix tests - newer versions check Unicode
2019-01-06 13:28:30 -08:00
Stanislav Malyshev
1b7c599a02
Add NEWS
2019-01-06 13:11:55 -08:00
Stanislav Malyshev
fc02e7e3fe
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add NEWS
2019-01-06 13:08:48 -08:00
Stanislav Malyshev
08bb0ce4e4
Add NEWS
2019-01-06 13:08:24 -08:00
Stanislav Malyshev
25c95752d6
Add NEWS
2019-01-06 13:04:51 -08:00
Stanislav Malyshev
b51eaf4166
[ci skip] Add NEWS
2019-01-06 13:03:38 -08:00
Stanislav Malyshev
ed4db1bb22
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix test
2019-01-06 12:54:09 -08:00
Stanislav Malyshev
0f148839b5
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77367 : Negative size parameter in mb_split
Fix #77369 - memcpy with negative length via crafted DNS response
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 12:50:10 -08:00
Stanislav Malyshev
0c35032012
Fix test
2019-01-06 12:30:44 -08:00
Christoph M. Becker
e617f03066
Fix #77367 : Negative size parameter in mb_split
...
When adding the last element to the result value of `mb_split`, the
`chunk_pos` may point beyond the end of the string, in which case the
unsigned `n` would underflow. Therefore, we check whether this is the
case in the first place, and only calculate `n` otherwise. Since `n`
is no longer used outside the block, we move its declaration inside.
2019-01-06 12:24:15 -08:00
Stanislav Malyshev
e40027ef0f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77369 - memcpy with negative length via crafted DNS response
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 12:23:53 -08:00
Stanislav Malyshev
fe820fcba6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77369 - memcpy with negative length via crafted DNS response
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 11:57:16 -08:00
Stanislav Malyshev
8d3dfabef4
Fix #77369 - memcpy with negative length via crafted DNS response
2019-01-06 11:39:09 -08:00
Stanislav Malyshev
31f59e1f30
Fix more issues with encodilng length
...
Should fix bug #77381 , bug #77382 , bug #77385 , bug #77394 .
2019-01-06 11:38:46 -08:00
Christoph M. Becker
567c9f5842
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
...
At least some of the image reading functions may return images which
use color indexes greater than or equal to im->colorsTotal. We cater
to this by always using a buffer size which is sufficient for
`gdMaxColors` in `gdImageColorMatch()`.
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
4feb9e66ff
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
c6e34d91b8
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
deb06bbb9c
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
2019-01-06 11:38:46 -08:00
Christoph M. Becker
dfd8237aec
Fix #77269 : Potential unsigned underflow in gdImageScale
...
Belatedly, we're porting the respective upstream patch[1].
[1] <https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35 >
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
78bd347774
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
9c62b95e5e
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
2019-01-06 11:38:46 -08:00
Alexander Kurilo
e3e3289bd1
Regenerate certs for openssl tests
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
c95daa9c75
Fix more issues with encodilng length
...
Should fix bug #77381 , bug #77382 , bug #77385 , bug #77394 .
2019-01-06 11:34:27 -08:00
Christoph M. Becker
7a12dad4dd
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
...
At least some of the image reading functions may return images which
use color indexes greater than or equal to im->colorsTotal. We cater
to this by always using a buffer size which is sufficient for
`gdMaxColors` in `gdImageColorMatch()`.
2019-01-06 11:34:20 -08:00
Stanislav Malyshev
1cc2182bcc
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
2019-01-06 11:34:00 -08:00
Stanislav Malyshev
28362ed4fa
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
2019-01-06 11:33:54 -08:00
Stanislav Malyshev
20407d06ca
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
2019-01-06 11:33:44 -08:00
Christoph M. Becker
a918020c03
Fix #77269 : Potential unsigned underflow in gdImageScale
...
Belatedly, we're porting the respective upstream patch[1].
[1] <https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35 >
2019-01-06 11:33:38 -08:00
Stanislav Malyshev
428d8164ff
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
2019-01-06 11:33:32 -08:00
Stanislav Malyshev
4fc0bceb7c
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
2019-01-06 11:33:25 -08:00
jvoisin
3d9624e126
Fix a warning about comparing signed/unsigned variables
...
This can be seen here: https://travis-ci.org/nbs-system/snuffleupagus/jobs/473895085#L685
2019-01-06 01:54:48 +01:00
Andreas Treichel
3c9af3095c
Preserve aspect ratio for width or height
2019-01-05 13:39:49 +01:00
Peter Kokot
e1f101d798
Remove separate *nix system build for Zend engine
...
Removed files used to provide building Zend engine separately using
Autoconf and Automake:
cd Zend && ./buildconf && ./configure
Since Zend engine is tightly integrated in the PHP code itself and
current root configure.ac and acinclude provide this patch removes
these. Removed files also included several obsolete macros and
Automake dependency which is not used in main *nix PHP build system.
2019-01-04 22:04:05 +01:00
Andrey Hristov
f1ede80781
const-ify some functions
2019-01-04 13:55:34 +02:00
Nikita Popov
1be8b3cbd8
Merge branch 'PHP-7.3'
2019-01-04 12:41:30 +01:00
Nikita Popov
361d3ede93
Fix bug #77410
2019-01-04 12:40:28 +01:00
Andrey Hristov
4c4216bcab
Add type safety for mysqlnd plugin developers
2019-01-04 13:12:04 +02:00
Nikita Popov
9ca217f506
Resolve parent::class at compile-time if possible
...
And remove some dead code.
2019-01-04 12:10:22 +01:00
Nikita Popov
a9e6667817
Detect invalid uses of parent:: during compilation
...
We already detect the case where we're entirely outside a class --
now also check whether there actually is a parent.
This is a minor BC break, in that code that was never executed
might have previously contained an invalid parent:: reference without
generating an error.
2019-01-04 11:55:41 +01:00
Nikita Popov
447b3470de
Support parent::class inside constexpr contexts
2019-01-04 11:46:57 +01:00
Nikita Popov
f58846a15d
Handle self::class separately from __CLASS__ in const eval
2019-01-04 11:46:57 +01:00
Andrey Hristov
71ffae9605
Revert visibility
2019-01-04 12:24:10 +02:00
Nikita Popov
9b3fda4342
Don't replace self::class with __CLASS__ during const eval
...
Instead delay this until const expression compilation. Otherwise
self::class and [self::class] have different behavior...
2019-01-04 11:16:59 +01:00
Nikita Popov
6aa55a28b5
Fix intl build
...
class is a reserved keyword in C++...
2019-01-04 11:03:03 +01:00
Nikita Popov
290adc4132
Introduce separate ZEND_AST_CLASS_NAME AST node
...
Instead of representing this as a ZEND_AST_CLASS_CONST with a
"class" constant name.
Class constants and ::class are unrelated features that happen to
share syntax, so represent and handle them separately.
2019-01-04 10:49:23 +01:00
Nikita Popov
03094c7af3
Merge branch 'PHP-7.3'
2019-01-04 09:53:36 +01:00
Nikita Popov
1ed20669c5
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-04 09:53:30 +01:00
Nikita Popov
41af1e6781
Fix self::class inside constant in global scope
...
Previously this triggered an assertion failure. The behavior is
not quite correct, in that self::class should generate an exception
if there is no self, but returns an empty string here. Fixing that
would be a bit too intrusive for the 7.2 branch.
2019-01-04 09:52:04 +01:00
Nikita Popov
b8e9f30e93
Merge branch 'PHP-7.3'
...
[ci skip]
2019-01-04 09:08:19 +01:00
Nikita Popov
07873fab3c
Add NEWS entry for bug #77357
...
The fix has been confirmed.
[ci skip]
2019-01-04 09:07:50 +01:00
Nikita Popov
beaea5c560
Merge branch 'PHP-7.3'
2019-01-03 10:26:17 +01:00
Nikita Popov
5a361c3a54
Possible fix for bug #77357
...
Don't invoke CPUID with feature levels above the supported maximum.
In this case CPUID will return the highest supported basic information
leaf, which will have unrelated bits in the relevant positions.
2019-01-03 10:24:48 +01:00
Nikita Popov
043a11cf01
Merge branch 'PHP-7.3'
2019-01-03 09:40:49 +01:00
Nikita Popov
349dbb7938
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-03 09:40:42 +01:00
Nikita Popov
cb009b12a5
Fixed bug #77273
2019-01-03 09:40:07 +01:00
Alexander Kurilo
f51062523d
Regenerate certs for openssl tests
2019-01-02 10:00:36 -08:00
Nikita Popov
fe359cf1ff
Fix undefined function error message
...
This got fixed on 7.3, but the implementation is slightly different
on master and the new test was failing.
2019-01-02 15:41:38 +01:00
Nikita Popov
31375c5ca3
Merge branch 'PHP-7.3'
2019-01-02 14:14:07 +01:00
Nikita Popov
325a113974
Possible fix for bug #77287
...
The cache size could be off by 4, if we're on a 32-bit system and
the slot had to be bumped for alignment reasons.
I wasn't able to reproduce the issue reported in bug #77287 , but I
think this might be the cause.
2019-01-02 14:12:58 +01:00
Nikita Popov
acd3bae001
Merge branch 'PHP-7.3'
2019-01-02 13:00:29 +01:00
Nikita Popov
291589114a
Disable ifuncs on FreeBSD
...
Intended as at least a preliminary fix for bug #77284 . If/when we
figure out what exactly the issue is, we can relax this.
2019-01-02 12:59:22 +01:00
Nikita Popov
f9208e9bf8
Merge branch 'PHP-7.3'
2019-01-02 11:34:24 +01:00
Nikita Popov
613683580b
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-02 11:34:15 +01:00
Nikita Popov
73596c56e7
Partial fix for bug #75426
...
This does not print the exact line of the comma, but rather the line
of the previous element. This should generally be "good enough", as
the line number is close (off by one) to the actual issue now.
Previously it would point to the start of the array, which may be
very far away.
2019-01-02 11:32:48 +01:00
Andrey Hristov
d64b74869c
Test commit
2019-01-02 12:30:12 +02:00
Nikita Popov
25d56a594d
Merge branch 'PHP-7.3'
2019-01-02 11:21:30 +01:00
Vincent JARDIN
91e44a27f6
skeleton: support PHP 7.2
...
skeleton can still be leveraged with older PHP releases, including
PHP 7.2.
I wanted to add this capability since PHP 7.2 is still widely provided
with most Linux distributions.
I am using ext_skel.php on a vanilla Ubuntu 18.04 and Windows
in order to illustrate how to develop a PHP extension for both
OS using the default tools provided by the distributions.
see: https://github.com/vjardin/php-bonjour
2019-01-02 11:21:25 +01:00
Nikita Popov
2fab3302ae
Use ZEND_PARSE_PARAMETERS_NONE in pcre
...
Instead of the manual ZEND_PARSE_PARAMETERS_START(0, 0) form.
2019-01-02 11:18:35 +01:00
Anatol Belski
5c3bac9c21
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS
Fixed bug #75684 In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
2019-01-02 11:03:16 +01:00
Anatol Belski
1732ce9c23
Update NEWS
2019-01-02 11:02:29 +01:00
Anatol Belski
d1c616f077
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #75684 In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
2019-01-02 11:01:34 +01:00
Anatol Belski
7b3f8e746a
Fixed bug #75684 In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
2019-01-02 11:00:33 +01:00
Nikita Popov
7ac3c2fa65
Fix ZEND_NORMALIZE_BOOL usage
...
Typo introduced in cdd8368d6f .
2019-01-02 09:56:40 +01:00
Nikita Popov
636b1c3d26
Drop _ex from zend_compile_class_ref_ex
...
The non-ex version no longer exists.
2019-01-02 09:56:40 +01:00
Xinchen Hui
b04829d10f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Entry get lost while merging
2019-01-02 16:46:56 +08:00
Xinchen Hui
1b86f84908
Entry get lost while merging
2019-01-02 16:46:41 +08:00
Xinchen Hui
85983602d1
Merge branch 'master' of git.php.net:/php-src
...
* 'master' of git.php.net:/php-src:
Fixed bug #77257
2019-01-02 16:46:02 +08:00
Xinchen Hui
33011be5bf
Merge branch 'PHP-7.3' of git.php.net:/php-src into PHP-7.3
...
* 'PHP-7.3' of git.php.net:/php-src:
Fixed bug #77257
2019-01-02 16:45:38 +08:00
Xinchen Hui
384b02d058
Fixed bug #77387 (Recursion detection broken when printing GLOBALS)
2019-01-02 16:42:21 +08:00
Xinchen Hui
476eba13d8
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77387 (Recursion detection broken when printing GLOBALS)
2019-01-02 16:42:13 +08:00
Xinchen Hui
54a58a7380
Fixed bug #77387 (Recursion detection broken when printing GLOBALS)
2019-01-02 16:42:05 +08:00
Nikita Popov
685307b081
Merge branch 'PHP-7.3'
2019-01-02 09:32:59 +01:00
Nikita Popov
91888cc372
Fixed bug #77257
...
Correctly handle the case of duplicate predecessors, by removing the
duplicate predecessor and corresponding phi node operands.
For the future, it would be better to instead allow duplicate
predecessors and avoid this kind of fragile code...
2019-01-02 09:31:50 +01:00
Xinchen Hui
1a0c325b89
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77376 ("undefined function" message no longer includes namespace)
2019-01-02 15:32:29 +08:00
Xinchen Hui
e01f08f679
Fixed bug #77376 ("undefined function" message no longer includes namespace)
2019-01-02 15:32:17 +08:00
Xinchen Hui
c5c76fbd61
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS
Fixed bug #77395 (segfault about array_multisort)
2019-01-02 12:10:41 +08:00
Xinchen Hui
703ccd5d27
Update NEWS
2019-01-02 12:10:23 +08:00
Xinchen Hui
e527626d9f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77395 (segfault about array_multisort)
2019-01-02 12:10:04 +08:00
Xinchen Hui
8ebae84674
Fixed bug #77395 (segfault about array_multisort)
2019-01-02 12:09:47 +08:00
Christoph M. Becker
c670b622ab
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77391 : 1bpp BMPs may fail to be loaded
2018-12-31 20:52:27 +01:00
Christoph M. Becker
6f663c3a2e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77391 : 1bpp BMPs may fail to be loaded
2018-12-31 20:50:19 +01:00
Christoph M. Becker
b0cfa28d6d
Fix #77391 : 1bpp BMPs may fail to be loaded
...
We port the upstream fix[1].
[1] <https://github.com/libgd/libgd/commit/d0859134fcbd8817f87895bd1cb158096568a7a2 >
2018-12-31 20:45:47 +01:00
Christoph M. Becker
0f9d369921
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Regenerate certs for openssl tests
2018-12-31 18:28:11 +01:00
Christoph M. Becker
b051ab56dc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Regenerate certs for openssl tests
2018-12-31 18:27:26 +01:00
Alexander Kurilo
687dad3674
Regenerate certs for openssl tests
2018-12-31 18:20:34 +01:00
Christoph M. Becker
9a497f5c10
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Drop deprecated /Gm compile option
2018-12-30 14:37:31 +01:00
Christoph M. Becker
42b0bbd758
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Drop deprecated /Gm compile option
2018-12-30 14:37:04 +01:00
Christoph M. Becker
20de58f51d
Drop deprecated /Gm compile option
...
The `/Gm` option of `cl` is deprecated[1], and `cl` claims that it will
be removed in the future, so we're dropping it right away.
[1] <https://docs.microsoft.com/en-us/cpp/build/reference/gm-enable-minimal-rebuild?view=vs-2017 >
2018-12-30 14:36:05 +01:00
Anatol Belski
67c0415d86
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Increase timeout for test on AppVeyor
2018-12-29 17:52:10 +01:00
Anatol Belski
d4b7cc1dba
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Increase timeout for test on AppVeyor
2018-12-29 17:51:39 +01:00
Anatol Belski
54a2b42778
Increase timeout for test on AppVeyor
2018-12-29 17:48:25 +01:00
Anatol Belski
e1ec033d1b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Add memory check to the test
2018-12-29 16:23:54 +01:00
Anatol Belski
2567eba330
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add memory check to the test
2018-12-29 16:23:24 +01:00
Anatol Belski
222fa032d2
Add memory check to the test
2018-12-29 16:22:31 +01:00
Anatol Belski
731b82eb71
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
2018-12-28 16:41:47 +01:00
Anatol Belski
6896d2a685
[ci skip] Update NEWS
2018-12-28 16:40:06 +01:00
Dmitry Stogov
a9bbc827f1
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
Fixed bug #77346 webm files incorrectly detected as application/octet-stream
2018-12-28 15:35:08 +03:00
Dmitry Stogov
b8d6aac5ad
Micro optimization
2018-12-28 15:34:33 +03:00
Anatol Belski
a11e7d2c1f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77346 webm files incorrectly detected as application/octet-stream
2018-12-28 13:27:31 +01:00
Dmitry Stogov
617c90bcb9
Eliminate zend_string_destroy() wrapper in release build
2018-12-28 15:25:57 +03:00
Anatol Belski
d874d4a15c
Fixed bug #77346 webm files incorrectly detected as application/octet-stream
...
HEADSUP data from file 5.34 is used from now on
2018-12-28 13:25:40 +01:00
Dmitry Stogov
76d8f3923e
Revert HASH_FLAG_INITIALIZED into HASH_FLAG_UNINITIALIZED.
2018-12-28 11:22:18 +03:00
Dmitry Stogov
c706adaaab
Added missing invalidations.
2018-12-28 00:14:49 +03:00
Dmitry Stogov
675a8a64c3
Use HT_IS_INITIALIZED() and HT_INVALIDATE() macros instead of hackish HT_FLAGS assumtions.
2018-12-27 22:48:25 +03:00
Dmitry Stogov
c2179309f4
Removed useless check
2018-12-27 22:35:37 +03:00
Nikita Popov
cd7601ebfc
Merge branch 'PHP-7.3'
2018-12-27 15:34:22 +01:00
Lauri Kenttä
16c62a8179
Fix #77360 : class_uses causes segfault
2018-12-27 15:34:02 +01:00
Nikita Popov
6a06190850
Merge branch 'PHP-7.3'
2018-12-27 15:29:51 +01:00
Lauri Kenttä
89bf3df67d
Fix #77359 : spl_autoload causes segfault
...
Use the correct function to free the string.
2018-12-27 15:28:25 +01:00
Dmitry Stogov
9bf80ef385
Respect static method visibility
2018-12-27 10:42:52 +03:00
Dmitry Stogov
e8daada82e
Tune ARRAY_KEY_EXISTS opcode handler for speed and code size
2018-12-27 02:34:52 +03:00
Nikita Popov
f1c0e671e9
Add performance improvement section to UPGRADING
...
[ci skip]
2018-12-26 22:26:49 +01:00
Dmitry Stogov
70fcbe3524
Fixed ext/spl/tests/bug61347.phpt failure introduced by ZEND_ARRAY_KEY_EXISTS opcode
2018-12-27 00:20:20 +03:00
Nikita Popov
0bbfebb6d9
Add SCCP support for ZEND_ARRAY_KEY_EXISTS
2018-12-26 23:54:11 +03:00
Michael Moravec
f5044a12dd
Implement ZEND_ARRAY_KEY_EXISTS opcode to speed up array_key_exists()
2018-12-26 23:54:11 +03:00
Anatol Belski
9bd4aab081
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS [ci skip]
2018-12-26 20:46:16 +01:00
Anatol Belski
d2621c3185
Update NEWS [ci skip]
2018-12-26 20:45:19 +01:00
Anatol Belski
c8dc8d0839
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS [ci skip]
Update NEWS [ci skip]
2018-12-26 20:08:06 +01:00
Anatol Belski
b53d2b69f2
Update NEWS [ci skip]
2018-12-26 20:07:31 +01:00
Anatol Belski
b48823101c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
2018-12-26 20:06:01 +01:00
Anatol Belski
a2cb8228fe
Update NEWS [ci skip]
2018-12-26 20:05:15 +01:00
Anatol Belski
8789348364
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Initialize s_un (sockaddr_un) to zero before using it. Fixes #76839 .
2018-12-26 19:03:04 +01:00
Anatol Belski
e38e44e3c6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Initialize s_un (sockaddr_un) to zero before using it. Fixes #76839 .
2018-12-26 19:01:36 +01:00
Michael Meyer
3c42c784c2
Initialize s_un (sockaddr_un) to zero before using it. Fixes #76839 .
2018-12-26 18:58:27 +01:00
Nikita Popov
27e9c05e81
Remove preg_options param from pcre_get_compiled_regex()
...
This parameter is always zero and not necessary to call pcre2_match.
I'm leaving the parameter behind on the _ex() variant, so the preg_flags
are still accessible in some way.
2018-12-26 17:20:13 +01:00
Nikita Popov
fc30c0f7ad
Merge branch 'PHP-7.3'
2018-12-26 17:13:21 +01:00
Nikita Popov
b1deb98c42
Fixed bug #77338
...
Set preg_options to 0 in php_pcre_get_compiled_regex(_ex). These
options are intended to be passed to pcre2_match. However, we do
not have any flags that actually need to be set during matching
(all relevant flags are set during compilation), and the preg_flags
value is used for PHP-specific flags instead.
This parameter should be removed entirely in master to avoid confusion.
2018-12-26 17:11:27 +01:00
Nikita Popov
e595f5cd8a
Migrate ext/zlib to use pkg-config
...
There are other extensions checking for zlib as well, not quite
sure what to do there with regard to option names.
2018-12-26 16:59:24 +01:00
Dmitry Stogov
df850bf2d2
Reduce agressive inlining
2018-12-26 18:29:04 +03:00
Dmitry Stogov
9882929bfa
Removed transparent wrapper
2018-12-26 17:34:03 +03:00
Anatol Belski
92ecc93aca
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update binary SDK version for AppVeyor
2018-12-26 14:19:04 +01:00
Anatol Belski
078c1d8ef7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update binary SDK version for AppVeyor
2018-12-26 14:17:56 +01:00
Anatol Belski
3c7dc7b4c4
Update binary SDK version for AppVeyor
2018-12-26 14:15:21 +01:00
Eli Schwartz
c1a22f3d4e
Require pkg-config for external PCRE
...
Use standard PKG_CHECK_MODULES macro and remove the fallback case.
The option is renamed to --with-external-pcre and no longer accepts
an explicit path -- it should be specified through pkg-config instead.
2018-12-26 13:51:15 +01:00
Eli Schwartz
285a077c12
ext/gd: use --with instead of --enable
...
By convention it probably makes sense to stick with this even when
dropping the *-dir=DIR part.
See:
https://github.com/php/php-src/pull/3632#discussion_r229474568
https://autotools.io/autoconf/arguments.html
2018-12-26 13:37:39 +01:00
Anatol Belski
f44d53bb4a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77317 __DIR__, __FILE__, realpath() reveal physical path for subst virtual drive
2018-12-26 13:05:46 +01:00
Anatol Belski
199914b42d
Fixed bug #77317 __DIR__, __FILE__, realpath() reveal physical path for subst virtual drive
...
Keep compatibility with 7.2 and below which better comply with
realpath(3). This might have been fixable another way, say by checking
of QueryDosDevice or alike, sadly that comes with a huge performance
impact. The new internal realpath API is kept available so is
usable when bind or network mount or other OS specific realpath
variants are needed. If not used by default, a userspace function for
this specific case might be considered to be offered in next minor.
2018-12-26 12:59:00 +01:00
Dmitry Stogov
95d8e05554
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Respect EG(vm_stack_page_size)
2018-12-26 13:10:02 +03:00
Dmitry Stogov
b45774eed0
Respect EG(vm_stack_page_size)
2018-12-26 13:09:32 +03:00
Dmitry Stogov
cbf642b715
Create object only after parameter checks
2018-12-26 13:06:33 +03:00
Dmitry Stogov
22c9d19144
Removed useless zval_ptr_dtor(return_value)
2018-12-26 12:58:11 +03:00
Dmitry Stogov
d90a5d2e1a
Micro optimization
2018-12-26 12:30:30 +03:00
Dmitry Stogov
636b16402b
Fixed crashes introduced by 7e597f48e9 (only master was affected)
2018-12-25 23:30:59 +03:00
Dmitry Stogov
a111dfae0b
Removed dead condition
2018-12-25 19:23:40 +03:00
Dmitry Stogov
2954a309de
Avoid code duplication
2018-12-25 17:48:29 +03:00
Dmitry Stogov
f153f11595
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Backport later interned strings destruction.
2018-12-24 13:45:52 +03:00
Dmitry Stogov
1ce7cbe590
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Backport later interned strings destruction.
2018-12-24 13:45:40 +03:00
Dmitry Stogov
5888fbde0d
Backport later interned strings destruction.
2018-12-24 13:45:02 +03:00
Dmitry Stogov
773ed62555
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77339 (__callStatic may get incorrect arguments)
2018-12-24 13:25:24 +03:00
Dmitry Stogov
ddfb44f2cf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77339 (__callStatic may get incorrect arguments)
2018-12-24 13:23:47 +03:00
Dmitry Stogov
7e597f48e9
Fixed bug #77339 (__callStatic may get incorrect arguments)
2018-12-24 13:22:43 +03:00
Dmitry Stogov
b95cd92b9d
Added note about changes in class declaration opcodes
2018-12-24 10:51:48 +03:00
Nikita Popov
1fbc309e2c
Merge branch 'PHP-7.3'
2018-12-23 20:21:16 +01:00
Nikita Popov
69f54dd549
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-23 20:20:53 +01:00
Nikita Popov
64de5bc224
Fix invalid efree in browscap
...
Related to bug #77338 .
2018-12-23 20:20:04 +01:00
Derick Rethans
e7e8112fcd
Merge branch 'PHP-7.3'
2018-12-23 17:57:23 +00:00
Derick Rethans
c4e46c3043
Merge branch 'timelib-201801RC3' into PHP-7.3
2018-12-23 17:57:09 +00:00
Derick Rethans
a9a084c092
Update API use due to changes in timelib 2018.01RC3
2018-12-23 17:54:57 +00:00
Derick Rethans
3e4a3d005a
Upgrade timelib to 2018.01RC3
2018-12-23 17:54:37 +00:00
Christoph M. Becker
9a095416b7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77298 : segfault occurs when add property to unserialized empty ArrayObject
2018-12-21 17:47:02 +01:00
CHU Zhaowei
b15189f4d8
Fix #77298 : segfault occurs when add property to unserialized empty ArrayObject
2018-12-21 17:45:52 +01:00
Dmitry Stogov
6ccdb904ae
Fixed ws
2018-12-21 19:03:28 +03:00
Dmitry Stogov
7155239669
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Removed /e modifirer and fixed ws.
2018-12-21 19:01:36 +03:00
Dmitry Stogov
95193c3872
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Removed /e modifirer and fixed ws.
2018-12-21 19:01:18 +03:00
Dmitry Stogov
8db63adb6d
Removed /e modifirer and fixed ws.
2018-12-21 18:58:50 +03:00
Dmitry Stogov
d6f4652255
Added specialized code for small arrays
2018-12-20 17:55:01 +03:00
Dmitry Stogov
dddf3c501e
Added specialized code for small arrays
2018-12-19 17:40:34 +03:00
Dmitry Stogov
493f830355
Reuse add_property_zval_ex() instead of code duplication
2018-12-19 17:24:56 +03:00
Dmitry Stogov
d356f6d72b
Removed add_get_assoc_*() and add_get_index_*() API functions
2018-12-19 16:47:48 +03:00
Dmitry Stogov
85e1df6fdc
Replace add_index_zval() and add_next_index_zval() functions by macros
2018-12-19 16:43:38 +03:00
Dmitry Stogov
9acfe1f8f0
Fixed compilation warnings
2018-12-19 16:15:49 +03:00
Dmitry Stogov
cec091176c
Replace zend_hash_apply... with ZEND_HASH_FOREACH...
2018-12-19 02:49:56 +03:00
Christoph M. Becker
f67f42122a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Add missing entry for bug 77020
2018-12-18 23:23:40 +01:00
Christoph M. Becker
b1e25ce319
[ci skip] Add missing entry for bug 77020
2018-12-18 23:23:08 +01:00
Dmitry Stogov
ae9e956ef9
Reorder conditions
2018-12-18 23:23:44 +03:00
Remi Collet
e5fcea0bcd
Merge branch 'PHP-7.3'
...
* PHP-7.3:
missing entry for #77020
2018-12-18 16:30:09 +01:00
Remi Collet
4efa618b9e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
missing entry for #77020
2018-12-18 16:29:53 +01:00
Remi Collet
3245d1bb09
missing entry for #77020
2018-12-18 16:29:31 +01:00
Dmitry Stogov
868c1b7377
Reduce executor size
2018-12-18 17:34:18 +03:00
Remi Collet
6ff95809b0
Merge branch 'PHP-7.3'
...
* PHP-7.3:
bump to 7.2.15-dev
2018-12-18 13:12:25 +01:00
Remi Collet
c04ef40026
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump to 7.2.15-dev
2018-12-18 13:12:05 +01:00
Remi Collet
7161fe629d
bump to 7.2.15-dev
2018-12-18 13:11:32 +01:00
Christoph M. Becker
f0b79bf798
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Fix release date
2018-12-18 13:10:35 +01:00
Christoph M. Becker
8734d6a73d
[ci skip] Fix release date
2018-12-18 13:10:03 +01:00
Christoph M. Becker
1df1acb871
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Prepare main branch for 7.3.2
2018-12-18 12:16:40 +01:00
Christoph M. Becker
a65133a17a
Prepare main branch for 7.3.2
2018-12-18 12:15:25 +01:00
Dmitry Stogov
5341d17c34
Fixed expectation
2018-12-17 15:59:16 +03:00
Nikita Popov
da1e6679b7
CFG construction: Avoid code duplication
...
These code for those two cases is the same nowadays, so merge them.
2018-12-17 11:29:23 +01:00
Christoph M. Becker
cde2e35bf0
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77297 : SodiumException segfaults on PHP 7.3
2018-12-16 16:37:15 +01:00
Scott
e0e08d376e
Fix #77297 : SodiumException segfaults on PHP 7.3
...
Instead of trying to clean the argument arrays from the backtrace, we
overwrite them with empty arrays.
2018-12-16 16:36:47 +01:00
Christoph M. Becker
9216f5b92b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77291 : magic methods inherited from a trait may be ignored
2018-12-16 13:36:02 +01:00
Christoph M. Becker
0061db5503
Fix #77291 : magic methods inherited from a trait may be ignored
...
When adding methods from a trait, we must not assume that a method name
with the same length as the name of the using class is either a PHP 4
style constructor, or not a magic method at all – it may well be
another magic method.
We mostly preserve the spirit of the optimization which caused this
regression, and avoid string comparisons for all method names which can
never be magic methods.
2018-12-16 13:30:11 +01:00
BohwaZ
82af24f2b2
Implement SQLite3Stmt::getSQL method, returning the original statement SQL, eventually expanded
2018-12-15 17:27:33 +01:00
Christoph M. Becker
3b0f051193
Allow empty $escape to eschew escaping CSV
...
Albeit CSV is still a widespread data exchange format, it has never been
officially standardized. There exists, however, the “informational” RFC
4180[1] which has no notion of escape characters, but rather defines
`escaped` as strings enclosed in double-quotes where contained
double-quotes have to be doubled. While this concept is supported by
PHP's implementation (`$enclosure`), the `$escape` sometimes interferes,
so that `fgetcsv()` is unable to correctly parse externally generated
CSV, and `fputcsv()` is sometimes generating non-compliant CSV. Since
PHP's `$escape` concept is availble for many years, we cannot drop it
for BC reasons (even though many consider it as bug). Instead we allow
to pass an empty string as `$escape` parameter to the respective
functions, which results in ignoring/omitting any escaping, and as such
is more inline with RFC 4180. It is noteworthy that this is almost no
userland BC break, since formerly most functions did not accept an empty
string, and failed in this case. The only exception was `str_getcsv()`
which did accept an empty string, and used a backslash as escape
character then (which appears to be unintended behavior, anyway).
The changed functions are `fputcsv()`, `fgetcsv()` and `str_getcsv()`,
and also the `::setCsvControl()`, `::getCsvControl()`, `::fputcsv()`,
and `::fgetcsv()` methods of `SplFileObject`.
The implementation also changes the type of the escape parameter of the
PHP_APIs `php_fgetcsv()` and `php_fputcsv()` from `char` to `int`, where
`PHP_CSV_NO_ESCAPE` means to ignore/omit escaping. The parameter
accepts the same values as `isalpha()` and friends, i.e. “the value of
which shall be representable as an `unsigned char` or shall equal the
value of the macro `EOF`. If the argument has any other value, the
behavior is undefined.” This is a subtle BC break, since the character
`chr(128)` has the value `-1` if `char` is signed, and so likely would
be confused with `EOF` when converted to `int`. We consider this BC
break to be acceptable, since it's rather unlikely that anybody uses
`chr(128)` as escape character, and it easily can be fixed by casting
all `escape` arguments to `unsigned char`.
This patch implements the feature requests 38301[2] and 51496[3].
[1] <https://tools.ietf.org/html/rfc4180 >
[2] <https://bugs.php.net/bug.php?id=38301 >
[3] <https://bugs.php.net/bug.php?id=51496 >
2018-12-15 14:38:15 +01:00
Dmitry Stogov
d206630f13
Fixed memory leaks
2018-12-13 16:21:08 +03:00
Dmitry Stogov
db30e0ce16
Improve unserialize()
2018-12-13 12:55:29 +03:00
Dmitry Stogov
71f430cf06
Improve unserialize()
2018-12-12 20:04:36 +03:00
Christoph M. Becker
8c781c1c20
Resolve imagecropauto() default $mode quirk
...
The `$mode` parameter of `imagecropauto()` defaults to `-1`. However,
`-1` is changed to `GD_CROP_DEFAULT` right away, so basically the
default is `GD_CROP_DEFAULT`, which is rather confusing and
unnecessary.
Therefore, we change the default to `IMG_CROP_DEFAULT`, but still allow
an explicit `-1` to be passed for BC reasons, in which case we trigger
a deprecation notice, so we can rid the `-1` support eventually.
2018-12-12 17:25:37 +01:00
Craig Andrews
40c4d7f182
Implement FR #72510 : systemd service should be hardened
2018-12-12 17:12:02 +01:00
Dmitry Stogov
4d0a2f68a9
Provide is_zend_ptr() function to check if a pointer lays in Zend MM heap.
2018-12-12 13:02:28 +03:00
Dmitry Stogov
05f3706588
Split php_array_merge_or_replace_wrapper() into php_array_merge_wrapper() and php_array_replace_wrapper().
...
Avoid array duplication when merging with an empty array.
2018-12-11 15:59:44 +03:00
Xinchen Hui
b3804831ad
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS
2018-12-11 15:25:29 +08:00
Xinchen Hui
54739c7e66
Update NEWS
2018-12-11 15:25:19 +08:00
Xinchen Hui
3ecaba68e4
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix __zend_cpuid on i386 PIC without __cpuid_count
2018-12-11 15:23:25 +08:00
Xinchen Hui
c3eb291e41
Merge branch 'i386-PIC' of https://github.com/ryandesign/php-src into PHP-7.3
...
* 'i386-PIC' of https://github.com/ryandesign/php-src :
Fix __zend_cpuid on i386 PIC without __cpuid_count
2018-12-11 15:22:50 +08:00
Anatol Belski
282581ee8c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Remove BOM
2018-12-11 00:39:55 +01:00
Anatol Belski
7dc1c7f630
Remove BOM
2018-12-11 00:38:54 +01:00
Christoph M. Becker
ad06f1aa2e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update/fix UPGRADING
2018-12-10 14:33:04 +01:00
Christoph M. Becker
9b335c5649
Update/fix UPGRADING
2018-12-10 14:32:20 +01:00
Nikita Popov
6debea2fd8
Merge branch 'PHP-7.3'
2018-12-10 13:36:54 +01:00
Nikita Popov
93aabf1533
Fixed bug #77275
...
Instead of juggling with this problem during literal compaction,
make sure that we always initialize Z_EXTRA for literals, which
seems like the more robust solution.
2018-12-10 13:36:23 +01:00
Nikita Popov
59cacdcefd
Fix typos in compact literals debugging code
2018-12-10 13:35:55 +01:00
Christopher Jones
be318f1720
Merge branch 'PHP-7.3'
2018-12-10 21:54:35 +11:00
Christopher Jones
6f6a15e1ae
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-10 21:54:23 +11:00
Christopher Jones
3aee9ca571
LOL I had 2.10 on my mind
2018-12-10 21:54:13 +11:00
Peter Kokot
7e445ef3b1
Set AC_CONFIG_AUX_DIR to build directory
...
The Autoconf macro AC_CONFIG_AUX_DIR can set the location of the
auxiliary build tools such as config.guess, config.sub, and bundled
libtool scripts and moves these bundled files from the root directory
to the build subdirectory.
Additionally some changes in this context or as a part of obsoletion:
- The LT_TARGETS variable in build/build2.mk file was once used as a part
of the Automake step. It's not used anymore and has been refactored to
separate makedist script directly.
- ltconfig is not used anymore since libtool 1.4+
cf8d1563c2
- phpize file locations for the config.guess, config.sub, and ltmain.sh
has been refactored accordingly.
2018-12-10 08:11:44 +01:00
Christopher Jones
a680f4f2be
Link to the fast_zpp RFC
2018-12-10 12:53:12 +11:00
Christopher Jones
46a4bc140d
Merge branch 'master' of https://git.php.net/repository/php-src
2018-12-10 11:00:38 +11:00
Christopher Jones
5b72f49c9e
Merge branch 'PHP-7.3' of https://git.php.net/repository/php-src into PHP-7.3
2018-12-10 11:00:32 +11:00
Christopher Jones
211b64f950
Merge branch 'PHP-7.3'
2018-12-10 10:58:44 +11:00
Christopher Jones
95581c6dd9
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-10 10:57:10 +11:00
Christopher Jones
444e400c3b
Bundle the new test
2018-12-10 10:45:43 +11:00
Christoph M. Becker
222b7e78e3
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix version numbers in main branch
2018-12-10 00:21:59 +01:00
Christopher Jones
c18d2a801a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Improve test portability
Update for newer Oracle versions
2018-12-10 10:16:53 +11:00
Christopher Jones
e47025ffc5
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-10 10:16:27 +11:00
Christoph M. Becker
b0177d3892
Fix version numbers in main branch
...
This should have already happened, when `PHP-7.3.0` was branched.
2018-12-10 00:16:23 +01:00
Christopher Jones
e4d894edb3
Improve test portability
2018-12-10 10:16:15 +11:00
Christopher Jones
56e2c0d7db
Update for newer Oracle versions
2018-12-10 10:15:53 +11:00
Anatol Belski
2598dd5ca2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix syntax error
2018-12-09 19:15:57 +01:00
Anatol Belski
6734b1106f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix syntax error
2018-12-09 19:15:11 +01:00
Anatol Belski
81207fc607
Fix syntax error
2018-12-09 19:13:09 +01:00
Anatol Belski
94200f1a2d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix libtidy exports when ext/tidy compiled static
2018-12-09 19:02:18 +01:00
Anatol Belski
be599873f0
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix libtidy exports when ext/tidy compiled static
2018-12-09 19:01:17 +01:00
Anatol Belski
0d166f76ee
Fix libtidy exports when ext/tidy compiled static
2018-12-09 18:59:05 +01:00
Eli Schwartz
78e4f04752
ext/curl: port to pkg-config macro and consistently require its use
...
curl 7.15.1 in December 2006 first added pkg-config support, which is
earlier than the minimum supported version for php. This should
therefore be uiversally supported.
2018-12-09 17:28:02 +01:00
Derick Rethans
c74b9990ca
Merge branch 'PHP-7.3'
2018-12-09 16:25:37 +00:00
Derick Rethans
77b1f5baa3
Back to -dev
...
This should have been done as soon as PHP-7.3.0 was branched.
2018-12-09 16:23:31 +00:00
Eli Schwartz
bdd4eb2d9e
ext/pdo_pgsql: drop unneeded code
...
This check was added in 0db373883f and
greps for a private implementation detail of the postgres headers,
removed in https://github.com/postgres/postgres/commit/3c4768d0d17d4569f2417aa5741e0317404b6c45
It hasn't worked as intended for 12 years, and can safely be assumed to
not be needed.
2018-12-09 17:15:58 +01:00
Nikita Popov
30024071d2
Fix unused variable warning in curl
2018-12-09 17:05:02 +01:00
Hugh McMaster
20fa2e7b58
ext/intl: Use pkg-config to detect icu
...
The developers of icu recommend using pkg-config to detect icu,
because icu-config is deprecated.
2018-12-09 16:59:24 +01:00
Christopher Jones
02513f1075
Merge branch 'PHP-7.3'
2018-12-09 20:56:48 +11:00
Christopher Jones
8c37d5f451
Add OCI8 changes
2018-12-09 20:56:25 +11:00
Christopher Jones
1f84f2a766
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-09 20:55:21 +11:00
Christopher Jones
99f1f3dedf
Add oci_set_call_timeout() and bump version to 2.10.0
2018-12-09 20:55:04 +11:00
Christopher Jones
b2a1c14dcd
Merge branch 'PHP-7.3'
2018-12-09 12:39:02 +11:00
Christopher Jones
31eeca8a19
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-09 12:38:53 +11:00
Christopher Jones
e2ecd60f2f
Upgrade internal OCI call
2018-12-09 12:38:35 +11:00
Christopher Jones
36efc39db1
Merge branch 'PHP-7.3'
2018-12-09 12:17:23 +11:00
Christopher Jones
3da368be2e
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-09 12:17:04 +11:00
Christopher Jones
4246702406
Enable Oracle Database DBOP tracing attribute
2018-12-09 12:16:47 +11:00
Christopher Jones
ecd533d1de
Merge branch 'PHP-7.3'
2018-12-09 11:30:47 +11:00
Christopher Jones
03f6b16de7
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-09 11:30:15 +11:00
Christopher Jones
465c149cd3
Update OCI8 README
2018-12-09 11:28:52 +11:00
Christopher Jones
216d6592e1
Convert some parameter parsing to the Fast Parameter Parsing API
2018-12-09 11:28:04 +11:00
Pierrick Charron
c43ad5fd30
Merge branch 'PHP-7.3'
2018-12-08 15:20:24 -05:00
Pierrick Charron
b3a6ca90af
Fix 77264: curl_getinfo returning microseconds, not seconds
...
Since curl 7.55.0, libcurl introduced new constants to return
more sensible variable types with curl_getinfo.
When curl_getinfo with no option was called, and curl >= 7.55.0, some
of the result were returned as int when they where returned as float
in previous versions. This commit remove this BC Break.
If someone still want to use more sensible variable types, it's always
possible to call curl_getinfo with newer constants.
CURLINFO_CONTENT_LENGTH_DOWNLOAD => CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
CURLINFO_CONTENT_LENGTH_UPLOAD => CURLINFO_CONTENT_LENGTH_UPLOAD_T
CURLINFO_SIZE_DOWNLOAD => CURLINFO_SIZE_DOWNLOAD_T
CURLINFO_SIZE_UPLOAD => CURLINFO_SIZE_UPLOAD_T
CURLINFO_SPEED_DOWNLOAD => CURLINFO_SPEED_DOWNLOAD_T
CURLINFO_SPEED_UPLOAD => CURLINFO_SPEED_UPLOAD_T
CURLINFO_APPCONNECT_TIME => CURLINFO_APPCONNECT_TIME_T
CURLINFO_CONNECT_TIME => CURLINFO_CONNECT_TIME_T
CURLINFO_NAMELOOKUP_TIME => CURLINFO_NAMELOOKUP_TIME_T
CURLINFO_PRETRANSFER_TIME => CURLINFO_PRETRANSFER_TIME_T
CURLINFO_REDIRECT_TIME => CURLINFO_REDIRECT_TIME_T
CURLINFO_STARTTRANSFER_TIME => CURLINFO_STARTTRANSFER_TIME_T
CURLINFO_TOTAL_TIME => CURLINFO_TOTAL_TIME_T
2018-12-08 15:09:43 -05:00
Ryan Schmidt
4fb019994a
Fix __zend_cpuid on i386 PIC without __cpuid_count
...
Closes https://bugs.php.net/bug.php?id=76654
2018-12-08 09:52:52 -06:00
Remi Collet
f2ac27e73c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
add imap.enable_insecure_rsh in php.ini
2018-12-08 10:25:35 +01:00
Remi Collet
cb3a1df946
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add imap.enable_insecure_rsh in php.ini
2018-12-08 10:25:20 +01:00
Remi Collet
fd0077bf06
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
add imap.enable_insecure_rsh in php.ini
2018-12-08 10:25:05 +01:00
Remi Collet
4288674651
add imap.enable_insecure_rsh in php.ini
2018-12-08 10:24:36 +01:00
Christopher Jones
5c8587e583
Merge branch 'master' of https://git.php.net/repository/php-src
2018-12-08 20:20:09 +11:00
Christopher Jones
a5991a2f9f
Merge branch 'PHP-7.3' of https://git.php.net/repository/php-src into PHP-7.3
2018-12-08 20:20:04 +11:00
Christopher Jones
290671e7f2
Merge branch 'PHP-7.2' of https://git.php.net/repository/php-src into PHP-7.2
2018-12-08 20:19:59 +11:00
Christopher Jones
5f80fa0bc7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Note that PECL install now works on PHP 7.3
Don't skip with 18c DB
2018-12-08 20:14:35 +11:00
Christopher Jones
6119d4c670
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Note that PECL install now works on PHP 7.3
Don't skip with 18c DB
2018-12-08 20:13:57 +11:00
Christopher Jones
43adf3dc5e
Note that PECL install now works on PHP 7.3
2018-12-08 20:13:40 +11:00
Christopher Jones
9a0ec35fa3
Don't skip with 18c DB
2018-12-08 20:12:43 +11:00
Remi Collet
9e787ec6c0
Merge branch 'PHP-7.3'
...
* PHP-7.3:
missing entry for #77020
missing entry for #77020
2018-12-08 10:07:33 +01:00
Remi Collet
1de2ff2e5e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
missing entry for #77020
missing entry for #77020
2018-12-08 10:07:20 +01:00
Remi Collet
431ff36f51
missing entry for #77020
2018-12-08 10:07:01 +01:00
Remi Collet
da90b477c6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
missing entry for #77020
2018-12-08 10:06:34 +01:00
Remi Collet
9b8f2417ad
missing entry for #77020
2018-12-08 10:06:19 +01:00
Christopher Jones
c999be3fb5
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix resource warning value
Bump OCI8 version
2018-12-08 19:25:41 +11:00
Christopher Jones
e355e55e01
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-08 19:24:59 +11:00
Christopher Jones
dd0a8091f4
Fix resource warning value
2018-12-08 19:24:32 +11:00
Christopher Jones
2d53040a6d
Bump OCI8 version
2018-12-08 19:23:22 +11:00
Christopher Jones
56912eb85d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS
Update NEWS
2018-12-08 19:17:25 +11:00
Christopher Jones
78c299ae2d
Update NEWS
2018-12-08 19:14:16 +11:00
Christopher Jones
18b25f0f65
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
2018-12-08 19:13:12 +11:00
Christopher Jones
8ff6a30598
Update NEWS
2018-12-08 19:12:04 +11:00
Christopher Jones
4a8d5ae239
Merge branch 'PHP-7.3'
...
* PHP-7.3:
When releasing an oci8 connection always set the resource to null.
2018-12-08 18:51:38 +11:00
Christopher Jones
de9f64f5dd
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
When releasing an oci8 connection always set the resource to null.
2018-12-08 18:51:13 +11:00
KoenigsKind
3c91851874
When releasing an oci8 connection always set the resource to null.
2018-12-08 18:49:12 +11:00
Dmitry Stogov
f12e6a076f
Reorder conditions
2018-12-07 19:21:26 +03:00
Dmitry Stogov
99658f682e
Improve zend_check_live_ranges()
2018-12-07 18:15:14 +03:00
Dmitry Stogov
be4c67a40a
Stop passing CG(active_op_array) between internal compiler functions.
2018-12-07 17:47:56 +03:00
BohwaZ
abd9f08752
SQLite3: Separating parameters binding in a function
2018-12-07 15:17:20 +01:00
Christoph M. Becker
8f46f6dd6f
ZEND_VERSION should be in sync with PHP_VERSION and friends
...
While the major version is different, and the minor version may be
different, the revision and the extra should always be synced, as
recently discussed on the release manager's list. We add the
respective info to README.RELEASE_PROCESS, to not forget about it in
the future.
2018-12-07 15:11:48 +01:00
Christoph M. Becker
c4e9f6fc33
Note additional RM tasks
2018-12-07 15:11:47 +01:00
Christoph M. Becker
1a2577093b
Add note that release manager karma is required
...
Cf. <http://svn.php.net/viewvc?view=revision&revision=346164 >.
2018-12-07 15:11:46 +01:00
Christoph M. Becker
ec027d5f3a
Remove outdated note regarding Windows
...
As of PHP 5.3, there are no more Windows specific version keys.
2018-12-07 15:11:45 +01:00
Christoph M. Becker
257696a0c2
MD5 checksums are history
...
According to a respective RFC[1], the MD5 checksums have been removed
from the release notes and the API. Also, no checksums are generated
after uploading the tarballs to the user directories
on downloads.php.net.
[1] <https://wiki.php.net/rfc/release-md5-deprecation >
2018-12-07 15:11:44 +01:00
Christopher Jones
b6bb9696b9
Merge branch 'PHP-7.3'
2018-12-07 23:22:49 +11:00
Christopher Jones
49944e4bcf
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-07 23:22:30 +11:00
Nikita Popov
e3946534a4
Drop unnecessary HASH_OF uses in ext/oci8
...
These only operate on arrays.
2018-12-07 23:21:32 +11:00
Christopher Jones
c4d08c87eb
Merge branch 'PHP-7.3'
2018-12-07 23:20:58 +11:00
Christopher Jones
171389b435
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-07 23:20:27 +11:00
Christopher Jones
b797818e09
Simplify based on feedback from nikic
2018-12-07 23:07:37 +11:00
Christopher Jones
153cf5bc50
Merge branch 'PHP-7.3'
2018-12-07 21:41:57 +11:00
Christopher Jones
91776f7264
Sync with test files
2018-12-07 21:41:34 +11:00
Christoph M. Becker
8b275b5249
Stable releases also should be on frontpage
2018-12-06 18:20:13 +01:00
Christoph M. Becker
61c82e5b7f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Fix NEWS wrt. ChangeLog conversion
2018-12-06 17:21:50 +01:00
Christoph M. Becker
327e2d0153
[ci skip] Fix NEWS wrt. ChangeLog conversion
...
We have to be rather picky in this regard; otherwise we need to
manually post process the ChangeLog.
2018-12-06 17:15:43 +01:00
Christoph M. Becker
36f0d00c3f
scripts/dev/gen_verify_stub can also be used for stable releases
2018-12-06 00:43:17 +01:00
Christoph M. Becker
70162ef7c9
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Fix typo
2018-12-06 00:24:51 +01:00
Christoph M. Becker
43329e85e6
[ci skip] Fix typo
2018-12-06 00:24:25 +01:00
Ferenc Kovacs
8e7efa764b
Merge branch 'PHP-7.3'
2018-12-05 09:53:01 +01:00
Ferenc Kovacs
c7095bd607
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-05 09:44:22 +01:00
Ferenc Kovacs
bc32061dba
Merge branch 'PHP-7.1' into PHP-7.2
2018-12-05 09:36:31 +01:00
Ferenc Kovacs
6cbdc5e207
Merge branch 'PHP-7.0' into PHP-7.1
2018-12-05 09:30:20 +01:00
Ferenc Kovacs
bd289af963
Merge branch 'PHP-5.6' into PHP-7.0
2018-12-05 09:25:53 +01:00
Ferenc Kovacs
c26cb383a5
5.6.40 will be next. probably not
2018-12-05 09:13:30 +01:00
Christoph M. Becker
4dd7177224
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Add LDAP information in UPGRADING
2018-12-04 23:43:32 +01:00
Nikita Popov
7674a542aa
Remove commented zend_ini_displayer_cb
2018-12-04 19:02:13 +01:00
Nikita Popov
3b70dc078f
Fix unused variable warnings
2018-12-04 19:01:36 +01:00
Nikita Popov
2a32c1cafd
Remove unused import_used_extension utility value
2018-12-04 19:01:01 +01:00
Côme Chilliet
cb00ca7cfe
Add LDAP information in UPGRADING
2018-12-04 17:15:55 +01:00
Anatol Belski
f482fd4798
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Sync NEWS [ci skip]
2018-12-04 12:50:57 +01:00
Anatol Belski
807d8aa00d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync NEWS [ci skip]
2018-12-04 12:50:40 +01:00
Anatol Belski
6e9435f339
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync NEWS [ci skip]
2018-12-04 12:50:04 +01:00
Anatol Belski
d07e63211a
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Sync NEWS [ci skip]
2018-12-04 12:49:42 +01:00
Anatol Belski
a8f125fbca
Sync NEWS [ci skip]
2018-12-04 12:49:10 +01:00
Jakub Zelenka
41e2fa5870
Merge branch 'PHP-7.3'
2018-12-03 18:32:12 +00:00
Jakub Zelenka
6493d54897
Update UPGRADING with info about FPM logging changes
2018-12-03 18:30:41 +00:00
Stanislav Malyshev
7bd513a492
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix null pointer deref in qprint-encode filter (bug #77231 )
2018-12-03 10:20:17 -08:00
Stanislav Malyshev
36534afd10
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix null pointer deref in qprint-encode filter (bug #77231 )
2018-12-03 10:20:07 -08:00
Stanislav Malyshev
a9ef7ecc60
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix null pointer deref in qprint-encode filter (bug #77231 )
2018-12-03 10:20:02 -08:00
Stanislav Malyshev
d5dc3c69f9
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix null pointer deref in qprint-encode filter (bug #77231 )
2018-12-03 10:19:57 -08:00
Stanislav Malyshev
036bc5c1fb
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix null pointer deref in qprint-encode filter (bug #77231 )
2018-12-03 10:19:49 -08:00
Stanislav Malyshev
78bffa72c1
Fix null pointer deref in qprint-encode filter (bug #77231 )
2018-12-03 10:19:08 -08:00
Dmitry Stogov
4f26b3b51b
Mark preloaded op_arrays
2018-12-03 16:57:27 +03:00
Christoph M. Becker
511643fb87
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Prepare NEWS for 7.3 GA
2018-12-03 13:56:48 +01:00
Christoph M. Becker
5be58a437c
[ci skip] Prepare NEWS for 7.3 GA
2018-12-03 13:56:14 +01:00
Stanislav Malyshev
c3ca95dad2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix bug #77143 - add more checks to buffer reads
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
2018-12-03 00:43:00 -08:00
Stanislav Malyshev
3d8d13f7b9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77143 - add more checks to buffer reads
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
Don't need interactive progress on git clones in Travis
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-03 00:42:55 -08:00
Stanislav Malyshev
8fff90250b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77143 - add more checks to buffer reads
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
2018-12-03 00:42:50 -08:00
Stanislav Malyshev
8ab5d22332
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #77143 - add more checks to buffer reads
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
2018-12-03 00:42:45 -08:00
Stanislav Malyshev
5718d73dbb
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #77143 - add more checks to buffer reads
2018-12-03 00:42:35 -08:00
Stanislav Malyshev
48f0f73f75
Fix bug #77143 - add more checks to buffer reads
2018-12-03 00:41:46 -08:00
Stanislav Malyshev
66a0f061f6
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
2018-12-03 00:39:03 -08:00
Stanislav Malyshev
54212674b9
Fix bug #77143 - add more checks to buffer reads
2018-12-03 00:03:10 -08:00
Stanislav Malyshev
7edc639b9f
Fix #77020 : null pointer dereference in imap_mail
...
If an empty $message is passed to imap_mail(), we must not set message
to NULL, since _php_imap_mail() is not supposed to handle NULL pointers
(opposed to pointers to NUL).
2018-12-03 00:00:56 -08:00
Gabriel Caruso
51004a9c5e
Remove old generated files
...
These files were remove in f0251a8 , as well 22c2493
2018-12-02 22:45:34 -02:00
Gabriel Caruso
2970989ed9
Add forked and maintained extension in php-src from GCOV
...
The libbcmath, libmagic libmbfl and libxmlrpc are maintained in php-src,
so we should ensure these with tests.
2018-12-02 22:36:52 -02:00
Peter Kokot
ea01d7837c
Replace LT_AC_PROG_SED with AC_PROG_SED
...
The LT_AC_PROG_SED libtool's macro has been integrated in the Autoconf
since Autoconf 2.59b [1] and is recommended to be replaced with it [2].
[1] https://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] http://git.savannah.gnu.org/cgit/libtool.git/tree/m4/libtool.m4
2018-12-02 16:26:17 -08:00
Gabriel Caruso
cdd8368d6f
Clean up unnecessary ternary expressions and simplify some returns
...
- Simplify conditions
- Use ZEND_HASH_APPLY_* instead of hard-coded booleans
- Use ZEND_NORMALIZE_BOOL
- Drop sign in favor of ZEND_NORMALIZE_BOOL
2018-12-03 01:22:14 +01:00
Stanislav Malyshev
6c16f9b69c
Merge remote-tracking branch 'github/pr/3375'
...
* github/pr/3375:
Don't need interactive progress on git clones in Travis
2018-12-02 16:05:38 -08:00
Stanislav Malyshev
3faac769fa
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Don't need interactive progress on git clones in Travis
2018-12-02 16:05:14 -08:00
Stanislav Malyshev
1f78b1dfd0
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Don't need interactive progress on git clones in Travis
2018-12-02 16:04:33 -08:00
Philip Prindeville
61af343768
Don't need interactive progress on git clones in Travis
...
Travis logs are usually inspected after the build completes, by which time
progress info is useless.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com >
2018-12-02 16:04:22 -08:00
Stanislav Malyshev
05776094f7
Merge remote-tracking branch 'github/pr/3345'
...
* github/pr/3345:
Update Coding style
2018-12-02 16:00:44 -08:00
Stanislav Malyshev
377562fc6f
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-02 15:12:21 -08:00
Stanislav Malyshev
1225467d8a
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-02 15:12:15 -08:00
Stanislav Malyshev
f8eac1f438
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-02 13:38:59 -08:00
Stanislav Malyshev
6e3f5d57d4
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-02 13:18:07 -08:00
Stanislav Malyshev
aabdb71dc3
Fix TSRM signature - php_stream_stat macro has it's own TSRM
2018-12-02 12:54:19 -08:00
Alexander Kurilo
0382e761d7
Regenerate certificates for openssl tests
2018-12-02 12:08:19 -08:00
Stanislav Malyshev
2fba1e2f59
Improve test for bug77022
2018-12-02 12:06:13 -08:00
Jakub Zelenka
8acc70316d
Merge branch 'PHP-7.3'
2018-12-02 19:39:25 +00:00
Jakub Zelenka
1deee2ba7c
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-02 19:38:38 +00:00
Alexander Kurilo
655fb96354
Regenerate certificates for openssl tests
2018-12-02 19:37:10 +00:00
Peter Kokot
bde96f293a
Remove support for Rhapsody code name
...
The Rhapsody code name was once used for computers with operating system
by Apple and was mostly replaced with a newer code name Darwin:
- https://en.wikipedia.org/wiki/Rhapsody_(operating_system)
- https://en.wikipedia.org/wiki/Darwin_(operating_system)
This patch removes obsolete checks from the *nix build script files.
2018-12-02 11:41:57 +01:00
Stanislav Malyshev
494d5d2429
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:49:53 -08:00
Stanislav Malyshev
b1446521d7
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:48:49 -08:00
Stanislav Malyshev
e614b12712
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
2018-12-01 21:48:44 -08:00
Stanislav Malyshev
c5869fd1c8
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
2018-12-01 21:48:40 -08:00
Stanislav Malyshev
09885f78c6
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
2018-12-01 21:48:35 -08:00
Stanislav Malyshev
cea277048d
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:48:27 -08:00
Stanislav Malyshev
cc84d893c7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:47:49 -08:00
Stanislav Malyshev
8136d130b6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:47:44 -08:00
Stanislav Malyshev
1aec05defd
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:47:37 -08:00
Stanislav Malyshev
67f3615102
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:08:38 -08:00
Stanislav Malyshev
69f5e7992b
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:06:45 -08:00
Christoph M. Becker
f0f4ab4b02
[ci skip] Fix names of the constants
...
`GD_CROP_DEFAULT` and `GD_CROP_SIDES` are names of libgd constants, and
as such they are not relevant for userland developers. Therefore, we
replace them by the constant names of our wrapper, i.e.
`IMG_CROP_DEFAULT` and `IMG_CROP_SIDES`, respectively.
2018-12-01 23:54:17 +01:00
Peter Kokot
72087c8921
Replace AC_CHECK_FILE with test -f
...
The AC_CHECK_FILE macro is designed to emit a warning about possible
cross compiling issues if file is not present on the target system.
Since the generated PHP lexer file is part of the build files and not
target system this can be simplified by a usual shell check with
`test -f` instead as in other usages.
2018-12-01 21:40:51 +01:00
Christoph M. Becker
dcad13e8c9
Fix #73291 : imagecropauto() $threshold differs from external libgd
...
Since upstream does not appear to move in any way[1], we sync our
behavior. Even though the BC break is ugly (which is the reason we
target master only), having to deal with different algorithms is even
worse for portable userland code.
[1] <https://github.com/libgd/libgd/issues/334 >
2018-12-01 18:49:30 +01:00
Anatol Belski
8aa716734e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS [ci skip]
2018-12-01 17:11:31 +01:00
Anatol Belski
ea454583eb
Update NEWS [ci skip]
2018-12-01 17:10:43 +01:00
Christoph M. Becker
947ca9f43d
Sync behavior of gdImageAutoCrop() with upstream
...
Since cropping support has been added to our bundled libgd,
`gdImageAutoCrop` differs from upstream in that `GD_CROP_DEFAULT` falls
back on `GD_CROP_SIDES` if there is no transparent color in the image.
While this difference seem to be a useful improvement in our bundled
libgd, upstream has not yet signaled that there willing to back-port
it[1], so we revert it to stay in sync with upstream.
We also remove the additional NULL bailout at the end of the function,
which doesn't appear to be relevant any longer since bug 77198 has been
fixed.
[1] <https://github.com/libgd/libgd/issues/298 >
2018-12-01 15:34:10 +01:00
Anatol Belski
31f28961a7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77193 Infinite loop in preg_replace_callback
2018-12-01 10:28:56 +01:00
Anatol Belski
ef1269d5c1
Fixed bug #77193 Infinite loop in preg_replace_callback
...
Don't return preallocated match data more than once in nested calls.
2018-12-01 10:24:06 +01:00
Christoph M. Becker
12410df5fb
Fix illogical strncpy size
...
While both source and destination buffers have the same size (6 bytes),
and this is unlikely to change in the future, we nonetheless fix the
illogical `strncpy` size.
Based on a pull request provided by Cristian Rodríguez.
2018-12-01 00:13:58 +01:00
Steve Walk
ea1ea33bd5
[ci skip] remove test per discussion on github
2018-11-29 23:20:49 +01:00
Steve Walk
4e63df88d5
fix bad assumption of strncmp return value
2018-11-29 23:19:16 +01:00
Christoph M. Becker
a757ebb5b5
Require SQLite ≥ 3.7.4 for ext/sqlite3
...
`SQLite3::readOnly()` uses `sqlite3_stmt_readonly()` which is only
available as of libsqlite 3.7.4. For older SQLite3 versions we return
always `false`, which can be confusing. Instead of sticking with this
behavior, or even undefining the method for old SQLite3 versions, we
lift the requirements to SQLite 3.7.4 (released on 2010-12-08),
according to a respective discussion[1].
Since pdo_sqlite doesn't use `sqlite3_stmt_readonly()`, we stick with
the minimum requirement of SQLite 3.5.0.
[1] <https://github.com/php/php-src/pull/3614 >
2018-11-29 15:10:39 +01:00
Christoph M. Becker
1674db8c40
[ci skip] Add myself as sqlite3 maintainer, officially
2018-11-29 13:49:55 +01:00
Christoph M. Becker
525d3ae858
Handle potential sqlite3_bind_*() call failures
...
Since bug 77051 has been fixed, it is unlikely that any of the
`sqlite3_bind_*` calls will ever fail, but we add respective checks
nonetheless, and call `php_sqlite3_error()` in case of bind failures.
2018-11-29 13:19:26 +01:00
Christoph M. Becker
0d3799dedc
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77051 : Issue with re-binding on SQLite3
2018-11-29 02:20:20 +01:00
Christoph M. Becker
471eb0dd95
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77051 : Issue with re-binding on SQLite3
2018-11-29 02:18:56 +01:00
BohwaZ
94ec262fca
Fix #77051 : Issue with re-binding on SQLite3
...
We have to call `sqlite3_reset()` before re-binding the parameters.
2018-11-29 02:16:57 +01:00
Christoph M. Becker
035de21d77
Deny (un)serialization of SQLite3, SQLite3Stmt and SQLite3Result
...
Serializing `SQLite3`, `SQLite3Stmt` and `SQLite3Result` instances is
possible but pointless, since unserializing results in uninitialized
instances, which will bail out of any method call. Therefore, we deny
serialization and unserialization in the first place.
2018-11-29 01:08:03 +01:00
Stanislav Malyshev
7f34c9ea7d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Add DISPLAY_INI_ENTRIES for imap
Disable rsh/ssh functionality in imap by default (bug #77153 )
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-28 15:47:14 -08:00
Stanislav Malyshev
3f165e8ca3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add DISPLAY_INI_ENTRIES for imap
Disable rsh/ssh functionality in imap by default (bug #77153 )
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-28 15:47:07 -08:00
Stanislav Malyshev
4ac764e8bb
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add DISPLAY_INI_ENTRIES for imap
Disable rsh/ssh functionality in imap by default (bug #77153 )
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-28 15:47:00 -08:00
Stanislav Malyshev
223b8c15a8
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Add DISPLAY_INI_ENTRIES for imap
Disable rsh/ssh functionality in imap by default (bug #77153 )
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-28 15:46:53 -08:00
Stanislav Malyshev
87bf84c8c7
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Add DISPLAY_INI_ENTRIES for imap
2018-11-28 15:46:39 -08:00
Stanislav Malyshev
d8765852e0
Add DISPLAY_INI_ENTRIES for imap
2018-11-28 15:45:51 -08:00
Derick Rethans
6863afe055
Merge branch 'PHP-7.3'
2018-11-28 20:35:35 +00:00
Derick Rethans
dd48f0899d
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-28 20:35:16 +00:00
Derick Rethans
a3f2871b8e
Fixed bug #77097 (DateTime::diff gives wrong diff when the actual diff is less than 1 second) by upgrading to timelib 2017.09
2018-11-28 20:34:21 +00:00
Nikita Popov
745e250a21
Merge branch 'PHP-7.3'
2018-11-28 20:10:32 +01:00
Nikita Popov
f4eec70260
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-28 20:10:17 +01:00
Nikita Popov
17f8b9fb36
Fixed bug #77215
...
Remove invalid assertion: A block can have multiple switch frees,
so if we don't do live range block splitting, it is not necessarily
true that the free is located at the start of a block.
2018-11-28 20:08:39 +01:00
Christoph M. Becker
80e387cf6c
[ci skip] Add missing extension maintainership years
2018-11-28 00:18:16 +01:00
David Carlier
5d4938956a
Support huge pages on FreeBSD
...
FreeBSD provides MAP_ALIGNED_SUPER for a similar purpose as
MAP_HUGETLB on Linux, so add it as an alias.
Huge pages still have to be explicitly enabled through the
USE_ZEND_ALLOC_HUGE_PAGES environment variable.
2018-11-27 19:48:24 +01:00
Nikita Popov
9adc8d546c
Merge branch 'PHP-7.3'
2018-11-27 19:44:52 +01:00
Nikita Popov
12e88781e1
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-27 19:44:45 +01:00
Nikita Popov
b565c85b9e
Improve fix for #76046
...
Also locate the JMP at the start of the foreach.
Patch suggested by Derick.
2018-11-27 19:43:25 +01:00
Nikita Popov
6faa625cb8
Merge branch 'PHP-7.3'
2018-11-27 16:39:35 +01:00
Nikita Popov
d78211aec0
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-27 16:39:21 +01:00
Nikita Popov
d6595f276f
Fixed bug #76046
...
Place FE_FREE on start line of foreach, instead of whatever random
line number might be in CG(zend_lineno) at the time.
2018-11-27 16:37:55 +01:00
Dmitry Stogov
5f2817ad61
Avoid early reference check
2018-11-27 15:27:40 +03:00
Dmitry Stogov
23d3deb8be
Added ZEND_COMPILE_WITHOUT_EXECUTION and ZEND_COMPILE_PRELOAD to determine when PHP compiler is invoked by opcache_compile_file() or preloading.
2018-11-27 11:52:53 +03:00
Nikita Popov
fbf2914e1f
Merge branch 'PHP-7.3'
2018-11-26 22:49:29 +01:00
Nikita Popov
fb18b8bdf6
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-26 22:49:18 +01:00
Colin Basnett
9ec519e094
Fixed bug #77184
...
The U in URATIONAL is for unsigned, so the values should be printed
as unsigned.
2018-11-26 22:48:48 +01:00
Adam Baratz
2c4425a87a
update NEWS
2018-11-26 10:39:24 -05:00
Adam Baratz
2c3b1767e2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Check column number before trying to fetch the value
2018-11-26 10:37:42 -05:00
Adam Baratz
a22d2850d4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Check column number before trying to fetch the value
2018-11-26 10:36:18 -05:00
Sergei Morozov
e126ca1557
Check column number before trying to fetch the value
2018-11-26 10:34:37 -05:00
Christoph M. Becker
7cad44be11
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Use zend_empty_array
2018-11-26 15:35:30 +01:00
Christoph M. Becker
07d6dfbfe4
Use zend_empty_array
...
No need to define our own `com_dotnet_object_properties` as empty hash,
since we can use `zend_empty_array` instead as of PHP 7.3.0.
Cf. <https://github.com/php/php-src/pull/3672#issuecomment-440467704 >.
2018-11-26 15:33:58 +01:00
Nikita Popov
55bd88ce0d
Remove redundant __clone() methods from Reflection
...
Reflection classes already use NULLed clone_obj to signal that they
cannot be cloned, so it's not necessary to additionally declare a
throwing __clone() method.
2018-11-26 14:00:42 +01:00
Nikita Popov
e7131a4e9f
Remove redundant Exception::__clone() method
...
Exceptions already prohibit cloning by setting clone_obj to NULL
(which is integrated with reflection). No need to additionally
define a dummy __clone() method.
2018-11-26 13:57:17 +01:00
Nikita Popov
28edeb2ba3
User serialize_deny for PDOStatement as well
2018-11-26 13:30:57 +01:00
Nikita Popov
6e4b202694
Switch PDO to use serialize_deny
...
And remove dummy __sleep/__wakeup. This switches the thrown
exception type from PDOException to Exception.
2018-11-26 13:28:14 +01:00
Nikita Popov
a624c2bd13
Use serialize_deny for CURLFile
...
Instead of a throwing __wakeup() method.
2018-11-26 13:20:51 +01:00
Nikita Popov
43417953f4
Remove redundant Generator::__wakeup() method
...
Generators already make use of (un)serialize_deny, so there's no
need to additionally have a throwing __wakeup() implementation.
2018-11-26 13:13:26 +01:00
Peter Kokot
67b9108478
Add re2c checking with error exit code
...
To make installation experience better instead of only outputting
warning when re2c is not present this patch also exits if the PHP lexer
file(s) were not generated yet and re2c is not present on the system.
2018-11-25 21:01:21 +01:00
Christoph M. Becker
9a5669bc7b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77200 : imagecropauto(…, GD_CROP_SIDES) crops left but not right
2018-11-25 19:04:03 +01:00
Christoph M. Becker
070f6838db
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77200 : imagecropauto(…, GD_CROP_SIDES) crops left but not right
2018-11-25 19:03:38 +01:00
Christoph M. Becker
a1aaec08b5
Fix #77200 : imagecropauto(…, GD_CROP_SIDES) crops left but not right
...
We apply the upstream patch[1].
[1] <https://github.com/libgd/libgd/commit/6613094e5d218dc4d4372757aef5e58c6462a9f7 >
2018-11-25 19:00:50 +01:00
Christoph M. Becker
65b34bfa1e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77198 : auto cropping has insufficient precision
2018-11-25 15:57:25 +01:00
Christoph M. Becker
d2a1839d82
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77198 : auto cropping has insufficient precision
2018-11-25 15:56:35 +01:00
Christoph M. Becker
b47b8886dd
Fix #77198 : auto cropping has insufficient precision
...
We apply the upstream patch[1], and also fix the erroneous bailout at
the end of `gdImageAutoCrop()`, since `crop.x` and `crop.y` may very
well be zero.
[1] <https://github.com/libgd/libgd/commit/bda85aaeeb1d7467d92c892ba4c30eaa53d7a6d4 >
2018-11-25 15:41:27 +01:00
Frank Denis
333f985163
Merge branch 'PHP-7.3'
...
* PHP-7.3:
ext/sodium: remove redundant code
ext/sodium: Correct base64 decoding with unpadded variants
2018-11-24 17:57:23 +01:00
Frank Denis
8e5381915b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
ext/sodium: remove redundant code
ext/sodium: Correct base64 decoding with unpadded variants
2018-11-24 17:56:33 +01:00
Frank Denis
ff02d50909
ext/sodium: remove redundant code
2018-11-24 17:55:36 +01:00
Frank Denis
542d0bce50
ext/sodium: Correct base64 decoding with unpadded variants
...
Backports 0eee0b957a3b75f8175cdd30b306c15e372685e8 from the PECL extension
2018-11-24 17:53:08 +01:00
Christoph M. Becker
c005c67ee7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix test case
2018-11-24 13:41:40 +01:00
Christoph M. Becker
aab9aa7661
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test case
2018-11-24 13:38:09 +01:00
Christoph M. Becker
5af5f56fc9
Fix test case
2018-11-24 13:36:42 +01:00
Christoph M. Becker
2e4b6624cb
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77195 : Incorrect error handling of imagecreatefromjpeg()
2018-11-24 12:58:57 +01:00
Christoph M. Becker
caabf3a1bb
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77195 : Incorrect error handling of imagecreatefromjpeg()
2018-11-24 12:57:44 +01:00
Christoph M. Becker
60a9f7a3a3
Fix #77195 : Incorrect error handling of imagecreatefromjpeg()
...
The broken JPEG image triggers a notice, two warnings and outputs a
message to stderr directly. The additional notice is pretty useless,
and the direct output to stderr is bad. Therefore, we port the
relevant differences from upstream to our bundled libgd. This leaves
us with two warnings; the first one is triggered by libjpeg and shows
the actual problem, the second one is triggered by our libgd wrapper
whenever an image can't be read, what may not have necessarily
triggered a warning before.
2018-11-24 12:52:08 +01:00
Peter Kokot
0c82597ae3
[ci skip] PHP 7.1 is now security-only branch
...
Refs:
- http://news.php.net/php.internals/103486
2018-11-23 21:20:13 +01:00
Christoph M. Becker
9eac14c794
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Preliminary fix for NEWS
2018-11-23 18:42:53 +01:00
Christoph M. Becker
2979c6a56d
[ci skip] Preliminary fix for NEWS
...
No more regular bug fixes for PHP 7.3.0.
We'll clean up the rest later.
2018-11-23 18:37:12 +01:00
Christoph M. Becker
a4093d0531
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77177 : Serializing or unserializing COM objects crashes
2018-11-23 16:36:48 +01:00
Christoph M. Becker
b0a86566dc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77177 : Serializing or unserializing COM objects crashes
2018-11-23 16:36:00 +01:00
Christoph M. Becker
115ee49b0b
Fix #77177 : Serializing or unserializing COM objects crashes
...
Firstly, we avoid returning NULL from the get_property handler, but
instead return an empty HashTable, which already prevents the crashes.
Secondly, since (de-)serialization obviously makes no sense for COM,
DOTNET and VARIANT objects (at least with the current implementation),
we prohibit it right away.
2018-11-23 16:32:33 +01:00
Christoph M. Becker
1acac320c5
Clean up server-tests.php remains
...
sapi/tests/ has been introduced as a generic means to test different
SAPIs[1]. run-tests2.php has later be renamed to server-tests.php and
recently been dropped[2]. However, the sapi/tests/test00?.php test
cases remained, even though they make no sense for run-tests.php,
since they use an unsupported format for the `--ENV--` section and the
completely unsupported `--HEADERS--` section, respectively. While
these tests ran successfully under run-tests.php, that was only by
accident, and they did not really test something useful. Therefore, we
remove these tests altogether.
sapi/tests/bug69487.phpt is actually a CGI test (CGI is enforced due to
the `--POST--` section), so we move it to sapi/cgi/tests, which leaves
sapi/tests/ empty. Thus, we also remove the sapi/ directory from
run-tests.php.
Finally, we remove the `--HEADERS--` and `--REQUEST--` sections from
the list of allowed run-tests.php sections.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=b671380b6b5b6e1f4f235e810afa4199e989d2ba >
[2] <http://git.php.net/?p=php-src.git;a=commit;h=4f36acb9e65935aa657f1f22e2320a401bdbdad3 >
2018-11-23 16:24:51 +01:00
Nikita Popov
62dc39edda
Document --show-mem as a valid run-tests.php option
...
[ci skip]
2018-11-23 16:15:40 +01:00
Dmitry Stogov
48b9594227
Don't preload functions and classes declared outside of preloaded scripts (e.g. by eval code).
2018-11-23 03:59:47 +03:00
Dmitry Stogov
b076a91c50
Refactored script creation and classes/functions copying.
2018-11-23 03:19:16 +03:00
Nikita Popov
c6009dae34
Remove unused do_free parameter from ADD_INTERNED_STRING
2018-11-22 16:23:03 +01:00
Sara Golemon
5a5f361755
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Prep for 7.1.26
2018-11-21 14:39:49 -05:00
Sara Golemon
5b55b587ea
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Prep for 7.1.26
2018-11-21 14:39:40 -05:00
Sara Golemon
f2de4d185d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Prep for 7.1.26
2018-11-21 14:39:25 -05:00
Sara Golemon
0b3cbd665e
Prep for 7.1.26
2018-11-21 14:37:37 -05:00
Nikita Popov
4f06e67ad2
Re-commit MySQL 8 cached SHA auth support
...
With changes to (hopefully) correctly fall back if OpenSSL support
is missing. Furthermore the hard-coded dependency on ext/hash is
no longer an issue, as this extension is required in master.
This reverts commit 63072e9c0e , reversing
changes made to 4cbabb6852 .
2018-11-21 20:16:44 +01:00
Gabriel Caruso
35be0590ed
Remove unecessaries SKIPIF sections for necessary extensions
2018-11-21 08:08:09 -02:00
Xinchen Hui
1f74300138
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77088 (Segfault when using SoapClient with null options)
Fixed proto & folder mark
2018-11-21 11:30:42 +08:00
Xinchen Hui
aaafd793e6
Fixed bug #77088 (Segfault when using SoapClient with null options)
...
SoapClient constructor has its own error handler
2018-11-21 11:30:32 +08:00
Xinchen Hui
efeb810a3d
Fixed proto & folder mark
2018-11-21 11:18:48 +08:00
Sara Golemon
534df87c9e
Implement password mechanism registry
...
RFC: https://wiki.php.net/rfc/password_registry
2018-11-20 17:26:55 -05:00
Nikita Popov
f4faa69b57
Merge branch 'PHP-7.3'
2018-11-20 21:30:58 +01:00
Nikita Popov
b6d5d92661
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-20 21:30:53 +01:00
Nikita Popov
bbbaf1ca85
Merge branch 'PHP-7.1' into PHP-7.2
2018-11-20 21:30:38 +01:00
Valentin V. Bartenev
11ddf7669a
Fix bug #71041 dynamic embed SAPI load error
...
If the library is built with ZEND_SIGNALS defined, it's unusable with an
external SAPI module because the zend_signal_startup() call is mandatory
in this case.
This bug is similar to #74149 , but related to dynamic loading of PHP library.
2018-11-20 21:30:02 +01:00
Rijnard van Tonder
8881c3c82f
Remove redundant continue in for loops
2018-11-20 21:23:24 +01:00
Nikita Popov
ef8fbd6fc9
Merge branch 'PHP-7.3'
2018-11-20 21:16:36 +01:00
Nikita Popov
7a0d3406f6
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-20 21:16:28 +01:00
Mizunashi Mana
e672cd4385
Define __APPLE_USE_RFC_3542 for new ipv6 constants
2018-11-20 21:16:03 +01:00
Mizunashi Mana
10ae8b685f
Fix opcache blacklist test on macOS
2018-11-20 21:11:56 +01:00
Sara Golemon
82e0fb6651
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Bump for 7.2.14
2018-11-20 14:41:40 -05:00
Sara Golemon
7d766bd657
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump for 7.2.14
2018-11-20 14:41:31 -05:00
Sara Golemon
9fc52c16b5
Bump for 7.2.14
2018-11-20 14:40:21 -05:00
Stanislav Malyshev
b901d31b77
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Disable rsh/ssh functionality in imap by default (bug #77153 )
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:21:35 -08:00
Stanislav Malyshev
d4797f836e
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:21:29 -08:00
Stanislav Malyshev
63973d1b33
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:20:45 -08:00
Stanislav Malyshev
44b08a9802
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:19:45 -08:00
Stanislav Malyshev
336d2086a9
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:18:53 -08:00
Stanislav Malyshev
05782f01f5
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:16:08 -08:00
Stanislav Malyshev
aed4065aa6
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:14:18 -08:00
Stanislav Malyshev
628df47e79
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:14:07 -08:00
Dmitry Stogov
05875bcfc6
Improved error messages
2018-11-20 17:50:22 +03:00
Christoph M. Becker
800edccee2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS wrt. php-7.3.0RC6 tagging
2018-11-20 13:36:41 +01:00
Christoph M. Becker
03a3a04e55
[ci skip] Update NEWS wrt. php-7.3.0RC6 tagging
2018-11-20 13:36:10 +01:00
Remi Collet
ad6060601a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
NEWS
NEWS
NEWS
Fix #77151 ftp_close(): SSL_read on shutdown
2018-11-20 11:20:57 +01:00
Remi Collet
3ed07cc34a
NEWS
2018-11-20 11:20:40 +01:00
Remi Collet
928d7fc8df
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
NEWS
NEWS
Fix #77151 ftp_close(): SSL_read on shutdown
2018-11-20 11:20:26 +01:00
Remi Collet
e7acb29eb0
NEWS
2018-11-20 11:20:05 +01:00
Remi Collet
6ce4be1762
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
NEWS
Fix #77151 ftp_close(): SSL_read on shutdown
2018-11-20 11:19:52 +01:00
Remi Collet
1adbf70e26
NEWS
2018-11-20 11:19:29 +01:00
Remi Collet
d9afc2f662
Fix #77151 ftp_close(): SSL_read on shutdown
...
Regression introduced in fix for #76972
only display the error message when sslerror
or if errno is set (for SSL_ERROR_SYSCALL case)
2018-11-20 11:18:34 +01:00
Dmitry Stogov
1f3a535324
Delay exceptional case check
2018-11-20 13:06:23 +03:00
Dmitry Stogov
93f7cbf29b
fixed typo
2018-11-20 12:53:05 +03:00
Dmitry Stogov
a5a3d507d2
Optimization
2018-11-20 11:55:16 +03:00
Stanislav Malyshev
e5bfea64c8
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 00:13:50 -08:00
Fabien Villepinte
2b9ceffb41
Fix typo in tests
2018-11-19 22:17:58 +01:00
Anatol Belski
e00add198c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-11-18 14:41:44 +01:00
Anatol Belski
05df19b9f0
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-11-18 14:41:14 +01:00
Anatol Belski
68442312e3
[ci skip] Update NEWS
2018-11-18 14:40:00 +01:00
Anatol Belski
6742b4b7cc
[ci skip] Update NEWS
2018-11-18 14:38:35 +01:00
Anatol Belski
6e32f59525
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-11-18 14:37:56 +01:00
Anatol Belski
3e78380d02
[ci skip] Update NEWS
2018-11-18 14:37:04 +01:00
Anatol Belski
b6367ebae3
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type
2018-11-18 12:34:04 +01:00
Anatol Belski
5f64afc073
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type
2018-11-18 12:33:35 +01:00
Anatol Belski
fb06cca6cb
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type
2018-11-18 12:32:47 +01:00
Anatol Belski
0434141ce9
Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type
...
Backport 369c991d and 282a63da to 7.1, closes #3634
2018-11-18 12:29:34 +01:00
Anatol Belski
8b05bbdd0a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Add test for bug #77047
FIX #77047 : fixes regex for "time" data type
2018-11-18 11:52:33 +01:00
Anatol Belski
282a63dace
Add test for bug #77047
2018-11-18 11:52:00 +01:00
andy
369c991d5c
FIX #77047 : fixes regex for "time" data type
2018-11-18 11:50:32 +01:00
Anatol Belski
819f857894
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-11-17 23:03:14 +01:00
Anatol Belski
cf764f02b3
[ci skip] Update NEWS
2018-11-17 23:01:17 +01:00
Anatol Belski
10192a9ca4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
2018-11-17 23:00:50 +01:00
Anatol Belski
b4776cda2e
[ci skip] Update NEWS
2018-11-17 23:00:12 +01:00
Anatol Belski
3c4cf40064
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Simplify assignment on 64-bit
2018-11-17 22:57:16 +01:00
Anatol Belski
b0591f5e46
Simplify assignment on 64-bit
2018-11-17 22:56:39 +01:00
Anatol Belski
b0cf54c5b8
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters
2018-11-16 23:23:00 +01:00
Anatol Belski
00c08a2e4a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters
2018-11-16 23:22:19 +01:00
Anatol Belski
a7e9790969
Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters
...
The binary can be of course used on console, for whatever reasons, so
UNICODE API should be used in that case. That might however not work as
expected, if the binary is used for a service.
2018-11-16 23:19:33 +01:00
Nikita Popov
2fac9d9ec1
Remove some mentions of RECOVERABLE_ERROR in tests
...
Mostly drop error handlers that are no longer necessary.
2018-11-15 22:13:46 +01:00
Nikita Popov
2766a8e66b
Fix leaks
...
For some reason I'm no longer getting memory leak errors for my
local build :/
2018-11-15 21:34:46 +01:00
Nikita Popov
022eea8be1
Check for zero SplPriorityQueue extract flags earlier
...
Generate an exception during the SplPriorityQueue::setExtracFlags()
call instead of generating E_RECOVERABLE_FATAL all over the place
later.
2018-11-15 21:05:05 +01:00
Nikita Popov
e965fee904
Optimize SplPriorityQueue implementation
...
Do not create an array with two keys for every element. That's a
huge waste of memory. Instead we allocate a two-element structure.
This reduces memory usage and avoids having to perform hashtable
lookups to get at the data and priority.
The only thing this might impact negatively is the non-default
EXTR_BOTH mode, in which case the array has to be created anyway.
2018-11-15 20:52:01 +01:00
Dmitry Stogov
0f7f1498be
Use ZEND_THIS macro to hide implementation details in extensions code.
2018-11-15 19:54:19 +03:00
Nikita Popov
8f2f80668e
Merge branch 'PHP-7.3'
2018-11-15 17:17:06 +01:00
Nikita Popov
dee5a450d9
Fixed bug #77165
...
Also add some helper macros for PROTECT/UNPROTECT that check for
IMMUTABLE. These checks are needed for nearly any use of
PROTECT/UNPROTECT.
2018-11-15 17:16:39 +01:00
Dmitry Stogov
71d6899e53
micro-optimization
2018-11-15 18:47:23 +03:00
Gabriel Caruso
5ae1524dc3
Remove unused variables
2018-11-15 12:32:00 -02:00
Gabriel Caruso
74f26ba816
Remove missing SKIPIF sections for mbstring tests
2018-11-15 12:21:55 -02:00
Dmitry Stogov
9ab3b42888
Split zend_objects_store_put() into hot/cold parts
2018-11-15 16:31:22 +03:00
Peter Kokot
35a9ec1b0d
[ci skip] Update UPGRADING
2018-11-15 10:46:48 +01:00
Anatol Belski
164edffb99
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Rework magic data once more
2018-11-14 22:35:47 +01:00
Anatol Belski
2a062f3c02
Rework magic data once more
...
The change reduces the input size on patterns using posix character
classes. It is still better than reverting to the patterns from the
older version, as the upstream data uses posix classes also in the later
versions. The input reduction speeds up the pattern matching in some
cases.
This patch is functionally almost same as upstream, but might show some diff
when the input is very long. While the magic data in the newer versions is
functionally an improvement, with jit=0 it might show a performance regression.
The slowdown is negligible in the normal usage and is still acceptable for the
malicious input. If some functional regressions show up, this patch should be
reverted and the tests timing should be adapted instead.
2018-11-14 22:23:24 +01:00
Dmitry Stogov
d5955d9587
typo
2018-11-15 00:10:17 +03:00
Peter Kokot
698f8bec93
[ci skip] Update NEWS
2018-11-14 21:45:24 +01:00
Ben Scholzen (DASPRiD)
ee939b70d3
Add openssl_x509_verify() function
...
This patch introduces a wrapper around OpenSSL's X509_verify() function.
2018-11-14 21:40:34 +01:00
Christoph M. Becker
22889c94d1
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77147 : Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR
2018-11-14 14:59:56 +01:00
Christoph M. Becker
9a2bd2f453
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77147 : Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR
2018-11-14 14:59:30 +01:00
Christoph M. Becker
211c6189f6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77147 : Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR
2018-11-14 14:57:40 +01:00
Christoph M. Becker
a56cdd0a82
Fix #77147 : Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR
...
If the `ICONV_MIME_DECODE_CONTINUE_ON_ERROR` flag is set, parsing
should not fail, if there are illegal characters in the headers;
instead we silently ignore these like before.
2018-11-14 14:55:38 +01:00
Dmitry Stogov
f6d227ed4f
Implemented preloading RFC: https://wiki.php.net/rfc/preload .
...
Squashed commit of the following:
commit 106c815fffb8eb3efe00a27a5229cb1f8ffc9736
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Nov 14 16:36:44 2018 +0300
Added NEWS entry
commit 1dacd5e20b7043368ef9e80db296d1781134b6fd
Merge: d516139abf ba99aa133c
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Nov 14 16:33:37 2018 +0300
Merge branch 'master' into preload
* master:
Fixed issues related to optimization and persitence of classes linked with interfaces, traits or internal classes.
Added possiblity to avoid signal handlers reinitialization on each request.
commit d516139abf5ffbd495ee6037f1dc04a1cfe588a7
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Nov 14 16:13:15 2018 +0300
Override opcache.preload for testing
commit 162b154d0bbfbaf8ef93975f7e56a1353236903d
Merge: 45fdd034ce 8bda22592e
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Nov 14 15:38:09 2018 +0300
Merge branch 'master' into preload
* master: (34 commits)
Eliminate useless $this related check
Eliminate useless $this related checks
Replace zend_parse_method_parameters() by zend_parse_parameters() and avoid useless checks.
Replace getThis() by EX(This), when additional check is not necessary.
Fixed tests
Validate length on socket_write
Fix compilation on x32
Fix #77141 : Signedness issue in SOAP when precision=-1
Support SQLite3 @name notation
Remove lexer files generated by RE2C
Update libmagic.patch [ci skip]
Update libmagic.patch [ci skip]
Fork test with pcre.jit=0
Rework magic data
Fix regex
Fix regex
Rework magic data
Sync one more upstream libmagic piece
Suppress already used warning
Ignore getaddrinfo failed message
...
commit 45fdd034ceceb68e8fb23bd6e70d627f17dfd411
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Nov 9 13:07:03 2018 +0300
Properly resolve magic method of preloaded classes inherited from internal ones.
commit 34645aeb4272b71a81a7e0d91f27eded557b78be
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Nov 8 15:29:17 2018 +0300
Don't preload constants defined during preload script excution.
commit cef0d67c3e5aac89b3d606fbd8d445225c07c83f
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Nov 7 15:56:54 2018 +0300
Support for class aliasses
commit 08ffc9a552c7cf4fbff1a4b3d2de4e7c33f4120d
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Nov 7 15:34:39 2018 +0300
Resolve constants only in linked classes
commit 8d3429cda83c87646eef0006d5cda075f2400b24
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Nov 6 11:56:39 2018 +0300
Fixed preloading of references to internal classes.
commit 7ae3a47d20e83f7d804506c6d50f6a392199260b
Merge: 9b0a53ed1c 049f239cfc
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Nov 6 11:37:15 2018 +0300
Merge branch 'master' into preload
* master:
Update NEWS [ci skip]
Update NEWS [ci skip]
Update libmagic.patch [ci skip]
Update libmagic.patch [ci skip]
Declare function proto in header
Declare function proto in header
Fix #76825 : Undefined symbols ___cpuid_count
NEWS
Fix : #77110 undefined symbol zend_string_equal_val in C++ build
Fix #77105 : Use position:sticky for <th> in `phpinfo()`
Implement handling for JIT recognition when cross compiling
Backport 7f5f4601 for 7.2
Fix #76348 : WSDL_CACHE_MEMORY causes Segmentation fault
Rework places in libmagic regarding previous CVE-2014-3538 fixes
Change the way JIT availability is checked
Fix a test for ldap extension
Fixed bug #77092
Future-proof email addresses
commit 9b0a53ed1cd5995efae0d71e1941d1db4ef6ba39
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Nov 2 14:54:44 2018 +0300
We don't need preload_restart() here
commit 0bd17bd43890423e1e98a5925f11cea93da3df55
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Nov 2 14:44:30 2018 +0300
EG(*) may be not initializd at this point - use CG(*).
commit b610467051d8a3687a60ffc2957bc353cb6b3bd4
Merge: 3a9d90f74a 67e0138c0d
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Nov 2 11:33:37 2018 +0300
Merge branch 'master' into preload
* master:
Future-proof email addresses...
Update email addresses. We're still @Zend, but future proofing it...
commit 3a9d90f74a3d890cb59658d604d5a202e3aee256
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Nov 1 15:19:48 2018 +0300
Fexed resolution of method clones
commit aea85c65bd1795d0750dee6ac0e476acd2ac9dd7
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Nov 1 11:45:50 2018 +0300
Prevent inlining of method copied from trait
commit 36b644fbb738e7548ccb436e5d04d653d93cce14
Merge: 7a20781d2e b91690c892
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Nov 1 10:56:02 2018 +0300
Merge branch 'master' into preload
* master:
Fix stray newline that caused this test to fail
Fix session tests that fail if error_log is set
This test needs to log to stdout
Fix error condition
Fixed bug #77081 ftruncate() changes seek pointer in c mode
Fix and improve test case
commit 7a20781d2ee694262f913a612d8b0b6a24ceff7b
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 31 00:52:46 2018 +0300
Added test
commit 4a57b5d563f9c9616f3c236f57ccd09d8a66f146
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 31 00:50:21 2018 +0300
Fixed preloading of classes linked with traits
commit 68c4f99e23695e74eafa43097ecab62392bad3ee
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Oct 30 16:25:14 2018 +0300
Added test
commit 38ab7ef4cf429dcfd5dfb18f844242cdf3a4d61f
Merge: eb6e2c529f bf38e6c10a
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Oct 30 16:14:39 2018 +0300
Merge branch 'master' into preload
* master:
Keep original value of "prototype"
commit eb6e2c529f8cedf6823346387dd8b0ba6a4f045b
Merge: 562049510f 2fefa8c61e
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Oct 30 15:35:39 2018 +0300
Merge branch 'master' into preload
* master:
Call function_add_ref() in proper place
Updated to version 2018.7 (2018g)
Updated to version 2018.7 (2018g)
Updated to version 2018.7 (2018g)
Reslove inherited op_array references once afrer all optimizations.
commit 562049510f605c21cd46fc3b6f97ed15bfe7b0dc
Merge: e806cb732a 4828fb7b6b
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Oct 30 10:29:49 2018 +0300
Merge branch 'master' into preload
* master:
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
fix bug #77079
Add missing null initialization
Remove redundant mbfl_string_init calls
Use zend_string for mbstring last encoding cache
commit e806cb732a2a3f1e409528988a0571421c541078
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 29 22:32:15 2018 +0300
Fixed double-free
commit 2f697ef8af0e7b21c47707b2d688880e8c987a8b
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 29 22:07:32 2018 +0300
typo
commit c559f22b3e61b38761831d9610889d28ba6875e0
Merge: 310631cc05 ea2e67876a
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 29 21:59:27 2018 +0300
Merge branch 'master' into preload
* master:
Stop Apache if PHP wasn't started successful.
Execute zend_post_startup() with module_initialized flag set.
Removed dead code
Fix mb_strrpos() with encoding passed as 3rd param
commit 310631cc0565ac87091c4f1a8a9f739a13e7e778
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 29 16:48:42 2018 +0300
Stop Apache if PHP wasn't started successful.
commit 0a24d7ba8f3280507c9663b32e14030212cf8491
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 29 16:25:49 2018 +0300
Avoid use-after-free in main thread
commit 17a3cb4a2ab271c2b2357c04e36efa64e02444ff
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 29 15:25:17 2018 +0300
Execute zend_post_startup() with module_initialized flag set.
commit 6d4b22c518bec956e9632fad4329360304d17fd7
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 29 14:12:20 2018 +0300
Override SAPI.ub_write and SAPI.flush for preloading
commit 386c9d3470168f70afe5d3b72a58ea0c0da1519c
Merge: d7fbb4d402 359f19edc9
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 29 13:49:24 2018 +0300
Merge branch 'master' into preload
* master:
Optimize substr() edge-case conditions
[ci skip] Update UPGRADING
Fix #71592 : External entity processing never fails
Add TIDY_TAG_* constants supported by libtidy 5
Add is_iterable to opcache Optimizer
commit d7fbb4d402a18c8fd1c49e0c92afd9f9e513bc7a
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Oct 26 13:11:54 2018 +0300
Restore preload state if it was already loaded in another process.
commit 0fe9ea1c07822b5d4672cece2c180bf9795e16e4
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Oct 26 12:29:06 2018 +0300
Removed dead code
commit 3a2d1bcc1fd27b6983522c262931fc0187c0afef
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Oct 26 00:19:40 2018 +0300
Support for builds without ZEND_SIGNALS
commit e6b76ecb4beea3b922bf7529050e3828f745dedb
Merge: 4531fbf931 68694c9997
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Oct 25 23:43:25 2018 +0300
Merge branch 'master' into preload
* master:
Don't wrap php_module_shutdown() with zend_try. executor_globals are released in ZTS build, and this leads to crash.
[ci skip] Fix indentation in UPGRADING.
commit 4531fbf9310bfb7bb579134cc84e8c10c5d42059
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Oct 25 22:44:49 2018 +0300
Disable linking and preloading of classes those parent or one of interface or trait is an internal class.
commit a594a618ce98242c1d273eb9ede75b4f6b4635d8
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Oct 25 22:30:51 2018 +0300
Cleanup
- remove useless ZCSG(saved_map_ptr_last)
- move preloaded classes/functions clean-up code back into better place
commit ab9a40f63cfa1a205b8f853b7e0c2ce61edabb32
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Oct 25 20:52:51 2018 +0300
Added support for preloaded classes/functions in ZTS build
commit e3c65db099517082b66dd20ea57e1bda649a7aa5
Merge: 4f57c1e029 33e777acbf
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Oct 25 20:52:26 2018 +0300
Merge branch 'master' into preload
* master:
Improved shared interned strings handling. The previous implementation worked incorrectly in ZTS build. It changed strings only in function/class tables of one thread. Now all threads gets the same shared interned strings. Also, on shutdown, we don't try to replace SHM interned strings back to process strings, but delay dettachment of SHM instead.
Don't use request heap at shutdown
Don't optimize function if inference failed
Fixed bug #77058
Improve "narrowing" error message
bump versions
commit 4f57c1e029ce9c24bd699ea61b05973c4665bc32
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Oct 25 15:29:58 2018 +0300
Cleanup (move preload_shutdown() call to better place)
commit 26587a95c071cf9dd098199eb3708fca8adae243
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Oct 25 14:30:51 2018 +0300
eol
commit d70cb10480fdc7d814495150cd48e43d4147138f
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Oct 25 14:30:20 2018 +0300
cleanup
commit aabe685dbb887e91c240b6c5553193889bcfc540
Merge: d9fc51bc3b 40808ac41e
Author: Dmitry Stogov <dmitry@zend.com >
Date: Thu Oct 25 12:42:51 2018 +0300
Merge branch 'master' into preload
* master:
Remove unused var
Remove ext/json parser files generated by bison
Fix run-tests.php for running phpdbg and certain test sections
Normalize .gitignore
commit d9fc51bc3bdfbd7f4149a884b09e3c09a41f7a8d
Merge: b5ffba0faf b6ef8998d5
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 24 15:59:24 2018 +0300
Merge branch 'master' into preload
* master:
Fixed reseting of interned strings buffer.
commit b5ffba0fafb4d940336d5f5fe93950dad1d8d779
Merge: e4a7ef0c43 a404383118
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 24 12:46:28 2018 +0300
Merge branch 'master' into preload
* master:
Fixed build in directory different from source
commit e4a7ef0c431ec97cdd00e44dfa0ef17887d1e5e3
Merge: 811f20aaa5 d1e14e2cc0
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 24 11:59:43 2018 +0300
Merge branch 'master' into preload
* master: (29 commits)
Make php_plain_files_wrapper to be writable (workaround for swoole)
Remove phpdbg parser files generated by bison
Fix conflicts in phpdbg parser
Refetetch function name on exceptional path to allow better code on fast code path.
fix typo in sysvsem.c
Fixed bug #50675
bump to 7.2.13-dev
[ci skip] Update NEWS wrt. php-7.3.0RC4 tagging
Inlining in the most frequently used code paths
Fixed test failurs introduced by 9c144e0d82
Use persistent strings only for persistent connections
Fix accessibility checks for dynamic properties
Updated to version 2018.6 (2018f)
Updated to version 2018.6 (2018f)
Updated to version 2018.6 (2018f)
Fix arginfo and clean up fpm_get_status
Defragment two Zend related Makefile fragments together
[ci skip] Remove automake and aclocal in comments
Fix #75282 : xmlrpc_encode_request() crashes
Fix tests for ICU 63.1
...
commit 811f20aaa5030035666d9f325dd7c64632c70a50
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 22 14:10:49 2018 +0300
Added information about preloading to opcache_get_status()
commit 093e8b1bbffdc07d217a543613ea14c3eeac710e
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Oct 19 13:46:23 2018 +0300
Added warning message
commit a2ba970ce3d0ac51ebfbe1bfc2dc7b99b9750a75
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Oct 19 13:35:40 2018 +0300
Added test
commit b67e28367c11db50360e664a7ad6ac95b393f2e4
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Oct 19 13:33:12 2018 +0300
Don't preload functions declared at run-time.
commit b0139dc22854ee000586ef83c149d7d25181da60
Merge: a609520adb 3fe698b904
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Oct 19 13:23:14 2018 +0300
Merge branch 'master' into preload
* master:
Mark "top-level" functions.
Don't initialize static_member_tables during start-up, when inherit internal classes.
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
Fix #77035 : The phpize and ./configure create redundant .deps file
Remove outdated PEAR artefacts
Fix tests/output/bug74815.phpt generating errors.log
Revert "Use C++ symbols, when C++11 or upper is compiled"
Use C++ symbols, when C++11 or upper is compiled
Added new line
Remove stamp-h
Move all testing docs to qa.php.net
Fix a typo in UPGRADING.INTERNALS
Fix test when it's run on another drive
[ci skip] Update UPGRADING wrt. tidyp support
Fixed incorrect reallocation
Fix #77027 : tidy::getOptDoc() not available on Windows
Run CI tests under opcache.protect_memory=1
commit a609520adbc0bf12701d467bae4a016fde43231e
Merge: ac8f45f61b b6ac50f9e6
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 17:01:05 2018 +0300
Merge branch 'master' into preload
* master:
Fixed comment
Micro optimizations
Mark "top-level" classes
commit ac8f45f61b561af9aee629232bc3705143ceaac3
Merge: 632b30b545 d57cd36e47
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 15:53:41 2018 +0300
Merge branch 'master' into preload
* master:
Immutable clases and op_arrays.
commit 632b30b5451c8fdf0879a3ba4d937ff4ecfc8ce7
Merge: d33908a99a cd0c36c3f9
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 15:04:43 2018 +0300
Merge branch 'immutable' into preload
* immutable:
Remove the "auto" encoding
Fixed bug #77025
Add vtbls for EUC-TW encoding
commit cd0c36c3f943849e5b97a8dbe2dd029fbeab3df9
Merge: 4740dabb84 ad6738e886
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 14:43:38 2018 +0300
Merge branch 'master' into immutable
* master:
Remove the "auto" encoding
Fixed bug #77025
Add vtbls for EUC-TW encoding
commit d33908a99a3c746f188e268df3db541591f6fcc2
Merge: 21e0bebca3 4740dabb84
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 14:14:23 2018 +0300
Merge branch 'immutable' into preload
* immutable:
Reverted back ce->iterator_funcs_ptr. Initialize ce->iterator_funcs_ptr fields in immutable classes.
commit 4740dabb843c6d4f7f866b4a2456073c9eaf4c77
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 14:12:28 2018 +0300
Reverted back ce->iterator_funcs_ptr. Initialize ce->iterator_funcs_ptr fields in immutable classes.
commit 21e0bebca3e6fff3c3484ee46f9aa3ac4e98eaeb
Merge: c78277ae84 ad7a78b253
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 12:29:59 2018 +0300
Merge branch 'immutable' into preload
* immutable:
Added comment
Added type cast
Moved static class members initialization into the proper place.
Removed redundand assertion
Removed duplicate code
Hide offset encoding magic in ZEND_MAP_PTR_IS_OFFSET(), ZEND_MAP_PTR_OFFSET2PTR() and ZEND_MAP_PTR_PTR2OFFSET() macros.
typo
Remove unused variable makefile_am_files
Classify object handlers are required/optional
Add support for getting SKIP_TAGSTART and SKIP_WHITE options
Remove some obsolete config_vars.mk occurrences
Remove bsd_converted from .gitignore
Remove configuration parser and scanners ignores
Remove obsolete buildconf.stamp from .gitignore
[ci skip] Add magicdata.patch exception to .gitignore
Remove outdated ext/spl/examples items from .gitignore
Remove unused test.inc in ext/iconv/tests
commit ad7a78b253be970db70c2251e66f9297d8e7f829
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:46:30 2018 +0300
Added comment
commit 0276ea51875bab37be01a4dc5e5a047c5698c571
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:42:43 2018 +0300
Added type cast
commit c63fc5d5f19c58498108d1698055b2b442227eb3
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:36:51 2018 +0300
Moved static class members initialization into the proper place.
commit b945548e9306b1826c881918858b5e5aa3eb3002
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:21:03 2018 +0300
Removed redundand assertion
commit d5a41088401814c829847db212488f8aae39bcd2
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:19:13 2018 +0300
Removed duplicate code
commit 8dadca8864e66de70a24bdf1181bcf7dd8fb27d7
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:05:43 2018 +0300
Hide offset encoding magic in ZEND_MAP_PTR_IS_OFFSET(), ZEND_MAP_PTR_OFFSET2PTR() and ZEND_MAP_PTR_PTR2OFFSET() macros.
commit 9ef07c88bd76801e2d4fbfeab3ebfd6e6a67ac5f
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 10:48:29 2018 +0300
typo
commit a06f0f3d3aba53e766046221ee44fb9720389ecc
Merge: 94099586ec 3412345ffe
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 10:47:07 2018 +0300
Merge branch 'master' into immutable
* master:
Remove unused variable makefile_am_files
Classify object handlers are required/optional
Add support for getting SKIP_TAGSTART and SKIP_WHITE options
Remove some obsolete config_vars.mk occurrences
Remove bsd_converted from .gitignore
Remove configuration parser and scanners ignores
Remove obsolete buildconf.stamp from .gitignore
[ci skip] Add magicdata.patch exception to .gitignore
Remove outdated ext/spl/examples items from .gitignore
Remove unused test.inc in ext/iconv/tests
commit c78277ae84b21067744d1701949e4e1fadd8872a
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Oct 16 17:25:35 2018 +0300
Preloadsing support for opcache restart
commit f76a955c02f6a033d4656d5e0d9dad9a8e83cc86
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Oct 16 13:52:36 2018 +0300
Fixed incorrect signal handlers overriding
commit 0810ce0d8165d4b752267f035f9fa0aaa1698ceb
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 15 23:38:48 2018 +0300
An attempt to implemnt "preloading" ability.
commit 94099586ec599117581ca01c15b1f6c5f749e23a
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 15 23:34:01 2018 +0300
Immutable clases and op_arrays
2018-11-14 16:46:05 +03:00
Dmitry Stogov
ba99aa133c
Fixed issues related to optimization and persitence of classes linked with interfaces, traits or internal classes.
2018-11-14 16:32:07 +03:00
Dmitry Stogov
53ea09e84d
Added possiblity to avoid signal handlers reinitialization on each request.
2018-11-14 16:26:14 +03:00
Dmitry Stogov
8bda22592e
Eliminate useless $this related check
2018-11-14 11:33:14 +03:00
Dmitry Stogov
5ebefa74cf
Eliminate useless $this related checks
2018-11-14 03:46:42 +03:00
Dmitry Stogov
54a7d03934
Replace zend_parse_method_parameters() by zend_parse_parameters() and avoid useless checks.
2018-11-14 03:32:19 +03:00
Dmitry Stogov
c6ad0b92b7
Replace getThis() by EX(This), when additional check is not necessary.
2018-11-14 02:44:25 +03:00
Dmitry Stogov
6bb94eacd7
Fixed tests
2018-11-13 17:00:06 +03:00
Joe Watkins
177d45b7e7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Validate length on socket_write
2018-11-13 13:00:50 +01:00
Joe Watkins
8a11c9ee76
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Validate length on socket_write
2018-11-13 13:00:08 +01:00
Joe Watkins
ce4eb89976
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Validate length on socket_write
2018-11-13 12:58:23 +01:00
Thiago Carvalho
ec2e7a2d48
Validate length on socket_write
2018-11-13 12:56:37 +01:00
Nikita Popov
12cbe930cd
Merge branch 'PHP-7.3'
2018-11-13 12:31:44 +01:00
Jan Rękorajski
f76be1a0d6
Fix compilation on x32
...
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org >
2018-11-13 12:31:00 +01:00
Christoph M. Becker
78fac5ed95
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77141 : Signedness issue in SOAP when precision=-1
2018-11-12 23:25:38 +01:00
Christoph M. Becker
512b93e9d6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77141 : Signedness issue in SOAP when precision=-1
2018-11-12 23:24:48 +01:00
Christoph M. Becker
77646d2fd9
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77141 : Signedness issue in SOAP when precision=-1
2018-11-12 23:22:16 +01:00
Christoph M. Becker
f6079e3c56
Fix #77141 : Signedness issue in SOAP when precision=-1
...
According to php_gcvt(), we assume at most 17 fractional digits for
negative precision.
2018-11-12 23:19:30 +01:00
Christoph M. Becker
86c6b3bdcd
Support SQLite3 @name notation
...
Besides the common `:param` notation to designate named parameters in
prepared statements, SQLite3 also supports `@param` and `$param`.
While the latter is mostly to support the Tcl programming language, and
would be confusing for PHP's sqlite3 binding due to the similarity with
string interpolation, the former is common under .NET and raises no
such issue. Therefore we add support for it.
This patch has been developed in cooperation with @BohwaZ.
2018-11-11 14:55:34 +01:00
Peter Kokot
f0251a8b16
Remove lexer files generated by RE2C
...
This patch removes generated lexer files by re2c during the build
process so they are not tracked by Git yet can be still shipped when
PHP is released. The genfiles script additionally provides generation
of these lexer files when creating a release of the PHP source code.
The genfiles script refactorings:
- added file header
- echoing steps instead of comments
- cleaning only lines starting with `#line`
- eval removed in favor of direct executed commands
- the debug mode `set -x` removed
- script can be called from any path
- improved comments
2018-11-11 02:55:46 +01:00
Anatol Belski
1c873c1191
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update libmagic.patch [ci skip]
Update libmagic.patch [ci skip]
2018-11-10 22:03:07 +01:00
Anatol Belski
ee50461e4b
Update libmagic.patch [ci skip]
2018-11-10 22:02:44 +01:00
Anatol Belski
df9c58e27a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update libmagic.patch [ci skip]
2018-11-10 22:02:24 +01:00
Anatol Belski
1550451020
Update libmagic.patch [ci skip]
2018-11-10 22:01:49 +01:00
Anatol Belski
854691922a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fork test with pcre.jit=0
2018-11-10 20:07:52 +01:00
Anatol Belski
b50d93bc11
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fork test with pcre.jit=0
2018-11-10 20:07:25 +01:00
Anatol Belski
3fd46e19ac
Fork test with pcre.jit=0
2018-11-10 20:06:47 +01:00
Anatol Belski
d0226995c9
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Rework magic data
2018-11-10 18:26:04 +01:00
Anatol Belski
0e38909170
Rework magic data
...
Still upstream contains some slower patterns. Those might need to
be patched, if regressions arise.
2018-11-10 18:22:44 +01:00
Anatol Belski
3c0ac24258
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix regex
Fix regex
2018-11-10 12:13:29 +01:00
Anatol Belski
992e4fbc65
Fix regex
2018-11-10 12:13:03 +01:00
Anatol Belski
1c2518f906
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix regex
2018-11-10 12:12:25 +01:00
Anatol Belski
9d77bf0978
Fix regex
2018-11-10 12:11:02 +01:00
Anatol Belski
d0d19c1764
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Rework magic data
2018-11-10 01:32:52 +01:00
Anatol Belski
982a62819e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Rework magic data
2018-11-10 01:32:35 +01:00
Anatol Belski
60adea5496
Rework magic data
...
Avoid patching where vanilla data suffices. More precisely, avoid data
using [:space:] posix class in regex, as it is likely to cause performance
regressions.
2018-11-10 01:28:23 +01:00
Anatol Belski
203640bb70
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Sync one more upstream libmagic piece
2018-11-10 00:20:56 +01:00
Anatol Belski
3061d7bdad
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync one more upstream libmagic piece
2018-11-10 00:20:39 +01:00
Anatol Belski
22f71a66ec
Sync one more upstream libmagic piece
2018-11-10 00:19:42 +01:00
Mizunashi Mana
8021e0f5dc
Suppress already used warning
2018-11-09 11:09:16 +01:00
Mizunashi Mana
17d76e530d
Ignore getaddrinfo failed message
2018-11-08 21:46:03 +01:00
Mizunashi Mana
c180c8c3bd
Clean testfile
2018-11-08 14:29:39 +01:00
Mizunashi Mana
705a31b4e5
Skip SQLite3::loadExtension tests if SQLITE_OMIT_LOAD_EXTENSION defined
2018-11-08 14:27:12 +01:00
Nikita Popov
50e7e3a653
Use new option name in travis/compile.sh
2018-11-07 20:22:41 +01:00
Mizunashi Mana
632b6e7aac
Add putenv for setlocale for gettext tests
2018-11-07 18:54:47 +01:00
Levi Morrison
74d15b535a
Remove do_bind_inherited_class; use do_bind_class
...
Pass NULL as the second parameter. I don't know if in the past these
differed more, but there isn't any point to having both of them
anymore.
2018-11-07 18:54:00 +01:00
Christoph M. Becker
b7b3a65e1d
Avoid needless string duplication
...
Cf. <https://github.com/php/php-src/pull/3636#issuecomment-436638833 >.
2018-11-07 17:10:35 +01:00
Eli Schwartz
2d03197749
ext/gd: Use pkg-config to detect the availability of freetype2
...
The latest version of freetype2 does not install freetype-config by
default, but pkg-config support has been there for approximately 15
years. In order to reliably detect freetype2, pkg-config *must* be used.
See:
https://savannah.nongnu.org/bugs/?53093
https://bugs.php.net/bug.php?id=76324
2018-11-07 13:05:47 +01:00
Dmitry Stogov
f200298075
Avoid double copying
2018-11-07 14:23:34 +03:00
Dmitry Stogov
8c7aa88e2d
Fixed crash introduced by bfaf662ac2
2018-11-07 09:36:21 +03:00
Dmitry Stogov
bc53642c05
*printf() optimization and v*printf() warning message fix.
2018-11-07 02:40:15 +03:00
Dmitry Stogov
cdbbc802b4
Removed dead checks
2018-11-06 23:11:28 +03:00
Dmitry Stogov
c994d90db2
Reorder conditions and set expectation.
2018-11-06 22:37:04 +03:00
Dmitry Stogov
bfaf662ac2
Micro-optimization
2018-11-06 17:04:17 +03:00
Christoph M. Becker
9717a6d3a7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS wrt. php-7.3.0RC5 tagging
2018-11-06 11:46:47 +01:00
Christoph M. Becker
155aecd397
[ci skip] Update NEWS wrt. php-7.3.0RC5 tagging
2018-11-06 11:46:20 +01:00
Anatol Belski
049f239cfc
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS [ci skip]
Update NEWS [ci skip]
2018-11-05 22:54:17 +01:00
Anatol Belski
ddd54401db
Update NEWS [ci skip]
2018-11-05 22:53:45 +01:00
Anatol Belski
1cab286151
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
2018-11-05 22:53:19 +01:00
Anatol Belski
fab72d7571
Update NEWS [ci skip]
2018-11-05 22:53:01 +01:00
Anatol Belski
2e336329e0
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update libmagic.patch [ci skip]
Update libmagic.patch [ci skip]
2018-11-05 22:25:54 +01:00
Anatol Belski
a957af6c06
Update libmagic.patch [ci skip]
2018-11-05 22:25:31 +01:00
Anatol Belski
b996611531
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update libmagic.patch [ci skip]
2018-11-05 22:25:04 +01:00
Anatol Belski
dbb2cce968
Update libmagic.patch [ci skip]
2018-11-05 22:24:27 +01:00
Anatol Belski
956708acac
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Declare function proto in header
Declare function proto in header
2018-11-05 21:30:02 +01:00
Anatol Belski
29dcf19f8b
Declare function proto in header
2018-11-05 21:29:35 +01:00
Anatol Belski
4aa77c380c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Declare function proto in header
2018-11-05 21:29:06 +01:00
Anatol Belski
0e33c2822c
Declare function proto in header
2018-11-05 21:28:04 +01:00
Christoph M. Becker
34e65f73bc
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76825 : Undefined symbols ___cpuid_count
2018-11-05 18:25:22 +01:00
Christoph M. Becker
7625f972db
Fix #76825 : Undefined symbols ___cpuid_count
...
Apparently, the presence of `cpuid.h` is not necessarily sufficient to
guarantee the availability of `__cpuid_count()`. We therefore test for
the latter explicitly.
2018-11-05 18:24:39 +01:00
Remi Collet
dbef28ea8f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
NEWS
Fix : #77110 undefined symbol zend_string_equal_val in C++ build
2018-11-05 17:06:49 +01:00
Remi Collet
d78479737c
NEWS
2018-11-05 17:06:40 +01:00
Remi Collet
d53ecd040b
Fix : #77110 undefined symbol zend_string_equal_val in C++ build
2018-11-05 17:05:49 +01:00
Dan Wallis
eb1233533e
Fix #77105 : Use position:sticky for <th> in phpinfo()
...
This ensures tables remain legible when scrolling. If the user agent
does not support this feature, then it will gracefully degrade to
existing behaviour.
This patch implements: https://bugs.php.net/bug.php?id=77105
2018-11-05 14:27:06 +01:00
Anatol Belski
c364edf7f2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Implement handling for JIT recognition when cross compiling
2018-11-05 01:16:54 +01:00
Anatol Belski
68ad401b34
Implement handling for JIT recognition when cross compiling
2018-11-05 01:15:09 +01:00
Anatol Belski
6dfcd4288e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Backport 7f5f4601 for 7.2
2018-11-04 17:00:02 +01:00
Anatol Belski
db1534b1b4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Backport 7f5f4601 for 7.2
2018-11-04 16:59:27 +01:00
Anatol Belski
c621182c42
Backport 7f5f4601 for 7.2
2018-11-04 16:57:55 +01:00
Christoph M. Becker
b6f5183816
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76348 : WSDL_CACHE_MEMORY causes Segmentation fault
2018-11-04 16:48:13 +01:00
Christoph M. Becker
579d76d87b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76348 : WSDL_CACHE_MEMORY causes Segmentation fault
2018-11-04 16:47:13 +01:00
Christoph M. Becker
0afc818976
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76348 : WSDL_CACHE_MEMORY causes Segmentation fault
2018-11-04 16:44:45 +01:00
Christoph M. Becker
625f614cb1
Fix #76348 : WSDL_CACHE_MEMORY causes Segmentation fault
...
“Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end.”
2018-11-04 16:40:27 +01:00
Anatol Belski
424d5a60dd
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Rework places in libmagic regarding previous CVE-2014-3538 fixes
2018-11-04 13:18:48 +01:00
Anatol Belski
7f5f46013b
Rework places in libmagic regarding previous CVE-2014-3538 fixes
...
CVE-2014-3538 was fixed upstream, but the old patch was still kept in
the PHP port. This patch causes performance regressions when PCRE JIT is
not enabled. This is fixed by applying the relevant original code from
the newer libmagic, which makes the old patch obsolete as the
CVE-2014-3538 tests still pass.
2018-11-04 13:11:28 +01:00
Anatol Belski
d4761b64e7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Change the way JIT availability is checked
2018-11-03 20:51:22 +01:00
Anatol Belski
aea411657e
Change the way JIT availability is checked
...
The pcre2_jit_compile_8 sysmbol is always available, even JIT might be
not. If JIT is not enabled explicitly and is enabled in the PHP runtime,
this will lead to a malfunction. This approach ensures JIT is indeed
available on the given platform. For cross compilation this might get
complicated, as it would require an explicit processor architecture and
PCRE2 version check.
Another solution for this case is to run pcre2_config at runtime. That
however would require more condition checks that would impact
architectures where JIT is available.
2018-11-03 20:50:05 +01:00
Mizunashi Mana
e412195772
Fix a test for ldap extension
2018-11-03 17:37:47 +01:00
Nikita Popov
429c5a0a82
Merge branch 'PHP-7.3'
2018-11-02 14:34:11 +01:00
Nikita Popov
d92f7630f7
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-02 14:30:50 +01:00
Nikita Popov
4daa413898
Fixed bug #77092
...
Weird that this worked for so long, probably because nearly all
ext/standard functions use fast ZPP rather than ordinary ZPP.
2018-11-02 14:29:03 +01:00
Zeev Suraski
9afce019e0
Future-proof email addresses
2018-11-01 18:35:32 +02:00
Zeev Suraski
67e0138c0d
Future-proof email addresses...
2018-11-01 18:30:28 +02:00
Zeev Suraski
54dc07f3dc
Update email addresses. We're still @Zend, but future proofing it...
2018-11-01 17:20:07 +02:00
Rasmus Lerdorf
b91690c892
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix stray newline that caused this test to fail
2018-10-31 11:41:42 -07:00
Rasmus Lerdorf
99a9e85c65
Fix stray newline that caused this test to fail
2018-10-31 11:41:17 -07:00
Rasmus Lerdorf
46b25ee2a9
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix session tests that fail if error_log is set
2018-10-31 10:59:31 -07:00
Rasmus Lerdorf
4e8195769d
Fix session tests that fail if error_log is set
2018-10-31 10:58:45 -07:00
Rasmus Lerdorf
fcb2e1da09
Merge branch 'PHP-7.3'
...
* PHP-7.3:
This test needs to log to stdout
2018-10-31 10:44:01 -07:00
Rasmus Lerdorf
1954c7e1c6
This test needs to log to stdout
2018-10-31 10:43:45 -07:00
Anatol Belski
9c9178af51
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix error condition
Fixed bug #77081 ftruncate() changes seek pointer in c mode
2018-10-30 20:50:07 +01:00
Anatol Belski
ee9d879f57
Fix error condition
2018-10-30 20:43:45 +01:00
Anatol Belski
8827cc34cf
Fixed bug #77081 ftruncate() changes seek pointer in c mode
2018-10-30 20:42:00 +01:00
Christoph M. Becker
0a1ab6ec2f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix and improve test case
2018-10-30 18:55:16 +01:00
Christoph M. Becker
2816a3fdfa
Fix and improve test case
...
We fix the erroneous doctype declaration, clarify the expectation, and
add a comment to clarify the purpose of the tag mismatch in the XML.
2018-10-30 18:53:03 +01:00
Dmitry Stogov
bf38e6c10a
Keep original value of "prototype"
2018-10-30 16:13:45 +03:00
Dmitry Stogov
2fefa8c61e
Call function_add_ref() in proper place
2018-10-30 15:08:45 +03:00
Dmitry Stogov
e5edaed69b
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
Updated to version 2018.7 (2018g)
Updated to version 2018.7 (2018g)
Updated to version 2018.7 (2018g)
2018-10-30 15:08:30 +03:00
Derick Rethans
6ad8edee92
Updated to version 2018.7 (2018g)
2018-10-30 11:25:49 +00:00
Derick Rethans
dcebc1d3cf
Empty merge
2018-10-30 11:25:49 +00:00
Derick Rethans
10255a0cd9
Updated to version 2018.7 (2018g)
2018-10-30 11:25:48 +00:00
Derick Rethans
fcefc28ce1
Empty merge
2018-10-30 11:25:47 +00:00
Derick Rethans
e58388ea6d
Updated to version 2018.7 (2018g)
2018-10-30 11:25:45 +00:00
Dmitry Stogov
ebf44fbbda
Reslove inherited op_array references once afrer all optimizations.
2018-10-30 13:16:49 +03:00
Peter Kokot
4828fb7b6b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
fix bug #77079
2018-10-30 00:24:20 +01:00
Peter Kokot
17df3a194b
[ci skip] Update NEWS
2018-10-30 00:24:07 +01:00
Peter Kokot
82115849b3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
fix bug #77079
2018-10-30 00:23:38 +01:00
Peter Kokot
69496a04ff
[ci skip] Update NEWS
2018-10-30 00:23:20 +01:00
Peter Kokot
b1de24e68c
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
fix bug #77079
2018-10-30 00:22:26 +01:00
Peter Kokot
91a1111160
[ci skip] Update NEWS
2018-10-30 00:22:03 +01:00
Jon Allen
8775bead3a
fix bug #77079
2018-10-30 00:19:07 +01:00
Nikita Popov
6da3eac56a
Add missing null initialization
2018-10-29 20:57:21 +01:00
Nikita Popov
837843ff4a
Remove redundant mbfl_string_init calls
...
No need to do this if we already fully initialize the string.
2018-10-29 20:29:23 +01:00
Nikita Popov
a7d6b2c1fb
Use zend_string for mbstring last encoding cache
...
Saves us a string duplication, as well as case-insensitive string
comparisons for the likely case of an interned string encoding.
2018-10-29 20:29:22 +01:00
Dmitry Stogov
ea2e67876a
Stop Apache if PHP wasn't started successful.
2018-10-29 21:39:26 +03:00
Dmitry Stogov
7a5416b1c5
Execute zend_post_startup() with module_initialized flag set.
2018-10-29 21:38:57 +03:00
Dmitry Stogov
2491b7b65a
Removed dead code
2018-10-29 21:38:25 +03:00
Nikita Popov
493b534c84
Merge branch 'PHP-7.3'
2018-10-29 18:56:43 +01:00
Nikita Popov
09c7108f74
Fix mb_strrpos() with encoding passed as 3rd param
2018-10-29 18:56:17 +01:00
Dmitry Stogov
359f19edc9
Optimize substr() edge-case conditions
2018-10-29 13:11:41 +03:00
Christoph M. Becker
52d91260df
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update UPGRADING
2018-10-28 12:48:49 +01:00
Christoph M. Becker
eca3b9629f
[ci skip] Update UPGRADING
...
PR #3317[1] is relevant for the migration guide, so we add a respective
note in UPGRADING.
[1] <https://github.com/php/php-src/pull/3317 >
2018-10-28 12:48:07 +01:00
Christoph M. Becker
c37beb7eb5
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #71592 : External entity processing never fails
2018-10-27 17:31:29 +02:00
Christoph M. Becker
829b0df77b
Fix #71592 : External entity processing never fails
...
If the callback set via `xml_set_external_entity_ref_handler()` returns
a falsy value, parsing is supposed to stop and the error number set to
`XML_ERROR_EXTERNAL_ENTITY_HANDLING`. This is already correctly done
by the libexpat binding, but the libxml2 binding ignores the return
value. We fix this by calling `xmlStopParser()` which is available as
of libxml 2.1.0[1] (PHP-7.1 requires at least libxml 2.6.11 anyway),
and setting the desired `errNo` ourselves.
[1] <http://xmlsoft.org/news.html >
2018-10-27 17:30:13 +02:00
Christoph M. Becker
0d6490598d
Add TIDY_TAG_* constants supported by libtidy 5
...
Cf. <http://api.html-tidy.org/tidy/tidylib_api_5.0.0/tidyenum_8h.html#ae5b597c0999422ff383f08ab595ef5e8a16d20becf3c3cb022ddabccc83d8c314 >.
2018-10-27 16:17:09 +02:00
Gabriel Caruso
388c21e764
Add is_iterable to opcache Optimizer
2018-10-26 08:14:45 -03:00
Dmitry Stogov
68694c9997
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
[ci skip] Fix indentation in UPGRADING.
2018-10-25 23:42:58 +03:00
Dmitry Stogov
10abc1f010
Don't wrap php_module_shutdown() with zend_try. executor_globals are released in ZTS build, and this leads to crash.
2018-10-25 23:41:26 +03:00
Adam Harvey
1eb5bc021b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Fix indentation in UPGRADING.
2018-10-25 11:59:23 -07:00
Adam Harvey
bca0a7e285
[ci skip] Fix indentation in UPGRADING.
2018-10-25 11:59:10 -07:00
Dmitry Stogov
33e777acbf
Improved shared interned strings handling. The previous implementation worked incorrectly in ZTS build. It changed strings only in function/class tables of one thread. Now all threads gets the same shared interned strings. Also, on shutdown, we don't try to replace SHM interned strings back to process strings, but delay dettachment of SHM instead.
2018-10-25 20:30:51 +03:00
Dmitry Stogov
f33da6f338
Don't use request heap at shutdown
2018-10-25 19:24:39 +03:00
Nikita Popov
3d415644f7
Merge branch 'PHP-7.3'
2018-10-25 16:44:54 +02:00
Nikita Popov
b9431ef4d5
Don't optimize function if inference failed
...
This was respected only for the single-function optimizations, not
in func-info mode.
2018-10-25 16:44:24 +02:00
Nikita Popov
78c2e0e342
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-25 16:44:19 +02:00
Nikita Popov
902ec36710
Merge branch 'PHP-7.1' into PHP-7.2
2018-10-25 16:43:36 +02:00
Nikita Popov
f1ceec5533
Fixed bug #77058
...
Account for the fact that undef must be interpreted as null for
the purposes of INC/DEC inference.
2018-10-25 16:37:41 +02:00
Nikita Popov
e7153e8a2f
Improve "narrowing" error message
...
By including the opcode name.
2018-10-25 16:36:23 +02:00
Anatol Belski
40808ac41e
Remove unused var
2018-10-24 23:37:32 +02:00
Peter Kokot
22c249347e
Remove ext/json parser files generated by bison
...
The parser files for ext/json are generated by bison from the *.y file.
Parser files in Zend and sapi/phpdbg already follow such approach of
these files being ignored from tracking in the Git repository and they
are shipped via the release packages later on. This way the end users
still don't need to have bison dependency installed to install PHP.
The genfiles script was refactored to generate the ext/json parser and
lexer files.
2018-10-24 20:13:04 +02:00
Peter Kokot
220a2239a6
Fix run-tests.php for running phpdbg and certain test sections
...
Certain sections, such as --EXTENSIONS--, --SKIPIF--, and --CLEAN--
require to be executed using only PHP CLI or PHP CGI SAPIs and cannot be
processed with the phpdbg.
2018-10-24 16:21:57 +02:00
Peter Kokot
0b63544f25
Normalize .gitignore
...
Changes:
- Added introductory paragraph to explain the file for newcomers and
where to ignore local editor configurations as a common practice
when using Git.
- Patterns organized into several main context sections for a better
overview of the php-src directory structure and which files get
generated where.
- Added comments describing reasons for ignoring particular file(s).
- Patterns normalized according to Git ignore blob patterns. Absolute
paths are different than relative paths and similar fixes.
- Folders patterns have appended ending slash for readability to
distinguish them from files.
Removed ignore patterns:
- Removed `sapi/phpdbg/build` pattern since it doesn't seem to be
relevant anymore in the php-src repository.
- The `acconfig.h` pattern removed in favor of the more recent Autoconf
versions.
- Removed patterns for `.FBCIndex` `.FBCLockFolder` folders. These were
generated on old Mac OS systems [1] using the Sherlock [2] software
and can be today ignored using a global gitignore file if needed.
Newer macOS systems don't generate these anymore.
- Removed `php_version.h` pattern since the `main/php_version.h` file is
tracked by Git.
- Removed `*.mk` pattern since few *.mk files are tracked by Git and new
ones aren't generated during build process.
- Removed `**/tests/**/*.txt` pattern. This has been refactored via
595a395cb9 and current tests also clean
the generated `*.txt` files as soon as they are executed. Since there
are several `*.txt` files in the repository tracked by Git already and
renaming them would be counter productive so the pattern is now removed.
In case there will be a need to adjust it, we can rename the generated
`*.txt` into something else instead (ideally into `*.tmp`) to not
conflict with already tracked `*.txt` files in tests.
- Removed `ext/*/scan_makefile_in.awk` and `scan_makefile_in.awk` patterns
since these are already included in the `/ext/*/build/` pattern.
- Removed the `/ext/*/libs.mk` pattern since these auxilary Makefiles
have been used in previous build system and made obsolete via the commit
9d9d39a0de .
- Removed pattern for configuration header `ext/pdo_sqlite/sqlite3.h` since
it is not generated anymore in the current code.
- Removed `main/streams/build-defs.h` pattern since this file is not
generated.
- Removed `test.php3` pattern. These don't seem to be present in the current
PHP source code nor used since PHP 3.
- Removed `/ext/oci8/tests/*.vglog` pattern since the tests don't seem to
produce these files.
- Removed pattern for Visual Studio's `*.ncb` files. Since the Visual
Studio 2010 they are no longer used.
- Removed `ext/sqlite3/tests/phpsql*` pattern. It was part of the `ext/sqlite/tests`.
- Removed `shlibtool` pattern since the shlibtool file is not generated
anymore. It was once part of the libtool usage and customized naming
used in the previous build system in Makefiles. Such naming was later
removed and only libtool was used.
- Removed `meta_ccld` pattern since it is no longer relevant via
a5b55416f4
- Pattern `meta_cc` has been removed via e5176fe60a .
- Pattern `dynlib.m4` removed since the file is no longer generated via
9d9d39a0de
- Pattern `debug.log` removed since the Autoconf Macro PHP_DEBUG_MACRO
is not called anymore and this file not generated anymore.
- Pattern `results.txt` removed. It was once part of the logging results
of test files by Netware and previous Windows builds.
- Removed `_libs` pattern in favor of only `.libs`. These directories
were once generated by Automake and Libtool on systems that didn't
support the dot folder `.libs` (MS-DOS).
- Removed `*.opt` pattern since it was used by Visual Studio 6. Later
versions of Visual Studio don't use these anymore.
- Removed `*.plg` pattern. It was build log generated by Visual Studio 6.
- Removed `core` pattern since it was probably related to commit
fd7153b0f3 and is today not used.
- Removed ˙*.˙, ˙diff`, and ˙*.tgz` patterns since they don't seem to be
generated in the current code on the first glance. In case these will be
one day required to ignore again, they can be simply added back again.
- Removed Emacs specific interlock files pattern `.#*`. The number of
editors and IDEs specific files is very big. Emacs editors also produce
some other files such as `#*#` for autosave feature, which were previously
not ignored. To fully and properly support all additional patterns these
could be added to .gitignore files. A much more sustainable and better
practice is to use a global gitignore file on the local system or the
`.git/info/exclude` per repository basis for these in particular.
Added patterns:
- Added new pattern for `*.obj` standard object files in the Windows
section. These are generated by Visual Studio.
- Added `/ext/*/run-tests.php` patterns for extensions.
- Reversed patterns for particular tracked `/win32/build/Makefile`, `config.h`
files and `.patch` files.
- Added patterns for generated dtrace files `/ext/oci8/oci8_dtrace_gen.h`
Other changes:
- All `conftest*` patterns merged into a single one.
- Pattern `*.mem` made more specific where the memory check files get
generated by `run-tests.php -m`, i.e. `**/tests/**/*.mem`.
- Fixed `/Zend/zend_dtrace_gen.h.bak` `hbak` typo.
[1] http://www.westwind.com/reference/OS-X/invisibles.html
[2] https://en.wikipedia.org/wiki/Sherlock_(software)
2018-10-24 16:20:52 +02:00
Dmitry Stogov
b6ef8998d5
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed reseting of interned strings buffer.
2018-10-24 15:46:22 +03:00
Dmitry Stogov
335fb94d54
Fixed reseting of interned strings buffer.
2018-10-24 15:45:34 +03:00
Dmitry Stogov
a404383118
Fixed build in directory different from source
2018-10-24 12:45:04 +03:00
Dmitry Stogov
d1e14e2cc0
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Make php_plain_files_wrapper to be writable (workaround for swoole)
2018-10-24 11:50:18 +03:00
Dmitry Stogov
770fe51bfd
Make php_plain_files_wrapper to be writable (workaround for swoole)
2018-10-24 11:49:44 +03:00
Joe Watkins
33fa02ea38
bump versions
2018-10-24 08:43:27 +02:00
Peter Kokot
c0446d55a2
Remove phpdbg parser files generated by bison
...
The parser files for phpdbg are generated by bison from the *.y file.
Parser files in Zend already follows such approach of these files being
ignored from tracking in the Git repository and they are shipped via
the release packages. This way the end user still don't need to have
bison dependency installed to install PHP.
The genfiles script was refactored to generate the phpdbg parser and lexer
files.
Empty comment in phpdbg parser y template file has been changed to the
YACC compliant /* empty */ instead of custom one.
2018-10-23 19:04:13 +02:00
Nikita Popov
1362d8e103
Fix conflicts in phpdbg parser
2018-10-23 16:22:16 +02:00
Dmitry Stogov
e3688c2180
Refetetch function name on exceptional path to allow better code on fast code path.
2018-10-23 17:12:49 +03:00
Nikita Popov
f844a2b29d
Merge branch 'PHP-7.3'
2018-10-23 14:57:21 +02:00
Υоаnn B
5df17425d3
fix typo in sysvsem.c
2018-10-23 14:57:03 +02:00
Nikita Popov
ed7d98ce13
Merge branch 'PHP-7.3'
2018-10-23 14:25:22 +02:00
Nikita Popov
3fb0f34059
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-23 14:24:55 +02:00
Cameron Porter
db47e35373
Fixed bug #50675
...
SOAP: Stop overwriting the node name when creating an XML node
for an object reference.
2018-10-23 14:20:19 +02:00
Remi Collet
9271f9482b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
bump to 7.2.13-dev
2018-10-23 12:16:49 +02:00
Remi Collet
0d273cf95d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump to 7.2.13-dev
Updated to version 2018.6 (2018f)
Updated to version 2018.6 (2018f)
2018-10-23 12:16:31 +02:00
Remi Collet
1d5baf167a
bump to 7.2.13-dev
2018-10-23 12:15:30 +02:00
Christoph M. Becker
46493044f1
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS wrt. php-7.3.0RC4 tagging
2018-10-23 12:11:15 +02:00
Christoph M. Becker
4ffa415500
[ci skip] Update NEWS wrt. php-7.3.0RC4 tagging
2018-10-23 12:10:09 +02:00
Dmitry Stogov
6f91090f6a
Inlining in the most frequently used code paths
2018-10-23 12:46:44 +03:00
Dmitry Stogov
fd080a06d8
Fixed test failurs introduced by 9c144e0d82
2018-10-23 12:46:12 +03:00
Dmitry Stogov
0459640fcd
Use persistent strings only for persistent connections
2018-10-23 10:43:58 +03:00
Nikita Popov
149e6aaa99
Fix accessibility checks for dynamic properties
...
A dynamic property may be shadowed by a private/protected property.
Make sure we check property accessibility for non-indirect
properties as well.
Closes #3626 .
2018-10-22 16:46:33 +02:00
Derick Rethans
fd3d2755dc
Updated to version 2018.6 (2018f)
2018-10-22 12:05:42 +01:00
Derick Rethans
2a0d7036c3
Empty merge
2018-10-22 12:05:42 +01:00
Derick Rethans
c3a8313136
Updated to version 2018.6 (2018f)
2018-10-22 12:05:40 +01:00
Derick Rethans
c22b9e0115
Empty merge
2018-10-22 12:05:40 +01:00
Derick Rethans
41241d109a
Updated to version 2018.6 (2018f)
2018-10-22 12:05:39 +01:00
Jakub Zelenka
751dfc7514
Merge branch 'PHP-7.3'
2018-10-21 19:40:53 +01:00
Jakub Zelenka
c8febbe039
Fix arginfo and clean up fpm_get_status
2018-10-21 19:39:47 +01:00
Peter Kokot
8217cd20f1
Defragment two Zend related Makefile fragments together
...
The two are more logically connected together in the Zend directory.
2018-10-21 15:59:16 +02:00
Peter Kokot
f8fb45facf
[ci skip] Remove automake and aclocal in comments
...
The Automake and aclocal were part of the previous PHP build system
where Automake created Makefile from the Makefile.in templates and
aclocal was used to produce the aclocal.m4. They were removed as
dependencies via 9d9d39a0de and
e715fb00f8 .
2018-10-21 13:06:58 +02:00
Christoph M. Becker
d88b006ad6
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #75282 : xmlrpc_encode_request() crashes
2018-10-21 12:11:57 +02:00
Christoph M. Becker
10800106b3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #75282 : xmlrpc_encode_request() crashes
2018-10-21 12:10:54 +02:00
Christoph M. Becker
502b187ae8
Fix #75282 : xmlrpc_encode_request() crashes
...
Since we allow ext/xmlrpc to be built against a system libxmlrpc(-epi),
we must not `efree` memory which has been allocated via `malloc`. To
distinguish bundled and system libxmlrpc(-epi) we introduce the macro
`HAVE_XMLRPC_BUNDLED` (analogous to how it is done by ext/gd). We
deliberately keep the ugly `#ifdef`s, instead of tucking them away in
an `XMLRPC_FREE()` macro, to not forget that it is a bad idea to fork
and bundle a library, but to also allow building against an unpatched
system lib.
2018-10-21 12:06:55 +02:00
Anatol Belski
63353b95c6
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix tests for ICU 63.1
2018-10-20 23:05:38 +02:00
Anatol Belski
7f8efd9a6e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests for ICU 63.1
2018-10-20 23:04:54 +02:00
Anatol Belski
ba43d5acef
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix tests for ICU 63.1
2018-10-20 23:04:15 +02:00
Anatol Belski
4461fb9c26
Fix tests for ICU 63.1
...
The most of change is U+00A0 vs. new U+202F used in some outputs.
2018-10-20 23:02:06 +02:00
Peter Kokot
04be076a5d
Fix .gitattributes
...
The `crlf` Git attribute has been long deprecated and made obsolete. A
replacement for using `-crlf` is `-text`. That way Git doesn't do
newlines normalization on any system.
Since the phpt files don't need specific line endings in any files
except for some special CR characters in some, this can be also removed
and line normalization can happen on all phpt files. The run-tests.php
file converts the CRLF to LF before running the test.
This patch also sets a `diff` attributes for all *.phpt files. It
helps showing diffs for some phpt files with special characters such
as ASCII control characters which makes Git recognize them as binary and
stops showing commit diffs otherwise
Some additional short info about used Git attributes has been also added
as comments for easier understanding.
Remove -text gitattribute
2018-10-20 22:58:27 +02:00
Khan M Rashedun-Naby
36ae074036
Simplify mb_gpc() code
...
Use a switch (consistent with other places in this file) and also
don't unnecessarily set free_buffer.
2018-10-20 22:30:21 +02:00
Anatol Belski
251bd9c253
Use C++ symbols with C++11, take 2
2018-10-20 10:56:02 +02:00
Peter Kokot
d6c05c6cd1
Rename two *.php files in tests folders
...
Current run-tests.php script produces the `*.php` files from the
*.phpt. So all *.php files in tests folders are ignored by Git.
To avoid confusion and to for bettere consistency this patch renames
two remaining tests/*/*.php files to *.inc and *.phar as current
practice in *.phpt files.
- The `ext/curl/tests/resonder/get.php` to .inc extension
- The `ext/phar/tests/files/pear2coverage.phar.php` to .phar extension
2018-10-20 10:11:29 +02:00
Peter Kokot
addcf2402d
Remove mkdep.awk
...
The `mkdep.awk` file was part of the previous *nix build system and was
used to create a .deps file with a list of dependencies that could be
processed by Automake further on.
Newer build system was done via 9d9d39a0de
and outdated files removed via 22815419f8
so the current file in the PHP source code is not used anymore.
Additionally, the *.slo files were processed by this file. The *.slo
files also used to be generated by older libtool so today, these don't
get generated anymore.
2018-10-20 10:08:54 +02:00
Peter Kokot
82f59a9682
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
Fix #77041 : buildconf should output error messages to stderr
2018-10-20 09:55:33 +02:00
Peter Kokot
13aae9f3d5
[ci skip] Update NEWS
2018-10-20 09:55:07 +02:00
Peter Kokot
b7cef2b008
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
Fix #77041 : buildconf should output error messages to stderr
2018-10-20 09:54:00 +02:00
Peter Kokot
3b8be227bd
[ci skip] Update NEWS
2018-10-20 09:52:46 +02:00
Peter Kokot
0dc15e1885
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
Fix #77041 : buildconf should output error messages to stderr
2018-10-20 09:51:22 +02:00
Peter Kokot
1b936033b0
[ci skip] Update NEWS
2018-10-20 09:48:50 +02:00
Mizunashi Mana
9f5cb626ed
Fix #77041 : buildconf should output error messages to stderr
2018-10-20 09:42:56 +02:00
Dmitry Stogov
3fe698b904
Mark "top-level" functions.
2018-10-19 13:22:29 +03:00
Dmitry Stogov
03384cae3c
Don't initialize static_member_tables during start-up, when inherit internal classes.
2018-10-19 13:21:31 +03:00
Peter Kokot
1257664ca2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
Fix #77035 : The phpize and ./configure create redundant .deps file
2018-10-19 00:12:48 +02:00
Peter Kokot
2224277d7d
[ci skip] Update NEWS
2018-10-19 00:12:34 +02:00
Peter Kokot
74131ca342
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
Fix #77035 : The phpize and ./configure create redundant .deps file
2018-10-19 00:10:22 +02:00
Peter Kokot
b9d8e5d706
[ci skip] Update NEWS
2018-10-19 00:08:57 +02:00
Peter Kokot
5531dde5e9
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
Fix #77035 : The phpize and ./configure create redundant .deps file
2018-10-19 00:07:42 +02:00
Peter Kokot
4be0528476
[ci skip] Update NEWS
2018-10-19 00:06:11 +02:00
Peter Kokot
447b41f6bb
Fix #77035 : The phpize and ./configure create redundant .deps file
...
The `.deps` file(s) was once used by Automake and created to write
dependencies to it. The file creation has been removed via the commit
779c11af21 .
The phpize and ./configure script create a redundant .deps file in a
PECL extension directory which might cause confusions why is it used.
Today it is no longer relevant so this redundant artefact can be
removed in the phpize configure script.
2018-10-19 00:02:09 +02:00
Peter Kokot
00db0e7a04
Remove outdated PEAR artefacts
...
The `pear/scripts`, `pear/php-config`, `pear/phpize`, and
`pear/run-tests` used to be part of the PEAR installation. Now, the
pear installation PHAR file is directly downloaded from pear.php.net
instead.
2018-10-18 23:43:13 +02:00
Peter Kokot
d61c7ae5ed
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix tests/output/bug74815.phpt generating errors.log
2018-10-18 23:40:00 +02:00
Peter Kokot
93427292f6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests/output/bug74815.phpt generating errors.log
2018-10-18 23:39:39 +02:00
Peter Kokot
de9f325c12
Fix tests/output/bug74815.phpt generating errors.log
...
Test tests/output/bug74815.phpt was creating an errors.log file
in project root directory and didn't removed it after the test.
2018-10-18 23:39:00 +02:00
Anatol Belski
f5bc049136
Revert "Use C++ symbols, when C++11 or upper is compiled"
...
This reverts commit 322b97a19a .
GCC 5 vs. 8 seems to be a big deal in this regard. The approach needs
further consideration.
2018-10-18 23:36:46 +02:00
Anatol Belski
322b97a19a
Use C++ symbols, when C++11 or upper is compiled
2018-10-18 23:17:48 +02:00
Dmitry Stogov
a4b33f775e
Added new line
2018-10-18 16:40:24 +03:00
Peter Kokot
370882bb59
Remove stamp-h
...
The stamp-* files can be used as helpers for Makefiles to not redo
certain targets again. The stamp-h are mentioned in the Autoconf docs [1]
to help generate the config.h file.
Since the usage of stamp-h file was removed in 232afa4816
this patch cleans few obsolete occurrences.
This patch also removes two occurrences of `main/stamp-h1` and
`main/streams/stamp-h1` rules in the .gitignore file since they are not
generated with the current build systems anymore. The `stamp-h$am_indx` files
were once generated using aclocal and automake.
[1] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
2018-10-18 08:35:43 +02:00
Peter Kokot
0e60b812c0
Move all testing docs to qa.php.net
...
The qa.php.net currently includes nice collection of information about
tests and how to run them. Instead of maintaining two locations of this
information, this patch removes the README.TESTING from the php-src
repo. Patch for qa.php.net has been sent separately to that repo.
2018-10-18 08:01:22 +02:00
Tyson Andre
78a8b0f0d7
Fix a typo in UPGRADING.INTERNALS
2018-10-17 21:14:46 -04:00
Anatol Belski
7e6ad00cc9
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix test when it's run on another drive
2018-10-18 00:45:43 +02:00
Anatol Belski
bca89bb735
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test when it's run on another drive
2018-10-18 00:45:17 +02:00
Anatol Belski
6a5254bc96
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix test when it's run on another drive
2018-10-18 00:44:43 +02:00
Anatol Belski
fda06127fa
Fix test when it's run on another drive
2018-10-18 00:43:24 +02:00
Christoph M. Becker
0187eeb6e2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update UPGRADING wrt. tidyp support
2018-10-17 23:45:34 +02:00
Christoph M. Becker
24b6779254
[ci skip] Update UPGRADING wrt. tidyp support
...
This is especially noteworthy since `tidy_get_relase()` returns
'unknown' when built against libtidyp, which might break some code
which relies on `tidy_get_release()` to return a date formatted as
`yyyy/mm/dd`.
2018-10-17 23:45:03 +02:00
Dmitry Stogov
a0a1c8990e
Fixed incorrect reallocation
2018-10-17 17:44:03 +03:00
Christoph M. Becker
f307e5962f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #77027 : tidy::getOptDoc() not available on Windows
2018-10-17 16:38:17 +02:00
Christoph M. Becker
e6c2ab5463
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77027 : tidy::getOptDoc() not available on Windows
2018-10-17 16:37:09 +02:00
Christoph M. Becker
20695fb895
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77027 : tidy::getOptDoc() not available on Windows
2018-10-17 16:30:46 +02:00
Christoph M. Becker
8a9e0312ce
Fix #77027 : tidy::getOptDoc() not available on Windows
...
We define the `HAVE_TIDYOPTGETDOC` macro unconditionally, since the
Windows PHP SDK ships libtidy 2009/04/06 or newer for a long time.
We do not add a regression test, since 021.phpt already tests
`tidy_get_opt_doc`, but has previously been skipped due to
unavailability of the function.
2018-10-17 16:27:07 +02:00
Nikita Popov
59cec6e67d
Run CI tests under opcache.protect_memory=1
2018-10-17 16:10:47 +02:00
Dmitry Stogov
b6ac50f9e6
Fixed comment
2018-10-17 16:56:32 +03:00
Dmitry Stogov
3575a2b8f9
Micro optimizations
2018-10-17 16:55:52 +03:00
Dmitry Stogov
9226695c22
Mark "top-level" classes
2018-10-17 16:12:46 +03:00
Dmitry Stogov
d57cd36e47
Immutable clases and op_arrays.
...
Squashed commit of the following:
commit cd0c36c3f943849e5b97a8dbe2dd029fbeab3df9
Merge: 4740dabb84 ad6738e886
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 14:43:38 2018 +0300
Merge branch 'master' into immutable
* master:
Remove the "auto" encoding
Fixed bug #77025
Add vtbls for EUC-TW encoding
commit 4740dabb843c6d4f7f866b4a2456073c9eaf4c77
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 14:12:28 2018 +0300
Reverted back ce->iterator_funcs_ptr. Initialize ce->iterator_funcs_ptr fields in immutable classes.
commit ad7a78b253be970db70c2251e66f9297d8e7f829
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:46:30 2018 +0300
Added comment
commit 0276ea51875bab37be01a4dc5e5a047c5698c571
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:42:43 2018 +0300
Added type cast
commit c63fc5d5f19c58498108d1698055b2b442227eb3
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:36:51 2018 +0300
Moved static class members initialization into the proper place.
commit b945548e9306b1826c881918858b5e5aa3eb3002
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:21:03 2018 +0300
Removed redundand assertion
commit d5a41088401814c829847db212488f8aae39bcd2
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:19:13 2018 +0300
Removed duplicate code
commit 8dadca8864e66de70a24bdf1181bcf7dd8fb27d7
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 11:05:43 2018 +0300
Hide offset encoding magic in ZEND_MAP_PTR_IS_OFFSET(), ZEND_MAP_PTR_OFFSET2PTR() and ZEND_MAP_PTR_PTR2OFFSET() macros.
commit 9ef07c88bd76801e2d4fbfeab3ebfd6e6a67ac5f
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 10:48:29 2018 +0300
typo
commit a06f0f3d3aba53e766046221ee44fb9720389ecc
Merge: 94099586ec 3412345ffe
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Oct 17 10:47:07 2018 +0300
Merge branch 'master' into immutable
* master:
Remove unused variable makefile_am_files
Classify object handlers are required/optional
Add support for getting SKIP_TAGSTART and SKIP_WHITE options
Remove some obsolete config_vars.mk occurrences
Remove bsd_converted from .gitignore
Remove configuration parser and scanners ignores
Remove obsolete buildconf.stamp from .gitignore
[ci skip] Add magicdata.patch exception to .gitignore
Remove outdated ext/spl/examples items from .gitignore
Remove unused test.inc in ext/iconv/tests
commit 94099586ec599117581ca01c15b1f6c5f749e23a
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Oct 15 23:34:01 2018 +0300
Immutable clases and op_arrays
2018-10-17 15:52:50 +03:00
Nikita Popov
ad6738e886
Merge branch 'PHP-7.3'
2018-10-17 12:51:17 +02:00
Nikita Popov
1151554668
Remove the "auto" encoding
...
"auto" is only meaningful in functions which accept an encoding
*list* and support encoding detection. These functions have
explicit checks for "auto". It cannot be used as a standalone
encoding in any meaningful capacity, so I'm dropping it entirely.
2018-10-17 12:50:24 +02:00
Nikita Popov
e4ccc1a29f
Merge branch 'PHP-7.3'
2018-10-17 12:40:39 +02:00
Nikita Popov
56665a1b17
Fixed bug #77025
...
Implements 8bit conversions equivalently to iso-8859-1 conversions.
This seems quite dubious to me, but seems to match the previous
behavior.
It might make more sense to map the characters into a private area
instead, so that the 8bit encoding is treated as binary data with
no case conversions (including no case conversions in the ascii
range).
2018-10-17 12:38:31 +02:00
Nikita Popov
2cc6462edc
Add vtbls for EUC-TW encoding
2018-10-17 12:10:16 +02:00
Peter Kokot
3412345ffe
Remove unused variable makefile_am_files
...
The `makefile_am_files` was part of the previous build system where
automake was used to build Makefiles. Since 9d9d39a0de
this is not used anymore and can be removed.
2018-10-16 22:33:04 +02:00
Nikita Popov
1cfbb21790
Classify object handlers are required/optional
2018-10-16 20:53:59 +02:00
Christoph M. Becker
fc0aa264c1
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Add support for getting SKIP_TAGSTART and SKIP_WHITE options
2018-10-16 18:51:51 +02:00
Christoph M. Becker
181fc483ed
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add support for getting SKIP_TAGSTART and SKIP_WHITE options
2018-10-16 18:50:58 +02:00
Christoph M. Becker
310b95d7eb
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add support for getting SKIP_TAGSTART and SKIP_WHITE options
2018-10-16 18:49:17 +02:00
Christoph M. Becker
b33124239a
Add support for getting SKIP_TAGSTART and SKIP_WHITE options
...
When `XML_OPTION_SKIP_TAGSTART` and `XML_OPTION_SKIP_WHITE` had been
introduced[1], it had been overlooked to also support them for
`xml_parser_get_option()`. We catch up on that.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=b57dc275950b228f2399990471c4f22b7d154c6c >
2018-10-16 18:47:31 +02:00
Peter Kokot
066b5b7881
Remove some obsolete config_vars.mk occurrences
...
The `config_vars.mk` file was a part of previous *nix build system and
has been removed via 9d9d39a0de .
2018-10-16 18:05:06 +02:00
Peter Kokot
4ac9ef4a00
Remove bsd_converted from .gitignore
...
The `bsd_converted` file was once used as a temporary locking mechanism
on BSD systems builds and has been made obsolete via commit
9d9d39a0de
so it can be also removed from the main .gitignore file.
2018-10-16 17:30:13 +02:00
Peter Kokot
265ee53b80
Remove configuration parser and scanners ignores
...
The configuration-parser.c, configuration-parser.h,
configuration-parser.output and configuration-scanner.c were refactored
via 78194a47b7 and can be removed in the
.gitignore.
2018-10-16 17:20:18 +02:00
Peter Kokot
0df202e7ae
Remove obsolete buildconf.stamp from .gitignore
...
The buildconf.stamp file was used to store particular build time
information in the past and then got removed via the
6c6c0a630c
and the migration usage of the build/build.mk file only.
2018-10-16 13:33:07 +02:00
Peter Kokot
c54d382b2e
[ci skip] Add magicdata.patch exception to .gitignore
2018-10-16 11:04:39 +02:00
Peter Kokot
1df1792b9c
Remove outdated ext/spl/examples items from .gitignore
2018-10-16 10:38:19 +02:00
Peter Kokot
787dfd0909
Remove unused test.inc in ext/iconv/tests
2018-10-15 17:57:22 +02:00
Peter Kokot
4f1274c59b
Remove value from --CGI-- section
...
The `--CGI--` section takes no value and is enabled as empty already.
2018-10-15 07:13:53 +02:00
Peter Kokot
b10082f942
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix failing Zend/tests due to newlines
2018-10-15 05:04:38 +02:00
Peter Kokot
6b8605d31f
Fix failing Zend/tests due to newlines
2018-10-15 05:04:29 +02:00
Peter Kokot
d679f02295
Sync leading and final newlines in *.phpt sections
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:33:09 +02:00
Peter Kokot
e84662c35c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Sync leading and final newlines in *.phpt sections
Sync leading and final newlines in *.phpt sections
Sync leading and final newlines in *.phpt sections
2018-10-15 04:32:49 +02:00
Peter Kokot
b746e69887
Sync leading and final newlines in *.phpt sections
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:32:30 +02:00
Peter Kokot
3599a2d82b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync leading and final newlines in *.phpt sections
Sync leading and final newlines in *.phpt sections
2018-10-15 04:31:53 +02:00
Peter Kokot
f1d7e3ca0b
Sync leading and final newlines in *.phpt sections
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:31:31 +02:00
Peter Kokot
f98c916845
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync leading and final newlines in *.phpt sections
2018-10-15 04:30:40 +02:00
Peter Kokot
113213f027
Sync leading and final newlines in *.phpt sections
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:29:24 +02:00
Anatol Belski
a04cd4b948
Remove assignment irrelevant for release build
2018-10-14 21:35:57 +02:00
Peter Kokot
d7a3edd45d
Trim trailing whitespace in *.phpt
2018-10-14 19:46:15 +02:00
Peter Kokot
b0708fa2e7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Trim trailing whitespace in *.phpt
Trim trailing whitespace in *.phpt
Trim trailing whitespace in *.phpt
2018-10-14 19:45:40 +02:00
Peter Kokot
782352c54a
Trim trailing whitespace in *.phpt
2018-10-14 19:45:12 +02:00
Peter Kokot
604d4bdae5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Trim trailing whitespace in *.phpt
Trim trailing whitespace in *.phpt
2018-10-14 19:44:33 +02:00
Peter Kokot
17ccbeec32
Trim trailing whitespace in *.phpt
2018-10-14 19:44:14 +02:00
Peter Kokot
cc7215f48f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Trim trailing whitespace in *.phpt
2018-10-14 19:43:39 +02:00
Peter Kokot
7af945e271
Trim trailing whitespace in *.phpt
2018-10-14 19:43:12 +02:00
Gabriel Caruso
9c144e0d82
Trim trailing whitespace in tests
2018-10-14 12:07:20 -03:00
Peter Kokot
b419732ddb
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix failing ext/session/tests due to final newlines
2018-10-14 13:41:32 +02:00
Peter Kokot
cad70d9db6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix failing ext/session/tests due to final newlines
2018-10-14 13:41:21 +02:00
Peter Kokot
2707932241
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix failing ext/session/tests due to final newlines
2018-10-14 13:41:09 +02:00
Peter Kokot
afd534f163
Fix failing ext/session/tests due to final newlines
2018-10-14 13:38:28 +02:00
Peter Kokot
1ad08256f3
Sync leading and final newlines in source code files
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-14 12:56:38 +02:00
Peter Kokot
f87f7bb8c7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Sync leading and final newlines in source code files
Sync leading and final newlines in source code files
Sync leading and final newlines in source code files
2018-10-14 12:55:47 +02:00
Peter Kokot
1c850bfcca
Sync leading and final newlines in source code files
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-14 12:55:24 +02:00
Peter Kokot
a6d3e56a1e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync leading and final newlines in source code files
Sync leading and final newlines in source code files
2018-10-14 12:54:39 +02:00
Peter Kokot
60a69daec6
Sync leading and final newlines in source code files
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-14 12:54:08 +02:00
Peter Kokot
6f343d29a5
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync leading and final newlines in source code files
2018-10-14 12:52:38 +02:00
Peter Kokot
03f3b8479b
Sync leading and final newlines in source code files
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-14 12:51:01 +02:00
Frank Denis
d159d219e4
Merge branch 'PHP-7.3'
...
* PHP-7.3:
ext/sodium: sodium_pad(): do not copy any bytes if the string is empty
ext/sodium: Fix sodium_pad() with blocksize >= 256
ext/sodium: Use a correct max output size for base64 decoding
ext/sodium: Avoid shifts wider than 32 bits on size_t values
2018-10-14 11:03:37 +02:00
Frank Denis
c4ea98455d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
ext/sodium: sodium_pad(): do not copy any bytes if the string is empty
ext/sodium: Fix sodium_pad() with blocksize >= 256
ext/sodium: Use a correct max output size for base64 decoding
ext/sodium: Avoid shifts wider than 32 bits on size_t values
2018-10-14 11:01:53 +02:00
Frank Denis
5d70165f63
[ci skip] Update NEWS
2018-10-14 10:58:02 +02:00
Frank Denis
82a93c1794
ext/sodium: sodium_pad(): do not copy any bytes if the string is empty
...
Spotted by San Zhang, thanks!
Backport from PECL libsodium-php 2.0.13
2018-10-14 10:43:21 +02:00
Frank Denis
bf48d0c475
ext/sodium: Fix sodium_pad() with blocksize >= 256
...
Backport from PECL libsodium-php 2.0.12
2018-10-14 10:37:37 +02:00
Frank Denis
15ba7df224
ext/sodium: Use a correct max output size for base64 decoding
...
Also handle the case where the function is not available in test.
Backport from PECL libsodium-php 2.0.12
2018-10-14 10:37:18 +02:00
Frank Denis
d057458166
ext/sodium: Avoid shifts wider than 32 bits on size_t values
...
Backport from PECL libsodium-php 2.0.10
2018-10-14 10:21:29 +02:00
Peter Kokot
398e4cba7b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix failing tests/lang due to whitespace
2018-10-13 15:23:56 +02:00
Peter Kokot
1670c4679d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix failing tests/lang due to whitespace
2018-10-13 15:23:48 +02:00
Peter Kokot
c25b1a7e8c
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix failing tests/lang due to whitespace
2018-10-13 15:23:35 +02:00
Peter Kokot
ed64e1d59a
Fix failing tests/lang due to whitespace
2018-10-13 15:22:49 +02:00
Peter Kokot
a2e099c78d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix failing ext/zlib/tests due to whitespace
2018-10-13 15:16:29 +02:00
Peter Kokot
3764bd7997
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix failing ext/zlib/tests due to whitespace
2018-10-13 15:16:15 +02:00
Peter Kokot
102cf75eeb
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix failing ext/zlib/tests due to whitespace
2018-10-13 15:15:39 +02:00
Peter Kokot
9120e79e9f
Fix failing ext/zlib/tests due to whitespace
2018-10-13 15:15:26 +02:00
Peter Kokot
37c329d715
Trim trailing whitespace in source code files
2018-10-13 14:17:28 +02:00
Peter Kokot
6c2c7dabee
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Trim trailing whitespace in source code files
Trim trailing whitespace in source code files
Trim trailing whitespace in source code files
2018-10-13 14:16:48 +02:00
Peter Kokot
3362620b5f
Trim trailing whitespace in source code files
2018-10-13 14:16:33 +02:00
Peter Kokot
edefd16fbc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Trim trailing whitespace in source code files
Trim trailing whitespace in source code files
2018-10-13 14:15:15 +02:00
Peter Kokot
902d39a3a7
Trim trailing whitespace in source code files
2018-10-13 14:14:50 +02:00
Peter Kokot
581f0141b6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Trim trailing whitespace in source code files
2018-10-13 14:13:37 +02:00
Peter Kokot
7f6387b59a
Trim trailing whitespace in source code files
2018-10-13 14:12:55 +02:00
Christoph M. Becker
87392eff1a
Require SQLite ≥ 3.5.0 for ext/sqlite3 and ext/pdo_sqlite
...
It is possible to pass flags when opening an SQLite database. For
Sqlite < 3.5.0 these are ignored, since `sqlite3_open` doesn't support
flags. Neither a warning or notice is raised in this case, nor is this
behavior documented in the PHP manual. Instead of fixing it either
way, we lift the requirement to SQLite 3.5.0 (released on 2007-09-04)
instead of the former SQLite 3.3.9 (released on 2007-01-04).
2018-10-13 12:15:58 +02:00
Peter Kokot
be2ddc6b65
Convert CRLF line endings to LF
...
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.
Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)
To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`
Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).
Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.
Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
2018-10-13 11:23:52 +02:00
Peter Kokot
272c629c0a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Convert CRLF line endings to LF
Convert CRLF line endings to LF
Convert CRLF line endings to LF
2018-10-13 11:23:32 +02:00
Peter Kokot
85290bbfcc
Convert CRLF line endings to LF
...
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.
Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)
To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`
Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).
Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.
Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
2018-10-13 11:23:20 +02:00
Peter Kokot
d591c35779
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Convert CRLF line endings to LF
Convert CRLF line endings to LF
2018-10-13 11:22:47 +02:00
Peter Kokot
2aa897476f
Convert CRLF line endings to LF
...
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.
Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)
To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`
Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).
Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.
Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
2018-10-13 11:22:30 +02:00
Peter Kokot
5a0610d8cc
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Convert CRLF line endings to LF
2018-10-13 11:22:02 +02:00
Peter Kokot
3f72c77ce4
Convert CRLF line endings to LF
...
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.
Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)
To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`
Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).
Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.
Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
2018-10-13 11:21:27 +02:00
Derick Rethans
a7c942efee
Merge branch 'PHP-7.3'
2018-10-12 11:55:48 +01:00
Derick Rethans
9c608bd13f
Upgrade timelib to 2018.01RC1, to fix bug #77007
2018-10-12 11:50:36 +01:00
Derick Rethans
3a93c201f6
Merge branch 'PHP-7.3'
2018-10-12 11:41:33 +01:00
Derick Rethans
a31480c9ae
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-12 11:41:24 +01:00
Derick Rethans
94a98f2c63
Upgrade timelib to 2017.08, to fix bug #77007
2018-10-12 11:41:05 +01:00
Derick Rethans
83e24098a8
Merge branch 'PHP-7.3'
2018-10-11 17:00:49 +01:00
Derick Rethans
454a86c2c5
Update news with further fixed bugs due to timelib upgrade
2018-10-11 17:00:42 +01:00
Nikita Popov
0b6063f331
Restore array_key_exists() compatibility for ArrayObject
...
Doing this by special-casing array_key_exists() for ArrayObject.
2018-10-11 16:10:22 +02:00
Sara Golemon
da48671959
Update release process information to include the improved bumpRelease script
2018-10-11 10:00:21 -04:00
Nikita Popov
0697d83383
More straightforward count() on ArrayObject with object
...
Just writing this out as an explicit loop is both simpler and faster
than going through the entire positioning machinery.
2018-10-11 15:23:05 +02:00
Nikita Popov
5659035ab6
Remove unnecessary get_hash_table return value checks
...
An ArrayObject always has a valid backing hashtable, this function
can never return NULL.
2018-10-11 15:06:11 +02:00
Nikita Popov
a27f772a46
Remove redundant HASH_OF in mail.c
...
And use ZEND_HASH_FOREACH_STR_KEY_VAL where the integer key is not
needed.
2018-10-11 13:04:08 +02:00
Nikita Popov
4ca5b35771
Use ARRAY_OR_OBJECT arg in http_build_query
...
Instead of checking the type manually. Peculiarily the zpp
message does not use "array or object", but that's a general issue.
And I guess it's good that object support is not being advertised.
2018-10-11 13:04:08 +02:00
Nikita Popov
900ee5705f
Remove unnecessary HASH_OF uses in mbstring
2018-10-11 13:04:08 +02:00
Nikita Popov
2c7be42853
Drop unnecessary HASH_OF uses in ext/oci8
...
These only operate on arrays.
2018-10-11 13:04:08 +02:00
Nikita Popov
bfaba83102
Remove HASH_OF uses in ext/filter
...
It turns out that all of these places ultimately only accept arrays,
not objects, so we can use Z_ARRVAL_P everywhere.
Also add _deref in a few places where the hash lookup result is
directly type-checked.
2018-10-11 13:04:08 +02:00
Peter Kokot
9bbf9967bd
Modernize the AC_PRESERVE_HELP_ORDER macro call
...
The Autoconf AC_PRESERVE_HELP_ORDER macro has been available since
Autoconf 2.59c [1] and in PHP it has been called conditionally on two places
to support older Autoconf versions. With recent updates and the macro
can be called unconditionally.
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
2018-10-11 12:58:41 +02:00
Nikita Popov
a710ceee62
Remove leftover code dealing with curl wrappers
2018-10-11 12:12:31 +02:00
Nikita Popov
32d7e08286
Remove some redundant uses of HASH_OF
...
GET etc are always arrays, they cannot be objects. We just need to
check that they are initialized.
2018-10-11 12:01:18 +02:00
Nikita Popov
a8bc3889fd
Remember redundant check in filter.c
...
We already check existence through zend_hash_str_find, no need
to check it twice.
2018-10-11 11:55:16 +02:00
Nikita Popov
4d5d77904e
Fix foreach/get_object_vars for shadowed properties
...
If we are in a scope where the shadowed private property is
visible, the shadowing public property should not be visible.
2018-10-10 23:18:34 +02:00
Nikita Popov
76c8d79df6
Merge branch 'PHP-7.3'
2018-10-10 15:00:56 +02:00
Nikita Popov
01948f20b8
Fixed bug #76991
...
Back up exceptions while the scan-ahead loop, to avoid an early
bail out.
2018-10-10 15:00:18 +02:00
Nikita Popov
4f4d0eccaf
Specify timezone in test
2018-10-10 13:28:06 +02:00
Nikita Popov
5a679341b8
Add UPGRADING notes
...
[ci skip]
2018-10-10 12:00:57 +02:00
Nikita Popov
a5fa51afbb
Don't overload get_properties for ArrayObject
...
Instead overload get_properties_for for a few specific cases such
as array casts. This resolves the issue where ArrayObject
get_properties may violate engine invariants in some cases.
2018-10-10 10:39:10 +02:00
Nikita Popov
1270e5008a
Migrate ext/date to get_properties_for where appropriate
...
This resolves the long-standing issue where var_dump
a DateTime (etc) object makes a number of additional properties
accessible, which may also change other behaviors as a side-effect.
2018-10-10 10:39:10 +02:00
Nikita Popov
7ec8087f80
Introduce get_properties_for() handler
...
This handler allows getting the object properties for a particular
purpose, such as array casting, serialization, etc.
2018-10-10 10:39:10 +02:00
Peter Kokot
77c85b3119
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update UPGRADING about Autoconf version
Bump minimum Autoconf requirement to 2.68
2018-10-09 21:17:19 +02:00
Peter Kokot
1386b029f9
[ci skip] Update UPGRADING about Autoconf version
2018-10-09 21:16:17 +02:00
Peter Kokot
0b0d4b5f0d
Bump minimum Autoconf requirement to 2.68
...
This patch syncs and bumps the minimum required version of Autoconf for
the `phpize.m4` script and the main `configure.ac` from previously mixed
2.64 and 2.59 to 2.68.
At the time of this writing Autoconf 2.63 is still the version on
Centos 6, however by the PHP 7.3 release current systems out there
should all have pretty much updated Autoconf versions to 2.64+ at
least. Centos 7 already has Autoconf 2.69, for example.
This provides more options to update and get current with the *nix
build system and also avoids broken builds in certain cases as pointed
out in the relevant discussion [1].
Additionally, phpize also already provides the `AX_CHECK_COMPILE_FLAG`
Autoconf Archive m4 file that has Autoconf 2.64 minimum requirement.
Autoconf 2.68 was released in 2010, 8 years ago, relative to this patch.
[1] https://github.com/php/php-src/pull/3562
2018-10-09 21:06:10 +02:00
Christoph M. Becker
f2856da6e8
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #30875 : xml_parse_into_struct() does not resolve entities
2018-10-09 16:09:46 +02:00
Christoph M. Becker
54e152cb92
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #30875 : xml_parse_into_struct() does not resolve entities
2018-10-09 16:08:55 +02:00
Christoph M. Becker
ebecf569f9
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #30875 : xml_parse_into_struct() does not resolve entities
2018-10-09 16:06:56 +02:00
Christoph M. Becker
2845f859c1
Fix #30875 : xml_parse_into_struct() does not resolve entities
...
Setting up an empty default handler is not only useless, but actually
harmful, since internal entity-references are not resolved anymore.
From the libexpat docs[1]:
| Setting the handler with this call has the side effect of
| turning off expansion of references to internally defined general
| entities. Instead these references are passed to the default
| handler.
[1] <https://www.xml.com/pub/1999/09/expat/reference.html#setdefhandler >
2018-10-09 16:04:43 +02:00
Christoph M. Becker
6b015e51ad
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
2018-10-09 13:31:38 +02:00
Christoph M. Becker
efb9ccc91b
[ci skip] Update NEWS
2018-10-09 13:30:59 +02:00
Derick Rethans
d21aa93dd4
Merge branch 'PHP-7.3'
2018-10-09 11:38:01 +01:00
Derick Rethans
1eac7c1ea3
Fixed tests
2018-10-09 11:37:53 +01:00
Derick Rethans
0ef3b125cd
Merge branch 'PHP-7.3'
2018-10-09 11:08:48 +01:00
Derick Rethans
e47444d1e1
Added test case for bug #75577
2018-10-09 11:08:40 +01:00
Derick Rethans
09340ea9b9
Fixed bug #75577 : DateTime::createFromFormat does not accept 'v' format specifier, by updating timelib to 2018.01alpha2
2018-10-09 11:08:40 +01:00
Derick Rethans
d16e23d8c9
Merge branch 'PHP-7.3'
2018-10-09 11:07:15 +01:00
Derick Rethans
bb2eaa6d61
Added test case for bug #75577
2018-10-09 11:06:58 +01:00
Derick Rethans
43f7a5735c
Fixed bug #75577 : DateTime::createFromFormat does not accept 'v' format specifier, by updating timelib to 2018.01alpha2
2018-10-09 11:06:42 +01:00
Christoph M. Becker
5527c74c53
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS wrt. php-7.3.0RC3 tagging
2018-10-09 11:59:09 +02:00
Christoph M. Becker
3d4167c3de
[ci skip] Update NEWS wrt. php-7.3.0RC3 tagging
2018-10-09 11:58:48 +02:00
Pierrick Charron
9b4594515a
Merge branch 'PHP-7.3'
2018-10-09 01:27:39 -04:00
Pierrick Charron
44d2c8c6dd
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-09 01:26:55 -04:00
Pierrick Charron
efa5674a9b
Merge branch 'PHP-7.1' into PHP-7.2
2018-10-09 01:20:01 -04:00
Pierrick Charron
f42d7bddc0
Fixed bug #76965 INI_SCANNER_RAW doesn't strip trailing whitespace
2018-10-09 00:00:21 -04:00
Dmitry Stogov
ca7ccd01e4
During size calculation, pointer should be kept unchanged
2018-10-08 23:52:24 +03:00
Anatol Belski
8a5ababea2
Add missing packaging entries
2018-10-08 18:42:09 +02:00
Pierrick Charron
c4983b179d
Merge branch 'PHP-7.3'
2018-10-08 10:21:03 -04:00
Pierrick Charron
64881a1e64
Add constants from curl 7.56 to 7.61
2018-10-08 10:19:35 -04:00
Nikita Popov
01cc547f44
Merge branch 'PHP-7.3'
2018-10-08 13:16:54 +02:00
Nikita Popov
d982bbe175
Fix ref ID handling when serializing $GLOBALS
...
This was already broken previously, but in PHP 7.3 stricter
validation during unserialization made this into an error.
2018-10-08 13:16:23 +02:00
Christoph M. Becker
b0e1b43c6c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Note the required configure changes for bundled libzip
2018-10-08 12:48:46 +02:00
Christoph M. Becker
c5df679ca8
[ci skip] Note the required configure changes for bundled libzip
2018-10-08 12:48:20 +02:00
Christoph M. Becker
c266a19094
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76954 : apache_response_headers removes last character from header name
2018-10-08 12:33:32 +02:00
Christoph M. Becker
6178786233
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76954 : apache_response_headers removes last character from header name
2018-10-08 12:32:52 +02:00
Christoph M. Becker
879c937a27
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76954 : apache_response_headers removes last character from header name
2018-10-08 12:30:45 +02:00
stodorovic
47b89bc531
Fix #76954 : apache_response_headers removes last character from header name
2018-10-08 12:29:31 +02:00
Christoph M. Becker
a80456e7dd
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #75851 : Year component overflow with date formats "c", "o", "r" and "y"
2018-10-08 11:53:24 +02:00
Christoph M. Becker
e68f60b087
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #75851 : Year component overflow with date formats "c", "o", "r" and "y"
2018-10-08 11:52:37 +02:00
Christoph M. Becker
1b97f291a7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #75851 : Year component overflow with date formats "c", "o", "r" and "y"
2018-10-08 11:50:37 +02:00
Adam Saponara
c097acd52e
Fix #75851 : Year component overflow with date formats "c", "o", "r" and "y"
2018-10-08 11:48:58 +02:00
Peter Kokot
c2cbf37235
Update and refactor shmop extension's README
...
The shmop functions are documented with more information in the PHP
manual.
2018-10-08 06:27:17 +02:00
Anatol Belski
4acc8500ac
Enforce C++11 in ext/intl
...
ICU 59 already requires C++11 by default. The minimum version required
by the core is 50, which is compiled with at least C++11 in many distros
as package defs tell. Headers for ICU versions between ICU 50 and 58 look
fine when included for C++11 compilation, the linking is thereof not affected.
The macro PHP_CXX_COMPILE_STDCXX is based on
https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
The patch consists on allowing to read the corresponding switch in a user
defined variable instead of enforcing CXXFLAGS globally. That way, every
ext or SAPI can decide, which C++ standard is to be used. The
documentation is provided in the m4 file.
C++11 is already somewhat older standard, C++14 were better. However
issues with GCC < 5.0 and some other compilers are possibly to hit back.
Still there's some time to check for C++14 for ext/intl, too. Having said
that, C++11 in ext/intl and a mechanism to determine features is a good step
towards better C++ support.
2018-10-07 20:00:03 +02:00
Bob Weinand
dcdf1ccf68
Initialize ce->parent_name to NULL
2018-10-07 11:21:48 +02:00
bugreportuser
cdedc1cb89
mysqli_fork: Fix undefined variable
2018-10-06 14:38:10 -03:00
Pedro Magalhães
d87fdd9a96
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Remove unstable dns tests
2018-10-06 15:59:05 +01:00
Pedro Magalhães
484b79e868
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Remove unstable dns tests
2018-10-06 15:58:51 +01:00
Pedro Magalhães
608b48e5f4
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Remove unstable dns tests
2018-10-06 15:58:32 +01:00
Pedro Magalhães
49835e1436
Remove unstable dns tests
2018-10-06 15:58:01 +01:00
Pedro Magalhães
418e2264dc
Merge branch 'PHP-8.3'
...
* PHP-7.3:
Fix #76888 - Remove unstable test
2018-10-06 15:46:30 +01:00
Pedro Magalhães
ef36419af4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76888 - Remove unstable test
2018-10-06 15:46:11 +01:00
Pedro Magalhães
82e10f3974
Fix #76888 - Remove unstable test
2018-10-06 15:45:07 +01:00
Pedro Magalhães
7862d9c942
Use the locally defined constants for dns record types
2018-10-06 14:58:11 +01:00
Christoph M. Becker
849a896a5e
[ci skip] Update NEWS and UPGRADING wrt. unbundling libsqlite
2018-10-06 12:45:06 +02:00
Christoph M. Becker
6083a387a8
Unbundle libsqlite3
...
Since there is no need to patch libsqlite3 for our purposes, and since
libsqlite3 ≥ 3.3.9 (which is our current requirement) is widely
available on distros, there is no reason anymore to bundle the library.
Besides removing the bundled libsqlite, and adapting the configuration
respectively, we also fix the use of the SQLITE_ENABLE_COLUMN_METADATA
compile time constant to detect whether sqlite3_column_table_name() is
available by a working feature detection (otherwise bug_42589.phpt
would fail). We also skip bug73068.phpt for libsqlite 3.11.0 to
3.14.1 which have a bug (<https://sqlite.org/src/info/ef360601 >).
We also completely drop support for the obscure pdo_sqlite_external
extension (which could have been enabled on Windows only by passing
`--pdo-sqlite-external` to configure), since it is not needed anymore.
Furthermore, we remove references to the bundled libsqlite from
Makefile.gcov, CONTRIBUTING.md and README.REDIST.BINS.
2018-10-06 12:36:55 +02:00
Christoph M. Becker
61330b0faf
Fix PHPT ENV sections
...
run-tests.php assumes the contents of an ENV section are a simple list
of key-value-pairs, instead of evaluating the section contents as PHP
script which server-tests.php did. Since server-tests.php is gone, we
remove the superfluous and confusing scripting.
2018-10-06 12:29:04 +02:00
Nikita Popov
e25b23ed0c
Merge branch 'PHP-7.3'
2018-10-06 11:22:24 +02:00
Michael Moravec
0a6ddc7722
Fix bug #76979 : define() error message does not mention resources as valid values
2018-10-06 11:21:51 +02:00
Christoph M. Becker
788d217e09
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76975 : preg_match difference between 7.3 and < 7.3 - II
2018-10-06 11:06:59 +02:00
Christoph M. Becker
e345af1a2e
Fix #76975 : preg_match difference between 7.3 and < 7.3 - II
...
[ci skip]
2018-10-06 11:05:41 +02:00
Anatol Belski
5ea78adc56
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
Add test for bug #76942
2018-10-05 23:01:20 +02:00
Anatol Belski
476fdf543a
[ci skip] Update NEWS
2018-10-05 23:01:03 +02:00
Anatol Belski
d5b84feadc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
Add test for bug #76942
2018-10-05 23:00:24 +02:00
Anatol Belski
fec5786f87
[ci skip] Update NEWS
2018-10-05 22:59:55 +02:00
Anatol Belski
833a1daee2
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
Add test for bug #76942
2018-10-05 22:57:45 +02:00
Anatol Belski
aaf4cc05eb
[ci skip] Update NEWS
2018-10-05 22:57:27 +02:00
Anatol Belski
72df422d69
Add test for bug #76942
2018-10-05 22:54:50 +02:00
Anatol Belski
a0e7152f9b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Add test for bug #76942
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
2018-10-05 22:54:03 +02:00
Anatol Belski
55e0bc9532
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add test for bug #76942
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
2018-10-05 22:53:11 +02:00
Anatol Belski
a7754286d2
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add test for bug #76942
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
2018-10-05 22:52:53 +02:00
Anatol Belski
c2a956de6f
Add test for bug #76942
2018-10-05 22:51:58 +02:00
Anatol Belski
534684d104
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
...
ref bug #74484
2018-10-05 22:50:34 +02:00
Nikita Popov
cb0505d1c5
Merge branch 'PHP-7.3'
2018-10-05 21:34:04 +02:00
twosee
05a884f639
Optimize MySQL statement execute without parameters
2018-10-05 21:33:38 +02:00
Nikita Popov
3169e25a3c
Merge branch 'PHP-7.3'
2018-10-05 18:42:45 +02:00
Nikita Popov
aa376cc1d5
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-05 18:41:57 +02:00
Nikita Popov
fde2ae3721
Merge branch 'PHP-7.1' into PHP-7.2
2018-10-05 18:41:28 +02:00
Manuel Mausz
bb4a2e8bb7
Fix #76972 : FTP data truncation due to forceful ssl socket shutdown
...
Do a correct bidirectional shutdown instead
2018-10-05 18:40:50 +02:00
Pedro Magalhães
7b10e71b9d
Use the locally defined constants for dns record types
2018-10-05 16:38:06 +01:00
Pedro Magalhães
c2c202193a
Use HT_MIN_SIZE when duplicating an empty array
2018-10-05 12:14:42 +02:00
Nikita Popov
a515f60790
Remove unused backpatch_count field
2018-10-05 12:14:42 +02:00
Anatol Belski
40979277c0
Ensure target is \0 terminated
2018-10-04 19:17:58 +02:00
Nikita Popov
f48ee1ff58
Clarify that the get_properties handler is required
...
Some places were checking for non-null get_properties, some weren't.
Make it clear that the handler is required and such checks are not
necessary.
2018-10-04 12:46:50 +02:00
Nikita Popov
74d138e4a3
Fix incorrect printf modifier after size_t changes
2018-10-04 12:13:46 +02:00
Remi Collet
1ac97c77cb
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Allow to disable pcre.jit when system library is used as it is for now broken on some arch (s390x...)
2018-10-04 11:46:37 +02:00
Remi Collet
bbfea4b470
Allow to disable pcre.jit when system library is used
...
as it is for now broken on some arch (s390x...)
2018-10-04 11:45:35 +02:00
Pierrick Charron
69d31f167c
Merge branch 'PHP-7.3'
2018-10-03 21:19:05 -04:00
Pierrick Charron
2e984dc726
Update NEWS [ci skip]
2018-10-03 21:18:47 -04:00
Pierrick Charron
e450679dcd
Merge branch 'PHP-7.3'
2018-10-03 19:44:46 -04:00
Pierrick Charron
02b2dbb724
Add constants from curl 7.50 to 7.55
2018-10-03 19:43:59 -04:00
Christoph M. Becker
0489b865bf
Fix PRIMARY MAINTAINER and MAINTENANCE fields
...
We have to distinguish between `PRIMARY_MAINTAINER` and `MAINTENANCE`.
Furthermore, all extensions should have both fields.
2018-10-04 00:47:52 +02:00
Christoph M. Becker
60f284c8c6
Merge branch 'PHP-7.3'
...
* PHP-7.3:
libzip has been unbundled in master only
2018-10-04 00:30:40 +02:00
Christoph M. Becker
6af14492a5
libzip has been unbundled in master only
...
Cf. <https://github.com/php/php-src/pull/3532 >.
2018-10-04 00:30:10 +02:00
Anatol Belski
248c857a31
Reuse delivered length
...
Fix length calculation
2018-10-03 23:12:49 +02:00
Anatol Belski
14628f1c5d
Add compatibility bit
...
readlink in PHP doesn't error on regular files.
2018-10-03 21:17:52 +02:00
Dmitry Stogov
2ebac3263b
Removed wrong reference counting
2018-10-03 20:15:30 +03:00
Anatol Belski
969fdb717a
Update UPGRADING [ci skip]
2018-10-03 19:11:31 +02:00
Anatol Belski
91c905e83c
Refactor php_sys_readlink
...
Also move the implementation into win32 where it belongs
2018-10-03 18:56:55 +02:00
Anatol Belski
97481fccb9
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS [ci skip]
2018-10-03 18:54:47 +02:00
Anatol Belski
38c060852e
Update NEWS [ci skip]
2018-10-03 18:54:08 +02:00
Anatol Belski
cd441e2131
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS [ci skip]
Update NEWS [ci skip]
Update NEWS [ci skip]
2018-10-03 18:52:21 +02:00
Anatol Belski
0c99755c3c
Update NEWS [ci skip]
2018-10-03 18:51:48 +02:00
Anatol Belski
3424cc1e8e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
Update NEWS [ci skip]
2018-10-03 18:50:24 +02:00
Anatol Belski
42b769b9e2
Update NEWS [ci skip]
2018-10-03 18:49:52 +02:00
Anatol Belski
31a293f885
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS [ci skip]
2018-10-03 18:49:13 +02:00
Anatol Belski
abfda3de99
Update NEWS [ci skip]
2018-10-03 18:48:40 +02:00
Dmitry Stogov
60591328f8
More careful handling of function prototypes
2018-10-03 18:32:25 +03:00
Dmitry Stogov
ba3d0a845a
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
Avoid code duplication and don't miss env restore
2018-10-03 17:43:08 +03:00
Anatol Belski
1c11fc7f13
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Avoid code duplication and don't miss env restore
2018-10-03 14:36:09 +02:00
Anatol Belski
8400f73f8d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Avoid code duplication and don't miss env restore
2018-10-03 14:35:38 +02:00
Anatol Belski
b8cfa09657
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Avoid code duplication and don't miss env restore
2018-10-03 14:34:08 +02:00
Anatol Belski
044eb39e63
Avoid code duplication and don't miss env restore
2018-10-03 14:32:52 +02:00
Dmitry Stogov
ed5fb80c31
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
Hopefully last round of size_t fixes, this makes the remaining php_hash_ops use size_t over an int
2018-10-03 15:01:53 +03:00
Kalle Sommer Nielsen
d604f65de5
Merge branch 'master' of git.php.net:/php-src
2018-10-03 13:36:30 +02:00
Kalle Sommer Nielsen
5268f367ce
Hopefully last round of size_t fixes, this makes the remaining php_hash_ops use size_t over an int
2018-10-03 13:36:05 +02:00
Dmitry Stogov
b9e485a7fd
typo
2018-10-03 14:35:36 +03:00
Remi Collet
4778578b56
Merge branch 'PHP-7.3'
...
* PHP-7.3:
bump zip extension version
2018-10-03 12:59:46 +02:00
Remi Collet
726a77cfdd
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump zip extension version
2018-10-03 12:59:31 +02:00
Remi Collet
da05b7e81e
bump zip extension version
2018-10-03 12:59:01 +02:00
Anatol Belski
3ad2ab6e7d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76948 Failed shutdown/reboot or end session in Windows
2018-10-03 12:15:54 +02:00
Anatol Belski
46bc0940e7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76948 Failed shutdown/reboot or end session in Windows
2018-10-03 12:15:15 +02:00
Anatol Belski
dc48e01a19
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76948 Failed shutdown/reboot or end session in Windows
2018-10-03 12:13:22 +02:00
Anatol Belski
b0547a3dfb
Fixed bug #76948 Failed shutdown/reboot or end session in Windows
2018-10-03 12:11:43 +02:00
Kalle Sommer Nielsen
b1f6390f16
Merge branch 'master' of git.php.net:/php-src
2018-10-03 11:36:30 +02:00
Kalle Sommer Nielsen
c116326793
Remove $ext_shared usage for ext/hash in the Unix build script (Thanks Christoph for the notice)
2018-10-03 11:36:11 +02:00
Dmitry Stogov
afcc785399
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
Second round of fixing compiler warnings in ext/hash. Lots of the signatures that previously was unsigned int is now size_t, there was a fair bit of inconsistency there already and this commit should make it all sync nicely
Write to correct smart_str
Revert "Fix compiler warnings in ext/hash"
2018-10-03 12:33:36 +03:00
Kalle Sommer Nielsen
0d7d2a2011
Merge branch 'master' of git.php.net:/php-src
2018-10-03 11:33:15 +02:00
Kalle Sommer Nielsen
84b0d0faba
Second round of fixing compiler warnings in ext/hash. Lots of the signatures that previously was unsigned int is now size_t, there was a fair bit of inconsistency there already and this commit should make it all sync nicely
2018-10-03 11:32:57 +02:00
Dmitry Stogov
c88b53318f
Avoid method compatibility check with itself
2018-10-03 12:32:33 +03:00
Dmitry Stogov
9418144054
Added assertions
2018-10-03 12:31:47 +03:00
Nikita Popov
1e14b7a369
Write to correct smart_str
...
Mixed this up during the migration to ZEND_HASH_FOREACH.
2018-10-03 11:03:55 +02:00
Nikita Popov
a659d16adf
Merge branch 'PHP-7.3'
2018-10-03 10:50:38 +02:00
Nikita Popov
9f3ea20320
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-03 10:50:27 +02:00
Nikita Popov
54aa76167b
Merge branch 'PHP-7.1' into PHP-7.2
2018-10-03 10:50:16 +02:00
Nikita Popov
945f315506
Reflection: Copy invoke function also in the variadic case
...
It doesn't matter how the parameters are provided, we always have
to copy the trampoline invoke function.
2018-10-03 10:48:42 +02:00
Nikita Popov
ac96a57818
Remove uses of apply_with_arguments API in reflection
...
Instead of ZEND_HASH_FOREACH. As a side-effect, this fixes a latent
bug in _addmethod, where a zval was interpreted as a zval*.
Also apply some optimizations to getProperties() while at it: For
declared properties, use the HT key instead of unmangling the
property name. For dynamic properties check INDIRECT instead of
looking up prop info to determine if the property is dynamic.
2018-10-03 10:37:42 +02:00
Kalle Sommer Nielsen
f7991ca656
Revert "Fix compiler warnings in ext/hash"
...
This reverts commit 596fbf7393 .
2018-10-03 10:37:20 +02:00
Kalle Sommer Nielsen
596fbf7393
Fix compiler warnings in ext/hash
2018-10-03 08:48:27 +02:00
Kalle Sommer Nielsen
f73c0102d6
Update hash tests for consistency in their titles and remove the skipif sections (except for the mhash related tests)
2018-10-03 08:48:11 +02:00
Kalle Sommer Nielsen
bf34442581
Implemented RFC "Always available hash extension"
2018-10-03 08:47:07 +02:00
Anatol Belski
3e2549d74f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76947 file_put_contents() blocks the directory of the file (__DIR__)
2018-10-03 00:22:34 +02:00
Anatol Belski
8209a8821c
Fixed bug #76947 file_put_contents() blocks the directory of the file (__DIR__)
...
The condition was wrong. The target buffer size only matters, when some
output is going to be copied into it.
2018-10-03 00:15:43 +02:00
Nikita Popov
10b1ab9275
Some reflection cleanups
...
Use zend_string and zend_string_tolower in more places, clean up
__invoke handling slightly.
2018-10-02 23:14:13 +02:00
Nikita Popov
784579d99a
Merge branch 'PHP-7.3'
2018-10-02 18:20:30 +02:00
Nikita Popov
a42801abe3
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-02 18:20:25 +02:00
Nikita Popov
f0647edd88
Fixed bug #66430
2018-10-02 18:19:53 +02:00
Nikita Popov
c8188fdd3b
Merge branch 'PHP-7.3'
2018-10-02 17:49:08 +02:00
Nikita Popov
b8392803f9
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-02 17:48:56 +02:00
Nikita Popov
d2477b284b
Fixed bug #76936
2018-10-02 17:47:07 +02:00
Nikita Popov
aec6421409
Merge branch 'PHP-7.3'
2018-10-02 16:14:36 +02:00
Nikita Popov
26f82a7706
Fixed bug #76958
2018-10-02 16:13:51 +02:00
Nikita Popov
9cfd8f43c2
Don't fall back to vtbl_pass if no matching vtbl found
...
If we don't know how to convert between two encodings, make sure
we error instead of ignoring the issue.
Explicitly use vtbl_pass if we are round-tripping wchar->wchar or
8bit->8bit. Fingers crossed that nothing else relies on the
vtbl_pass fallback...
2018-10-02 16:07:22 +02:00
Dmitry Stogov
9bfb972413
typo
2018-10-02 15:38:55 +03:00
Dmitry Stogov
f521586814
Make ZEND_ACC_IMMUTABLE and ZEND_ACC_HAS_TYPE_HINTS to be common (for functions and classes)
2018-10-02 09:51:06 +03:00
Dmitry Stogov
2606566269
Rename ZEND_ACC_NO_RT_ARENA into ZEND_ACC_HEAP_RT_CACHE and use it for pseudo-main op_arrays.
2018-10-02 09:10:04 +03:00
Dmitry Stogov
a2e8334613
Allocate only necessary space for static properties of internal classes in ZTS mode.
2018-10-01 19:05:31 +03:00
Dmitry Stogov
250b577258
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
Bump phpdbg version to PHP_VERSION
2018-10-01 14:11:31 +03:00
Dmitry Stogov
34a491d1ed
Turn accel_activate into module callback.
2018-10-01 14:10:54 +03:00
Peter Kokot
a3760badbe
Bump phpdbg version to PHP_VERSION
...
The phpdbg sapi module is distributed with the release cycle of PHP.
This patch simplifes phpdbg versioning and bumps it to the PHP_VERSION.
2018-10-01 13:01:58 +02:00
Dmitry Stogov
c25e7439ae
Get rid of accel_deactivate() calback
2018-10-01 13:53:15 +03:00
Dmitry Stogov
2d87b51ae9
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src: (29 commits)
Fix the deplister rule to not ignore the .c file (Anatol)
Update .gitignore to include the Windows deplister program (win32/build/deplister.c)
Bug > Feature Request
NEWS and UPGRADING
Fixed bug #75479
Fix test
Fix some tests and improve coverage for Windows in SPL
Use already set variable
Fix reflection arguments for sodium_memzero function
Deprecate unbinding of $this of non-static methods
Generalize compile_typename
Fixed bug #76737
Fixed bug #72635
Remove and refactor ext/spl/examples
Remove outdated soap examples
Remove unused ext/bz2/php_bz2.def
Remove redundant ce from reflection property_reference
Only store zend_type inside reflection type_reference
Fixed bug #76946
Bump versions for 7.1.24-dev
...
2018-10-01 11:19:36 +03:00
Kalle Sommer Nielsen
4fc5833b3e
Fix the deplister rule to not ignore the .c file (Anatol)
2018-10-01 08:31:49 +02:00
Kalle Sommer Nielsen
a698dcd24a
Update .gitignore to include the Windows deplister program (win32/build/deplister.c)
2018-10-01 07:54:52 +02:00
Kalle Sommer Nielsen
e23a9d6a5c
Bug > Feature Request
2018-10-01 07:52:22 +02:00
Remi Collet
3d5fe90e7e
NEWS and UPGRADING
2018-10-01 07:24:04 +02:00
Remi Collet
959e640e6d
Fixed bug #76908 PDO_OCI getColumnMeta() not implemented
...
* Letargie-feature-getcolumnmeta:
Removing last unused
Last few changes : . force the nls_date_format . add the scale to the return of the function . add tests on some function return . removing unused variables
cs
Changes : . Add the distinction between NUMBER and FLOAT types . Changing BFLOAT text to be BINARY_FLOAT . Changing BDOUBLE text to be BINARY_DOUBLE . Add the data types names for NCHAR, NVARCHAR and NCLOB . Few changes in the tests
fixing comments
Update oci_statement.c
Add the PDOStatement::getColumnMeta() function to the pdo_oci driver
2018-10-01 07:18:20 +02:00
Remi Collet
0ae5f82135
Fixed bug #76908 PDO_OCI getColumnMeta() not implemented
...
Merge branch 'feature-getcolumnmeta' of https://github.com/Letargie/php-src into Letargie-feature-getcolumnmeta
* 'feature-getcolumnmeta' of https://github.com/Letargie/php-src :
Removing last unused
Last few changes : . force the nls_date_format . add the scale to the return of the function . add tests on some function return . removing unused variables
cs
Changes : . Add the distinction between NUMBER and FLOAT types . Changing BFLOAT text to be BINARY_FLOAT . Changing BDOUBLE text to be BINARY_DOUBLE . Add the data types names for NCHAR, NVARCHAR and NCLOB . Few changes in the tests
fixing comments
Update oci_statement.c
Add the PDOStatement::getColumnMeta() function to the pdo_oci driver
2018-10-01 07:16:48 +02:00
Nikita Popov
eab939e1e3
Merge branch 'PHP-7.3'
2018-09-30 20:08:10 +02:00
Nikita Popov
d7e96c1b95
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-30 20:07:58 +02:00
Nikita Popov
56d1578515
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-30 20:07:44 +02:00
Nikita Popov
db80e0e2ad
Fixed bug #75479
...
Wrap the zend_signal_init() call, so the hook arguments line up.
2018-09-30 20:07:15 +02:00
Nikita Popov
ab2120e4e5
Fix test
2018-09-30 19:56:28 +02:00
Kalle Sommer Nielsen
8595dc8fa9
Fix some tests and improve coverage for Windows in SPL
2018-09-30 10:41:34 +02:00
Gabriel Caruso
257bec33f8
Use already set variable
2018-09-30 02:01:10 -03:00
Nikita Popov
03ba053af0
Merge branch 'PHP-7.3'
2018-09-29 21:20:08 +02:00
Nikita Popov
b617a5b2ea
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-29 21:20:01 +02:00
James Titcumb
950c338f80
Fix reflection arguments for sodium_memzero function
2018-09-29 21:19:42 +02:00
Nikita Popov
fc18f44213
Deprecate unbinding of $this of non-static methods
...
Static calls to non-static methods have been fully deprecated in
PHP 7.0 as part of https://wiki.php.net/rfc/reclassify_e_strict .
A combination of ReflectionMethod::getClosure() ("fake closures")
and Closure::bindTo() etc can be used to achieve the same behavior.
This commit ensures that a deprecation notice will be thrown also
in this case.
2018-09-29 21:01:27 +02:00
Nikita Popov
c4cb3250ca
Generalize compile_typename
...
Return zend_type instead of assigning to arg_info. Also move
nullable handling into the function.
2018-09-29 18:53:48 +02:00
Nikita Popov
96da1fe8a9
Fixed bug #76737
...
Explicitly prohibit serialization and unserialization of reflection
objects.
2018-09-29 14:47:57 +02:00
Nikita Popov
2ae2e820be
Merge branch 'PHP-7.3'
2018-09-29 14:23:13 +02:00
Nikita Popov
8b8b625d08
Fixed bug #72635
...
This seems to be a simple oversight, where we did not enable
exceptions. Other constexpr conditions already throw, so there is
no particular reason to stick to a fatal error here.
2018-09-29 14:21:08 +02:00
Peter Kokot
80c6ba26e3
Remove and refactor ext/spl/examples
...
- Test file from ext/spl/examples has been moved to ext/spl/tests
- Other custom SPL examples and implementations were removed in favor of
the PHP manual.
2018-09-29 09:29:32 +02:00
Peter Kokot
ab60b79912
Remove outdated soap examples
...
This patch removes PHP soap extension examples in favor of the PHP
manual.
2018-09-29 09:26:29 +02:00
Peter Kokot
61536b9d64
Remove unused ext/bz2/php_bz2.def
...
Exporting symbols has been added via
a7ba08a0bd and then removed via
d5c6825241
2018-09-29 09:23:31 +02:00
Nikita Popov
36a4f58ab9
Remove redundant ce from reflection property_reference
...
The ce is already stored in the main reflection object, no need to
store it twice.
2018-09-28 23:16:10 +02:00
Nikita Popov
570f9f6281
Only store zend_type inside reflection type_reference
...
We don't need the full arg_info and the baggage associated with it.
Storing the type should be safe, as it's part of structures which
are never released during a request (arg_info and in the future
prop_info).
2018-09-28 22:27:14 +02:00
Nikita Popov
7ef42ec359
Merge branch 'PHP-7.3'
2018-09-28 19:18:01 +02:00
Nikita Popov
7189e0b70f
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-28 19:17:53 +02:00
Nikita Popov
8e7dfc6ddf
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-28 19:17:29 +02:00
Nikita Popov
83e2b9e220
Fixed bug #76946
2018-09-28 19:15:19 +02:00
Sara Golemon
8371159790
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Bump versions for 7.1.24-dev
2018-09-28 11:33:12 -04:00
Sara Golemon
0470d21ef3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump versions for 7.1.24-dev
2018-09-28 11:32:56 -04:00
Sara Golemon
fed09a23b7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Bump versions for 7.1.24-dev
2018-09-28 11:32:41 -04:00
Sara Golemon
69c1b619c9
Bump versions for 7.1.24-dev
2018-09-28 11:31:22 -04:00
Nikita Popov
65abbdad70
Merge branch 'PHP-7.3'
2018-09-28 13:41:36 +02:00
Nikita Popov
8ebe1b8de1
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-28 13:41:29 +02:00
Nikita Popov
99eb4b2ea4
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-28 13:41:06 +02:00
Nikita Popov
fa84b8ebb4
Fix test for release builds
2018-09-28 13:40:58 +02:00
Nikita Popov
136aa37681
Merge branch 'PHP-7.3'
2018-09-28 12:59:17 +02:00
Nikita Popov
25522baec4
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-28 12:58:59 +02:00
Nikita Popov
1c35357b31
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-28 12:57:55 +02:00
Nikita Popov
45cdcb2d0b
Fixed bug #76846
2018-09-28 12:56:47 +02:00
Dmitry Stogov
9d47cb4593
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
Fix missing access errors for guarded properties
2018-09-27 23:50:04 +03:00
Nikita Popov
5a4cb3edde
Fix missing access errors for guarded properties
...
If a property access would normally result in a magic method call,
but the property is subject to an active recursion guard, the
access should behave as if the magic method does not exist.
This commit fixes one instance where this was not the case -- we
should have been generating a property access error, but instead
the operation simply did not do anything.
2018-09-27 14:58:26 +02:00
Dmitry Stogov
c1706980c0
Remove dead code (only IS_ARRAY may relive zendi_convert_scalar_to_number()), and micro-optimization.
2018-09-27 13:11:48 +03:00
Peter Kokot
390b74ee34
Rename ext/snmp/tests/bigtest.sh to bigtest
...
This can avoid some confusions with .gitignored autogenerated `.sh`
files in test directories and to distinguish the autogenerated shell
files from the tracked in Git ones more easily.
2018-09-27 02:41:54 +02:00
Peter Kokot
6b324bf845
[ci skip] Sync licenses
...
- ext/zip/lib has been unbundled
- ext/phar/zip.c added instead
- renumbered and ordered a bit
2018-09-26 23:40:43 +02:00
Peter Kokot
a4102e1bc3
Remove unused and untouched ext/libmbfl/tests files
...
Test files of the forked and bundled libmbfl library aren't utilized
in php-src. Instead, the current approach is to use the phpt tests.
2018-09-26 23:08:04 +02:00
Dmitry Stogov
3a3840a847
Avoid useless store and checks in xlat_table.
2018-09-26 17:05:49 +03:00
Letargie
ac842c7ecd
Removing last unused
2018-09-26 13:40:41 +02:00
Letargie
478f3d57e6
Last few changes :
...
. force the nls_date_format
. add the scale to the return of the function
. add tests on some function return
. removing unused variables
2018-09-26 13:19:29 +02:00
Peter Kokot
41ac1d492c
[ci skip] Mention php_pdo_mysql_sqlstate.h in the contributing info
2018-09-26 13:07:36 +02:00
Peter Kokot
8c28985cae
Remove outdated ext/ctype/ctpye.xml reference document
...
The ctype.xml file has been added with the early ctype extension
implementation and hasn't been updated with the recent changes. Also
file is not used anymore.
2018-09-26 12:57:54 +02:00
Peter Kokot
8e430d7e48
Remove outdated OOP examples Zend/tests/zend2.php.txt
...
This patch removes outdated examples file from the Zend/tests in favor
of the PHP manual OOP chapter [1].
[1] https://php.net/manual/en/language.oop5.php
2018-09-26 12:56:31 +02:00
Peter Kokot
c951836721
Remove unused files
...
- ext/simplexml/tests/bug25756_1.xml
- ext/simplexml/tests/bug25756_2.xml
- ext/simplexml/tests/bug25756.xsd
Added via 503d74aa29 and then removed via
9e29f17493
- ext/mysqli/tests/cacert.pem
- ext/mysqli/tests/client-cert.pem
- ext/mysqli/tests/client-key.pem
Added via e9f9f66f2e and then removed via
6d51b7b2e3
- ext/gd/tests/simpletext私はガラスを食べられます.jpg
Added via 3d3f11ede4 and never used
- ext/gd/tests/src.png
Added via cc938b5df0 and never used
- ext/zlib/tests/gzgetss.test
Added via d536ecac5c as a file content of the
ext/zlib/tests/gzgetss.gzbut but never used in tests directly. Removed for
better clarity of zlib tests
- ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2_absolute.wsdl
- ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimerpc.wsdl
- ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimedoc.wsdl
Added via 1d25fc5c7b and never used
- ext/reflection/tests/exception.inc
Removed via 9f8ba2e8a1
- ext/phar/tests/files/extracted.inc
Removed via 549bf83bd1
- ext/phar/tests/cache_list/files/extracted.inc
Added via 05c3104097 and never used
2018-09-26 12:54:20 +02:00
Letargie
f185ab7daf
Merge branch 'master' of https://github.com/php/php-src into feature-getcolumnmeta
2018-09-26 11:41:50 +02:00
Peter Kokot
ab1ce6058a
Make ext/session/mod_files.sh executable
...
Making shell script executable makes it possible to run like
`ext/session/mod_files.sh` and avoids error permission denied.
2018-09-26 06:11:13 +02:00
Peter Kokot
e3293ad35d
Remove unused ext/exif/tests/test6.jpg
...
Added via 569c69ba36 and then removed via
fb5da94c1b
2018-09-25 22:50:17 +02:00
Sara Golemon
70f3504ae0
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Bump version
2018-09-25 16:44:16 -04:00
Sara Golemon
c431b45fe4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump version
2018-09-25 16:43:40 -04:00
Sara Golemon
5f29e3fb6e
Bump version
2018-09-25 16:39:25 -04:00
Peter Kokot
981e5e17fa
Remove unused ext/enchant/tests files
...
- ext/enchant/tests/hindi_correct.txt
- ext/enchant/tests/hindi_incorrect.txt
Added via 5956f9a398 but never used.
2018-09-25 22:30:22 +02:00
Nikita Popov
74ade095db
Remove unused "dummy" member in reflection_object
2018-09-25 21:47:16 +02:00
Nikita Popov
45bb95c036
Reformat macros in php_reflection.c
2018-09-25 21:47:14 +02:00
Sara Golemon
ffc7f8ae52
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76918 Repeated parameter name in arg info
2018-09-25 12:10:33 -04:00
Sara Golemon
913c20e61f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76918 Repeated parameter name in arg info
2018-09-25 12:10:21 -04:00
Sara Golemon
4baf4964ad
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76918 Repeated parameter name in arg info
2018-09-25 12:09:38 -04:00
Sara Golemon
b5d0eb44c0
Fixed bug #76918 Repeated parameter name in arg info
2018-09-25 11:18:24 -04:00
Dmitry Stogov
5edaa6f947
Removed unused function
2018-09-25 15:44:56 +03:00
Christoph M. Becker
368ca8e090
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS wrt. php-7.3.0RC2 tagging
2018-09-25 11:29:50 +02:00
Christoph M. Becker
36092b2354
Update NEWS wrt. php-7.3.0RC2 tagging
2018-09-25 11:29:01 +02:00
Christopher Jones
029a8c9882
Merge branch 'PHP-7.3'
2018-09-24 20:53:42 +10:00
Christopher Jones
1d67577f4d
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 20:53:31 +10:00
Christopher Jones
682d0f8325
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 20:53:11 +10:00
Christopher Jones
9e56a3373e
Terminate smart string correctly
...
This is related to Zend VM regression bug #75881 . The regression was fixed in the VM, so there is no user visible change from the termination correction.
2018-09-24 20:52:58 +10:00
Christopher Jones
54b8dab8fe
Merge branch 'PHP-7.3'
2018-09-24 20:14:16 +10:00
Christopher Jones
e6fae9e6f9
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 20:14:05 +10:00
Christopher Jones
4ba1fc0a11
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 20:06:05 +10:00
Christopher Jones
91954c24da
Make usable for PECL OCI8 release for PHP 7.x
2018-09-24 20:05:54 +10:00
Christopher Jones
45f9849207
Merge branch 'PHP-7.3'
2018-09-24 17:07:12 +10:00
Christopher Jones
3413e7d1d8
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 17:07:06 +10:00
Christopher Jones
28b89afca1
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 17:06:59 +10:00
Christopher Jones
57eb25b393
Backport master branch comment typo fix
2018-09-24 17:06:29 +10:00
Christopher Jones
eb77030e1f
Merge branch 'PHP-7.3'
2018-09-24 17:03:09 +10:00
Christopher Jones
28ecd4e1c7
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 17:02:36 +10:00
Christopher Jones
d7b060e995
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 17:01:20 +10:00
Christopher Jones
3d497f884f
Make tests portable across PHP 7.x versions
2018-09-24 17:01:13 +10:00
Christopher Jones
db1d7a9871
Merge branch 'PHP-7.3'
2018-09-24 16:52:40 +10:00
Christopher Jones
f291a36659
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 16:52:33 +10:00
Christopher Jones
a370e7d0ad
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 16:52:26 +10:00
Christopher Jones
338802b543
Remove $id from phpinfo as already done in PHP-7.3
2018-09-24 16:52:17 +10:00
Christopher Jones
c86e19a31d
Merge branch 'PHP-7.3'
2018-09-24 16:41:48 +10:00
Christopher Jones
d7b87cd995
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 16:41:35 +10:00
Christopher Jones
fc296a27db
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 16:38:47 +10:00
Christopher Jones
37652336c7
And strip trailing tabs too...
2018-09-24 16:38:39 +10:00
Christopher Jones
6af467e08e
Merge branch 'PHP-7.3'
2018-09-24 16:02:31 +10:00
Christopher Jones
aae4ccb030
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 16:02:19 +10:00
Christopher Jones
d2b04c1749
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 16:00:04 +10:00
Christopher Jones
bdd67d8175
Sync EXPECT usage with PHP-7.3
2018-09-24 15:59:52 +10:00
Christopher Jones
cdb9dd1938
Merge branch 'PHP-7.3'
2018-09-24 13:34:28 +10:00
Christopher Jones
45ab3d3ad3
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 13:33:54 +10:00
Christopher Jones
f396d297aa
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 13:27:35 +10:00
Christopher Jones
a2c0f8722b
Remove trailing whitespace to help keep branches in sync
2018-09-24 13:27:27 +10:00
Christopher Jones
3bbb0c3887
Merge branch 'PHP-7.3'
2018-09-24 09:57:37 +10:00
Christopher Jones
826702417d
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 09:57:20 +10:00
Christopher Jones
f68662f63f
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 09:56:53 +10:00
Christopher Jones
eceb34073b
Remove trailing whitespace to help keep branches in sycn
2018-09-24 09:37:46 +10:00
Peter Kokot
50b4b63cc6
Remove outdated zlib readme file for windows build
2018-09-23 22:52:23 +02:00
Peter Kokot
f116484cf1
Rename *.php files in ext/dom tests to *.inc
...
*.php files are ignored by Git and a better practice might be to rename
PHP included files for tests.
2018-09-23 17:22:55 +02:00
Peter Kokot
f6605c788f
Rename *.php files in Zend/tests to *.inc
...
*.php files are ignored by Git and a better practice might be to rename
PHP included files for tests.
2018-09-23 17:20:42 +02:00
Peter Kokot
9e5853b699
Sync ext/spl/README with current set of example files
2018-09-23 16:46:58 +02:00
Nikita Popov
74235ca5f3
Bump minimum libxml version to 2.7.6
...
Released Oct 2009, part of RHEL 6.
2018-09-23 15:51:09 +02:00
Nikita Popov
c5f108c66c
Handle binary_op failure in overloaded assigns
2018-09-23 15:29:25 +02:00
bugreportuser
59d99a2c47
Remove unnecessary base64_encode() return value check
...
php_base64_encode() never returns NULL, so base64_encode() will never return
false.
2018-09-23 14:49:10 +02:00
Anatol Belski
e8538b9f27
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
2018-09-23 11:42:41 +02:00
Anatol Belski
da17686d60
[ci skip] Update NEWS
2018-09-23 11:42:07 +02:00
Nikita Popov
152dc924c5
Drop WE_DONT_COPY_IN_BUFFERED_AND_UNBUFFERED_BECAUSEOF_IS_REF
...
And perform some code cleanups this allows.
2018-09-22 18:53:32 +02:00
Nikita Popov
e188d2fe0e
Remove duplicate test file
...
This is already tested in Zend/tests/bug63463.phpt.
2018-09-22 17:46:54 +02:00
Nikita Popov
9faff4f783
Drop ext/spl/spl.php
...
Leftover from ext/spl/internal, which was removed previously.
2018-09-22 17:46:54 +02:00
Christoph M. Becker
7022f3a34f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #66828 : iconv_mime_encode Q-encoding longer than it should be
2018-09-22 15:57:28 +02:00
Christoph M. Becker
150e2b8c8c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #66828 : iconv_mime_encode Q-encoding longer than it should be
2018-09-22 15:56:49 +02:00
Christoph M. Becker
7c2cc9aa56
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #66828 : iconv_mime_encode Q-encoding longer than it should be
2018-09-22 15:31:02 +02:00
Christoph M. Becker
9cbe1283f7
Fix #66828 : iconv_mime_encode Q-encoding longer than it should be
...
Before the fix for bug 48289 has been applied, the algorithm to
construct a Q-encoded-word has been optimistic, i.e. try to encode as
many bytes that *may* fit in the remaining space, calculate the actual
length of the Q-encoded word, and if it's too long, try again with a
reduced size. However, the fix for the mentioned bug replaced this by
a pessimistic algorithm, which always terminates[1] the for loop[2]
during the first iteration (which renders the following 3 lines as dead
code), and as such easily produces unnecessarily short encoded-words.
Instead the proper fix for the bug would have been to make sure that
`out_size` is always decremented, if the space isn't sufficient for the
encoded-word.
[1] <https://github.com/php/php-src/blob/php-7.3.0beta3/ext/iconv/iconv.c#L1421 >
[2] <https://github.com/php/php-src/blob/php-7.3.0beta3/ext/iconv/iconv.c#L1360 >
2018-09-22 15:20:20 +02:00
Anatol Belski
5e1c3d62f9
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix test and add skip section
2018-09-22 02:11:06 +02:00
Anatol Belski
9f3aac9e39
Fix test and add skip section
2018-09-22 02:10:43 +02:00
Anatol Belski
a2c843780e
[ci skip] Update UPGRADING.INTERNALS
2018-09-22 02:05:28 +02:00
Peter Kokot
5da3ed69a6
Rename *.p5c files to *.inc
...
When including files in PHP tests a good practice so far has been to use
the *.inc extension. This patch renames few *.p5c files that are
included in phpt files.
2018-09-21 23:21:14 +02:00
Peter Kokot
949becb166
Add directory structure to the contributing docs
...
This patch adds a php-src directory structure introduction to the
contributing guidelines. Thanks to the discussion at [1] and PHP
manual.
[1] https://github.com/php/php-src/pull/3520
2018-09-21 17:42:21 +02:00
Anatol Belski
4ec7463df6
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Add test for bug #76909
Fixed bug #76909 preg_match difference between 7.3 and < 7.3
Upgrade PCRE2 to 10.32
2018-09-21 15:58:50 +02:00
Anatol Belski
9c58ab37c7
Add test for bug #76909
2018-09-21 15:57:00 +02:00
Anatol Belski
7a02ecb7fe
Fixed bug #76909 preg_match difference between 7.3 and < 7.3
...
Applied upstream patch, see https://bugs.exim.org/show_bug.cgi?id=2321
2018-09-21 15:55:03 +02:00
Anatol Belski
91b2b6c65d
Upgrade PCRE2 to 10.32
...
(cherry picked from commit d918e0776b )
2018-09-21 15:54:14 +02:00
Christoph M. Becker
7b9b398daa
Update NEWS and UPGRADING wrt. PR 2760
2018-09-21 15:15:40 +02:00
Christoph M. Becker
759e066938
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix
Fix
2018-09-21 15:06:35 +02:00
Peter Kokot
bfa2c7158f
Fix permissions
...
Certain files don't need to be executables.
2018-09-21 14:12:25 +02:00
Peter Kokot
a1b5698d4e
Remove HAVE_TIME_H
...
The `<time.h>` header file is part of the standard C89 headers [1] and
on current systems can be included unconditionally.
Since PHP requires at least C89 or greater, the `HAVE_TIME_H` symbol
defined by Autoconf in ext/pdo_sqlite/config.m4 [2] can be ommitted and
simplifed.
Additionally, since PHP didn't define `HAVE_TIME_H` prior in the
configure.ac the occurrence of this symbol in cli can be removed.
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
2018-09-21 14:10:30 +02:00
Letargie
19e64db933
cs
2018-09-21 13:35:45 +02:00
Letargie
957ed3c622
Merge branch 'feature-getcolumnmeta' of https://github.com/Letargie/php-src into feature-getcolumnmeta
2018-09-21 13:27:11 +02:00
Letargie
5dedf15d2d
Changes :
...
. Add the distinction between NUMBER and FLOAT types
. Changing BFLOAT text to be BINARY_FLOAT
. Changing BDOUBLE text to be BINARY_DOUBLE
. Add the data types names for NCHAR, NVARCHAR and NCLOB
. Few changes in the tests
Also, my commit is correcting a bug in the function oci_stmt_describe. PDO override the values given for the precision using the content of the pdo_column_data property 'precision'.
That value was set in oci_stmt_describe but with the value of OCI_ATTR_SCALE, causing a bug for the precision value returned by getColumnMeta() (values between 12800 and 14000 probably due to the conversion of a sb1 to a zend_ulong)
2018-09-21 13:16:54 +02:00
Sebastian Bergmann
72231ed747
Fix
2018-09-20 12:01:34 -04:00
Sebastian Bergmann
a311799864
Fix
2018-09-20 11:53:27 -04:00
Valentin Collet
b9944452b7
fixing comments
2018-09-20 15:13:36 +02:00
Valentin Collet
61ae69e062
Update oci_statement.c
2018-09-20 12:17:06 +02:00
Letargie
d25d9276ff
Add the PDOStatement::getColumnMeta() function to the pdo_oci driver
2018-09-20 12:03:57 +02:00
Dmitry Stogov
c1b649d448
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76711 (OPcache enabled triggers false-positive "Illegal string offset")
2018-09-20 12:34:31 +03:00
Dmitry Stogov
b8ffa3707c
Fixed bug #76711 (OPcache enabled triggers false-positive "Illegal string offset")
2018-09-20 12:33:46 +03:00
Christoph M. Becker
fe3ec212dc
Update to SQLite 3.25.1
2018-09-19 20:01:04 +02:00
Dmitry Stogov
a5208c393d
Use macro
2018-09-19 18:09:32 +03:00
Dmitry Stogov
f5e1868601
Improved hash copying
2018-09-19 17:53:10 +03:00
Dmitry Stogov
27b9fac19c
Drop unused variable
2018-09-19 14:43:17 +03:00
Dmitry Stogov
27b0fecd2e
Turn zend_hash_exists() into inline function
2018-09-19 13:55:53 +03:00
Dmitry Stogov
6beaa9fa5b
Use zend_hash_find() instead of zend_hash_exists()
2018-09-19 13:55:27 +03:00
Dmitry Stogov
2a54867f7e
Micro-optimization
2018-09-19 13:54:37 +03:00
Dmitry Stogov
0df57480b6
Remove zend_hash_exists()
2018-09-19 13:54:02 +03:00
Nikita Popov
e6a09f39b8
Merge branch 'PHP-7.3'
2018-09-19 12:32:03 +02:00
Nikita Popov
f5729ec532
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-19 12:31:55 +02:00
Nikita Popov
c26902911f
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-19 12:31:46 +02:00
Nikita Popov
842bec5b3c
Fix getColumnMeta() test
...
Newer MySQL versions are stricter about invalid values. Three issues
are fixed:
* Don't use negative values with ZEROFILL. ZEROFILL implies UNSIGNED.
* Use a legal TIMESTAMP value. TIMESTAMP does not accept a Unix timestamp.
* Specify BIGINT values as strings, to avoid overflows.
This is a cherry-pick of d2dc0a3291 from master.
2018-09-19 12:29:38 +02:00
Nikita Popov
c614dd677c
Fix intermittent failures in mysqli_stmt_bind_result_format.phpt
...
There were two distinct issues here:
* $trend was compared against 'NULL' using !=, which does not work
as intended in the case where $trend==0.0.
* current_targets was declared as double(17,0), which means that
the fractional part was rounded, so that the same comparison in
SQL (rounded) and in PHP (not rounded) did not necessarily
match.
Please don't write mt_rand based tests, it takes ages to debug this
crap...
2018-09-19 12:27:31 +02:00
Dmitry Stogov
ef00e7e547
Remove zend_hash_exists()
2018-09-19 12:22:58 +03:00
Dmitry Stogov
b137441f0e
Improve ZEND_VM_SMART_BRANCH()
2018-09-19 11:47:02 +03:00
Nikita Popov
10a1cfd17e
Merge branch 'PHP-7.3'
2018-09-19 09:40:12 +02:00
Nikita Popov
040ca85eac
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-19 09:39:31 +02:00
Nikita Popov
cc1fb02760
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-19 09:39:13 +02:00
Nikita Popov
294fb83ee8
Fixed bug #76901
...
get_method() may modify the object pointer passed to it if method
forwarding is used. In this case we do not want to modify the
passed zval, so make sure that we copy the object into a temporary
first.
2018-09-19 09:37:04 +02:00
Peter Kokot
6f1a04120b
Remove unused methods-on-non-objects-nested.inc
...
File `Zend/tests/methods-on-non-objects-nested.inc` was introduced
in 971d369d88 and made obsolete in
1c94ff0595 .
2018-09-18 21:58:40 +02:00
Nikita Popov
cdde07d059
Merge branch 'PHP-7.3'
2018-09-18 20:51:50 +02:00
Nikita Popov
c2da50bc41
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-18 20:51:28 +02:00
Nikita Popov
6bf681249f
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-18 20:50:37 +02:00
Manabu Matsui
ab6c45f524
Fix bug #75533 : array_reduce is slow when $carry is large array
2018-09-18 20:49:59 +02:00
Dmitry Stogov
b634ded197
Class constants and default property values can't be IS_REFERENCE anymore.
2018-09-18 18:46:10 +03:00
Dmitry Stogov
2df91cb519
Fixed crashes in ZTS build introduced by 689c6fb188
2018-09-18 16:49:58 +03:00
Anatol Belski
d918e0776b
Upgrade PCRE2 to 10.32
2018-09-18 14:16:52 +02:00
Nikita Popov
4f36acb9e6
Remove server-tests.php
...
As far as I know server-tests.php is unmaintained and no longer
used for anything nowadays. Some of the new sections are supported
by run-tests.php itself nowadays and some server-based tests
(using the CLI server or php-fpm) are performed through different
means.
Dropping server-tests.php has been discussed in a bunch of PR
discussions already, so let's go ahead with it...
2018-09-18 13:10:44 +02:00
Nikita Popov
e947bcaf39
Simplify buffer management in php_intl_idn_to_46()
...
Instead of manually tracking how/whether the buffer is used, make
use of the string refcount.
2018-09-18 12:46:30 +02:00
Nikita Popov
208f5b0941
Merge branch 'PHP-7.3'
2018-09-18 12:39:13 +02:00
Nikita Popov
9f4ec45aa6
Remove invalid free
...
The initialization of buffer has been moved further down in 7.3,
so this free is no longer legal.
2018-09-18 12:38:46 +02:00
Nikita Popov
1a55c3607d
Drop --without-libzip option from Travis
...
We need to build against the system libzip now.
Also add an UPGRADING note.
2018-09-18 12:16:55 +02:00
Nikita Popov
4e23dffe04
Remove bundled libzip
2018-09-18 12:13:43 +02:00
Remi Collet
c099be4b5a
drop support for bundled libzip (linux)
2018-09-18 12:13:43 +02:00
Nikita Popov
a7b8131606
Drop unused variable
2018-09-18 12:12:36 +02:00
Nikita Popov
c625150b02
Remove legacy add_*_unset() macros
...
These have been superseded by add_*_null().
2018-09-18 12:12:36 +02:00
Nikita Popov
5cf2045b0a
Remove add_method() macro
...
Which uses add_assoc_function(), which doesn't exist anymore...
2018-09-18 12:12:36 +02:00
Anatol Belski
e794bde35d
Merge branch 'PHp-7.3'
...
* PHp-7.3:
Add spectre switch for suitable vc14 versions
2018-09-18 10:47:34 +02:00
Anatol Belski
f608a60456
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add spectre switch for suitable vc14 versions
2018-09-18 10:46:44 +02:00
Anatol Belski
a747db872f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add spectre switch for suitable vc14 versions
2018-09-18 10:45:18 +02:00
Anatol Belski
be02b2e8fd
Add spectre switch for suitable vc14 versions
2018-09-18 10:43:52 +02:00
Dmitry Stogov
689c6fb188
Replace ZEND_ACC_ANON_BOUND, ZEND_ACC_UNRESOLVED_PARENT and ZEND_ACC_UNRESOLVED_INTERFACES with single ZEND_ACC_LINKED.
2018-09-18 11:41:40 +03:00
Peter Kokot
b189c2432a
Remove HAVE_STDARG_H
...
The C89 standard and later defines the `<stdarg.h>` header as part of
the standard headers [1]. On current systems it is always present and
can be included unconditionally.
Checking for presence and functionality of the `<stdarg.h>` header and
variadic function is not relevant anymore on current systems since this
is always available.
Also Autoconf suggests relying on at least C89 or above [2] and [3].
The following files were regenerated with re2c 1.0.3:
- Zend/zend_language_scanner.c
- Zend/zend_language_scanner_defs.h
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
[3] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
2018-09-18 05:44:56 +02:00
Peter Kokot
d3ca28f569
Remove HAVE_STRING_H
...
The C89 standard and later defines the `<string.h>` header as part of
the standard headers [1] and on current systems it is always present.
Code included also `<strings.h>` header as an alterinative in some
files. This kind of check was relevant on some older systems where the
`<strings.h>` file included definitions for the C89 compliant
`<string.h>`. Today such alternative check is not required anymore. The
`<strings.h>` file is part of the POSIX definition these days.
Also Autoconf suggests doing this and relying on C89 or above [2] and [3].
This patch also cleans few unused `<strings.h>` inclusions in the libmbfl.
[1]: https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2]: http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
[3]: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
2018-09-18 05:32:08 +02:00
Peter Kokot
cfe46a5d79
Fix config.guess and config.sub files in .gitignore
...
Files `config.guess` and `config.sub` are committed in the php-src
repository so these don't need to be ignored for the root directory.
For the extensions these can be ignored in case of building extension
inside the php-src with phpize.
2018-09-18 05:21:19 +02:00
Pierrick Charron
8ea6ee7fb2
Merge branch 'PHP-7.3'
2018-09-17 20:31:36 -04:00
Pierrick Charron
aec2d63124
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-17 20:31:07 -04:00
Pierrick Charron
bc1ecd5d7f
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-17 20:30:18 -04:00
Pierrick Charron
3bb218a0a7
Fix 76480: Use curl_multi_wait() so that timeouts are respected
2018-09-17 20:28:44 -04:00
Nikita Popov
37dc710ae6
Remove my_estrdup() and my_efree() macros
...
Replace the single use of my_efree().
2018-09-17 20:59:16 +02:00
Nikita Popov
02664aee5c
Remove ZEND_EARLY_BINDING_* constants
...
It seems like these were never actually used.
2018-09-17 20:59:16 +02:00
Nikita Popov
a79e5f705c
Remove ZEND_OBJECTS_STORE_HANDLERS macro
...
Object store handlers are no longer a thing since PHP 7.
2018-09-17 20:59:16 +02:00
Nikita Popov
3c8e5432b0
Remove unused ZEND_CT and ZEND_RT constants
2018-09-17 20:59:16 +02:00
Nikita Popov
415cb20dc1
Remove unused HAVE_BROKEN_GLIBC_FOPEN_APPEND
...
This has not been used since PHP 5.0.
2018-09-17 20:59:16 +02:00
Dmitry Stogov
62338a2385
Use different loop terminating conditions
2018-09-17 20:39:28 +03:00
Dmitry Stogov
1154f6f70a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Allow switching back to Zend MM heap.
2018-09-17 20:21:05 +03:00
Dmitry Stogov
b25bc917ec
Allow switching back to Zend MM heap.
2018-09-17 20:20:13 +03:00
Nikita Popov
ac03b15e3c
Remove __USE_GNU defines
...
This is an internal glibc macro, it should not be necessary to use
it if we already define _GNU_SOURCE (we do through
AC_USE_SYSTEM_EXTENSIONS). Needing to use __USE_GNU generally
indicates an inclusion order problem (libc header included before
config.h).
2018-09-17 17:51:00 +02:00
Nikita Popov
819ae353a7
Don't export anything in php_sysvmsg.h
...
These are all only relevant for the implementation.
2018-09-17 17:49:09 +02:00
Anatol Belski
44fa6be16e
Set correct error code and adapt test
2018-09-17 17:19:39 +02:00
Nikita Popov
70d47b3c4a
Switch Travis build to Xenial
...
Also explicitly start the mysql and pgsql services, as these are
no longer running by default.
2018-09-17 17:10:49 +02:00
Nikita Popov
d2dc0a3291
Fix getColumnMeta() test
...
Newer MySQL versions are stricter about invalid values. Three issues
are fixed:
* Don't use negative values with ZEROFILL. ZEROFILL implies UNSIGNED.
* Use a legal TIMESTAMP value. TIMESTAMP does not accept a Unix timestamp.
* Specify BIGINT values as strings, to avoid overflows.
2018-09-17 17:10:49 +02:00
Nikita Popov
cc6871152b
Don't install libt1-dev on travis
...
Support for libt1 has been removed from ext/gd in PHP 7.0 by
7dcfdbbee4 , so we no longer need
to install this package. It is also no longer available on newer
Ubuntu versions.
2018-09-17 13:48:39 +02:00
Nikita Popov
5776b4453d
Remove unused MREMAP_MAYMOVE compatibility define
2018-09-17 13:48:39 +02:00
Anatol Belski
decdca664e
Fix error setting, both errors are needed
2018-09-17 13:34:52 +02:00
Nikita Popov
b3f8a6341d
Remove unused HAVE_MEM_MMAP_ANON and HAVE_MEM_MMAP_ZERO checks
...
These haven't been used since the MM rewrite in PHP 7.0. Nowadays
we assume that either MAP_ANON or MAP_ANONYMOUS is available.
2018-09-17 12:08:11 +02:00
Nikita Popov
f57be4bdbe
Remove __GNUC__ guard around stddef.h include
...
HAVE_STDDEF_H guards have been removed by
6c1ff61a36 , because the header is
always available in C89. This removes a __GNUC__ guard for the
same header.
2018-09-17 12:08:11 +02:00
Anatol Belski
321c0cc349
Fix localized error messages and memory leaks
...
The FormatMessage API needs to LocalFree the delivered error messages.
In cases where messages are delivered in non ASCII compatible encoding,
the messages might be unreadable. This aligns the error message encoding
with the encoding settings in PHP, the focus is UTF-8 as default.
Initialize error buffer
Avoid code duplication
2018-09-17 10:56:50 +02:00
Nikita Popov
3b475910d6
Don't use xml resource in openssl test
...
Instead use a file resource, removing the dependency on ext/xml.
2018-09-17 10:20:26 +02:00
Nikita Popov
3e4b977df6
Remove PHP_XML_INTERNAL defines
...
This macro is no longer used.
2018-09-17 10:13:55 +02:00
Nikita Popov
178dcd4749
Perform final GC before the object store is freed
...
free_object_storage intentionally does not free the object allocations
to make sure that they show up as leaks. However, if the object is in
the GC root buffer, the later GC run may end up freeing the allocation,
hiding the leak.
Avoid this by moving the final GC run before free_object_storage, the
way it was done before fast_shutdown was integrated into core.
2018-09-17 10:13:55 +02:00
Peter Kokot
ba3bd4ae06
Remove HAVE_STDIO_H
...
The `<stdio.h>` header file is part of the standard C89 headers [1]
and on current systems can be included unconditionally.
Since PHP requires at least C89 or greater, the `HAVE_STDIO_H` symbol
defined by Autoconf [2] can be ommitted and simplifed.
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
2018-09-17 02:00:51 +02:00
Peter Kokot
03bbdf275a
Make PHP development tools files executable
...
This patch makes few remaining PHP development tools files
executable and adds a shebang to them.
The `#!/usr/bin/env php` shebang provides running the script via
`./script.php` and uses env to find PHP script location on the system.
At the same time it still provides running the script with a user
defined PHP location using `php script.php`. Shebang is not visible in
the output of the generated file.
2018-09-17 00:02:36 +02:00
Gabriel Caruso
c9884354d2
Explain why the test was skipped
2018-09-16 17:31:06 -03:00
Peter Kokot
7dd62811ce
Remove HAVE_STDLIB_H
...
The C89 and later standard defines the `<stdlib.h>` header as part of
the standard headers [1] and on current systems it is always present
and the `HAVE_STDLIB_H` symbol can be removed.
Also Autoconf suggests doing this and relying on C89 or above [2] and [3].
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
[3] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
2018-09-16 20:53:53 +02:00
Peter Kokot
dcc529aff4
Remove HAVE_SYS_VARARGS_H
...
Outdated systems used to provide the `<varargs.h>` and in case of PHP
`<sys/varargs.h>`. [1]
Current systems have `<stdarg.h>` which is also a C89 standard header
and systems have it always present. [2]
[1] https://en.wikipedia.org/wiki/Stdarg.h#varargs.h
[2] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
2018-09-16 20:50:20 +02:00
Gabriel Caruso
f72b6c5e19
Use EXPECT instead of EXPECTF when possible
2018-09-16 15:39:18 -03:00
Nikita Popov
d51b9a690e
Remove unnecessary destroy wrappers
...
There used to be needed due to ZEND_FILE_LINE in debug builds.
As the argument is no longer passed, we don't need the wrappers
either.
2018-09-16 17:16:26 +02:00
Nikita Popov
dfa166e7ed
Remove unused ZEND_FILE_LINE in i_zval_ptr_dtor
2018-09-16 17:16:26 +02:00
Christoph M. Becker
25685942fa
Don't hard-code object number in expectation
2018-09-16 15:52:18 +02:00
Nikita Popov
2d81db5643
Remove checks for libxml < 2.6.11
...
These are below our minimum version requirement.
2018-09-16 11:32:18 +02:00
Nikita Popov
1d0252a1c0
Remove IS_EXT_MODULE defines
...
I'm not sure what this was used for, but it doesn't look to be
relevant anymore.
2018-09-16 11:09:51 +02:00
Nikita Popov
ca6caa0cb2
Make ext/xml API private
...
Also remove dead functions
2018-09-16 11:07:40 +02:00
Christoph M. Becker
ba300b69d2
Update to SQLite 3.25.0
2018-09-15 23:12:25 +02:00
Richard Fussenegger
a25171b96d
Silence ar warning
2018-09-15 20:42:25 +02:00
Christoph M. Becker
6da3a1e3ce
Revert "Implement #67331 : Have parse_ini_file add empty entries"
...
This reverts commit 3f3e914df3 .
The commit broke some tests on Windows, and generally needs more
though.
2018-09-15 17:08:58 +02:00
Christoph M. Becker
3f3e914df3
Implement #67331 : Have parse_ini_file add empty entries
...
Some INI processors allow to specify empty values by just giving the
key without the equals sign, for instance MySQL and Python. It appears
to be sensible to add this possibility to our INI parser, so that it
can be used for such INI files as well. We choose NULL as the value of
empty values.
This syntactical enhancement is a (minor) BC break, though, as can be
seen by the necessary change to bug49692.ini. The “comment” formerly
has been simply ignored, but now it would be parsed as key with an
empty value.
This PR is based on Adam's former patch.
2018-09-15 15:37:01 +02:00
Christoph M. Becker
01912f93c3
Change default of $variant param of idn_to_ascii() and idn_to_utf8()
...
According to the “Deprecate and remove INTL_IDNA_VARIANT_2003” RFC[1],
we change the default of the $variant parameter of `idn_to_ascii()` and
`idn_to_utf8()` from `INTL_IDNA_VARIANT_2003` to
`INTL_IDNA_VARIANT_UTS46`.
[1] <https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003 >
2018-09-15 14:41:30 +02:00
Christoph M. Becker
8a4c2f1621
Require ICU ≥ 50.1
...
Given that ICU is a set of lively developed libraries, that ICU 50.1
has been released on 2012-11-05, and PHP 7.4 is scheduled to be
released seven years after it, we consider it appropriate to ditch
these legacy versions.
Particularly, that would be a reasonable groundwork to implement part
two of the “Deprecate and remove INTL_IDNA_VARIANT_2003” RFC[1], namely
to default idn_to_ascii()'s and idn_to_utf8()'s $variant parameter to
INTL_IDNA_VARIANT_UTS46, which is not defined in ICU < 4.6.
See also the related discussion on internals@[2].
[1] <https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003 >
[2] <http://news.php.net/php.internals/101626 >ff
2018-09-15 13:59:54 +02:00
Christoph M. Becker
b820a7b2ff
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76886 : Can't build xmlrpc with expat
2018-09-15 13:25:49 +02:00
Christoph M. Becker
ae46e20879
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76886 : Can't build xmlrpc with expat
2018-09-15 13:24:48 +02:00
Thomas Petazzoni
3691b6d245
Fix #76886 : Can't build xmlrpc with expat
...
We fix it by including "php.h" in the HAVE_LIBEXPAT case.
2018-09-15 13:21:53 +02:00
Dmitry Stogov
7eb255e9db
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76800 (foreach inconsistent if array modified during loop)
2018-09-14 10:33:32 +03:00
Dmitry Stogov
17c7b71057
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76800 (foreach inconsistent if array modified during loop)
2018-09-14 10:32:31 +03:00
Dmitry Stogov
3bc4a63fc2
Fixed bug #76800 (foreach inconsistent if array modified during loop)
2018-09-14 10:28:31 +03:00
Anatol Belski
c571005bd9
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Sync version for vc++ 15.9
2018-09-13 19:28:02 +02:00
Anatol Belski
6bd6265845
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync version for vc++ 15.9
2018-09-13 19:27:29 +02:00
Anatol Belski
83685b5258
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync version for vc++ 15.9
2018-09-13 19:26:49 +02:00
Anatol Belski
d77ac7b3dc
Sync version for vc++ 15.9
2018-09-13 19:25:23 +02:00
Dmitry Stogov
49b92446d7
Remove zend_check_private()
2018-09-13 13:47:06 +03:00
Dmitry Stogov
50b515f1a2
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
Fix a typo in a class catch in Phar
2018-09-13 13:38:27 +03:00
Dmitry Stogov
bc288c4723
Simplify __clone() visibility check (magic methods still don't respect ZEND_ACC_CHANGED).
2018-09-13 13:36:09 +03:00
Tyson Andre
26f952b175
Fix a typo in a class catch in Phar
2018-09-13 11:48:42 +02:00
Dmitry Stogov
72bf2def6b
Make visibilty check in is_callable() to be consistent with zend_std_get_method()
2018-09-13 12:24:59 +03:00
Anatol Belski
67a75a79ae
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Backport changes for OpenSSL 1.1.1 CI integration
2018-09-13 11:07:09 +02:00
Anatol Belski
b9bcca0080
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Backport changes for OpenSSL 1.1.1 CI integration
2018-09-13 11:06:47 +02:00
Anatol Belski
922f1a0dcf
Backport changes for OpenSSL 1.1.1 CI integration
...
Add debug message for failing test parts
(cherry picked from commit a45169a6ba )
Show all unmatched errors when test failed
(cherry picked from commit 7015965254 )
More possibly colliding libs to remove from the test image
(cherry picked from commit 3008ad1a49 )
Remove colliding file from CI image
(cherry picked from commit 6220d21c34 )
Fix typo
(cherry picked from commit 24517d82cf )
2018-09-13 11:03:42 +02:00
Anatol Belski
24517d82cf
Fix typo
2018-09-13 10:06:49 +02:00
Anatol Belski
6220d21c34
Remove colliding file from CI image
2018-09-13 10:05:27 +02:00
Dmitry Stogov
a12cd1c5e0
Split error code into "cold" functions and cleanup.
2018-09-13 10:31:49 +03:00
Dmitry Stogov
e1ef054be5
Micro-optimization (condition reordering)
2018-09-13 09:31:38 +03:00
Dmitry Stogov
eb4148e02d
typo
2018-09-13 08:49:21 +03:00
Anatol Belski
3008ad1a49
More possibly colliding libs to remove from the test image
2018-09-13 00:49:54 +02:00
Dmitry Stogov
f79270d876
Micro-optimization
2018-09-13 01:41:19 +03:00
Dmitry Stogov
cdeebfd4af
Avoid unnecesury iterations over parent classes, in case of no overriden private properties.
2018-09-12 23:47:52 +03:00
Anatol Belski
7015965254
Show all unmatched errors when test failed
2018-09-12 22:27:30 +02:00
Anatol Belski
a45169a6ba
Add debug message for failing test parts
2018-09-12 19:59:20 +02:00
Dmitry Stogov
5293dd9d8b
Optimize method/property visibility checks
2018-09-12 18:59:12 +03:00
Anatol Belski
8a8edac8a5
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Improve error code matching
2018-09-12 16:26:26 +02:00
Anatol Belski
ed5262b589
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Improve error code matching
2018-09-12 16:25:39 +02:00
Anatol Belski
05a4fec761
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Improve error code matching
2018-09-12 16:24:38 +02:00
Anatol Belski
19ab91781e
Improve error code matching
2018-09-12 16:22:22 +02:00
Anatol Belski
385ffea3ab
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update binary SDK version for AppVeyor
2018-09-12 12:12:38 +02:00
Anatol Belski
a14b69e114
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update binary SDK version for AppVeyor
2018-09-12 12:11:47 +02:00
Anatol Belski
aed32f2a03
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update binary SDK version for AppVeyor
2018-09-12 12:11:07 +02:00
Anatol Belski
49511a5132
Update binary SDK version for AppVeyor
2018-09-12 12:09:32 +02:00
Dmitry Stogov
3444c260a2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76869 (Incorrect bypassing protected method accessibilty check).
2018-09-12 12:27:48 +03:00
Dmitry Stogov
655a99d131
Fixed bug #76869 (Incorrect bypassing protected method accessibilty check).
2018-09-12 12:16:50 +03:00
Dmitry Stogov
beb3594eb8
Better ZEND_ACC_CHANGED handling
2018-09-12 11:43:15 +03:00
Dmitry Stogov
aee4b145ef
Optimisation: Check for private property in parent class makes sense only if we already found a property info. Check for property started with "\\0" makes sense only if we didn't find property info.
2018-09-12 09:57:36 +03:00
Dmitry Stogov
73efd1b651
Simplify method visibility checks
2018-09-12 08:31:01 +03:00
Ferenc Kovacs
34f4ecee25
Merge branch 'PHP-7.3'
2018-09-12 00:08:34 +02:00
Ferenc Kovacs
58735c59b1
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-12 00:06:33 +02:00
Ferenc Kovacs
f56eeb1779
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-12 00:04:40 +02:00
Ferenc Kovacs
68a77fe3d8
Merge branch 'PHP-7.0' into PHP-7.1
2018-09-12 00:02:18 +02:00
Ferenc Kovacs
cba6055cac
Merge branch 'PHP-5.6' into PHP-7.0
2018-09-12 00:00:46 +02:00
Ferenc Kovacs
81f23057dc
5.6.39 will be the next
2018-09-11 23:58:17 +02:00
Dmitry Stogov
83fe1f1cc8
Use Zend API helper functions
2018-09-11 23:50:43 +03:00
Dmitry Stogov
1cc0d78c9b
This increment is not necessary anymore.
2018-09-11 22:56:31 +03:00
Dmitry Stogov
06f056a760
Additional fix for bug #76860 .
2018-09-11 18:29:27 +03:00
Christoph M. Becker
3f41ce75bb
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS wrt. php-7.3.RC1 tagging
2018-09-11 16:30:52 +02:00
Christoph M. Becker
e6585a472e
[ci skip] Update NEWS wrt. php-7.3.RC1 tagging
2018-09-11 16:28:36 +02:00
Dmitry Stogov
0fbd2e6a16
Renumber ZEND_ACC_... flags
2018-09-11 17:21:17 +03:00
Dmitry Stogov
1570fe180f
Removed weird test, trait can't be "static" or "final".
2018-09-11 17:07:06 +03:00
Nikita Popov
e1123e3e4e
Drop unused variable
2018-09-11 15:16:11 +02:00
Dmitry Stogov
37290ad8d2
Use mnemonic names
2018-09-11 14:54:11 +03:00
Christoph M. Becker
aaae9c66db
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76510 : file_exists() stopped working for phar://
2018-09-11 12:23:50 +02:00
Christoph M. Becker
b117feeb2b
Fix #76510 : file_exists() stopped working for phar://
...
We work around a strlen() optimization bug in GCC 8[1] by checking
whether the used GCC exhibits the broken behavior, and if so by
disabling `optimize-strlen`.
[1] <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86914 >
2018-09-11 12:23:20 +02:00
Dmitry Stogov
034b7ff091
Get rid of ZEND_ACC_IMPLICIT_PUBLIC
2018-09-11 12:26:26 +03:00
Dmitry Stogov
5c39b2c328
Added test for bug #76860 (Missed "Accessing static property as non static" warning).
...
It's already fixed by previous commit.
2018-09-11 12:10:14 +03:00
Dmitry Stogov
3a249e769b
Squashed commit of the following:
...
commit 2d3cac9e005d6bef9aa73ab57cc674aa53125954
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Sep 11 11:54:47 2018 +0300
Fixed static property access
commit 31786ee27282f319f3ef2a07635b1f325cbd67c6
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Sep 11 11:05:29 2018 +0300
Avoid duplicate checks
commit 5ae502b979ea33d058d01a9421eec5afd0084e8d
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Sep 11 10:39:17 2018 +0300
Optimization
commit 82c17f0e8af02c9cf7d1bbdae4e3158330148203
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Sep 11 09:26:50 2018 +0300
Removed unused zend_duplicate_property_info()
commit ba53d1d0dd91d5530328a11cac93ff9e75c462b5
Merge: eacc11b8fd c4b14370cf
Author: Dmitry Stogov <dmitry@zend.com >
Date: Tue Sep 11 09:24:13 2018 +0300
Merge branch 'master' into shadow
* master:
7.0.33 next
Sync NEWS [ci skip]
add NEWS for 76582
Enforce ordering of property compare in object comparisons
Fixed wrong assertion
Skip test on unsuitable env
commit eacc11b8fdeb002ee6a149defd8b5a8c3412896a
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Sep 10 13:12:39 2018 +0300
Fixed failure of ext/spl/tests/array_017.phpt
commit 62d1871430a1b81c84b790460afff0682648689a
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Sep 10 11:55:07 2018 +0300
Fixed issues
commit 1d37e3a40e4d07c4b933ed6f9d2e649dd01180f0
Merge: d6c3f098b6 1e550e6f7e
Author: Dmitry Stogov <dmitry@zend.com >
Date: Mon Sep 10 10:21:20 2018 +0300
Merge branch 'master' into shadow
* master:
Update NEWS
Fix for bug #76582
Fix ssl stream reneg limit test to print only after first renegotiation
Make a copy unconditionally
Fix memory leak in pcre cache
Remove not needed checking for <errno.h>
Remove HAVE_ASSERT_H
Add test for bug #76850
Fixed bug #76850 Exit code mangled by set locale/preg_match
Remove empty PHP tags from test
Fix #75273 : php_zlib_inflate_filter() may not update bytes_consumed
Fix PCRE2 exclusion and remove dead libs in Makefile.gcov
Report mem leaks to stderr if no Win debugger is present
Use combined assignment contanation operator
Fixed bug #76796
Support fixed address mmap without replacement
commit d6c3f098b6015e76d042691de0af2e1426c66829
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Sep 7 13:56:30 2018 +0300
Get rid of ZEND_ACC_SHADOW
2018-09-11 11:56:45 +03:00
Anatol Belski
c4b14370cf
Merge branch 'PHP-7.3'
...
* PHP-7.3:
7.0.33 next
2018-09-11 07:02:03 +02:00
Anatol Belski
1bb29a4af2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
7.0.33 next
2018-09-11 07:01:44 +02:00
Anatol Belski
9fe7250e5c
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
7.0.33 next
2018-09-11 07:01:18 +02:00
Anatol Belski
af80ff25f6
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
7.0.33 next
2018-09-11 07:00:48 +02:00
Anatol Belski
1b89522974
7.0.33 next
2018-09-11 07:00:15 +02:00
Anatol Belski
484389e7dd
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Sync NEWS [ci skip]
2018-09-10 16:58:42 +02:00
Anatol Belski
6f8c27f499
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync NEWS [ci skip]
2018-09-10 16:58:33 +02:00
Anatol Belski
e28516bb91
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync NEWS [ci skip]
2018-09-10 16:58:02 +02:00
Anatol Belski
df45faf446
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Sync NEWS [ci skip]
2018-09-10 16:57:24 +02:00
Anatol Belski
4415dab25e
Sync NEWS [ci skip]
2018-09-10 16:56:37 +02:00
Remi Collet
b0d923ec3e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
add NEWS for 76582
2018-09-10 15:31:22 +02:00
Remi Collet
acada183f5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add NEWS for 76582
2018-09-10 15:31:08 +02:00
Remi Collet
609afc2992
add NEWS for 76582
2018-09-10 15:30:51 +02:00
Sara Golemon
7f56150ef2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Enforce ordering of property compare in object comparisons
2018-09-10 08:56:19 -04:00
Sara Golemon
a26a107aae
Enforce ordering of property compare in object comparisons
2018-09-10 08:47:50 -04:00
Dmitry Stogov
5d2894c8e7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed wrong assertion
2018-09-10 15:27:48 +03:00
Dmitry Stogov
64dad57d19
Fixed wrong assertion
2018-09-10 15:26:38 +03:00
Anatol Belski
c126061e4c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Skip test on unsuitable env
2018-09-10 09:51:58 +02:00
Anatol Belski
27b270de89
Skip test on unsuitable env
2018-09-10 09:51:36 +02:00
Stanislav Malyshev
1e550e6f7e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS
Fix for bug #76582
2018-09-09 12:29:41 -07:00
Stanislav Malyshev
af38a991ff
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix for bug #76582
2018-09-09 12:29:34 -07:00
Stanislav Malyshev
788717d56d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS
Fix for bug #76582
2018-09-09 12:29:29 -07:00
Stanislav Malyshev
6623f3caca
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Update NEWS
Fix for bug #76582
2018-09-09 12:29:23 -07:00
Stanislav Malyshev
024f3ac160
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Update NEWS
Fix for bug #76582
2018-09-09 12:27:44 -07:00
Stanislav Malyshev
c1de84014d
Update NEWS
2018-09-09 12:19:38 -07:00
Stanislav Malyshev
23b057742e
Fix for bug #76582
...
The brigade seems to end up in a messed up state if something fails
in shutdown, so we clean it up.
2018-09-09 11:45:14 -07:00
Jakub Zelenka
f4cf60c757
Merge branch 'PHP-7.3'
2018-09-09 19:00:37 +01:00
Jakub Zelenka
9eec7d06f6
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-09 18:59:47 +01:00
Jakub Zelenka
87a9536bda
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-09 18:58:23 +01:00
Jakub Zelenka
be50a72715
Fix ssl stream reneg limit test to print only after first renegotiation
...
It has been reported that in some setup the test does multiple
renegotiations which is allowed.
2018-09-09 18:53:55 +01:00
Anatol Belski
d51af6462c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Make a copy unconditionally
2018-09-09 10:43:34 +02:00
Anatol Belski
68c34ce0dc
Make a copy unconditionally
2018-09-09 10:42:53 +02:00
Anatol Belski
73ecad2f00
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix memory leak in pcre cache
2018-09-09 10:39:15 +02:00
Anatol Belski
9278be148e
Fix memory leak in pcre cache
2018-09-09 10:38:36 +02:00
Peter Kokot
50b9ef8d94
Remove not needed checking for <errno.h>
...
Header `<errno.h>` is part of the standard C89 headers [1] and on
current systems checking is not need anymore since PHP requires at
least C89. This is noted also by Autoconf itself in the docs and
code [2].
The Autoconf check defined the `HAVE_ERRNO_H` symbol when building PHP
with sockets extension or fpm sapi. This symbol is not utilized across
the PHP source code except in the current version of bundled GD library
which has worked ok so far also with sockets extension or fpm sapi
disabled anyway.
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
2018-09-09 10:19:04 +02:00
Peter Kokot
77118fc925
Remove HAVE_ASSERT_H
...
The `<assert.h>` header file is part of the standard C89 headers [1] and
on older systems there needed to be also a manual check if header is
present.
Since PHP requires at least C89 manual check and the `HAVE_ASSERT_H`
symbol defined by Autoconf in configure.ac can be both removed [2].
This patch also removes unused <assert.h> includes where c files don't
use the `assert()` macro.
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
2018-09-09 09:43:03 +02:00
Anatol Belski
c92425dbab
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Add test for bug #76850
2018-09-08 21:40:14 +02:00
Anatol Belski
4905d5e0df
Add test for bug #76850
2018-09-08 21:39:54 +02:00
Anatol Belski
3de0ba7cbf
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76850 Exit code mangled by set locale/preg_match
2018-09-08 21:38:05 +02:00
Anatol Belski
c6ddd45650
Fixed bug #76850 Exit code mangled by set locale/preg_match
2018-09-08 21:35:23 +02:00
Gabriel Caruso
a303089ffe
Remove empty PHP tags from test
2018-09-08 16:28:48 -03:00
Christoph M. Becker
5177db127d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #75273 : php_zlib_inflate_filter() may not update bytes_consumed
2018-09-08 19:14:22 +02:00
Christoph M. Becker
58e2f5ead1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #75273 : php_zlib_inflate_filter() may not update bytes_consumed
2018-09-08 19:13:26 +02:00
Christoph M. Becker
fa70b91a4f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #75273 : php_zlib_inflate_filter() may not update bytes_consumed
2018-09-08 19:09:56 +02:00
Christoph M. Becker
90d863898c
Fix #75273 : php_zlib_inflate_filter() may not update bytes_consumed
...
Whenever we return with `PSFS_PASS_ON`, we need to update
`bytes_consumed` to not mislead the caller. Instead of fixing the
respective `if` clauses, we eschew the early bail-outs to simplify the
code a bit.
2018-09-08 19:01:36 +02:00
Gabriel Caruso
5df49555a9
Fix PCRE2 exclusion and remove dead libs in Makefile.gcov
2018-09-08 10:04:10 -03:00
Christoph M. Becker
3145d6c6b9
Report mem leaks to stderr if no Win debugger is present
...
Formerly, we sent output regarding memory leaks always to the debugger
on Windows, but this appears to be not useful especially for the PHPTs,
which usually are not run under a debugger, and so important info will
not be available there.
2018-09-08 13:57:01 +02:00
Gabriel Caruso
98b01a14e3
Use combined assignment contanation operator
2018-09-07 23:33:17 -03:00
Nikita Popov
1038c4b4ce
Merge branch 'PHP-7.3'
2018-09-07 14:03:04 +02:00
Nikita Popov
a32c563e50
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-07 14:02:51 +02:00
Nikita Popov
cfdd828163
Fixed bug #76796
2018-09-07 14:02:03 +02:00
Nikita Popov
100733f86b
Merge branch 'PHP-7.3'
2018-09-07 12:10:15 +02:00
David Carlier
f7b573b4e9
Support fixed address mmap without replacement
...
Reapply changes for Zend fixed mapping but only for FreeBSD.
Other BSD might expose some day a similar flag (private
for OpenBSD for the moment for example).
The Linux's part could be brought back but not before 7.4,
at this time, distributions with kernel > 4.17 will be
more widely available.
2018-09-07 12:10:05 +02:00
Peter Kokot
b1f65fb25b
Remove netware header
...
Netware system is discontinued and support has been removed from PHP
source code.
2018-09-06 05:20:37 +02:00
Anatol Belski
aa82afe6a1
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Sync with recent changes to default libcurl build
2018-09-05 21:30:52 +02:00
Anatol Belski
6c376996cf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync with recent changes to default libcurl build
2018-09-05 21:30:25 +02:00
Anatol Belski
b323e1e8d0
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync with recent changes to default libcurl build
2018-09-05 21:29:53 +02:00
Anatol Belski
28c6125053
Sync with recent changes to default libcurl build
...
(cherry picked from commit a1ba3007a4 )
2018-09-05 21:28:59 +02:00
Dmitry Stogov
25d43cab8c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed support for commutative "user opcodes"
2018-09-05 22:11:36 +03:00
Dmitry Stogov
1d36c3361f
Fixed support for commutative "user opcodes"
2018-09-05 22:11:10 +03:00
Anatol Belski
a1ba3007a4
Sync with recent changes to default libcurl build
2018-09-05 17:40:25 +02:00
Fabien Villepinte
ec110f1ecc
Fix typos in UPGRADING.INTERNALS
2018-09-05 17:21:31 +02:00
Christoph M. Becker
f94518dca1
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #74454 : Wrong exception being thrown when using ReflectionMethod
2018-09-05 15:11:09 +02:00
Christoph M. Becker
21cd552e1e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #74454 : Wrong exception being thrown when using ReflectionMethod
2018-09-05 15:10:27 +02:00
Christoph M. Becker
7a2c9585c4
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #74454 : Wrong exception being thrown when using ReflectionMethod
2018-09-05 15:07:59 +02:00
Christoph M. Becker
c0a389a927
Fix #74454 : Wrong exception being thrown when using ReflectionMethod
...
If zend_throw_exception_ex() already threw an exception, we should not
throw again.
2018-09-05 15:05:19 +02:00
Dmitry Stogov
8939c4d96b
Get rid of ZEND_ACC_CTOR, ZEND_ACC_DTOR and ZEND_ACC_IMPLEMENTED_ABSTRACT
2018-09-05 13:16:10 +03:00
Peter Kokot
6c1ff61a36
Remove HAVE_STDDEF_H
...
The `<stddef.h>` header file is part of the standard C89 headers [1] and
on current systems there is no need for a manual check if header is
present.
Since PHP requires at least C89 the `HAVE_STDDEF_H` symbol isn't defined
by Autoconf anywhere else anymore [2] and accross the PHP source code
the header is included unconditionally already.
This patch syncs this also for the bundled libmbfl which is maintaned as
a fork in php-src.
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
2018-09-05 11:51:19 +02:00
Joe Watkins
3b1b0c589d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix typos in UPGRADING.INTERNALS
2018-09-05 11:50:38 +02:00
Tyson Andre
86c930e268
Fix typos in UPGRADING.INTERNALS
2018-09-05 11:50:23 +02:00
Anatol Belski
836b8583c0
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Restore NEWS entry [skip ci]
2018-09-04 13:03:47 +02:00
Anatol Belski
d903fc0861
Restore NEWS entry [skip ci]
2018-09-04 13:03:17 +02:00
Peter Kokot
472e7cded0
Remove unused buildsystem files in TSRM
...
Buildsystem files in the TSRM folder used to provide standalone build of
the TSRM. Today these files are oudated and not used.
2018-09-04 12:04:11 +02:00
Peter Kokot
29dc0470c8
Remove AC_FUNC_UTIME_NULL
...
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems, including the AC_FUNC_UTIME_NULL.
This macro checks if `utime(file, NULL)` sets file's timestamp to the
current time and defines the `HAVE_UTIME_NULL` symbol. This check was
relevant on very old systems (for example, 4.3BSD released in 1986) and
today can be omitted for systems with utime since it should be well
supported by now. [2]
Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
2018-09-04 12:03:34 +02:00
Peter Kokot
6db3c105f2
Remove AC_FUNC_MEMCMP
...
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems anymore, including the `AC_FUNC_MEMCMP`.
On some old systems such as SunOS 4.1.3 (EOL in 2003) and NeXT x86
OpenStep (discontinued) the `memcmp` function wasn't present or it
didn't work properly. [2]
On current systems including at least Solaris 10+ this check is not
relevant anymore.
Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
2018-09-04 12:02:47 +02:00
Joe Watkins
4318a58023
Merge branch 'master' of git://github.com/php/php-src
2018-09-04 12:01:53 +02:00
Peter Kokot
eff22dc511
Remove AC_HEADER_DIRENT
...
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems anymore, including the `AC_HEADER_DIRENT`.
This macro checks which header defines the `DIR` type. If `<dirent.h>`
is available it defines the `HAVE_DIRENT_H` symbol. Since the `<dirent.h>`
header is already checked in the `configure.ac`, this check is not needed
anymore. This macro also additionally checks for SCO Xenix (discontinued,
latest release 1989) dir and x libraries. [2]
Commit 6ed790685f introduced also
`<sys/dir.h>`. This header exists from times of UNIX System V and
provided definition of DIR type on these systems such as 4.3BSD.
Today `<sys/dir.h>` is kept for backwards compatibility and includes
the `<dirent.h>` on current systems. With `dirent.h>` present this
include is no longer required.
Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
Remove unused dirent.h includes
2018-09-04 12:01:24 +02:00
Xinchen Hui
48fd1d2ea1
Merge branch 'PHP-7.3' of git.php.net:/php-src into PHP-7.3
...
* 'PHP-7.3' of git.php.net:/php-src:
Fix bug #74764 and add a test case
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-09-04 17:27:41 +08:00
Xinchen Hui
dd3fb58e7c
Merge branch 'master' of git.php.net:/php-src
...
* 'master' of git.php.net:/php-src:
Fix bug #74764 and add a test case
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-09-04 17:27:30 +08:00
Xinchen Hui
6078491720
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76825 (Undefined symbols ___cpuid_count)
2018-09-04 17:26:56 +08:00
Xinchen Hui
3497b75b73
Fixed bug #76825 (Undefined symbols ___cpuid_count)
2018-09-04 17:26:46 +08:00
Joe Watkins
efbc05a5a8
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix bug #74764 and add a test case
2018-09-04 11:14:57 +02:00
Joe Watkins
6b5e7e6b42
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #74764 and add a test case
2018-09-04 11:13:14 +02:00
Joe Watkins
21f8cd2a92
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #74764 and add a test case
2018-09-04 11:12:39 +02:00
Ville Hukkamaki
0f724453c0
Fix bug #74764 and add a test case
2018-09-04 11:12:04 +02:00
Anatol Belski
59be8d52d4
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-09-04 11:03:56 +02:00
Anatol Belski
7585a20d44
[ci skip] Update NEWS
2018-09-04 11:03:33 +02:00
Anatol Belski
b6e7aab5f2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-09-04 11:03:01 +02:00
Anatol Belski
64d2978546
[ci skip] Update NEWS
2018-09-04 11:02:26 +02:00
Anatol Belski
9459b45e2b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-09-04 11:01:57 +02:00
Anatol Belski
e58690a26d
[ci skip] Update NEWS
2018-09-04 11:01:24 +02:00
Anatol Belski
e1d12b337d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76833 , backport change to stream_socket_enable_crypto-win32.phpt from 7.3
2018-09-04 10:57:47 +02:00
Anatol Belski
7d8e6e6394
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76833 , backport change to stream_socket_enable_crypto-win32.phpt from 7.3
2018-09-04 10:57:25 +02:00
Anatol Belski
2476fb76a7
Fixed bug #76833 , backport change to stream_socket_enable_crypto-win32.phpt from 7.3
...
It would probably be better to remove this test as it's too much
maintanance for a little gain.
2018-09-04 10:53:35 +02:00
Nikita Popov
ee33c943e7
Merge branch 'PHP-7.3'
2018-09-04 08:09:22 +02:00
Nikita Popov
d36230fcab
Fix incorrect literal freeing if pass_two generates fatal error
2018-09-04 08:08:39 +02:00
Nikita Popov
d9aec118df
Merge branch 'PHP-7.3'
2018-09-04 05:57:43 +02:00
Nikita Popov
63072e9c0e
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-04 05:57:07 +02:00
Nikita Popov
edec566d9b
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-04 05:49:02 +02:00
Nikita Popov
03740ef7df
Revert all MySQL auth related changes
...
Per bug #76651 these changes do not appear to work correctly in
some cases. As no immediate fix seems to be forthcoming, I'm
reverting these changes.
Revert "Fixed invalid free introduced by d6e81f0bfd (avoid keeping "invalid" pointer)"
This reverts commit 11507c0e1b .
Revert "Fix mysqlnd build without openssl"
This reverts commit 6c9db02ff7 .
Revert "Fix VC compilation as variable size array is not supported"
This reverts commit f96df64cb2 .
Revert "Fix MySQL 8 auth"
This reverts commit d6e81f0bfd .
2018-09-04 05:47:28 +02:00
Nikita Popov
6cb725e0a7
Merge branch 'PHP-7.3'
2018-09-04 05:33:00 +02:00
Nikita Popov
4cbabb6852
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-04 05:32:52 +02:00
Nikita Popov
08addfea86
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-04 05:32:42 +02:00
Nikita Popov
f1f39d7ed7
Fix parenthesis warning
2018-09-04 05:32:25 +02:00
Peter Kokot
870d893d0b
Fix bug #75481 : makedev warning
...
To use makedev the sys/sysmacros.h needs to be included on newer
systems.
Cherry-picked from PHP-7.3.
2018-09-04 05:13:45 +02:00
Nikita Popov
213091b37e
Merge branch 'PHP-7.3'
2018-09-04 05:08:47 +02:00
Nikita Popov
153e292e10
Escape trigraph sequence
...
??= is a trigraph for #, so it needs to be escaped. To stay
consistent I'm escaping all question marks in this literal, even
though one of the latter two would suffice.
2018-09-04 05:07:43 +02:00
Nikita Popov
e48e9c0002
Merge branch 'PHP-7.3'
2018-09-04 04:58:44 +02:00
Nikita Popov
6122f67492
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-04 04:57:13 +02:00
Nikita Popov
fcf78dfb89
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-04 04:55:15 +02:00
Ville Hukkamaki
742783c3ee
Fixed bug #73457
...
Correctly report errors when opening FTP data connection.
2018-09-04 04:53:38 +02:00
Dmitry Stogov
437e91e194
Keep collision list ordered from higher to lower buckets.
2018-09-04 01:19:07 +03:00
Tiffany
318b34da05
Update grammar and clarify wording in couple places
...
On line 512, I clarified the sentence which uses effect, previously the sentence was awkward.
On line 656, the wrong word is used, I changed affect to effect.
2018-09-03 22:04:37 +02:00
Anatol Belski
e0b91051ae
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS
2018-09-03 15:11:45 +02:00
Anatol Belski
1640d9182a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS
2018-09-03 15:11:10 +02:00
Anatol Belski
a6b8651d94
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS
2018-09-03 15:10:25 +02:00
Anatol Belski
f26172f934
Fixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS
2018-09-03 15:09:23 +02:00
Dmitry Stogov
887e126240
Fixed condition
2018-09-03 14:50:35 +03:00
Christoph M. Becker
f543476e89
Fix off-by-one errors in skip reasons
2018-09-03 12:46:34 +02:00
Christoph M. Becker
d36cb3d30e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update to Oniguruma 6.9.0
2018-09-03 12:26:42 +02:00
Christoph M. Becker
3e863ff29e
Update to Oniguruma 6.9.0
2018-09-03 12:26:03 +02:00
Dmitry Stogov
a57ec0aeb5
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed reference-countingin ZTS build.
2018-09-03 10:21:55 +03:00
Dmitry Stogov
bc731f8e7a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed reference-countingin ZTS build.
2018-09-03 10:21:42 +03:00
Dmitry Stogov
accf5ed621
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed reference-countingin ZTS build.
2018-09-03 10:21:32 +03:00
Dmitry Stogov
7fde2243a7
Fixed reference-countingin ZTS build.
2018-09-03 10:20:40 +03:00
Jakub Zelenka
ef999f0735
Merge branch 'PHP-7.3'
2018-09-02 20:03:03 +01:00
Jakub Zelenka
217888ed26
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-02 20:02:09 +01:00
Jakub Zelenka
cd0a37994e
Fix stream_security_level.phpt with OpenSSL 1.1.1
2018-09-02 20:00:08 +01:00
Peter Kokot
f86d3de87f
Remove AC_HEADER_TIME
...
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems anymore, including the `AC_HEADER_TIME`.
This macro checks if both `<sys/time.h>` and `<time.h>` can be included
at the same time and defines the `TIME_WITH_SYS_TIME` and
`HAVE_SYS_TIME_H` symbols. On current system such check is not relevant
anymore because in case both headers are present both can be also
included at the same time.
This patch simplifies this checking.
Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
2018-09-02 19:24:55 +02:00
Peter Kokot
8e230d364d
Remove AC_C_CONST
...
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems, including the `AC_C_CONST`.
The `const` keyword is used in C since C89. On old systems some compilers
lacked the `const` and this macro defined it to be empty. This check was
relevant on systems with compilers before C89 and on current systems it
can be omitted. [2]
PHP also requires at least C89 so `const` is always available.
Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
2018-09-02 18:55:03 +02:00
Christoph M. Becker
217159d57a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #75696 : posix_getgrnam fails to print details of group
2018-09-01 14:30:38 +02:00
Christoph M. Becker
0a51e75e28
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #75696 : posix_getgrnam fails to print details of group
2018-09-01 14:30:08 +02:00
Christoph M. Becker
7bcda659f8
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #75696 : posix_getgrnam fails to print details of group
2018-09-01 14:28:13 +02:00
Christoph M. Becker
2677d43850
Fix #75696 : posix_getgrnam fails to print details of group
...
According to the POSIX specification of `getgrnam_r()` the result of
`sysconf(_SC_GETGR_R_SIZE_MAX)` is an initial value suggested for the
size of the buffer, and `ERANGE` signals that insufficient storage was
supplied. So if we get `ERANGE`, we try again with a buffer twice as
big, and so on, instead of failing.
2018-09-01 14:25:59 +02:00
Anatol Belski
8b9b16d3be
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
2018-09-01 11:34:08 +02:00
Anatol Belski
bcfe5f5845
[ci skip] Update NEWS
2018-09-01 11:33:39 +02:00
Anatol Belski
3d28a1b2d6
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Improve fix for bug #76829
2018-09-01 01:12:45 +02:00
Anatol Belski
4a43e5fb4f
Improve fix for bug #76829
2018-09-01 01:12:06 +02:00
Anatol Belski
96f30a9160
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76829 Incorrect validation of domain on idn_to_utf8() function
2018-09-01 00:21:02 +02:00
Anatol Belski
b9ca573a1b
Fixed bug #76829 Incorrect validation of domain on idn_to_utf8() function
...
As stated by RFC 5890, U-Labels might be up to 252 Unicode code points
long. This can be fixed in 7.1+ as well, but there might potentially be
issues in some existing apps expecting the output to be max 255 octets
long. Thus it seems to be safer to not to touch stable branches.
2018-09-01 00:14:23 +02:00
Gabriel Caruso
6dd9fad0c0
Revert changes in test file
...
This reverts changes made in 2f700384 and 4fcaebba . This test is
supposed to run
only on Windows indeed, as in a Unix environment with a mail server
configured,
an email will be send. On Windows, only emptying the SMTP ini directives
is enough.
2018-08-31 08:48:48 -03:00
Gabriel Caruso
4fcaebbab8
Fix tests in some builds
...
Looks like the EXPECTREGEX was eating the =DONE= section
2018-08-31 08:09:14 -03:00
Anatol Belski
ecb698b21d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix stack underflow in phar
2018-08-30 19:34:42 +02:00
Anatol Belski
3f2a3c5aec
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix stack underflow in phar
2018-08-30 19:34:23 +02:00
Anatol Belski
1ccc4ff260
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix stack underflow in phar
2018-08-30 19:34:01 +02:00
Anatol Belski
7fb7869e13
Fix stack underflow in phar
...
The checks can issue reads below and above the temporary buffer. A read
itself doesn't seem dangerous, but the condition result can be
arbitrary. Such reads have to be avoided. Likely this patch should be
backported.
(cherry picked from commit b053beee7e )
2018-08-30 19:33:07 +02:00
Christoph M. Becker
df9e75cad7
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76820 : Z_COPYABLE invalid definition
2018-08-30 18:01:29 +02:00
Christoph M. Becker
c5231ad394
Fix #76820 : Z_COPYABLE invalid definition
...
We remove the extraneous parenthesis.
2018-08-30 18:00:51 +02:00
Anatol Belski
423d6add5b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Switch to staging series on AppVeyor
2018-08-30 17:39:59 +02:00
Anatol Belski
09ea23f7d6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Switch to staging series on AppVeyor
2018-08-30 17:39:39 +02:00
Anatol Belski
58339f37e5
Switch to staging series on AppVeyor
2018-08-30 17:38:51 +02:00
Remi Collet
2d98ad8bde
Merge branch 'PHP-7.3'
...
* PHP-7.3:
NEWS for #76818
2018-08-30 14:50:39 +02:00
Remi Collet
cc63568400
NEWS for #76818
2018-08-30 14:50:26 +02:00
Remi Collet
2e4489fdf4
Merge branch 'PHP-7.3'
...
* PHP-7.3:
fix double cast to int on 32-bit
2018-08-30 09:05:01 +02:00
Remi Collet
cf6c32545e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix double cast to int on 32-bit
2018-08-30 09:04:43 +02:00
Remi Collet
6e703c957e
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
fix double cast to int on 32-bit
2018-08-30 09:04:13 +02:00
Remi Collet
c1729272b1
fix double cast to int on 32-bit
2018-08-30 09:03:50 +02:00
Dmitry Stogov
19376453e8
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
2018-08-29 23:41:46 +03:00
Dmitry Stogov
566a75e97c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
2018-08-29 23:41:22 +03:00
Dmitry Stogov
fd5a453cb9
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
2018-08-29 23:41:14 +03:00
Dmitry Stogov
709e4e4f17
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
2018-08-29 23:40:17 +03:00
Peter Kokot
ef12e96215
Remove AC_FUNC_VPRINTF
...
Autoconf 2.59d (released in 2006) 1 started promoting several macros
as not relevant for newer systems anymore, including the AC_FUNC_VPRINTF.
This macro checks for presence of the vprint function otherwise checks
for presence of the _doprnt function. This check was relevant on very
old systems and today can be omitted since it should be well supported
by now. [2]
Also PHP doesn't use the HAVE_VPRINTF or HAVE_DOPRNT symbols.
Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
2018-08-29 21:31:55 +02:00
Peter Kokot
cbc785dc8c
Remove AC_STRUCT_TM macro
...
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems anymore, including the `AC_STRUCT_TM`.
This macro checks if `struct tm` is defined in either `<sys/time.h>` or
`<time.h>` and defines the `TM_IN_SYS_TIME` symbol accordingly. This
check was relevant in times before the C89 for some embedded systems,
microcontrollers or very old systems. For newer systems it can be
avoided and the `<time.h>` should be included instead since current
systems should be well supported by now. [2]
Since PHP requires at least C89, this patch removes the obsolescent call
and time.h checks.
Refs:
- [1]: http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
- [2]: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Structures.html
2018-08-29 21:22:47 +02:00
Peter Kokot
02294f0c84
Make PHP development tools files and scripts executable
...
This patch makes several scripts and PHP development tools files
executable and adds more proper shebangs to the PHP scripts.
The `#!/usr/bin/env php` shebang provides running the script via
`./script.php` and uses env to find PHP script location on the system.
At the same time it still provides running the script with a user
defined PHP location using `php script.php`.
2018-08-29 20:58:17 +02:00
Sara Golemon
c1f7aae19c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Prep for 7.1.23
2018-08-29 12:42:22 -04:00
Sara Golemon
ba39ee99ca
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Prep for 7.1.23
2018-08-29 12:42:11 -04:00
Sara Golemon
7881e92c24
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Prep for 7.1.23
2018-08-29 12:41:36 -04:00
Sara Golemon
5fee4e7108
Prep for 7.1.23
2018-08-29 12:41:05 -04:00
Anatol Belski
a2f8ccd15c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS
2018-08-29 16:12:39 +02:00
Anatol Belski
d21220d7f0
Update NEWS
2018-08-29 16:12:18 +02:00
Remi Collet
404a97dd57
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Revert "Support fixed address mmap without replacement"
Revert "Don't report mmap failure if it is expected"
2018-08-29 14:41:27 +02:00
Remi Collet
a55bcaa14d
Revert "Support fixed address mmap without replacement"
...
This reverts commit 0f68ff5c92 .
2018-08-29 14:41:04 +02:00
Remi Collet
8cc7e2a2df
Revert "Don't report mmap failure if it is expected"
...
This reverts commit 446b5b15d3 .
2018-08-29 14:40:59 +02:00
Gabriel Caruso
2f7003847d
Make more tests run on Linux
2018-08-28 21:20:00 -03:00
Peter Kokot
3748d8070f
Implement #64517 : Add AC_ARG_PROGRAM macro
...
The AC_ARG_PROGRAM Autoconf macro provides program name transformations
when installing. This patch implements #64517 and prepares the
implementation for the request #60518 .
In ./configure --help it additionally outputs --program-prefix=PREFIX,
--program-suffix=SUFFIX and the upcoming --program-transform-name=PROGRAM
option.
Macro AC_ARG_PROGRAM is available since Autoconf 2.0 and needs to be
called after the AC_CANONICAL_TARGET macro.
Refs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Transforming-Names.html
2018-08-29 02:04:48 +02:00
Dmitry Stogov
03fc3d85d8
Allow opcache_compile_file() to perform compilation even if opcache is disabled.
2018-08-29 00:42:38 +03:00
Dmitry Stogov
cd9f0a22fc
Perform run-time binding reusing HashTable bucket (without new bucket insertion).
2018-08-29 00:35:07 +03:00
Peter Kokot
409b5133cc
Change some permissions from 755 to 644
...
This patch syncs file permissions accross the PHP source code files
since these don't need to be executable.
2018-08-28 23:26:49 +02:00
Dmitry Stogov
002aa30786
Added check for "user" method
2018-08-28 23:56:12 +03:00
Dmitry Stogov
684354be72
Removed incorrect efree() (run_time_cache(s) are usually allocated in CG(arena)).
2018-08-28 17:46:26 +03:00
Anatol Belski
8b4b41696e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76803 ftruncate changes file pointer
2018-08-28 15:43:34 +02:00
Anatol Belski
7728160784
Fixed bug #76803 ftruncate changes file pointer
2018-08-28 15:42:39 +02:00
Christoph M. Becker
95178b19b2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix SKIPIF conditions
2018-08-28 14:02:44 +02:00
Christoph M. Becker
441b6a6f5e
Fix SKIPIF conditions
...
The test calls `mb_convert_encoding()` and as such requires the
mbstring extension.
2018-08-28 14:02:11 +02:00
Christoph M. Becker
c5eee032f4
Merge branch 'PHP-7.3'
2018-08-28 12:25:00 +02:00
Christoph M. Becker
ce201df40f
[ci skip] Update NEWS wrt. php-7.3.0beta3 tagging
2018-08-28 12:22:57 +02:00
Dmitry Stogov
4151a3fa64
Revert "Removed redundand code"
...
This reverts commit 57e2b7d53b .
2018-08-28 11:51:08 +03:00
Remi Collet
dff0d81ce6
Merge branch 'PHP-7.3'
...
* PHP-7.3:
bump to 7.2.11-dev
2018-08-28 10:19:24 +02:00
Remi Collet
584ffa5f6e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump to 7.2.11-dev
2018-08-28 10:19:08 +02:00
Remi Collet
7353dae815
bump to 7.2.11-dev
2018-08-28 10:17:33 +02:00
Dmitry Stogov
57e2b7d53b
Removed redundand code
2018-08-28 11:03:17 +03:00
Jakub Zelenka
39edd38851
Merge branch 'PHP-7.3'
2018-08-27 15:53:13 +01:00
Jakub Zelenka
014b1b3aad
Store zlog stream in each child so it can be reused
...
This change results in using the same buffer for multiple
stdio events which should fix inconsistencies of handling
messages that are not ended with a new line and possibly
very long messages that are split to multiple events.
2018-08-27 14:58:39 +01:00
Dmitry Stogov
2fbfdde1b6
Cleanup class linking
2018-08-27 16:40:25 +03:00
Dmitry Stogov
ea9628936f
Move zend_verify_abstract_class() into zend_inheritance.c
2018-08-27 12:56:17 +03:00
Dmitry Stogov
02eded868c
Avoid function copying
2018-08-27 12:47:32 +03:00
Anatol Belski
e42e8b1051
Refactor stat implementation
...
- move relevant parts into win32
- general cleanup
- use Windows API and fallback to POSIX
- improve filetime to timestamp conversion
- improve stat/fsat
- handle ino by using file index
- handle st_dev by using volume serial number
The inode implementation is based on file indexes from NTFS. On 32-bit,
fake inodes are shown, that may lead to unexpeted results. 64-bit
implementation is most reliable.
2018-08-26 22:30:06 +02:00
Christoph M. Becker
2dbd21c12f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #68180 : iconv_mime_decode can return extra characters in a header
2018-08-26 13:24:36 +02:00
Christoph M. Becker
4d6b0b5031
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #68180 : iconv_mime_decode can return extra characters in a header
2018-08-26 13:23:51 +02:00
Christoph M. Becker
20849b0b0f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #68180 : iconv_mime_decode can return extra characters in a header
2018-08-26 13:21:22 +02:00
Christoph M. Becker
efb86aef12
Fix #68180 : iconv_mime_decode can return extra characters in a header
...
Basically, the algorithm to append a converted string to an existing
`smart_str` works by increasing the `smart_str` buffer, to let `iconv`
convert characters until there is no more space, to set the new length
of the `smart_str` and to repeat until there is no more input.
Formerly, the new length calculation has been wrong, though, since we
would have to take the old `out_len` into account (`buf_growth -
old_out_len - out_len`). However, since there is no need to take the
old `out_len` into account when increasing the `smart_str` buffer, we
can simplify the fix, avoiding an additional variable.
2018-08-26 13:18:35 +02:00
Christoph M. Becker
0163fd00ba
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #60494 : iconv_mime_decode does ignore special characters
2018-08-25 17:52:44 +02:00
Christoph M. Becker
b5afc99afb
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #60494 : iconv_mime_decode does ignore special characters
2018-08-25 17:52:16 +02:00
Christoph M. Becker
314b8ecf8b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #60494 : iconv_mime_decode does ignore special characters
2018-08-25 17:47:29 +02:00
Christoph M. Becker
e29c946c29
Fix #60494 : iconv_mime_decode does ignore special characters
...
We must not ignore erroneous characters in mime headers, but rather let
iconv_mime_decode() fail in this case, issuing the usual notice
regarding illegal characters.
2018-08-25 17:40:39 +02:00
Christoph M. Becker
1d0f6b22a8
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #63839 : iconv_mime_decode_headers function is skipping headers
2018-08-25 14:54:52 +02:00
Christoph M. Becker
065eee16b5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #63839 : iconv_mime_decode_headers function is skipping headers
2018-08-25 14:54:32 +02:00
Christoph M. Becker
7e176ddb57
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #63839 : iconv_mime_decode_headers function is skipping headers
2018-08-25 14:52:54 +02:00
Christoph M. Becker
8754d44167
Fix #63839 : iconv_mime_decode_headers function is skipping headers
...
We have to cater to the possibility that `=?` is not the start of an
encoded-word, but rather a literal `=?`. If a line break is found
while we're still looking for the charset, we can safely assume that
it's a literal `=?`, and act accordingly.
2018-08-25 14:51:13 +02:00
Christoph M. Becker
ac4da17f79
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #55146 : iconv_mime_decode_headers() skips some headers
2018-08-25 14:43:35 +02:00
Christoph M. Becker
50fec3be0e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #55146 : iconv_mime_decode_headers() skips some headers
2018-08-25 14:43:13 +02:00
Christoph M. Becker
6922cae4ae
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #55146 : iconv_mime_decode_headers() skips some headers
2018-08-25 14:41:38 +02:00
Christoph M. Becker
6e1980e152
Fix #55146 : iconv_mime_decode_headers() skips some headers
...
If we're expecting the start of an encoded word (`=?`), but instead of
the question mark get a line break (CR or LF), we must not append it to
the `pretval`.
2018-08-25 14:40:07 +02:00
Christoph M. Becker
c520b4a99e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #53891 : iconv_mime_encode() fails to Q-encode UTF-8 string
2018-08-25 14:30:24 +02:00
Christoph M. Becker
eb03290754
Fix #53891 : iconv_mime_encode() fails to Q-encode UTF-8 string
...
The minimum length of an encoded-word is actually the pure encoding
overhead plus the length of the `output-charset` plus the minimum unit
of encoded text, which is 4 for B-encoding and (for simplicity) 3 for
Q-encoding. We also cater to the possibility that we need further
encoded words, which would be split by the `line-break-chars` followed
by a space character. Obviously, the former `out_charset_len + 12` is
too simplistic and wrong in the given case (where the magic number
would be 13).
These simplifications are somewhat wasteful, but iconv_mime_encode()
with Q-encoding is wasteful anyway (see bug 66828[1]), and the proper
solution to convert the whole input to the desired output charset
upfront, and applying the encoding afterwards appears too much a change
for the stable releases.
[1] <https://bugs.php.net/66828 >
2018-08-25 14:30:07 +02:00
Christoph M. Becker
70842b8be0
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76712 : Assignment of empty string creates extraneous text node
2018-08-25 14:24:43 +02:00
Christoph M. Becker
692e5d5c88
Fix #76712 : Assignment of empty string creates extraneous text node
...
We work around this peculiarity of libxml by using xmlNodeSetContent(),
which does not exhibit this behavior. This also saves us from manually
calculating the string length.
2018-08-25 14:24:09 +02:00
Christoph M. Becker
23aa355bf2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Remove some old parts of the php
2018-08-25 11:58:50 +02:00
Peter Kokot
fcf4088d3f
Remove some old parts of the php
...
Since ba138a3746 the generate-phpt library
has been unbundled from the php-src. This patch cleans two remaining
parts.
2018-08-25 11:58:17 +02:00
Peter Kokot
7b39e8a338
Remove Doxygen configuration
...
Documentation for the SPL was once rendered at
http://www.php.net/~helly/php/ext/spl/
With upgrades of the PHP manual, the SPL documentation moved there
instead and PHP files for the SPL docs in the PHP source code directory
were outdated and removed via 9003d8a4cf
2018-08-25 11:42:45 +02:00
Peter Kokot
3ceecaa9a0
Replace HAVE_ST_BLOCKS with HAVE_STRUCT_STAT_ST_BLOCKS
...
Since Autoconf 2.50+ macro AC_STRUCT_ST_BLOCKS defines the new
HAVE_STRUCT_STAT_ST_BLOCKS symbol and has deprecated the previous
HAVE_ST_BLOCKS.
PHP 5.3 required Autoconf 2.13 (released in 1999) or newer, since PHP
5.4 the autoconf 2.59 (released in 2003) or newer was required, and
since PHP 7.2, autoconf 2.64 (released in 2008) or newer is required.
2018-08-24 18:33:23 +02:00
Dmitry Stogov
6136a20544
ZEND_DECLARE_CLASS, ZEND_DECLARE_INHERITED_CLASS and ZEND_DECLARE_INHERITED_CLASS_DELAYED don't need return value anymore.
2018-08-24 15:40:53 +03:00
Dmitry Stogov
b36dbdd1dd
Perform "early-binding" directly during compilation
2018-08-24 15:18:38 +03:00
Dmitry Stogov
8050f4a334
Keep information about unresolved parent class in zend_class_entry->parent_name
2018-08-24 00:20:57 +03:00
Anatol Belski
644bdaf9cd
Merge branch 'PHP-7.3'
...
* PHP-7.3:
mkdist.php: recursively check dll dependencies
2018-08-23 21:28:08 +02:00
Anatol Belski
f15fc8ea1e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
mkdist.php: recursively check dll dependencies
2018-08-23 21:27:43 +02:00
Anatol Belski
8f43ec1e83
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
mkdist.php: recursively check dll dependencies
2018-08-23 21:26:40 +02:00
Dylan K. Taylor
b9bf9ddce6
mkdist.php: recursively check dll dependencies
...
Fix duplication of recursively checked deps
2018-08-23 21:25:54 +02:00
Dmitry Stogov
d140df58e6
Keep information about unresolved interfaces in zend_class_entry->interface_names.
...
Move interface implementation code into ZEND_DECLARE_*CLASS opcodes.
Remove ZEND_ADD_INTERFACE and ZEND_VERIFY_ABSTRACT_CLASS opcodes.
2018-08-23 17:16:28 +03:00
Christoph M. Becker
4bf1d0b3a4
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Simplify regression test
2018-08-23 12:52:31 +02:00
Christoph M. Becker
5fe8e49baa
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Simplify regression test
2018-08-23 12:51:11 +02:00
Christoph M. Becker
1c3d5659bd
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Simplify regression test
2018-08-23 12:49:26 +02:00
Christoph M. Becker
6644bd005f
Simplify regression test
...
There's no need to actually try to trigger an out-of-memory condition
to proof the leak; instead we can simply rely on the Zend MM to report
the memory leaks in debug mode (at least on Linux). Therefore we
simplify the regression test, which also makes it run much faster.
2018-08-23 12:48:09 +02:00
Dmitry Stogov
67397970b2
Replace zend_class_entry->traits by persistent zend_class_entry->trait_names.
...
Move trait binding code into ZEND_DECLARE_*CLASS opcodes.
Remove ZEND_ADD_TRIAIT and ZEND_BIND_TRAITS opcodes.
2018-08-23 02:02:26 +03:00
Dmitry Stogov
92fdf9d629
Change zend_lookup_class_ex() and zend_fetch_class_by_name() prototypes to accept optional lower-case class name as zend_string*, instead of zval*.
2018-08-22 17:07:31 +03:00
Christoph M. Becker
20c4923d5c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
2018-08-22 15:40:26 +02:00
Christoph M. Becker
3278b3347c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
2018-08-22 15:40:03 +02:00
Christoph M. Becker
36946f5c45
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
2018-08-22 15:38:30 +02:00
Christoph M. Becker
32a728d351
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
...
intern->file_name may not have been properly set when
DirectoryIterator::getLinkTarget() is called, so we make sure it is
before using it.
2018-08-22 15:37:02 +02:00
Christoph M. Becker
4b5d26596a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Increase memory_limit to prevent test failures
2018-08-22 14:32:04 +02:00
Christoph M. Becker
6cf382b667
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Increase memory_limit to prevent test failures
2018-08-22 14:31:36 +02:00
Christoph M. Becker
10661e28d1
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Increase memory_limit to prevent test failures
2018-08-22 14:30:23 +02:00
Christoph M. Becker
5fb01a3a42
Increase memory_limit to prevent test failures
2018-08-22 14:29:28 +02:00
Christoph M. Becker
1f698e0f94
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76773 - Methods with a concrete scope need to be added again
2018-08-22 14:08:46 +02:00
Chris Wright
9ace33b9c5
Fix #76773 - Methods with a concrete scope need to be added again
2018-08-22 14:08:15 +02:00
Christoph M. Becker
d1ff6c3a4e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76767 : ‘asm’ operand has impossible constraints in zend_operators.h
2018-08-22 13:57:44 +02:00
Ondřej Surý
02b0bc8bb1
Fix #76767 : ‘asm’ operand has impossible constraints in zend_operators.h
...
We disable assembly code with gcc 4.8 on i386.
2018-08-22 13:57:21 +02:00
Christoph M. Becker
5aac8fdbfc
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76778 : array_reduce leaks memory if callback throws exception
2018-08-22 13:51:55 +02:00
Christoph M. Becker
1de17428f6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76778 : array_reduce leaks memory if callback throws exception
2018-08-22 13:51:16 +02:00
Christoph M. Becker
cdd9eb8c4a
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76778 : array_reduce leaks memory if callback throws exception
2018-08-22 13:49:35 +02:00
Nikita Popov
1ff3b5dd75
Merge branch 'PHP-7.3'
2018-08-22 13:43:52 +02:00
Nikita Popov
dd07f17f97
Merge branch 'PHP-7.2' into PHP-7.3
2018-08-22 13:43:23 +02:00
Christoph M. Becker
70b2fca220
Fix #76778 : array_reduce leaks memory if callback throws exception
...
We have to release the result variable in the error case, too.
2018-08-22 13:40:24 +02:00
Massimiliano Braglia
2527a0fcfd
Fixed bug #75797
...
Fix zend_register_class_alias_ex() to use non-persistent strings
for (non-persistent) userland classes.
2018-08-22 13:39:08 +02:00
Dmitry Stogov
93f9ee7217
Use zend_class_entry/zend_function type names instead of _zend_class_entry/_zend_function tags.
2018-08-22 14:01:14 +03:00
Christoph M. Becker
6c4528e444
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76777 and added test
2018-08-22 12:55:17 +02:00
Christoph M. Becker
138671f2f4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76777 and added test
2018-08-22 12:54:39 +02:00
Christoph M. Becker
7ad0595712
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76777 and added test
2018-08-22 12:52:41 +02:00
Ville Hukkamaki
cf2fc66b02
Fixed bug #76777 and added test
...
Set undefined values to null rather than undefined.
2018-08-22 12:51:06 +02:00
Dmitry Stogov
fc8d6b6797
Introduced ZEND_COMPILE_IGNORE_OTHER_FILES compiler option, to allow "separate" file compilation (unaffected but previously compiled files), without CG(function_table)/CG(class_table) manipulation.
2018-08-22 13:45:56 +03:00
Nikita Popov
850b53df0e
Unify unpack checking in compile_special_func()
...
Instead of handling this separately for each specialized function,
do one check directly in zend_compile_special_func().
2018-08-22 11:38:28 +02:00
Nikita Popov
406b57ed01
Merge branch 'PHP-7.3'
2018-08-22 11:22:23 +02:00
David Carlier
446b5b15d3
Don't report mmap failure if it is expected
...
When using mmap with MAP_FIXED_NOREPLACE or MAP_FIXED|MAP_EXCL
an mmap failure is not an error condition, so do not print an
error message in this case.
2018-08-22 11:19:52 +02:00
Dmitry Stogov
1321aa5080
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Stop using zend_function->reserved[] space.
2018-08-22 10:44:34 +03:00
Dmitry Stogov
8d95f561e4
Stop using zend_function->reserved[] space.
2018-08-22 10:43:51 +03:00
Dmitry Stogov
e3bbfbe6a2
Removed op_array->static_variables duplication code. They can't be "shared" during comilation.
2018-08-22 08:24:28 +03:00
Nikita Popov
045b74c12c
Drop dead code
...
var_ast is always a ZEND_AST_ZVAL.
2018-08-21 13:43:29 +02:00
Dmitry Stogov
168376e98e
Cleanup
2018-08-21 13:21:56 +03:00
Dmitry Stogov
6d88e1ccd6
Don't use second operand of BIND_STATIC instruction.
2018-08-21 12:22:04 +03:00
Nikita Popov
09b4b83753
Merge branch 'PHP-7.3'
2018-08-21 08:34:15 +02:00
David Carlier
0f68ff5c92
Support fixed address mmap without replacement
...
We did not use MAP_FIXED here, because it may replace an existing
mapping. This commit adds support for MAP_FIXED_NOREPLACE (available
on newer Linux kernels) and MAP_FIXED|MAP_EXCL (available on FreeBSD),
which avoid this issue.
2018-08-21 08:31:31 +02:00
Dmitry Stogov
7a52864ad0
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Removed dead code
2018-08-21 09:02:22 +03:00
Dmitry Stogov
5e5311e0ba
Removed dead code
2018-08-21 09:01:54 +03:00
Nikita Popov
5e74a1f411
Merge branch 'PHP-7.3'
2018-08-21 06:27:27 +02:00
David Carlier
16a9dd74f4
Avoid directly adding to string literal
...
This fixes a Clang warning.
2018-08-21 06:25:41 +02:00
Dmitry Stogov
64f8b0185f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Avoid hash lookups in BIND_STATIC and BIND_LEXICAL opcode handlers. Encode static variable offset into opline->extended_value.
2018-08-20 16:11:40 +03:00
Dmitry Stogov
b8828926f2
Avoid hash lookups in BIND_STATIC and BIND_LEXICAL opcode handlers.
...
Encode static variable offset into opline->extended_value.
2018-08-20 16:10:09 +03:00
Christoph M. Becker
a13e60a954
Merge branch 'PHP-7.3'
2018-08-20 12:57:45 +02:00
Aaron Stone
1621f1739d
[ci skip] Correct minor typo (GC_GLAGS to GC_FLAGS)
2018-08-20 12:56:34 +02:00
Gabriel Caruso
c86ce117c2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Make array parsing parameters error messages consistency with ZPP failure
2018-08-19 21:33:41 -03:00
Gabriel Caruso
efbf846fd2
Make array parsing parameters error messages consistency with ZPP failure
2018-08-19 21:27:57 -03:00
Jakub Zelenka
1dd4c62c99
Merge branch 'PHP-7.3'
2018-08-19 20:20:46 +01:00
Jakub Zelenka
52ea129efb
Merge branch 'PHP-7.2' into PHP-7.3
2018-08-19 20:19:48 +01:00
Jakub Zelenka
73a8f72617
Merge branch 'PHP-7.1' into PHP-7.2
2018-08-19 20:19:01 +01:00
Jakub Zelenka
4c542e6c13
Fix bug #76705 (unusable ssl => peer_fingerprint in stream_context_create())
2018-08-19 20:14:26 +01:00
Christoph M. Becker
ef1b26f080
Map ERROR_PRIVILEGE_NOT_HELD to EACCES
...
Attempting to create a symlink on Windows via the CLI SAPI without
administrative rights is likely to fail with ERROR_PRIVILEGE_NOT_HELD.
Therefore we map this Windows error to EACCES to get better diagnostics
and to avoid the assert() failure in debug mode.
2018-08-19 13:56:34 +02:00
Anatol Belski
ac68a423e1
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Use stable deps on AppVeyor for now
2018-08-18 20:06:14 +02:00
Anatol Belski
9708083779
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Use stable deps on AppVeyor for now
2018-08-18 20:05:51 +02:00
Anatol Belski
b0da1745be
Use stable deps on AppVeyor for now
...
as long as the latest image is not synced with VC++ 15.8
2018-08-18 20:04:19 +02:00
Christoph M. Becker
a6df0bf108
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Add regression test for bug #68175
Fix #68175 : RegexIterator pregFlags are NULL instead of 0
2018-08-18 14:39:35 +02:00
Christoph M. Becker
be2447fb7c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add regression test for bug #68175
Fix #68175 : RegexIterator pregFlags are NULL instead of 0
2018-08-18 14:39:15 +02:00
Christoph M. Becker
41d2102c77
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add regression test for bug #68175
Fix #68175 : RegexIterator pregFlags are NULL instead of 0
2018-08-18 14:37:48 +02:00
Christoph M. Becker
4c448334bd
Add regression test for bug #68175
2018-08-18 14:36:16 +02:00
Tim Siebels
3257d22fea
Fix #68175 : RegexIterator pregFlags are NULL instead of 0
2018-08-18 14:33:39 +02:00
Anatol Belski
3cb4db913d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Add test for bug #76738
2018-08-17 18:38:07 +02:00
Anatol Belski
990a404c2d
Add test for bug #76738
...
Original repro. It's unwieldy, but it's otherwise hard to trigger
the wrong buffer handling behavior.
2018-08-17 18:31:58 +02:00
Anatol Belski
084837f274
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix memory leak
2018-08-17 16:23:27 +02:00
Anatol Belski
0414fff205
Fix memory leak
2018-08-17 16:22:35 +02:00
Anatol Belski
03368a0840
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update binary SDK version for AppVeyor
2018-08-17 15:47:03 +02:00
Anatol Belski
aa7777d36c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update binary SDK version for AppVeyor
2018-08-17 15:46:28 +02:00
Anatol Belski
4aa5065bb0
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update binary SDK version for AppVeyor
2018-08-17 15:45:31 +02:00
Anatol Belski
837ed71c65
Update binary SDK version for AppVeyor
2018-08-17 15:44:10 +02:00
Christoph M. Becker
cb4fb6b07c
Merge branch 'PHP-7.3'
2018-08-17 13:07:41 +02:00
Christoph M. Becker
a097f926c8
[ci skip] Update NEWS
...
Bug #76285 was supposed to have been fixed for 7.3.0alpha3, but that
has been reverted for 7.3.0beta2 due to bug #76738 . Now that we have a
working fix in master, we backport the respective commits.
2018-08-17 13:06:27 +02:00
Anatol Belski
0c2327b472
Cleanup
...
(cherry picked from commit 8b3174f256 )
2018-08-17 13:01:57 +02:00
Anatol Belski
ddd73d4fa8
Followup fix for ef9ed19e, see also bug #76738
...
(cherry picked from commit 083285f22a )
2018-08-17 13:01:56 +02:00
Xinchen Hui
10d724d82d
Fixed build
...
(cherry picked from commit 36f05a80d7 )
2018-08-17 13:01:55 +02:00
Andrew Nester
2072d377d3
DOMDocument::formatOutput attribute sometimes ignored
...
(cherry picked from commit ef9ed19ec7 )
2018-08-17 13:01:55 +02:00
Xinchen Hui
e81b0b29d3
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed same bug #76755 in setrawcookie
2018-08-17 16:20:37 +08:00
Xinchen Hui
5c1a2d8375
Fixed same bug #76755 in setrawcookie
2018-08-17 16:19:26 +08:00
Xinchen Hui
3ca89ba007
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Cheaper checking
2018-08-17 15:22:50 +08:00
Xinchen Hui
0a16af043e
Cheaper checking
2018-08-17 15:21:48 +08:00
Xinchen Hui
13658428a2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Micro optimization & fixed invalid key handling
2018-08-17 14:56:43 +08:00
Xinchen Hui
751bbaa41f
Micro optimization & fixed invalid key handling
2018-08-17 14:56:24 +08:00
Xinchen Hui
ed0c581808
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76755 (setcookie does not accept "double" type for expire time)
2018-08-17 13:46:08 +08:00
Xinchen Hui
d61ff37f45
Fixed bug #76755 (setcookie does not accept "double" type for expire time)
2018-08-17 13:45:43 +08:00
Xinchen Hui
59bcf22237
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS
Update NEWS
Fixed bug #76754 (parent private constant in extends class memory leak)
2018-08-17 13:36:34 +08:00
Xinchen Hui
2aa3733daa
Update NEWS
2018-08-17 13:36:12 +08:00
Xinchen Hui
3131ebcea8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fixed bug #76754 (parent private constant in extends class memory leak)
2018-08-17 13:36:03 +08:00
Xinchen Hui
acd4264f7b
Update NEWS
2018-08-17 13:35:46 +08:00
Xinchen Hui
ca103b415e
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76754 (parent private constant in extends class memory leak)
2018-08-17 13:35:31 +08:00
Xinchen Hui
04c4854fdf
Fixed bug #76754 (parent private constant in extends class memory leak)
2018-08-17 13:35:15 +08:00
Xinchen Hui
4ab25235e5
Added a note
2018-08-17 12:22:46 +08:00
Xinchen Hui
dc79094217
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76752 (Crash in ZEND_COALESCE_SPEC_TMP_HANDLER - assertion in _get_zval_ptr_tmp failed).
2018-08-17 12:19:42 +08:00
Xinchen Hui
fd463a9a60
Fixed bug #76752 (Crash in ZEND_COALESCE_SPEC_TMP_HANDLER - assertion in _get_zval_ptr_tmp failed).
2018-08-17 12:19:31 +08:00
Xinchen Hui
ae926d8961
Merge branch 'PHP-7.3' of git.php.net:/php-src into PHP-7.3
...
* 'PHP-7.3' of git.php.net:/php-src:
fix man page installation
2018-08-16 14:02:03 +08:00
Xinchen Hui
a158fb958f
Merge branch 'PHP-7.2' of git.php.net:/php-src into PHP-7.2
...
* 'PHP-7.2' of git.php.net:/php-src:
fix man page installation
2018-08-16 14:01:17 +08:00
Xinchen Hui
64c88c1e16
Merge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
...
* 'PHP-7.1' of git.php.net:/php-src:
fix man page installation
2018-08-16 14:00:30 +08:00
Xinchen Hui
fb0389b101
Merge branch 'master' of git.php.net:/php-src
...
* 'master' of git.php.net:/php-src:
fix man page installation
2018-08-16 13:59:39 +08:00
Xinchen Hui
a8394a9f12
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS
Update NEWS
Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file)
2018-08-16 13:58:00 +08:00
Xinchen Hui
6e7b381270
Update NEWS
2018-08-16 13:57:40 +08:00
Xinchen Hui
1ea2395712
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file)
2018-08-16 13:57:05 +08:00
Xinchen Hui
eb7fca9546
Update NEWS
2018-08-16 13:56:52 +08:00
Xinchen Hui
a879f4dd22
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file)
2018-08-16 13:56:37 +08:00
Xinchen Hui
8c92442b49
Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file)
2018-08-16 13:56:20 +08:00
Remi Collet
70695cfd60
Merge branch 'PHP-7.3'
...
* PHP-7.3:
fix man page installation
2018-08-16 06:55:30 +02:00
Remi Collet
32477dea70
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix man page installation
2018-08-16 06:55:14 +02:00
Remi Collet
2cdde35d0f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
fix man page installation
2018-08-16 06:54:57 +02:00
Remi Collet
1f2f2c6b96
fix man page installation
...
Since 91996e7ee5
phpdbg.1 is in buildir, not in srcdir
2018-08-16 06:53:56 +02:00
Xinchen Hui
d7520f366a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Added NEWs
2018-08-15 11:03:30 +08:00
Xinchen Hui
e4276aeb98
Added NEWs
2018-08-15 11:02:59 +08:00
Anatol Belski
8b3174f256
Cleanup
2018-08-14 14:33:19 +02:00
Anatol Belski
083285f22a
Followup fix for ef9ed19e, see also bug #76738
2018-08-14 14:16:13 +02:00
Christoph M. Becker
e2326c5816
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS wrt. php-7.3.0beta2 tagging
2018-08-14 13:37:03 +02:00
Christoph M. Becker
66a4362914
[ci skip] Update NEWS wrt. php-7.3.0beta2 tagging
2018-08-14 13:36:15 +02:00
Christoph M. Becker
6e3fb489e8
Merge branch 'PHP-7.3'
2018-08-14 12:15:47 +02:00
Christoph M. Becker
819cf5283b
Revert "DOMDocument::formatOutput attribute sometimes ignored"
...
This reverts commit ef9ed19ec7 and its
follow-up 36f05a80d7 , since these caused
a serious regression (see bug #76738 ).
2018-08-14 12:14:33 +02:00
Xinchen Hui
242ebcc10b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed zend_read_static_property
2018-08-14 13:02:14 +08:00
Xinchen Hui
78d823d9c3
Fixed zend_read_static_property
2018-08-14 13:01:50 +08:00
Christoph M. Becker
7956722cfd
[ci skip] Fix EXTENSIONS
...
Commit 54f920d661 inadvertently changed
one the maintainer of xmlwriter from pajoye to chregu; we fix that.
2018-08-13 16:24:29 +02:00
Christoph M. Becker
9a6e7bfa1f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix arginfo for tidy::__construct()
2018-08-13 16:10:02 +02:00
Tyson Andre
dcd4b32185
Fix arginfo for tidy::__construct()
...
This was split out of PR #3439
Previously, the arginfo was wrong for these methods.
getNumberOfRequiredParameters() was 4 for that method.
Compare with http://php.net/manual/en/tidy.construct.php )
This fixes the arginfo added to PHP 7.3 in 97353cda99
2018-08-13 16:09:32 +02:00
Christoph M. Becker
0fd5fd8d58
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix arginfo for bzcompress
2018-08-13 16:02:35 +02:00
Christoph M. Becker
8270c7d947
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix arginfo for bzcompress
2018-08-13 16:02:13 +02:00
Christoph M. Becker
56abfd2798
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix arginfo for bzcompress
2018-08-13 16:00:25 +02:00
Tyson Andre
e20baee136
Fix arginfo for bzcompress
...
bzcompress() has 1 required parameter, not 2.
See http://php.net/manual/en/function.bzcompress.php or invoke
bzcompress with 1 parameter.
2018-08-13 15:59:08 +02:00
Anatol Belski
2dfb74682f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Sync with e0fe6674
2018-08-13 09:22:07 +02:00
Anatol Belski
fdaa540fd8
Sync with e0fe6674
2018-08-13 09:18:38 +02:00
Anatol Belski
b27d867713
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update NEWS [ci skip]
Update NEWS [ci skip]
Update NEWS [ci skip]
2018-08-13 09:14:48 +02:00
Anatol Belski
9eb51ce364
Update NEWS [ci skip]
2018-08-13 09:14:26 +02:00
Anatol Belski
4a3fccb0f5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
Update NEWS [ci skip]
2018-08-13 09:13:51 +02:00
Anatol Belski
dd0fb4fd9b
Update NEWS [ci skip]
2018-08-13 09:13:05 +02:00
Anatol Belski
dc3f4f7342
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS [ci skip]
2018-08-13 09:12:32 +02:00
Anatol Belski
859f7fce1f
Update NEWS [ci skip]
2018-08-13 09:11:57 +02:00
Gabriel Caruso
9003d8a4cf
Drop spl/internal documentation
...
These docs were outdated by now and the one at
https://php.net/spl should be used instead
2018-08-12 16:15:55 +02:00
Gabriel Caruso
84b195d9fc
Fix some misspellings
2018-08-12 16:15:45 +02:00
Christoph M. Becker
9ea7d259ef
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76688 : Disallow excessive parameters after options array
2018-08-12 15:49:46 +02:00
Pedro Magalhães
a16aee6cee
Fix #76688 : Disallow excessive parameters after options array
2018-08-12 15:49:13 +02:00
Peter Kokot
92b04da505
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
2018-08-12 11:29:19 +02:00
Peter Kokot
326d3d480c
[ci skip] Update NEWS
2018-08-12 11:29:02 +02:00
Peter Kokot
f689223b4e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix bug #76030 RE2C_FLAGS rarely honoured
2018-08-12 11:16:06 +02:00
Cristian Rodríguez
e0fe667421
Fix bug #76030 RE2C_FLAGS rarely honoured
...
Since PHP 5.3 the default lexer generator is RE2C. On Unix-alike build
systems there is also optional configure option --enable-re2c-cgoto
which enables optimized conditional jumps using non-standard computed
goto extension. It is available since RE2C 0.10.3 so it's well covered
by RE2C versions PHP uses. This patch syncs usage of -g option accross
the PHP Unix-alike build system.
2018-08-12 11:15:18 +02:00
Levi Morrison
29b56a878a
Quell GCC warning on mixing || and &&
2018-08-11 16:54:21 -06:00
Anatol Belski
b151e17bdf
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #74484 MessageFormatter::formatMessage memory corruption
2018-08-09 22:09:52 +02:00
Anatol Belski
3cef5a2476
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #74484 MessageFormatter::formatMessage memory corruption
2018-08-09 22:09:21 +02:00
Anatol Belski
9cc74ba229
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #74484 MessageFormatter::formatMessage memory corruption
2018-08-09 22:08:30 +02:00
Anatol Belski
45a05f3841
Fixed bug #74484 MessageFormatter::formatMessage memory corruption
...
with 11+ named placeholder
2018-08-09 22:07:24 +02:00
Christoph M. Becker
8e7abb7b65
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS regarding SameSite cookie support
2018-08-09 00:54:12 +02:00
Christoph M. Becker
d22ddd8cf1
[ci skip] Update NEWS regarding SameSite cookie support
2018-08-09 00:53:42 +02:00
Gabriel Caruso
953e28a92c
Remove more unecessaries percent signs
...
Follwing dae65a89
2018-08-08 08:24:00 -03:00
Gabriel Caruso
f47cdd1ee0
Remove invalid SKIPIF sections and make more tests run
2018-08-07 21:23:21 -03:00
Xinchen Hui
55c884f351
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76700 - Methods with altered visibility need to be added again
2018-08-07 14:23:44 +08:00
Pedro Magalhães
887235773d
Fix #76700 - Methods with altered visibility need to be added again
2018-08-07 14:22:37 +08:00
Xinchen Hui
fadbfbf8e1
Merge branch 'bug-76700' of https://github.com/pmmaga/php-src
...
* 'bug-76700' of https://github.com/pmmaga/php-src :
Fix #76700 - Methods with altered visibility need to be added again
2018-08-07 14:21:02 +08:00
Xinchen Hui
333cc376c4
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76713 (Segmentation fault caused by property corruption)
2018-08-07 12:36:48 +08:00
Xinchen Hui
2b1d79ce66
Fixed bug #76713 (Segmentation fault caused by property corruption)
2018-08-07 12:36:36 +08:00
Anatol Belski
8d9541b6c8
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix stack underflow in phar
2018-08-06 22:44:32 +02:00
Anatol Belski
b053beee7e
Fix stack underflow in phar
...
The checks can issue reads below and above the temporary buffer. A read
itself doesn't seem dangerous, but the condition result can be
arbitrary. Such reads have to be avoided. Likely this patch should be
backported.
2018-08-06 22:43:45 +02:00
Anatol Belski
85e95c9a06
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update libmagic.patch [ci skip]
2018-08-06 14:29:06 +02:00
Anatol Belski
3082600326
Update libmagic.patch [ci skip]
2018-08-06 14:28:32 +02:00
Christoph M. Becker
8c76dc3658
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Extended class naming rule
2018-08-06 13:31:37 +02:00
Richard Fussenegger
35cb353dd5
[ci skip] Extended class naming rule
2018-08-06 13:31:02 +02:00
Peter Kokot
f47bd676cb
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-08-06 09:43:14 +02:00
Peter Kokot
1c1567c9bc
[ci skip] Update NEWS
2018-08-06 09:43:03 +02:00
Peter Kokot
a6ab19375a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-08-06 09:42:42 +02:00
Peter Kokot
0b9a540dd7
[ci skip] Update NEWS
2018-08-06 09:42:32 +02:00
Peter Kokot
f4777c6a51
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-08-06 09:41:54 +02:00
Peter Kokot
935625f1b8
[ci skip] Update NEWS
2018-08-06 09:41:38 +02:00
Peter Kokot
0d8b8ad0ce
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix bug #76709 : Minimal required zlib library is 1.2.0.4
2018-08-06 09:40:06 +02:00
Peter Kokot
fefaeae49c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #76709 : Minimal required zlib library is 1.2.0.4
2018-08-06 09:39:52 +02:00
Peter Kokot
fab7d9f577
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #76709 : Minimal required zlib library is 1.2.0.4
2018-08-06 09:39:33 +02:00
Peter Kokot
a3e3d914ed
Fix bug #76709 : Minimal required zlib library is 1.2.0.4
...
The minimal required version of zlib system library is 1.2.0.4 instead
of 1.0.9 as reported in the ./configure --help.
2018-08-06 09:37:16 +02:00
Peter Kokot
f2efcf868a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-08-06 06:20:22 +02:00
Peter Kokot
2c72673986
[ci skip] Update NEWS
2018-08-06 06:20:08 +02:00
Peter Kokot
51d3896fd7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-08-06 06:19:45 +02:00
Peter Kokot
fa07b8bbb7
[ci skip] Update NEWS
2018-08-06 06:19:33 +02:00
Peter Kokot
86e9965c87
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-08-06 06:17:59 +02:00
Peter Kokot
4d5edcb4ac
[ci skip] Update NEWS
2018-08-06 06:17:45 +02:00
Peter Kokot
163600ac2a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix bug #65988 : Zlib version check fails
2018-08-06 06:16:25 +02:00
Peter Kokot
523cf6e2e7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #65988 : Zlib version check fails
2018-08-06 06:16:07 +02:00
Peter Kokot
eceecb6900
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #65988 : Zlib version check fails
2018-08-06 06:15:51 +02:00
Jay Bonci
c8a90606c1
Fix bug #65988 : Zlib version check fails
...
When an 'include/zlib/' style dir is passed to --with-zlib configure
option the zlib version check fails.
2018-08-06 06:14:11 +02:00
Peter Kokot
0a99ecba42
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-08-06 01:45:01 +02:00
Peter Kokot
ee2d2f78c4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-08-06 01:44:49 +02:00
Peter Kokot
8cbb381068
[ci skip] Update NEWS
2018-08-06 01:44:37 +02:00
Peter Kokot
6b092bcaae
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-08-06 01:44:07 +02:00
Peter Kokot
b4b14d2106
[ci skip] Update NEWS
2018-08-06 01:43:37 +02:00
Peter Kokot
ee3d32d44b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix bug #72443 : Generate enabled extension
2018-08-06 01:39:07 +02:00
Peter Kokot
c9ff518665
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #72443 : Generate enabled extension
2018-08-06 01:34:31 +02:00
Peter Kokot
68ab719baa
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #72443 : Generate enabled extension
2018-08-06 01:28:39 +02:00
Peter Kokot
45a3c0e596
Fix bug #72443 : Generate enabled extension
...
The PHP extension generator script now generates enabled extension with
less required steps for using the newly generated files.
2018-08-06 01:22:17 +02:00
Gabriel Caruso
dae65a89aa
Remove unecessaries percent signs
2018-08-05 20:18:02 -03:00
Gabriel Caruso
d570b7382d
Fix SKIPIF conditions for online tests
...
Add when necessary, as well remove when not
2018-08-05 18:28:28 -03:00
Christoph M. Becker
d22dfa6e5f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Fix UPGRADING
2018-08-05 23:12:58 +02:00
Christoph M. Becker
d4053cee6b
[ci skip] Fix UPGRADING
...
The “Allow a trailing comma in function calls” RFC has not been
mentioned there, yet.
2018-08-05 23:12:29 +02:00
Jakub Zelenka
68c49e76d3
Merge branch 'PHP-7.3'
2018-08-05 20:37:46 +01:00
David Carlier
9b462f332e
fpm process name, FreeBSD 12.x using new setproctitle_fast
2018-08-05 20:36:41 +01:00
Jakub Zelenka
86d472e249
Use php_openlog instead of openlog in FPM
...
Fix incorrect port in the previous commit
2018-08-05 20:35:58 +01:00
Jakub Zelenka
f9d9c5ebd9
Fix FPM logging when log pipe is closed
2018-08-05 20:35:40 +01:00
Peter Kokot
f98a08f9c1
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-08-05 20:38:08 +02:00
Peter Kokot
1012416a1c
[ci skip] Update NEWS
2018-08-05 20:37:51 +02:00
Peter Kokot
f9c8a003dc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-08-05 20:37:21 +02:00
Peter Kokot
6680d5f875
[ci skip] Update NEWS
2018-08-05 20:36:59 +02:00
Peter Kokot
b9c3c1441a
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-08-05 20:36:33 +02:00
Peter Kokot
169a98319a
[ci skip] Update NEWS
2018-08-05 20:35:23 +02:00
Peter Kokot
938791398d
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed incorrect restoring of LDFLAGS
2018-08-05 20:32:27 +02:00
Peter Kokot
024232e94d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed incorrect restoring of LDFLAGS
2018-08-05 20:32:05 +02:00
Peter Kokot
8d91e82871
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed incorrect restoring of LDFLAGS
2018-08-05 20:27:33 +02:00
sji
0f557756dd
Fixed incorrect restoring of LDFLAGS
2018-08-05 20:26:40 +02:00
Jakub Zelenka
e942663a09
Use php_openlog instead of openlog in FPM
...
Fix incorrect port in the previous commit
2018-08-05 18:21:52 +01:00
Jakub Zelenka
2a67d62395
Fix FPM logging when log pipe is closed
2018-08-05 18:19:00 +01:00
Gabriel Caruso
37245e63ca
Make test run on non debug builds
2018-08-05 05:05:11 -03:00
Christoph M. Becker
61e1798c8e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Add missing skip conditions
2018-08-05 00:13:40 +02:00
Christoph M. Becker
a003af5b62
Add missing skip conditions
...
mbstring can be built without mbregex support, in which case these
tests would fail. Thus we add respective skip conditions.
2018-08-05 00:01:35 +02:00
Christoph M. Becker
2fec8b1bed
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76706 : mbstring.http_output_conv_mimetypes is ignored
2018-08-04 23:24:20 +02:00
Christoph M. Becker
70ecb6e50b
Fix #76706 : mbstring.http_output_conv_mimetypes is ignored
...
_php_mb_match_regex() is supposed to return != 0 on success, and 0 on
failure. pcre2_match() returns >= 0 on success, and < 0 on failure.
We map the result accordingly.
Since this patch fixes four failing tests, there is no need to add
another.
2018-08-04 23:24:04 +02:00
Peter Kokot
a0970bbbab
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Remove outdated comment with PEAR xmlrpc dependency
2018-08-04 18:23:25 +02:00
Peter Kokot
99020cc085
Remove outdated comment with PEAR xmlrpc dependency
...
The xmlrpc extension is not required to install PEAR anymore.
2018-08-04 18:22:08 +02:00
Anatol Belski
a66c1c41ad
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix possible stack buffer overflow
2018-08-04 16:56:49 +02:00
Anatol Belski
e1af7a794a
Fix possible stack buffer overflow
2018-08-04 16:56:08 +02:00
Peter Kokot
50352b356b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
2018-08-04 16:21:04 +02:00
Peter Kokot
655658bbfa
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
2018-08-04 16:20:52 +02:00
Peter Kokot
827abb843f
[ci skip] Update NEWS
...
Bug fix #76595 has been done after the 7.2.9RC1 release and should go
to appropriate NEWS location then.
2018-08-04 16:19:47 +02:00
Peter Kokot
7518866519
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
2018-08-04 16:18:42 +02:00
Peter Kokot
889df3087b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
2018-08-04 16:18:10 +02:00
Peter Kokot
18db1ce211
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-08-04 16:17:26 +02:00
Peter Kokot
fd0fc20d35
[ci skip] Update NEWS
...
Bug fix #76595 has been done after RC release and should go to
appropriate NEWS location then.
2018-08-04 16:16:07 +02:00
Christoph M. Becker
e529587a65
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76704 : mb_detect_order return value varies based on argument type
2018-08-04 14:04:55 +02:00
Christoph M. Becker
5dc74d9e70
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76704 : mb_detect_order return value varies based on argument type
2018-08-04 13:50:48 +02:00
Christoph M. Becker
88c57c7ee2
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Fix NEWS
2018-08-04 13:46:50 +02:00
Christoph M. Becker
81ebe930f3
[ci skip] Fix NEWS
...
beta1 has already been released, but does not contain the fix for bug
76595.
2018-08-04 13:46:32 +02:00
Christoph M. Becker
db8bcdba80
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76704 : mb_detect_order return value varies based on argument type
2018-08-04 12:57:05 +02:00
Christoph M. Becker
c00f5e6531
Fix #76704 : mb_detect_order return value varies based on argument type
...
php_mb_parse_encoding_list() and php_mb_parse_encoding_array() are
supposed to return SUCCESS and FAILURE, not 1 and 0, respectively.
2018-08-04 12:51:57 +02:00
Peter Kokot
fa4bf48fba
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
2018-08-04 06:41:44 +02:00
Peter Kokot
bb92808794
[ci skip] Update NEWS
2018-08-04 06:41:34 +02:00
Peter Kokot
cbd0daa7cd
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
2018-08-04 06:40:54 +02:00
Peter Kokot
ad0f73cbfd
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
2018-08-04 06:40:44 +02:00
Peter Kokot
ffae3fb25d
[ci skip] Update NEWS
2018-08-04 06:40:31 +02:00
Peter Kokot
fc9d49ec4f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Update NEWS
2018-08-04 06:39:58 +02:00
Peter Kokot
7b2af47236
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
2018-08-04 06:39:46 +02:00
Peter Kokot
fa59dc550d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-08-04 06:39:33 +02:00
Peter Kokot
b71a503844
[ci skip] Update NEWS
2018-08-04 06:39:19 +02:00
Peter Kokot
af96a372af
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix bug 76595: Update phpdbg man page
2018-08-04 06:37:42 +02:00
Peter Kokot
0f57a7f259
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug 76595: Update phpdbg man page
2018-08-04 06:37:15 +02:00
Peter Kokot
9286681bac
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug 76595: Update phpdbg man page
2018-08-04 06:35:40 +02:00
Kevin Abel
91996e7ee5
Fix bug 76595: Update phpdbg man page
...
Send phpdbg.1 man page through configure replacements
Update phpdbg.1 man page to include all options
Fixes formatting to be more consistent with php.1
Fix paragraph whitespace and ignore phpdbg.1
2018-08-04 06:34:40 +02:00
Pedro Magalhães
97b2558b76
Fix #76700 - Methods with altered visibility need to be added again
2018-08-03 17:30:03 +01:00
Anatol Belski
9652fc624a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Remove asan incompatible options
2018-08-03 14:11:18 +02:00
Anatol Belski
2ea7222440
Remove asan incompatible options
2018-08-03 14:10:37 +02:00
Anatol Belski
df5e09c5a8
Use inliner cache also for non ext/sapi sources
2018-08-03 12:36:19 +02:00
Christoph M. Becker
57ccfab1d4
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update UPGRADING.INTERNALS wrt. Same Site Cookies
2018-08-03 10:53:07 +02:00
Christoph M. Becker
4faf135d90
Update UPGRADING.INTERNALS wrt. Same Site Cookies
2018-08-03 10:52:31 +02:00
Anatol Belski
9d89cf95d3
Missing piece for the inliner cache
2018-08-03 10:20:03 +02:00
Anatol Belski
c389fc6117
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Update maintainer info [skip ci]
2018-08-03 07:50:00 +02:00
Anatol Belski
7aca2bdbb1
Update maintainer info [skip ci]
2018-08-03 07:49:29 +02:00
Anatol Belski
cf21a505a6
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Improve cleanup
2018-08-03 07:12:13 +02:00
Anatol Belski
4bb44e0f44
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Improve cleanup
2018-08-03 07:11:23 +02:00
Anatol Belski
0872e80dd8
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Improve cleanup
2018-08-03 07:10:27 +02:00
Anatol Belski
41c69766a4
Improve cleanup
...
The persistent connection locks the file which might prevent deletion.
2018-08-03 07:08:53 +02:00
Gabriel Caruso
0e0019f694
Remove superfluous checks of always available functions
2018-08-03 00:13:01 -03:00
Anatol Belski
7b184d320c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
2018-08-02 21:41:07 +02:00
Anatol Belski
cd07fa48ba
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix callbacks
bump version
2018-08-02 21:40:50 +02:00
Anatol Belski
e018a1c98a
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix callbacks
bump version
2018-08-02 21:25:29 +02:00
Anatol Belski
91a0a10f71
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix callbacks
bump version
2018-08-02 21:20:04 +02:00
Anatol Belski
19592519c2
Fix callbacks
...
The signatures wasn't synced in 7.0
2018-08-02 18:59:34 +02:00
Anatol Belski
580103cb13
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Cleanup unused items
2018-08-02 18:29:33 +02:00
Anatol Belski
9d7c510893
Cleanup unused items
2018-08-02 18:28:56 +02:00
Sara Golemon
f895525160
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Roll NEWS for 7.2.10
2018-08-02 11:24:29 -04:00
Sara Golemon
ba1a90ea89
Merge branch 'PHP-7.2' into HEAD
...
* PHP-7.2:
Roll NEWS for 7.2.10
2018-08-02 11:23:14 -04:00
Sara Golemon
0ba49597b9
Roll NEWS for 7.2.10
2018-08-02 11:21:40 -04:00
Anatol Belski
309ae35773
Enable inline reader cache
2018-08-02 16:29:59 +02:00
Christoph M. Becker
9ad039a180
Merge branch 'PHP-7.3'
...
* PHP-7.3:
[ci skip] Fix wrong dash character in UPGRADING
2018-08-02 14:13:40 +02:00
Michael Moravec
196e5f0e06
[ci skip] Fix wrong dash character in UPGRADING
2018-08-02 14:13:09 +02:00
Christoph M. Becker
c9861bd7a9
Create and expose php_sys_symlink() and php_sys_link()
...
These macros are supposed to behave like POSIX's symlink() and link(),
respectively, on POSIX compliant systems and on Windows.
Future scope: merge link.c and link_win32.c
2018-08-02 14:08:30 +02:00
Gabriel Caruso
1fe59810fe
Make test run on non zts builds
2018-08-01 23:14:56 -03:00
Gabriel Caruso
7f9e10f539
Remove invalid SKIPIF sections
2018-08-01 22:39:00 -03:00
Gabriel Caruso
dc4e47710b
Give a reason why the test was skipped
...
A follow up for c93aba04
2018-08-01 22:18:57 -03:00
BohwaZ
6f9ebe677b
Add \PDO::SQLITE_ATTR_READONLY_STATEMENT
...
This attribute is a boolean value. It is taken from the return value of
sqlite3_stmt_readonly(), indicating if and only if the prepared statement makes
no direct changes to the content of the database.
2018-08-01 17:45:20 -04:00
Anatol Belski
1a303f1a2b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Suppress more irrelevant clang warnings
2018-08-01 18:19:50 +02:00
Anatol Belski
d53978bd59
Suppress more irrelevant clang warnings
2018-08-01 18:18:37 +02:00
Christoph M. Becker
3d4fbdade4
Remove needless version checks
...
As of PHP 5.5.3, we're requiring ICU ≥ 4.0[1] anyway, so there's no
need to check for ICU 3.x.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=8831b00 >
2018-08-01 17:53:38 +02:00
Anatol Belski
3d7b0b6f92
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Unused var
2018-08-01 16:45:39 +02:00
Xinchen Hui
642bb9f376
Unused var
2018-08-01 16:45:15 +02:00
Anatol Belski
2d71a28954
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix clang compilation
2018-08-01 16:24:07 +02:00
Anatol Belski
36857ab52b
Fix clang compilation
...
By usage of -fmodules, all the intrinsic items are loaded automatically.
The headers included come however from Visual Studio, thus bringing some
conflicting declarations. On the other hand, -fmodules is needed to
mitigate linking issues with clang in VS compatibility mode.
2018-08-01 16:19:54 +02:00
Xinchen Hui
85145e509e
Unused var
2018-08-01 14:49:06 +08:00
Stanislav Malyshev
3ea095ab00
[ci skip] Typo
2018-07-31 22:41:11 -07:00
Stanislav Malyshev
65167f1c7d
[ci skip] Ugh, whitespace
2018-07-31 12:44:51 -07:00
Stanislav Malyshev
201022c347
[ci skip] Clarify difference between security & regular bugfixes
2018-07-31 12:43:22 -07:00
Anatol Belski
f8357f9e80
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix length to copy
2018-07-31 17:32:49 +02:00
Anatol Belski
b1d2a89ac1
Fix length to copy
2018-07-31 17:31:57 +02:00
Christoph M. Becker
7866f28173
UPDATE README.GIT-RULES wrt. PHP-7.3
...
We also add a respective note to README.RELEASE_PROCESS, so this won't
get overlooked again.
2018-07-31 17:06:44 +02:00
Joe Watkins
74988eed99
bump version
2018-07-31 16:38:35 +02:00
Christoph M. Becker
bccf0dfba1
Prepare UPGRADING(.INTERNALS) for PHP 7.4
...
We also add this as task to README.RELEASE_PROCESS, so that it's not
overlooked next time.
2018-07-31 15:54:03 +02:00
Christoph M. Becker
d5bd1b5f6b
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix ZEND_EXTENSION_API_NO
2018-07-31 14:11:59 +02:00
Christoph M. Becker
f6ee308143
Fix ZEND_EXTENSION_API_NO
2018-07-31 14:11:39 +02:00
Christoph M. Becker
4ed1678540
Fix README.RELEASE_PROCESS
...
The version has to be updated in configure.ac; by running `./configure`
afterwards, main/php_versions.h will be updated automatically.
2018-07-31 14:09:31 +02:00
Christoph M. Becker
a63c99ba62
Prepare for PHP 7.4
2018-07-31 13:56:24 +02:00
Christoph M. Becker
144e8d1f83
Update API version numbers
...
These are supposed to be final now for PHP 7.3.
2018-07-31 13:33:48 +02:00
Christoph M. Becker
bf5cf79456
Fix UPGRADING
2018-07-31 13:31:28 +02:00
Christoph M. Becker
974abd8b43
Update UPGRADING wrt. samesite cookie RFC
...
Cf. <https://wiki.php.net/rfc/same-site-cookie >.
2018-07-31 12:48:33 +02:00
Pedro Magalhães
2b58ab23c6
Support for samesite cookies with array syntax
...
Allows using an alternative array argument with
support for the samesite option on the following
functions:
setcookie
setrawcookie
session_set_cookie_params
2018-07-31 12:40:26 +02:00
Frederik Bosch
08b9310e6d
implement same site cookie see https://bugs.php.net/bug.php?id=72230 see https://tools.ietf.org/html/draft-west-first-party-cookies-07 see https://scotthelme.co.uk/csrf-is-dead/
2018-07-31 12:40:24 +02:00
Dmitry Stogov
3ccd985478
Improved method visibility checks
2018-07-31 13:05:57 +03:00
Dmitry Stogov
57527455eb
Simplified property name to string conversion
2018-07-31 12:24:53 +03:00
Dmitry Stogov
c42f0ba4f7
Removed useless IS_UNDEF checks
2018-07-31 12:23:46 +03:00
Peter Kokot
7c1e0930c4
Remove TSRM_CHECK_GCC_ARG and LIBZEND_CPLUSPLUS_CHECKS
...
This removes two old Autoconf macro definitions since they are not used
anymore.
2018-07-31 05:59:05 +02:00
Peter Kokot
b719aa41f4
Fix minor Autoconf coding style
...
This fixes two minor Autoconf coding styles. Double quotes in arguments
don't need to be escaped. This removes warning given by autoreconf:
- warning: back quotes and double quotes must not be escaped in...
2018-07-31 03:09:44 +02:00
Anatol Belski
160353688b
Update NEWS [ci skip]
2018-07-30 19:44:59 +02:00
Anatol Belski
b49891aa90
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Update NEWS [ci skip]
Update NEWS [ci skip]
2018-07-30 19:44:01 +02:00
Anatol Belski
095a30e11b
Update NEWS [ci skip]
2018-07-30 19:43:23 +02:00
Anatol Belski
e111ef5626
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS [ci skip]
2018-07-30 19:42:45 +02:00
Anatol Belski
2870178720
Update NEWS [ci skip]
2018-07-30 19:42:10 +02:00
Anatol Belski
093cb1d7c6
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option
2018-07-30 18:29:40 +02:00
Anatol Belski
d207d6a57f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option
2018-07-30 18:28:53 +02:00
Anatol Belski
cc69950b15
Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option
2018-07-30 18:27:59 +02:00
Dmitry Stogov
5674cf888d
Use better macros
2018-07-30 16:48:34 +03:00
Dmitry Stogov
909f943fe5
Loop optimization
2018-07-30 16:08:45 +03:00
Gabriel Caruso
9c8b3ae43f
Make more tests run on 64bit plataforms
2018-07-30 09:43:09 -03:00
Gabriel Caruso
4a1336de7c
Give a reason why the test was skipped
2018-07-30 09:03:21 -03:00
Gabriel Caruso
745f6627bd
Remove superfluous SKIPIF sections of always available functions
2018-07-30 09:01:39 -03:00
Dmitry Stogov
be805f146c
Added missing define
2018-07-30 13:29:09 +03:00
Dmitry Stogov
3ced766da9
Removed duplicate code. zend_fetch_dimension_address_LIST_w() was a copy of zend_fetch_dimension_address_W(), ZEND_FETCH_LIST_W_SPEC_CV_... a copy of ZEND_FETCH_DIM_W_SPEC_CV_...
2018-07-30 10:53:39 +03:00
Peter Kokot
f2e4de8b56
Fix AC_RUN_IFELSE calls when cross-compiling
...
AC_RUN_IFELSE program can't be run when cross-compiling. This fix removes
warnings given by autotools scripts.
2018-07-30 06:38:59 +02:00
Peter Kokot
6399fa1eea
[ci skip] Fix typo
2018-07-30 06:28:40 +02:00
Gabriel Caruso
d88bbcea82
Remove superfluous SKIPIF sections of always available constants
2018-07-30 00:53:28 -03:00
Peter Kokot
4371945b8b
Replace obsolete AC_TRY_FOO with AC_FOO_IFELSE
...
Autoconf 2.50 released in 2001 made several macros obsolete including
the AC_TRY_RUN, AC_TRY_COMPILE and AC_TRY_LINK:
http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2
These macros should be replaced with the current AC_FOO_IFELSE instead:
- AC_TRY_RUN with AC_RUN_IFELSE and AC_LANG_SOURCE
- AC_TRY_LINK with AC_LINK_IFELSE and AC_LANG_PROGRAM
- AC_TRY_COMPILE with AC_COMPILE_IFELSE and AC_LANG_PROGRAM
PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require
2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which
are all greater than above mentioned 2.50 version therefore systems
should be well supported by now.
This patch was created with the help of autoupdate script:
autoupdate <file>
Reference docs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
- https://www.gnu.org/software/autoconf/manual/autoconf-2.59/autoconf.pdf
2018-07-30 02:36:38 +02:00
Gabriel Caruso
aac5cdc7d7
Remove superfluous SKIPIF sections of always available interfaces
2018-07-29 18:03:34 -03:00
Peter Kokot
72551dd89e
[ci skip] Document RETSIGTYPE
2018-07-29 21:32:35 +02:00
Gabriel Caruso
1461f8ef0d
Remove superfluous SKIPIF sections of always available functions
2018-07-29 15:42:19 -03:00
Gabriel Caruso
f2b5ac7963
[ci skip] Fix typo
2018-07-29 13:48:35 -03:00
Gabriel Caruso
a61756252a
Run tokenizer_data_gen.sh to reorganize tokens
...
This will help us in future PRs, reducing the numbers of changed lines
2018-07-29 13:21:33 -03:00
Peter Kokot
17de277a2f
Remove obsolete AC_TYPE_SIGNAL
...
The AC_TYPE_SIGNAL macro defined the RETSIGTYPE based on the signal
type defined in the signal.h. On pre C89 sistems (K&R C) it could be
void or int. Since C89 it can be safely assumed that the signal and
therefore the RETSIGTYPE is always void, so the RETSIGTYPE can be
replaced with void in the code if it uses it. PHP doesn't use the
RETSIGTYPE in current code anyway.
Refs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
2018-07-29 16:06:46 +02:00
Peter Kokot
daaf706df0
Upgrade deprecated AC_OUTPUT macro calls
...
Autoconf 2.50 made several changes to macro calls. These include also
arguments passed to AC_OUTPUT macro. The upgrading chapter in Autoconf
documentation include an example of using AC_OUTPUT with
AC_CONFIG_FILES and AC_CONFIG_COMMANDS:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
PHP 5.4 to 7.1 require Autoconf 2.59+, PHP 7.2+ require Autoconf 2.64+,
and PHP 7.2 phpize script requires Autoconf 2.59+ which are all greater
than above mentioned 2.50 version. Systems out there should well support
this by now.
This patch was created with the help of autoupdate script:
autoupdate <file>
More info on where exactly this got deprecated:
- ftp://ftp.gnu.org/old-gnu/Manuals/autoconf-2.13/html_mono/autoconf.html
- ftp://ftp.auckland.ac.nz/pub/gnu/Manuals/autoconf-2.52/html_chapter/autoconf_15.html
- http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
2018-07-29 16:04:39 +02:00
Peter Kokot
7394879adf
Upgrade AX_FUNC_WHICH_GETHOSTBYNAME_R to serial 8
...
The AX_FUNC_WHICH_GETHOSTBYNAME_R macro is from the Autoconf Archive.
Latest version of the file has few docs changes. File is also renamed
as is a pattern of other m4 Autoconf Archive files.
Refs:
- http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_func_which_gethostbyname_r.m4
2018-07-29 15:59:33 +02:00
Peter Kokot
ab702e4fde
Trim trailing whitespaces in build files
...
Some editors utilizing .editorconfig automatically trim whitespaces. For
convenience this patch removes whitespaces in certain build files in
Zend and TSRM folders.
2018-07-29 15:46:43 +02:00
Peter Kokot
209f05a878
[ci skip] Note HAVE_ST_BLKSIZE and HAVE_ST_RDEV
2018-07-29 14:44:56 +02:00
Peter Kokot
d2184efb7b
Replace obsolete AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV
...
Autoconf 2.50 released in 2001 has made several macros obsolete. Instead
of the AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV the new
AC_CHECK_MEMBERS should be used.
When checking for the presence of stat struct members st_blkzize and
st_rdev the new AC_CHECK_MEMBERS macro defines new constants
HAVE_STRUCT_STAT_ST_BLKSIZE and HAVE_STRUCT_STAT_ST_RDEV.
Old constants HAVE_ST_BLKSIZE and HAVE_ST_RDEV need to be replaced
respectively in PHP code (this patch) and in PHP extenstions if they use
them.
PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require
2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which
are all greater than above mentioned 2.50 version.
2018-07-29 13:59:40 +02:00
Peter Kokot
d7ad4babe0
[ci skip] Note removal of PHP_PROG_LEX
2018-07-29 13:37:48 +02:00
Peter Kokot
03b717d4cc
Remove unused PHP_PROG_LEX macro
...
Since PHP 5.3 flex lexer has been replaced with re2c. Commit
0f9e2b1753 made PHP_PROG_LEX macro still
available for BC.
In commit df6bd506d4 it was updated. Since
this macro is entirely not used in PHP source code anymore from PHP 5.3
and up, this patch removes it together with some old traces of warnings
suppression and comments.
2018-07-29 10:53:21 +02:00
Peter Kokot
255e29f3bc
Remove unused libmbfl build system related files
...
PHP build system already builds necessary files also from libmbfl
directory using the mbstring config.m4 file.
2018-07-29 10:07:32 +02:00
Peter Kokot
b12cece8d5
Replace obsolete AC_AIX with AC_USE_SYSTEM_EXTENSIONS
...
Since Autoconf 2.62 the AC_AIX macro has been made obsolete and should
be replaced with the AC_USE_SYSTEM_EXTENSIONS instead.
Both macro behaviors are the same since the old one is just a wrapper
around the new AC_USE_SYSTEM_EXTENSIONS:
http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/specific.m4
PHP 7.2+ and the main configure.ac script require minimum Autoconf 2.64+.
Refs:
- http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
2018-07-29 08:00:15 +02:00
Peter Kokot
0a01eae039
Fix typo in config.m4
...
The AC_CHECK_FUNCS has the following synopsis:
AC_CHECK_FUNCS(function..., [action-if-found], [action-if-not-found]).
Fourth argument doesn't exist.
2018-07-29 06:10:16 +02:00
Peter Kokot
cf3b852109
Trim trailing whitespaces in build files
...
Some editors utilizing .editorconfig automatically trim whitespaces. For
convenience this patch removes whitespaces in certain build files:
- ext/*/config*.m4
- configure.ac
- acinclude.m4
2018-07-29 03:43:45 +02:00
Peter Kokot
b60d8ab2e2
Upgrade AX_CHECK_COMPILE_FLAG macro to serial 6
...
The AX_CHECK_COMPILE_FLAG macro is from the Autoconf Archive. Latest
version of the file has a new All-permissive license for even more
convenience for usage.
Refs:
- http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_check_compile_flag.m4
- https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html
2018-07-28 01:40:02 +02:00
Peter Kokot
cf8ef08e20
Fix typos in code
2018-07-27 16:27:41 +02:00
Peter Kokot
0eabd5231b
Remove unused Git ident attributes from zip extension
...
$Id attributes were used with SVN. With Git most of the Git ident
attributes in source code files are not used anymore.
2018-07-27 15:49:34 +02:00
Gabriel Caruso
1359ff8052
Reverts some changes from 7ec64a83
...
Checking for the PHP_VERSION_ID here is actually part of the test
2018-07-27 08:01:43 -03:00
Dmitry Stogov
a588b825d6
Improved assignment to "next" element of array ($a[] = ...)
2018-07-27 13:15:22 +03:00
Xinchen Hui
a7746d10a5
Fixed bug #76667 (Segfault with divide-assign op and __get + __set)
2018-07-27 13:00:14 +08:00
Gabriel Caruso
7ec64a831d
Remove superfluous check for PHP 7+ tests
2018-07-27 00:48:30 -03:00
Christoph M. Becker
d035bc2bfe
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #76665 : SQLite3Stmt::bindValue() with SQLITE3_FLOAT doesn't juggle
2018-07-26 14:23:40 +02:00
Kalle Sommer Nielsen
ba8f0615e1
Fixed ZTS build
2018-07-26 14:01:49 +02:00
Anatol Belski
6059ecee3a
Sync with ab8094c6
2018-07-26 13:58:08 +02:00
Christoph M. Becker
ce66492a13
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76665 : SQLite3Stmt::bindValue() with SQLITE3_FLOAT doesn't juggle
2018-07-26 13:26:58 +02:00
Christoph M. Becker
ed7e3bc70a
Fix #76665 : SQLite3Stmt::bindValue() with SQLITE3_FLOAT doesn't juggle
...
We need to ensure that a zval IS_DOUBLE before we access it as such.
In this case we apply common type juggling to do so.
2018-07-26 13:15:19 +02:00
Dmitry Stogov
f374e93762
Use better check
2018-07-26 14:13:33 +03:00
Gabriel Caruso
562150906a
Remove extra semicolons
2018-07-26 12:38:22 +02:00
Dmitry Stogov
ab8094c666
Pack zend_constant.flags and zend_constant.module_number into reserved space inside zend_constant.value.
2018-07-26 12:58:07 +03:00
Dmitry Stogov
7a41e4c0d0
Documented ZEND_ACC_* flags (values are kept unchanged, except for ZEND_ACC_IMMUTABLE, that was introduced in 7.3 anyway)
2018-07-26 10:42:57 +03:00
Gabriel Caruso
fb966b9825
Remove unused variables
2018-07-25 22:05:41 -03:00
Gabriel Caruso
9e4d590b19
Remove extra semicolons
2018-07-25 21:47:04 -03:00
Peter Kokot
8d18d631b6
Replace obsolete AC_TRY_CPP with AC_PREPROC_IFELSE
...
The AC_TRY_CPP macro is obsolete since Autoconf 2.50 in 2001:
- http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
2018-07-25 23:00:20 +02:00
Dmitry Stogov
57c4ae393c
typo
2018-07-25 23:00:33 +03:00
Philip Prindeville
80eb9c89b8
Don't need interactive progress on git clones in Travis
...
Travis logs are usually inspected after the build completes, by which time
progress info is useless.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com >
2018-07-25 13:05:27 -06:00
Dmitry Stogov
f950128cd6
Encode parent class name as IS_CONST operand in DECLARE_INHERITED_CLASS and DECLARE_ANON_INHERITED_CLASS opcodes (eliminate FETCH_CLAS
...
S opcode).
2018-07-25 13:40:47 +03:00
Peter Kokot
a5e80b22e1
Fix typos in code comments
2018-07-25 11:57:11 +02:00
Dmitry Stogov
a29a800cb0
Regenerate scanners using re2c version >= 1.0.0 (newer version, at least, produce less code)
2018-07-25 12:49:03 +03:00
Dmitry Stogov
aed3de1bc5
Split add/sub_function(s) into fast and slow parts
2018-07-25 12:48:16 +03:00
Peter Kokot
df6bd506d4
Remove obsolete macro AC_DECL_YYTEXT
...
The macro AC_DECL_YYTEXT has been obsolete since Autoconf 2.50 released
in 2001. Now it is included in the AC_PROG_LEX macro.
Autoconf news info about obsoletion:
- http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
Docs:
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require
2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which
are all greater than above mentioned 2.50 version. Systems out there should
well support this by now.
2018-07-25 03:09:14 +02:00
Peter Kokot
8d3f8ca12a
Remove unused Git attributes ident
...
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.
In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.
This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
2018-07-25 00:53:25 +02:00
Christoph M. Becker
dcd6a6ff36
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #76643 : Segmentation fault when using `output_add_rewrite_var`
2018-07-24 12:41:35 +02:00
Christoph M. Becker
a96ca13963
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76643 : Segmentation fault when using `output_add_rewrite_var`
2018-07-24 12:28:22 +02:00
Christoph M. Becker
40bd84d3e3
Fix #76643 : Segmentation fault when using output_add_rewrite_var
...
We have to check whether _SERVER is actually an array before we're
going to use it as such.
2018-07-24 12:20:13 +02:00
Dmitry Stogov
d775fe33d1
Better name: ZEND_PROPERTY_HAS => ZEND_PROPERTY_NOT_EMPTY
2018-07-24 09:31:57 +03:00
Xinchen Hui
1638a6e118
Give a meaningful name
2018-07-24 12:51:36 +08:00
Xinchen Hui
4aada3993c
Micro-optmization
2018-07-24 12:16:35 +08:00
Xinchen Hui
d31d4d1392
Update NEWs
2018-07-24 11:37:30 +08:00
Xinchen Hui
3ca9aaf24e
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Update NEWs
Fixed bug #68553 (array_column: null values in $index_key become incrementing keys in result)
Conflicts:
ext/standard/array.c
2018-07-24 11:37:09 +08:00
Xinchen Hui
033dac7a6f
Update NEWs
2018-07-24 11:35:43 +08:00
Xinchen Hui
2a181b5ea0
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #68553 (array_column: null values in $index_key become incrementing keys in result)
2018-07-24 11:35:22 +08:00
Xinchen Hui
38d97557da
Fixed bug #68553 (array_column: null values in $index_key become incrementing keys in result)
2018-07-24 11:34:57 +08:00
Xinchen Hui
4799cde613
Merge branch 'master' of https://github.com/oerdnj/php-src
...
* 'master' of https://github.com/oerdnj/php-src :
Use __cpuid_count() from cpuid.h instead of custom assembly
2018-07-24 10:48:07 +08:00
Kalle Sommer Nielsen
0b7686584e
Merge branch 'master' of git.php.net:/php-src
2018-07-23 17:38:52 +02:00
Kalle Sommer Nielsen
ba138a3746
Removed the generated-tests library, this is a left Zöe's phpruntests repository it seems and never fully implemented. The only times this part of the code has been touched throughout the years has been minor PRs and entire php-src grep commits.
...
If anything this belongs to the phpruntests.git repository.
2018-07-23 17:38:26 +02:00
Dmitry Stogov
7ef8e3f87f
Fixed tests
2018-07-23 17:00:33 +03:00
Dmitry Stogov
d4e60a1ffd
Avoid code duplication
2018-07-23 16:53:44 +03:00
Kalle Sommer Nielsen
b1864b0178
Fix HKEY registry path (not that it should matter, dead code, Anatol?)
2018-07-23 15:37:02 +02:00
Kalle Sommer Nielsen
08f10ef47a
Remove some dead code
...
sapi/*: Remove Windows code from FPM and LiteSpeed, as we don't support these SAPIs on Windows anyway
ext/com_dotnet: Remove non Windows code, as ext/com_dotnet is only supported on Windows
2018-07-23 15:26:39 +02:00
Dmitry Stogov
b121405960
Use better destructor (key may be only IS_STRING or IS_LONG).
2018-07-23 15:57:06 +03:00
Dmitry Stogov
ebd1f5af3e
API cleanup.
...
Removed useless filename and lineno arguments, used in DEBUG build.
The patch doesn't break source compatibility of public API (only binary compatibility).
2018-07-23 15:24:07 +03:00
Dmitry Stogov
afc82e243c
Micro-optimization
2018-07-23 10:52:00 +03:00
Xinchen Hui
850c67e957
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed pefree_size (efree_size will be expaned to do {} while () form)
2018-07-23 15:49:04 +08:00
Xinchen Hui
c20a97df6d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed pefree_size (efree_size will be expaned to do {} while () form)
2018-07-23 15:48:52 +08:00
Xinchen Hui
2139c2c2de
Fixed pefree_size (efree_size will be expaned to do {} while () form)
2018-07-23 15:48:14 +08:00
Gabriel Caruso
c93aba042f
Give a reason why the test was skipped
...
This will help us debug why a test was skipped in GCOV
(http://gcov.php.net/viewer.php?version=PHP_HEAD&func=skip ), and maybe
put them to run again
2018-07-22 16:41:41 -03:00
Gabriel Caruso
8ca1f47a7a
Use variables that already received ZEND_NUM_ARGS()
2018-07-22 15:54:00 -03:00
Jakub Zelenka
26cd84d19f
Return bool from zlog_stream_set_msg_{prefix,suffix}
2018-07-22 17:40:38 +01:00
Christoph M. Becker
89e2202cb5
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #52974 : jewish.c: compile error under Windows with GBK charset
2018-07-22 18:18:19 +02:00
Christoph M. Becker
33eb30274f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #52974 : jewish.c: compile error under Windows with GBK charset
2018-07-22 17:59:38 +02:00
Christoph M. Becker
99fdf5916e
Fix #52974 : jewish.c: compile error under Windows with GBK charset
...
jewish.c includes ISO-8859-8 encoded Hebrew Hebrew month names, which
may cause compile errors, and is generally confusing. We replace the
literal month names with appropriate escape sequences.
2018-07-22 17:42:10 +02:00
Jakub Zelenka
e5a9956336
Update NEWS and UPGRADING with info about syslog.filter
2018-07-22 16:36:36 +01:00
Jakub Zelenka
c85504386d
Rename none syslog.filter to all and update ini description
2018-07-22 16:29:35 +01:00
Philip Prindeville
2010c02e5c
Add syslog.filter INI for filtering syslog messages
...
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com >
2018-07-22 15:36:47 +01:00
Nikita Popov
4a528d46f5
Add UPGRADING notes for deprecations
2018-07-21 22:48:42 +02:00
Nikita Popov
fb0e8c65b9
Deprecate pdo_odbc.db2_instance_name
...
Part of https://wiki.php.net/rfc/deprecations_php_7_3 .
2018-07-21 22:38:39 +02:00
Nikita Popov
4a5b2101e5
Deprecate string.strip_tags filter
...
Part of https://wiki.php.net/rfc/deprecations_php_7_3 .
2018-07-21 22:38:39 +02:00
Nikita Popov
d9acfa45b8
Deprecate fgetss() and gzgetss()
...
SplFileObject::fgetss() will also generate a deprecation notice
through an internal call to fgetss().
Part of RFC https://wiki.php.net/rfc/deprecations_php_7_3 .
2018-07-21 22:38:35 +02:00
Nikita Popov
5c4047b339
Deprecate defining a free-standing assert() function
...
Part of https://wiki.php.net/rfc/deprecations_php_7_3 .
2018-07-21 22:34:09 +02:00
Nikita Popov
f4a9da389b
Deprecate non-string needles in string search functions
...
Part of https://wiki.php.net/rfc/deprecations_php_7_3 .
2018-07-21 22:34:09 +02:00
Nikita Popov
e6016ab20d
Deprecate undocumented mbereg_* aliases
...
Part of https://wiki.php.net/rfc/deprecations_php_7_3 .
2018-07-21 22:34:09 +02:00
Peter Kokot
fef2029614
Move GMP bug 74670 test file to tests dir
2018-07-20 19:43:09 +02:00
Nikita Popov
ee561ff2a2
Fix off-by-one allocation
...
The return value of this function is pretty meaningless, but
leaving it alone for now.
2018-07-20 17:52:56 +02:00
Nikita Popov
6e2c54d3e7
Fix incorrect length calculation
...
sizeof char pointer != sizeof string literal.
2018-07-20 17:47:53 +02:00
Trevor Rowbotham
fb0faf0208
[ci skip] Add new global MBString constants to UPGRADING
...
The constants are mentioned further up in the New Features section,
but weren't explicitly listed under the New Global Constants section.
2018-07-20 13:17:48 +02:00
Gabriel Caruso
6ac48425a8
Removed and fixed unused variables
2018-07-19 22:51:37 -03:00
Anatol Belski
8d041e171b
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Update binary SDK version for AppVeyor
2018-07-19 18:38:19 +02:00
Anatol Belski
2073e96ec5
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update binary SDK version for AppVeyor
2018-07-19 18:37:38 +02:00
Anatol Belski
9e54d9d692
Update binary SDK version for AppVeyor
2018-07-19 18:35:54 +02:00
Ferenc Kovacs
5345ddee99
Merge branch 'PHP-7.2'
2018-07-19 16:59:00 +02:00
Ferenc Kovacs
ca618a4f10
Merge branch 'PHP-7.1' into PHP-7.2
2018-07-19 16:57:50 +02:00
Ferenc Kovacs
0510b47894
Merge branch 'PHP-7.0' into PHP-7.1
2018-07-19 16:57:18 +02:00
Ferenc Kovacs
e5b27b9916
Merge branch 'PHP-5.6' into PHP-7.0
2018-07-19 16:56:32 +02:00
Ferenc Kovacs
1ba3314335
5.6.38 will be next
2018-07-19 16:54:58 +02:00
Dmitry Stogov
5be44312f8
Removed redundand code
2018-07-19 15:47:15 +03:00
Dmitry Stogov
54ebebd686
Matching loops optimization
2018-07-19 15:28:31 +03:00
Dmitry Stogov
b81d712961
Micro optimizations
2018-07-19 11:19:28 +03:00
Dmitry Stogov
d77aa8fa6d
Fixed typo
2018-07-19 09:41:15 +03:00
Hongbo
a76661a4a2
fix ext_skel continue
...
"continue" inside switch is ambiguous, should be "continue 2".
2018-07-18 20:49:12 +02:00
Dmitry Stogov
1820f2f2f3
Reorder conditions
2018-07-18 17:46:48 +03:00
Dmitry Stogov
29f942b3d0
Move "/e" modifier check into regex compiler
2018-07-18 16:35:17 +03:00
Dmitry Stogov
5d60651165
Merge "no_utf_check" and "g_notempty" into single "options".
2018-07-18 16:10:41 +03:00
Dmitry Stogov
e8a04b387e
Allocate array of proper size
2018-07-18 14:49:52 +03:00
Dmitry Stogov
412dd75e05
Perform checks for propertis started with '\\0' only for dynamic properties
2018-07-18 14:49:00 +03:00
Christoph M. Becker
583616deb1
[ci skip] Fix typo in comment
2018-07-18 11:29:05 +02:00
Remi Collet
0c3561892b
add info about zend_class_entry.iterator_funcs
2018-07-18 11:17:53 +02:00
Dmitry Stogov
3b6e1ee4ee
Improved "Fast Shutdown".
2018-07-17 17:31:04 +03:00
Christoph M. Becker
7db988cc30
Update NEWS for 7.3.0beta1
2018-07-17 16:02:50 +02:00
Ondřej Surý
1a078117b5
Use __cpuid_count() from cpuid.h instead of custom assembly
2018-07-17 13:59:53 +00:00
Anatol Belski
53ef61bcae
Merge branch 'PHP-7.2'
...
* PHP-7.2:
7.0.32 next
2018-07-17 12:38:21 +02:00
Anatol Belski
b494d94f16
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
7.0.32 next
2018-07-17 12:37:51 +02:00
Anatol Belski
dfc2e3a2ac
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
7.0.32 next
2018-07-17 12:37:02 +02:00
Anatol Belski
d011da9d1a
7.0.32 next
2018-07-17 12:36:13 +02:00
Dmitry Stogov
df60566671
Inline FETCH_CONST and DEFINED handlers into "hybrid" executor.
2018-07-17 13:30:55 +03:00
Anatol Belski
ca50aa9ca8
Merge branch 'master' of git.php.net:php-src
2018-07-17 12:01:14 +02:00
Anatol Belski
b1f4f5c80c
Merge branch 'PHP-7.2'
...
* PHP-7.2:
[ci skip] Update NEWS
2018-07-17 12:00:11 +02:00
Anatol Belski
c4106d4569
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-07-17 11:59:17 +02:00
Dmitry Stogov
88dd38ee81
Reduce overhead of case-insensitive constants deprecation for "fast path"
2018-07-17 12:58:58 +03:00
Anatol Belski
1127163996
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
[ci skip] Update NEWS
2018-07-17 11:58:43 +02:00
Anatol Belski
b52c4fcbcd
[ci skip] Update NEWS
2018-07-17 11:58:00 +02:00
Christoph M. Becker
9f957fd303
Improve implementation of array_key_first() and array_key_last()
...
Firstly, we must not separate the $stack argument for performance
reasons. Secondly, we prefer `Z_ARRVAL_P` over `HASH_OF` to clarify
our intention.
Thanks to Nikita, for catching these issues!
2018-07-17 11:53:06 +02:00
Enno Woortmann
50516a6e1f
Add implementation and tests for new methods - array_key_first(array $a) Returns the key of the first element or null - array_key_last(array $a) Returns the key of the last element or null
2018-07-17 11:31:00 +02:00
Christoph M. Becker
79a27ccf3f
FILTER_FLAG_(SCHEME|HOST)_REQUIRED are now deprecated
2018-07-17 11:01:44 +02:00
Christoph M. Becker
c0407d95f7
Deprecate explicit use of FILTER_FLAG_SCHEME|HOST_REQUIRED
...
As of PHP 5.2.1 FILTER_VALIDATE_URL implies FILTER_FLAG_SCHEME_REQUIRED
| FILTER_FLAG_HOST_REQUIRED, which makes these constants useless at
best, if not even misleading. Therefore we deprecate the explicit use
of these constants for FILTER_VALIDATE_URL, to pave the way for their
eventual removal.
See <https://wiki.php.net/rfc/deprecations_php_7_3#filter_flag_scheme_required_and_filter_flag_host_required >.
2018-07-17 10:45:46 +02:00
Remi Collet
ffa41787d5
Merge branch 'PHP-7.2'
...
* PHP-7.2:
NEWS
2018-07-17 06:07:43 +02:00
Remi Collet
e069b0beba
NEWS
2018-07-17 06:07:28 +02:00
Stanislav Malyshev
2abdcae886
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix test
2018-07-16 18:52:14 -07:00
Stanislav Malyshev
ebd5f56442
Fix test
2018-07-16 18:52:01 -07:00
Stanislav Malyshev
28d8b8de71
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed bug #76459 windows linkinfo lacks openbasedir check
Add NEWS
Fixed bug #76459 windows linkinfo lacks openbasedir check
Fix bug #76557 : heap-buffer-overflow (READ of size 48) while reading exif data
Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c
2018-07-16 16:54:31 -07:00
Stanislav Malyshev
a536d6d61b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76459 windows linkinfo lacks openbasedir check
Add NEWS
Fixed bug #76459 windows linkinfo lacks openbasedir check
Fix bug #76557 : heap-buffer-overflow (READ of size 48) while reading exif data
Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c
2018-07-16 16:53:57 -07:00
Stanislav Malyshev
4e92cd172a
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #76459 windows linkinfo lacks openbasedir check
Add NEWS
Fixed bug #76459 windows linkinfo lacks openbasedir check
Fix bug #76557 : heap-buffer-overflow (READ of size 48) while reading exif data
Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c
2018-07-16 16:52:36 -07:00
Stanislav Malyshev
bddf8140e4
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Add NEWS
Fixed bug #76459 windows linkinfo lacks openbasedir check
Fix bug #76557 : heap-buffer-overflow (READ of size 48) while reading exif data
Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c
2018-07-16 15:13:13 -07:00
Anatol Belski
f151e048ed
Fixed bug #76459 windows linkinfo lacks openbasedir check
2018-07-16 15:11:56 -07:00
Stanislav Malyshev
b73a108543
Add NEWS
2018-07-16 14:26:31 -07:00
Anatol Belski
289cb0f77c
Fixed bug #76459 windows linkinfo lacks openbasedir check
2018-07-16 14:21:02 -07:00
Stanislav Malyshev
3462efa386
Fix bug #76557 : heap-buffer-overflow (READ of size 48) while reading exif data
...
Use MAKERNOTE length as data size.
2018-07-16 14:17:51 -07:00
Stanislav Malyshev
1baeae4270
Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c
2018-07-16 14:16:58 -07:00
Nikita Popov
3588d8af12
Deprecate case-insensitive constants
...
RFC: https://wiki.php.net/rfc/case_insensitive_constant_deprecation
2018-07-16 19:16:55 +02:00
Nikita Popov
a632ecd224
Remove use of case-insensitive constants in tests
2018-07-16 19:16:55 +02:00
Dmitry Stogov
70d0175a13
Fixed error messages.
2018-07-16 17:08:11 +03:00
Dmitry Stogov
5cf6474277
Flatten strip_tags state machine (GCC overoptimized this function, producing enormpous amount of code).
2018-07-16 13:22:17 +03:00
Gabriel Caruso
49c193eeb3
Make more tests run and fix SKIPIF sections
2018-07-16 00:01:46 -03:00
Gabriel Caruso
59456974f2
Test http_response_code function
2018-07-15 23:51:16 -03:00
Gabriel Caruso
cf5f26b260
Fix failing test upstream
...
There was a trailing tab when a error message was generated. Removing
it, test is passing now.
2018-07-15 23:40:00 -03:00
Christoph M. Becker
9c2b4985b1
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #73817 : Incorrect entries in get_html_translation_table
2018-07-15 23:41:15 +02:00
Christoph M. Becker
8efd3c3387
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #73817 : Incorrect entries in get_html_translation_table
2018-07-15 23:19:37 +02:00
Christoph M. Becker
0f8c1ee76d
Fix #73817 : Incorrect entries in get_html_translation_table
...
Due to incorrect string termination and length handling, several HTML
entities missed the trailing semicolon.
We also fix the obviously wrong expectations in two already existing
tests.
2018-07-15 23:06:38 +02:00
Gabriel Caruso
96f83e40c8
Small tweaks to php scripts
2018-07-14 19:37:12 -03:00
Gabriel Caruso
c7d1c14b5c
Small tweaks to php scripts
2018-07-14 19:33:35 -03:00
Gemorroj
233cbb53b3
[ci skip] Update php.ini-production
...
remove duplicated strings
2018-07-14 13:32:46 +02:00
Anatol Belski
bf8b5b2269
Regroup the ifdef'd occurrences
2018-07-14 12:51:37 +02:00
Anatol Belski
f6440c3aa6
Trail long path support also for deletion
2018-07-14 11:44:38 +02:00
Anatol Belski
b9963969fd
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Improve test
2018-07-13 20:15:17 +02:00
Anatol Belski
dee191ee07
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Improve test
2018-07-13 20:14:44 +02:00
Anatol Belski
141072a838
Improve test
...
Ensure the filename is non existent indeed.
2018-07-13 20:13:51 +02:00
Anatol Belski
dbabb35ff9
Distinguish two error messages
2018-07-13 19:01:43 +02:00
Anatol Belski
1bcc2fcb4e
Avoid early allocation
2018-07-13 07:35:33 +02:00
Stanislav Malyshev
54f920d661
[ci skip] Add dates to maintainer names
...
The dates are initialized from oldest and newest commit
that can be attributed to that person.
2018-07-12 23:34:36 +02:00
Anatol Belski
644ab58d0f
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed RecursiveDirectoryIterator with long path or with edge case length
2018-07-12 19:58:43 +02:00
Anatol Belski
f28aeaee05
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed RecursiveDirectoryIterator with long path or with edge case length
2018-07-12 19:57:08 +02:00
Anatol Belski
99fe18503a
Fixed RecursiveDirectoryIterator with long path or with edge case length
...
The search path needs to be appended with the wild card. Till now, an
edge case existed, so then if a path is 259 bytes long, which is smaller
_MAX_PATH, the suffix would cause the final search path to become longer
than _MAX_PATH. It is an edge case, when the starting path happens to
have a specific length. If the starting path was longer than _MAX_PATH
or the addition of "\\*" would not exceed _MAX_PATH, the function was
correct. Except for rewind, which was broken in the case of the long
path.
2018-07-12 19:49:32 +02:00
Dmitry Stogov
571dac8c8f
Fixed tests
2018-07-12 17:17:09 +03:00
Dmitry Stogov
5e8977bd62
Merge zend_class_entry.create_object and zend_class_entry.interface_gets_implemented into the same memory lacation. The first used only by classes, the second only by magic interfaces.
2018-07-12 17:09:40 +03:00
Christoph M. Becker
432c4e77a8
[ci skip] Update next version
...
According to <https://externals.io/message/102762 >.
2018-07-12 15:22:26 +02:00
Christoph M. Becker
6c630eefcb
Fix #33502 : Some nullary functions don't check the number of arguments
...
We add the missing zend_parse_parameters_none() checks for:
* output_reset_rewrite_vars()
* func_num_args()
* gc_status()
* gc_disable()
* gc_enable()
* gc_enabled()
* gc_collect_cycles()
* gc_mem_caches()
* zend_version()
2018-07-12 15:05:56 +02:00
Christoph M. Becker
5f5cf8cb94
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix Travis build
2018-07-12 13:47:11 +02:00
Christoph M. Becker
77ced46dea
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix Travis build
2018-07-12 13:46:10 +02:00
Christoph M. Becker
236ae06e0b
Fix Travis build
...
As of commit f9d1d1f[1] we require `sudo`, so we tell Travis about it.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=f9d1d1f >
2018-07-12 13:45:30 +02:00
Andrea Faulds
e4e9cd8355
Export stdClass objects using (object) cast ( fixes #48016 )
...
Before this change, var_export()'s output for stdClass objects calls
the non-existent stdClass::__set_state method, and is therefore useless.
This commit makes var_export() output an (object) cast from an array
instead, which when evaluated, will produce a stdClass object. Other
classes see unchanged output.
2018-07-12 13:22:26 +02:00
Dmitry Stogov
7d4e18b05d
Improved user iterator implementation to reduce zend_class_entry memory consumption and avoid race condition during resolving/caching of user iterator functions of internal classes in ZTS build.
2018-07-12 14:04:14 +03:00
Anatol Belski
0834679e40
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix macro
2018-07-12 11:38:18 +02:00
Anatol Belski
9443c61928
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix macro
2018-07-12 11:37:13 +02:00
Anatol Belski
cc7b000d2c
Fix macro
2018-07-12 11:35:00 +02:00
Anatol Belski
129c5c1181
Support long path also when reading from file cache
2018-07-12 09:26:50 +02:00
Anatol Belski
81eb8e7507
Mark conditions unexpected
2018-07-11 18:05:28 +02:00
Dmitry Stogov
85ee47eda0
Changed structure of zend_class_entry.trait_aliases and zend_class_entry.trait_precedences to avoid keeping "intermediate" trait references, that are used only during inheritance.
2018-07-11 18:56:10 +03:00
Anatol Belski
2367e649bc
Make error messages more speaking
2018-07-11 14:34:18 +02:00
Anatol Belski
9ac133a0b3
Switch to ioutil routines to support long path in file cache
2018-07-11 14:28:57 +02:00
Anatol Belski
871d0aa5cd
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix condition
2018-07-11 13:16:04 +02:00
Anatol Belski
cc266045a5
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix condition
2018-07-11 13:13:56 +02:00
Anatol Belski
98102648cb
Fix condition
...
It looks like the real length limit is 247 bytes, not 248 as documented.
2018-07-11 13:09:20 +02:00
Anatol Belski
14db98825a
Fix build with ZEND_RC_DEBUG
2018-07-11 12:19:20 +02:00
Dmitry Stogov
956ac5cbf5
Fixed possible assertion/crash when PHP script can't be stored in SHM (e.g. because another process already did this)
2018-07-11 10:35:36 +03:00
Kalle Sommer Nielsen
2aff1cb226
Remove these two old and outdated files we never use:
...
* OBJECTS2_HOWTO is rather outdated and the wiki contains much of this
* ZendCore.dep is an old leftover from the previous Windows build system
2018-07-10 21:24:54 +02:00
Christoph M. Becker
0896a3abd1
[ci skip] Fix typos
2018-07-10 17:03:48 +02:00
Christoph M. Becker
091c0a8a59
[ci skip] Document changes to php_add[c]slashes
2018-07-10 16:04:14 +02:00
Christoph M. Becker
271ae3eb2b
Fix #76574 : use of undeclared identifiers INT_MAX and LONG_MAX
...
As of Oniguruma 6.4.0 <limits.h> is required, so we have to add a check
for this header file to set the respective macro.
2018-07-10 14:28:28 +02:00
Dmitry Stogov
4182b0855f
Avoid copying
2018-07-10 13:17:33 +03:00
Anatol Belski
bf5a81364c
[skip ci] Update NEWS
2018-07-10 11:53:04 +02:00
Anatol Belski
a5cb84c82e
Merge branch 'PHP-7.2'
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-07-10 11:52:24 +02:00
Anatol Belski
a766f65ca3
[ci skip] Update NEWS
2018-07-10 11:51:49 +02:00
Anatol Belski
c23736216d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-07-10 11:51:11 +02:00
Anatol Belski
9026562c79
[ci skip] Update NEWS
2018-07-10 11:50:33 +02:00
Anatol Belski
d82cb24e19
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix bug #76524 - ZipArchive memory leak
2018-07-10 11:20:50 +02:00
Anatol Belski
ebb590b625
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #76524 - ZipArchive memory leak
2018-07-10 11:19:54 +02:00
timurib
08f08858f3
Fix bug #76524 - ZipArchive memory leak
...
Bugfix #76524 : Free up zip internal state and adjust the tests for Windows
Bugfix #76524 : Fix possible use after free for libzip 1.3.1
Bugfix #76524 : Make the test independent of platform
2018-07-10 11:18:37 +02:00
Dmitry Stogov
7da042cbd8
Use ZVAL_COPY_DEREF()
2018-07-10 12:11:10 +03:00
Dmitry Stogov
0db8c974a5
Avoid useless copying
2018-07-10 12:03:32 +03:00
Dmitry Stogov
62b3464871
Removed deprecated condition
2018-07-10 11:04:10 +03:00
Dmitry Stogov
6c61f15408
Optimization
2018-07-10 00:04:44 +03:00
Anatol Belski
90edf754c5
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Sync callback signature with libxml2 2.9.8
2018-07-09 21:25:19 +02:00
Anatol Belski
474292c3e4
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync callback signature with libxml2 2.9.8
2018-07-09 21:24:51 +02:00
Anatol Belski
a820aab9da
Sync callback signature with libxml2 2.9.8
2018-07-09 21:21:41 +02:00
Anatol Belski
cce87471b1
Skip test on incompatible servers
2018-07-09 16:39:58 +02:00
Dmitry Stogov
dbb9867b3e
Avoid useless checks for public functions
2018-07-09 17:30:14 +03:00
Dmitry Stogov
e4be6ce0fa
Combined few checks into one
2018-07-09 17:29:34 +03:00
Dmitry Stogov
797e87060c
Avoid reloading
2018-07-09 16:28:13 +03:00
Anatol Belski
117c37da76
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Add missing flag
2018-07-09 15:15:08 +02:00
Anatol Belski
a6e8c73c43
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add missing flag
2018-07-09 15:14:30 +02:00
Anatol Belski
2c43fb49d6
Add missing flag
2018-07-09 15:12:52 +02:00
Dmitry Stogov
a34fedb723
Eliminated check
2018-07-09 15:18:09 +03:00
Anatol Belski
c90f1964f9
Move to size_t for string length
2018-07-09 13:34:04 +02:00
Anatol Belski
3e1e3ab728
Remove conflicting declaration
2018-07-09 12:32:45 +02:00
Dmitry Stogov
40551e0255
Eliminated reference-counting and EG(exception) check
2018-07-09 13:20:46 +03:00
Dmitry Stogov
ad2719cf9c
Fixed test
2018-07-09 12:49:19 +03:00
Dmitry Stogov
67b4c3379a
Uze ZVAL_COPY_DEREF() instead of ZVAL_DEREF() and ZVAL_COPY()
2018-07-09 12:46:46 +03:00
Kalle Sommer Nielsen
094c2aaf83
The session_array global is not used at all, so comment it out for now
2018-07-09 04:21:46 +02:00
Kalle Sommer Nielsen
529baa9a3d
Added test to accompany the FILTER_SANITIZE_ADD_SLASHES filter
2018-07-09 03:59:35 +02:00
Kalle Sommer Nielsen
a8dce31957
Added the 'add_slashes' sanitization filter (FILTER_SANITIZE_ADD_SLASHES) as an alias to 'magic_quotes' (FILTER_SANITIZE_MAGIC_QUOTES) so we can move past our "magical" legacy.
2018-07-09 03:58:20 +02:00
Christoph M. Becker
1c01b1ab48
Fix #76594 : Bus Error due to unaligned access in zend_ini.c OnUpdateLong
...
Since commit ea83b69[1] changed the type of mbstring.strict_detection
from `long` to `zend_bool`, we have to update the `on_modify` callback
as well.
[1] http://git.php.net/?p=php-src.git;a=commit;h=ea83b69883f3f77fd27e4663fa854c88f141ab41
2018-07-09 00:54:36 +02:00
Anatol Belski
d664d1e959
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix C++11 and up compatibility for zend_finite and more
2018-07-08 20:34:58 +02:00
Anatol Belski
545a29d0cb
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix C++11 and up compatibility for zend_finite and more
2018-07-08 20:32:52 +02:00
Anatol Belski
ad790bea2e
Fix C++11 and up compatibility for zend_finite and more
...
C++11 puts isfinite, isinf, isnan and a lot of other stuff into the
std namespace. Thus, if a C++11 or newer source is compiled, these
symbols won't be available. A good solution would be to include cmath,
but depending on a particular compiler that might remove even more
stuff from the global namespace, so such a fix should only target master.
For now, just keep these defines same for C++11 and upper, as the actual
C++ code should use symbols from the std namespace anyway. This
especially concerns older GCC versions like at least 4 and 5, which are
used by default in the LTS Linux distros.
2018-07-08 20:20:08 +02:00
Anatol Belski
e4a2cdb564
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed regex for checking libzip static lib
2018-07-07 17:33:47 +02:00
Dylan K. Taylor
77a841db48
Fixed regex for checking libzip static lib
...
This bug caused linking issues in debug mode (see bug [#76564 ](https://bugs.php.net/bug.php?id=76564 ))
This issue affects PHP 7.2 and master.
2018-07-07 17:32:16 +02:00
Anatol Belski
0fbbdd3aa1
[ci skip] Fix EOL
2018-07-07 17:14:54 +02:00
Jakub Zelenka
3b10e9ccf1
Update NEWS for log related changes in FPM
2018-07-07 13:16:16 +01:00
Jakub Zelenka
3e5afbf0a8
Refactore FPM logging
2018-07-07 13:01:44 +01:00
Jakub Zelenka
2a78006adb
Update NEWS and UPGRADING for fpm_get_status addition
2018-07-07 12:53:08 +01:00
Jakub Zelenka
f86f3edeef
Migrate fpm_get_status test
2018-07-07 12:48:16 +01:00
Till Backhaus
140def4ac7
Implement fpm_get_status
2018-07-07 12:33:11 +01:00
Peter Kokot
b585f043cb
Add missing INI directives to curl phpinfo
2018-07-07 12:11:49 +02:00
Peter Kokot
956446bdfa
Bump Autoconf version in configure.ac to 2.64
...
Since PHP 7.2 the minimum autoconf version is 2.64. The configure.ac
script file includes also AX_CHECK_COMPILE_FLAG macro call so besides
only checking it in buildconf script this bumps the autoconf here too.
The phpize.m4 script is for now still relaxed to 2.59 version since some
still supported systems such as CentOS 6 still include autoconf 2.63
version and might require calling phpize on some old extensions.
2018-07-07 12:11:14 +02:00
Peter Kokot
491f1477be
Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS
...
Autoconf doesn't mention the AC_CONFIG_HEADER macro since the v2.13
released in 1999 anywhere in the documentation. Future of this macro is
unclear and commented as possible candidate for obsoletion in the
autoconf source code. Since it is just a wrapper around the main
AC_CONFIG_HEADERS macro, the functionality is the same, and also more
clear to find it in the autoconf documentation and avoid possible future
obsoletion.
2018-07-07 12:10:53 +02:00
Nikita Popov
9aeeecc47c
Merge branch 'PHP-7.2'
2018-07-07 12:08:27 +02:00
Nikita Popov
5d0d812a53
Merge branch 'PHP-7.1' into PHP-7.2
2018-07-07 12:08:02 +02:00
cdoco
47fb17b108
Fixed bug #76366 (references in sub-array for filtering breaks the filter)
2018-07-07 12:07:43 +02:00
seliver
95013042bf
Fixed bug #76136 (stream_socket_get_name enclosed IPv6 in brackets)
...
The IPv6 IP of a socket is provided by inet_ntop() as a string, but
this function doesn't enclose the IP in brackets. This patch adds
them in the php_network_populate_name_from_sockaddr() function.
2018-07-07 11:47:50 +02:00
Peter Kokot
67352cb2c0
Fix bug #76392
...
On systems without glibc, such as Alpine with Musl libc, the function attributes
are not supported. GCC 6 doesn't properly omit some systems. This is
already fixed in GCC 7 but for systems with GCC 6 and ones without
glibc, this additional check fixes this bug.
2018-07-07 11:31:44 +02:00
Nikita Popov
04e3523b7d
Warn if continue is used on switch
...
Supersedes RFC https://wiki.php.net/rfc/continue_on_switch_deprecation
by generating a warning instead of deprecating and removing this
functionality.
2018-07-07 11:12:48 +02:00
Nikita Popov
41a6625c09
Add UPGRADING for mb_ereg changes
...
Also some minor code cleanup.
2018-07-07 11:06:29 +02:00
ju1ius
8f1782678e
adds support for named subpatterns to mb_ereg_replace
...
Named subpatterns are now passed to `mb_ereg_replace_callback`.
This commit also adds a subset of the oniguruma back-reference syntax
for replacements:
* `\k<name>` and `\k'name'` for named subpatterns.
* `\k<n>` and `\k'n'` for numbered subpatterns
These last two notations allow referencing numbered groups where n > 9.
2018-07-06 23:34:54 +02:00
ju1ius
212f56b7ca
adds support for named captures to mb_ereg & mb_ereg_search
...
`mb_ereg`, `mb_ereg_search_regs` & `mb_ereg_search_getregs`
returned only numbered capturing groups.
Now they return both numbered and named capturing groups.
Fixes Bug #72704 .
2018-07-06 23:34:54 +02:00
Zenju
69a49af0d3
Fix out-of bounds access
...
Test case: strnatcmp_ex(L"333", 3, L"333 ", 4, true)
The reason this bug didn't come up earlier is probably because most input strings are null-terminated.
2018-07-06 19:02:19 +02:00
Christoph M. Becker
b37dafcc23
Add test for PR #2382
2018-07-06 18:59:04 +02:00
Anatol Belski
1870a61a91
Fix coding style
2018-07-06 17:57:08 +02:00
David Carlier
9da4e30c75
random_bytes improvements for FreeBSD (from 12.x serie)
...
giving the possiblity to pre-fill the buffer. A new getrandom
function was added for future version with a similar interface
than Linux's syscall.
2018-07-06 17:47:59 +02:00
Anatol Belski
0b94534e93
[ci skip] Update NEWS
2018-07-06 17:46:04 +02:00
Anatol Belski
903f41aef7
Merge branch 'PHP-7.2'
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-07-06 17:45:38 +02:00
Anatol Belski
d207fd449c
[ci skip] Update NEWS
2018-07-06 17:45:01 +02:00
Anatol Belski
1ae888d984
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-07-06 17:44:37 +02:00
Anatol Belski
ea24847620
[ci skip] Update NEWS
2018-07-06 17:43:48 +02:00
Anatol Belski
ed23cea9de
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix event log handling in startup phase
Fix bug #76488 Memory leak when fetching a BLOB field
2018-07-06 16:08:57 +02:00
Anatol Belski
d85651d58d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix event log handling in startup phase
Fix bug #76488 Memory leak when fetching a BLOB field
Fix year
Bump version
2018-07-06 16:08:17 +02:00
Anatol Belski
246cb03e26
Fix event log handling in startup phase
...
The log header can be saved in the globals on startup. At the same
time, the log header can be changed per request. In case that
happened, wrong pointer will be free'd on shutdown. It can happen at
any point when zend_error() or similar is called at startup, like for
example in the case of the ini deprecation warnings. Thus, ZMM cannot
be used here.
2018-07-06 16:07:28 +02:00
sim1984
3847a6fcb6
Fix bug #76488 Memory leak when fetching a BLOB field
...
Add a phpt test
2018-07-06 16:07:28 +02:00
Sara Golemon
b0ca997405
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Fix year
Bump version
2018-07-06 10:05:17 -04:00
Sara Golemon
137f22ad36
Fix year
2018-07-06 10:02:20 -04:00
Sara Golemon
268e801cb1
Bump version
2018-07-06 10:02:00 -04:00
Xinchen Hui
4c67f7e012
Forgotten one replacement
2018-07-06 19:18:06 +08:00
Xinchen Hui
9d1e9b73c5
rename ref_dtor_func to rc_dtor_func
2018-07-06 19:15:26 +08:00
Xinchen Hui
f9297387f4
Rename zval_dtor_func and ref_dotr_func
2018-07-06 18:47:30 +08:00
Xinchen Hui
e3355ac5ec
Revert "Rename _zval_dtor_func to _ref_dtor_func"
...
This reverts commit a362ae6b12 .
2018-07-06 18:37:45 +08:00
Xinchen Hui
a362ae6b12
Rename _zval_dtor_func to _ref_dtor_func
2018-07-06 18:32:27 +08:00
Yousif Masoud
9a21aa77af
fixes typo in daemonization DEBUG message after fork: acknoledge -> acknowledge
2018-07-06 11:25:08 +02:00
Dmitry Stogov
bd8e76761f
Use zval_ptr_dtor() instead of zval_dtor() in in-place array/object conversion functions
2018-07-06 12:07:13 +03:00
Mike
6a4e1e8b8e
[ci skip] Fix typo
2018-07-06 09:55:47 +02:00
Dmitry Stogov
41db5f73ce
Fixed reference-counting in zend_parse_arg_str_weak()
2018-07-06 03:11:20 +03:00
Dmitry Stogov
dcf7592076
Optimize array to object casting
2018-07-06 03:10:05 +03:00
Dmitry Stogov
ca40664ad6
Conversion related optimizations
2018-07-06 01:26:43 +03:00
Dmitry Stogov
85b2bc38e1
Optimize object to array casting
2018-07-06 01:25:24 +03:00
Dmitry Stogov
8361c0a9a7
Avoid useless checks in object_init()
2018-07-06 01:24:15 +03:00
Nikita Popov
606de9e4a9
Fix inverted stristr() argument order in mysqli test
2018-07-05 21:25:21 +02:00
Nikita Popov
a057384113
Merge branch 'PHP-7.2'
2018-07-05 19:11:43 +02:00
Nikita Popov
f3dc67b255
Merge branch 'PHP-7.1' into PHP-7.2
2018-07-05 19:11:25 +02:00
Nikita Popov
0c4ab798de
Merge branch 'PHP-7.2'
2018-07-05 19:10:24 +02:00
Nikita Popov
0504594a28
Merge branch 'PHP-7.1' into PHP-7.2
2018-07-05 19:09:40 +02:00
Nikita Popov
791f07e4f0
Fix string.strip_tags filter
...
Was segfaulting if no allowed tags are specified and performing an
out of bounds read if they were.
2018-07-05 19:08:00 +02:00
Anatol Belski
0630e3bc03
Reduce error buffer size
...
120 bytes is ample, the doc says.
2018-07-05 17:24:38 +02:00
Dmitry Stogov
169d454593
Use zval_ptr_dtor() imstead of zval_dtor()
2018-07-05 17:55:54 +03:00
Dmitry Stogov
43d5a3665d
It's safer to use zval_ptr_dtor() for iterator keys.
2018-07-05 16:56:52 +03:00
Dmitry Stogov
d0a6b1009f
Use zval_ptr_dtor() to replace bound variables (original values nay be circular structures).
2018-07-05 16:46:38 +03:00
Dmitry Stogov
5f83904a5d
Use zval_ptr_dtor_nogc() instead of zval_dtor() inplaces where circular-references are not possible
2018-07-05 15:25:55 +03:00
Dmitry Stogov
918a9f09f8
Use zval_ptr_dtor_nogc() in JSON parser (it can't produce circular data structures)
2018-07-05 15:07:16 +03:00
Dmitry Stogov
3780b027dd
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)
2018-07-05 14:25:17 +03:00
Dmitry Stogov
91fc0d1a41
Replace zval_dtor() with specialized destructors
2018-07-05 14:17:53 +03:00
Dmitry Stogov
83f6f8563c
Use zval_ptr_dtor() instead of legacy zval_dtor(), to destroy unused values returned from PHP functions (they may be circular data structures).
2018-07-05 14:09:47 +03:00
Dmitry Stogov
273e194df5
Replace zval_dtor() with specialized destructors
2018-07-05 13:55:56 +03:00
Dmitry Stogov
77c6ca7b62
Fixed wrong zval_dtor() usage
2018-07-05 13:37:59 +03:00
Dmitry Stogov
b01d9e826c
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
[ci skip] Fix a typo. RANGE_RANGE should be RAND_RANGE
2018-07-05 13:33:18 +03:00
Dmitry Stogov
b6fb584505
Replace zval_dtor() with specialized destructors
2018-07-05 13:32:39 +03:00
Tyson Andre
5bbe6080b4
[ci skip] Fix a typo. RANGE_RANGE should be RAND_RANGE
2018-07-05 12:11:56 +02:00
Dmitry Stogov
0d235517a3
Don't keep dangling pointer to function_name
2018-07-05 12:20:50 +03:00
Dmitry Stogov
b6cc4d2009
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)
2018-07-05 11:54:26 +03:00
Dmitry Stogov
265c3ed6cf
Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks.
2018-07-05 10:57:49 +03:00
Remi Collet
587ab00698
NEW and UPGRADING
2018-07-05 06:34:08 +02:00
Remi Collet
0ea4013f10
Fixed bug #62596 add getallheaders (apache_request_headers) missing function in FPM add sapi_add_request_header in public API (was add_request_header) fix arginfo for fastcgi_finish_request fucntion
2018-07-05 06:30:58 +02:00
Dmitry Stogov
6c0ddcda47
Removed legacy zval_dtor() usage. It doesn't work with zvals with refcount == 0, anyway.
2018-07-05 02:28:00 +03:00
Dmitry Stogov
5898583e94
Fixed some incorrect zval_dtor() usages
2018-07-04 23:48:39 +03:00
Dmitry Stogov
3a8f26060c
Argument unpacking with Traversables and non-integer keys.
...
Changed error message, added UPGRADING note and test.
2018-07-04 22:34:36 +03:00
Kalle Sommer Nielsen
6337af09dc
Added test case for bug #76539 for master only as the behavior has been restored
2018-07-04 19:50:34 +02:00
Dmitry Stogov
4a475a4976
Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized destructors.
...
zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places.
Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
2018-07-04 19:22:24 +03:00
Christoph M. Becker
d798fd491b
[ci skip] Document GC_C() → zend_gc_get_status()
2018-07-04 12:19:29 +02:00
Dmitry Stogov
af341213f7
se zval_ptr_dtor_str() instead of zend_string_release_ex(Z_STR(*), 0)
2018-07-04 12:08:07 +03:00
Dmitry Stogov
5f19816f53
concat_function() micro optimization
2018-07-04 12:05:51 +03:00
Dmitry Stogov
d84ef96742
SEND_UNPACK should throw exception on Traversable with non-integer keys
2018-07-04 09:35:12 +03:00
Xinchen Hui
a6467af8a5
Fixed test skip
2018-07-04 11:20:28 +08:00
Xinchen Hui
36f05a80d7
Fixed build
2018-07-04 11:15:32 +08:00
Kalle Sommer Nielsen
c49f0fd9ac
Fixed bug #76501 (Funny message with fatal error)
2018-07-04 03:04:31 +02:00
Dmitry Stogov
2edf94a637
Avoid useless copying and conversion
2018-07-04 01:09:00 +03:00
Dmitry Stogov
7eb045d31a
API cleanup. Removed unused functions (kept compatibility macros).
2018-07-04 00:50:57 +03:00
Nikita Popov
e080fb6d92
Do not continue extract()ing after an exception has been thrown
...
Make behavior consistent with a loop of normal assignments.
This is not a big issue now, because $this is the only case that
may generate an error. However typed references introduce additional
error conditions, which would be silenced by this kind of behavior.
2018-07-03 22:45:35 +02:00
Anatol Belski
2af3234a09
[ci skip] Update NEWS
2018-07-03 20:03:11 +02:00
Peter Kokot
b7368fe0d0
Add missing autoconf m4 quotes
...
Two macro calls were missing quotes and in order to be able to run the
autoupdate script, this patch adds them.
2018-07-03 19:12:44 +02:00
Anatol Belski
eb41eba3fe
Remove BOM
2018-07-03 19:06:14 +02:00
Anatol Belski
682ca5fccd
Fix compilation with Firebird < 3
2018-07-03 19:04:11 +02:00
Dorin Marcoci
78f23a6dd4
Boolean data type support, added in Firebird 3. Fixes #74462 .
2018-07-03 19:04:11 +02:00
Christoph M. Becker
e51b364a50
[ci skip] Document zend_parse_parameters_none()
2018-07-03 18:58:37 +02:00
Peter Kokot
29000091b2
Remove sqlite and xmlrpc extension versions from phpinfo output
...
The rest of the core extensions don't display the extension versions in
the phpinfo output since they in most cases match the PHP release version.
2018-07-03 17:01:17 +02:00
Dmitry Stogov
14e6c0cb8c
str_replace() micro-optimization
2018-07-03 17:47:08 +03:00
Anatol Belski
7cdd732aca
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed bug #76564 ext/zip link issues
2018-07-03 15:46:48 +02:00
Anatol Belski
e5ef7cbe87
Fixed bug #76564 ext/zip link issues
...
Add zlib for linking directly, so then ext/zlib is not required.
2018-07-03 15:45:01 +02:00
Christoph M. Becker
a0b9f8d411
Update NEWS for 7.3.0beta1
2018-07-03 12:52:48 +00:00
Remi Collet
cb52bbfdfa
Merge branch 'PHP-7.2'
...
* PHP-7.2:
bump to 7.2.9-dev
2018-07-03 13:53:33 +02:00
Remi Collet
8bf21adb8c
bump to 7.2.9-dev
2018-07-03 13:52:04 +02:00
Dmitry Stogov
004a0568f4
Eliminated REFCOUNTED checks on persistent constant operands in SEND_VAL[_EX] and QM_ASSIGN.
2018-07-03 13:10:22 +03:00
Dmitry Stogov
177c7e3a72
Merge branch 'bug63217'
...
* bug63217:
Another fix for bug #63217
Partial revert of 30156d588c
2018-07-03 12:58:50 +03:00
Dmitry Stogov
3fd97a5b1f
Better hot/cold code splitting
2018-07-03 11:07:39 +03:00
Dmitry Stogov
28b03f9605
Another fix for bug #63217
2018-07-03 01:09:58 +03:00
Nikita Popov
23ae6ca405
Fix check for invoking abstract method
2018-07-02 21:33:09 +02:00
Nikita Popov
826e403d2c
Add $ before property name in error message
2018-07-02 21:24:38 +02:00
Dmitry Stogov
57af94c8b9
Partial revert of 30156d588c
2018-07-02 20:54:44 +03:00
Nikita Popov
04824aa263
Merge branch 'PHP-7.2'
2018-07-02 18:58:01 +02:00
Nikita Popov
9bbb9e537c
Merge branch 'PHP-7.1' into PHP-7.2
2018-07-02 18:57:25 +02:00
Nikita Popov
c97b8bbf82
Fixed bug #75231
...
The behavior is now consistent with ReflectionMethod.
2018-07-02 18:56:27 +02:00
Nikita Popov
1b66ba17ad
Remove unnecessary explicit argc check
...
Instead specify a default value for the argument, which is more
idiomatic.
2018-07-02 18:29:30 +02:00
Nikita Popov
76f1d98a0c
Remove METHOD_NOTSTATIC checks in reflection
...
PHP does not allow static calls to non-static internal methods
anyway, so these checks are redundant.
2018-07-02 18:26:48 +02:00
Nikita Popov
2cc6922cbf
Merge branch 'PHP-7.2'
2018-07-02 17:59:33 +02:00
Nikita Popov
3a236d0587
Merge branch 'PHP-7.1' into PHP-7.2
2018-07-02 17:59:15 +02:00
Nikita Popov
787593b708
Fix test after serialization change
...
And move it to a more appropriate location.
2018-07-02 17:58:26 +02:00
Nikita Popov
a57b5e82a9
Merge branch 'PHP-7.2'
2018-07-02 17:30:07 +02:00
Nikita Popov
09bb2527e9
Merge branch 'PHP-7.1' into PHP-7.2
2018-07-02 17:29:32 +02:00
Nikita Popov
c793885b76
Fixed bug #74670
...
Validate that "C" serialization payload is followed by "}" prior to
calling the unserialize() handler. This mitigates issues caused by
unserialize() not correctly handling strings that are not NUL
terminated. Making sure that there is a "}" at the end avoids the
problem.
2018-07-02 17:27:43 +02:00
Rudi Theunissen
30156d588c
Fixed bug #63217
...
Don't automatically convert literal string keys to integers on
array access, as we may be dealing with an ArrayAccess object,
rather than a plain array.
2018-07-02 16:41:59 +02:00
Anatol Belski
6d61814d0e
Remove the forked test and adjust the original one
2018-07-02 16:08:09 +02:00
Dmitry Stogov
091d77f28a
Avoid magic method hash lookups
2018-07-02 17:03:50 +03:00
Dmitry Stogov
43aca3118a
Avoid string comparisons for magic methods (all magic methods start with "__")
2018-07-02 17:03:02 +03:00
Anatol Belski
a63e834b66
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Update libs_version.txt
2018-07-02 12:12:39 +02:00
Anatol Belski
26a33a96fa
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update libs_version.txt
2018-07-02 12:12:02 +02:00
Anatol Belski
f8258325b4
Update libs_version.txt
2018-07-02 12:09:54 +02:00
Jakub Zelenka
d404b5e255
Add ssl/tls streams options for min and max proto version
2018-07-01 18:46:52 +01:00
Jakub Zelenka
ce0721bee5
Update NEWS, UPGRADING and default php.ini files with syslog changes
2018-07-01 18:27:36 +01:00
Philip Prindeville
2475337bd8
Add syslog's ident and facility parameters to config
...
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com >
2018-07-01 18:08:07 +01:00
Christoph M. Becker
0c4f4481f5
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Make newly introduced bug76556.phpt more resilient
2018-07-01 00:23:06 +02:00
Christoph M. Becker
39d668e927
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Make newly introduced bug76556.phpt more resilient
2018-07-01 00:21:34 +02:00
Christoph M. Becker
a72bab1b9a
Make newly introduced bug76556.phpt more resilient
...
Obviously, different compilers mangle the C++ class name differently.
We should neither expect a prefix nor a suffix.
2018-07-01 00:20:32 +02:00
Christoph M. Becker
1b61c3b210
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #76556 : get_debug_info handler for BreakIterator shows wrong type
2018-06-30 23:22:20 +02:00
Christoph M. Becker
ae163d9a36
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76556 : get_debug_info handler for BreakIterator shows wrong type
2018-06-30 23:17:54 +02:00
Christoph M. Becker
1118fca75d
Fix #76556 : get_debug_info handler for BreakIterator shows wrong type
...
We use the retrieved type for the "type" element instead of the text.
This has been confused during the PHP 7 upgrade[1].
[1] http://git.php.net/?p=php-src.git;a=commit;h=1d793348067e5769144c0f7efd86428a4137baec
2018-06-30 23:15:02 +02:00
Nikita Popov
8faa6ef30e
Add test for void return type on internal function
2018-06-30 20:14:15 +02:00
Nikita Popov
7909d4532c
Merge branch 'PHP-7.2'
2018-06-30 20:11:59 +02:00
Nikita Popov
0f1726e45d
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-30 20:11:39 +02:00
Nikita Popov
9b0df97a42
Fix handling of void return type on internal functions
2018-06-30 20:10:57 +02:00
Nikita Popov
5d7be2c2bc
Merge branch 'PHP-7.2'
2018-06-30 19:50:56 +02:00
Nikita Popov
34deda13a8
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-30 19:50:40 +02:00
Nikita Popov
2eb6a541a9
Fix typo in compound dim assign op inference
...
Thankfully a harmless one, just makes inference results worse.
2018-06-30 19:50:07 +02:00
Christoph M. Becker
abbc1e683c
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #71848 : getimagesize with $imageinfo returns false
2018-06-30 16:50:49 +02:00
Christoph M. Becker
e2285eb542
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #71848 : getimagesize with $imageinfo returns false
2018-06-30 16:40:32 +02:00
Christoph M. Becker
ae04110032
Fix #71848 : getimagesize with $imageinfo returns false
...
Some JFIF images contain empty APP segments, i.e. those which consist
only of the marker bytes and the length, but without actual content.
It appears to be doubtful to have empty APP segments, but we should
apply the robustness principle, and accept these, instead of simply
failing in this case.
We choose to add empty APP segments to $imageinfo with an empty string
as value, instead of NULL, or even to omit these segments altogether.
This patch also fixes the potential issue that php_stream_read() might
not read the supposed number of bytes, which could result in garbage to
be added to the read value.
2018-06-30 16:29:30 +02:00
Peter Kokot
7c04219098
Fix pecl vs ext typo in phar
...
Phar phpinfo output lists also info about bz2 extension if it's
disabled and a quick info about installation. Instead of not maintained
pecl package bz2 the ext/bz2 should be mentioned. Also some outdated
pecl/phar are updated to ext/phar instead in test comments.
2018-06-30 15:35:43 +02:00
Christoph M. Becker
8bc2163c8a
Add ext/sodium to php.ini-*
2018-06-30 14:52:30 +02:00
Nikita Popov
43c533d799
Merge branch 'PHP-7.2'
2018-06-29 23:23:08 +02:00
Nikita Popov
deb1bad80f
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-29 23:23:02 +02:00
Nikita Popov
962706d16c
Fix nullable type pretty-printing
2018-06-29 23:22:41 +02:00
Nikita Popov
7ac06d66d4
Add zend_update_static_property_ex API
...
And cleanup the implementation to perform a normal by-value
assignment.
2018-06-29 22:56:59 +02:00
Nikita Popov
813b6fc950
Add zend_read_static_property_ex API
...
For symmetry with zend_read_property_ex.
2018-06-29 22:49:15 +02:00
Nikita Popov
10b484e624
Fix build
...
These were changed in 6e77a60a75 .
2018-06-29 22:44:58 +02:00
Anatol Belski
7a6dc29605
[ci skip] Update NEWS
2018-06-29 20:12:45 +02:00
Anatol Belski
efdf4a83b1
Merge branch 'PHP-7.2'
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-06-29 20:12:24 +02:00
Anatol Belski
15ad5d31d1
[ci skip] Update NEWS
2018-06-29 20:11:55 +02:00
Anatol Belski
ef274e0b60
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-06-29 20:11:23 +02:00
Anatol Belski
fb09f1341f
[ci skip] Update NEWS
2018-06-29 20:10:54 +02:00
Anatol Belski
ff8f2710f6
Check return value of pcre2_maketables()
2018-06-29 19:15:38 +02:00
Anatol Belski
4ff6c0cb44
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed bug #76548 pg_fetch_result did not fetch the next row
2018-06-29 18:36:22 +02:00
Anatol Belski
486f18f09e
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76548 pg_fetch_result did not fetch the next row
2018-06-29 18:35:44 +02:00
Anatol Belski
cb97fd3097
Fixed bug #76548 pg_fetch_result did not fetch the next row
2018-06-29 18:34:53 +02:00
Dmitry Stogov
6e77a60a75
Removed INIT_OVERLOADED_CLASS... macros
2018-06-29 14:41:35 +03:00
Dmitry Stogov
d6ab163be8
cleanup
2018-06-29 12:35:14 +03:00
Dmitry Stogov
dd932f7e63
Changed php_add[c]slashes prototypes (removed should_free argument)
2018-06-29 00:19:16 +03:00
Nikita Popov
a7101415cb
Merge branch 'PHP-7.2'
2018-06-28 23:06:08 +02:00
Nikita Popov
00c0d7702c
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-28 23:05:09 +02:00
Marcus Schwarz
bf5a802f5a
Fixed bug #76532 (excessive memory usage in mb_strimwidth)
2018-06-28 23:02:28 +02:00
Nikita Popov
db7ead0768
Fix ReflectionProperty::get/setValue() on internal static property
...
This was broken by 6dc0cd868d , which
moved static property initialization outside of constant updating.
Instead of replicating logic, use zend_get_static_property() API
in the reflection implementation, just like we're using
read_property for non-static proprety access.
2018-06-28 22:45:26 +02:00
Anatol Belski
e1e0176e68
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Update SDK version for AppVeyor
2018-06-28 15:59:10 +02:00
Anatol Belski
c5276ad380
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update SDK version for AppVeyor
2018-06-28 15:58:20 +02:00
Anatol Belski
f6430e3fe2
Update SDK version for AppVeyor
2018-06-28 15:56:27 +02:00
Anatol Belski
95a71caab1
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Sync versions for VC++ 15.8
2018-06-28 13:29:32 +02:00
Anatol Belski
e835916f65
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync versions for VC++ 15.8
2018-06-28 13:28:46 +02:00
Anatol Belski
88b5df91f6
Sync versions for VC++ 15.8
2018-06-28 13:23:19 +02:00
Christoph M. Becker
2ff26bdf73
[ci skip] Document new typedef zif_handler
2018-06-28 12:52:36 +02:00
Christoph M. Becker
3ab920a911
[ci skip] Announce emails should not be cross-posted
...
Otherwise answers may be send to all the lists which might be
irrelevant for particular participants only subscribed to one of them.
2018-06-28 12:36:53 +02:00
Anatol Belski
a1ae9d5f9e
[ci skip] Update NEWS
2018-06-28 11:41:49 +02:00
Anatol Belski
eeab21b6d7
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Don't ignore commits on NEWS, etc. on AppVeyor
2018-06-28 10:55:35 +02:00
Anatol Belski
b35f45ded2
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Don't ignore commits on NEWS, etc. on AppVeyor
2018-06-28 10:54:59 +02:00
Anatol Belski
19b4fa17d3
Don't ignore commits on NEWS, etc. on AppVeyor
...
[ci skip] can be used explicitly, and otherwise it might ignore commits
with a code change.
2018-06-28 10:53:23 +02:00
Andrew Nester
ef9ed19ec7
DOMDocument::formatOutput attribute sometimes ignored
2018-06-28 10:38:20 +02:00
Xinchen Hui
f1c0500fda
Update NEWS
2018-06-28 12:38:40 +08:00
Xinchen Hui
8e940654e1
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Update NEWS
Fixed bug #76536 (PHP crashes with core dump when throwing exception in error handler). (Laruence)
2018-06-28 12:38:26 +08:00
Xinchen Hui
809a7b5f8f
Update NEWS
2018-06-28 12:38:14 +08:00
Xinchen Hui
5d7f9dcca7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76536 (PHP crashes with core dump when throwing exception in error handler). (Laruence)
2018-06-28 12:37:58 +08:00
Xinchen Hui
1f6b842af4
Fixed bug #76536 (PHP crashes with core dump when throwing exception in error handler). (Laruence)
2018-06-28 12:37:33 +08:00
Nikita Popov
bddb085a68
Store unmangled name in ReflectionProperty
...
Avoid redundant unmangles and string copies, where possible.
2018-06-27 23:52:21 +02:00
Nikita Popov
ce7fc2e308
Fix typos...
2018-06-27 23:22:29 +02:00
Nikita Popov
78f2a1b81d
Optimize ReflectionProperty constructor
...
Perform HT lookups using a zend_string. Don't copy the name for
the "name" property. We can always use the original name directly,
as properties case case-sensitive, so the original name should
always match the unmangled name of the fetched property info.
2018-06-27 23:21:06 +02:00
Nikita Popov
9b02ee0bba
Fixed bug #76538
2018-06-27 23:06:25 +02:00
Dusta
1deda9326e
Update Coding style
2018-06-27 18:14:03 +02:00
Christoph M. Becker
3f241f3caa
Update UPGRADING wrt. PCRE2
...
The upgrade to PCRE2 should mostly be transparent to existing code, but
apparently there are some minor differences, which warrant a note in
UPGRADING (and consequently, in the migration guide).
2018-06-27 15:19:41 +02:00
Nikita Popov
17afe6430f
Fixed bug #76439
2018-06-27 14:15:56 +02:00
Dmitry Stogov
716bbd3480
Remove duplicated code (keep destroy_zend_function() for compatibility)
2018-06-27 14:54:42 +03:00
Dmitry Stogov
56450c6e65
Moved very rare exception check into a single place.
2018-06-27 13:34:15 +03:00
Peter Kokot
32489322a1
Remove outdated comments about PHP 3
2018-06-27 11:53:40 +02:00
Dmitry Stogov
6dc0cd868d
Fixed ZTS race condition (zend_class_entry->ce_flags of internal classes must not be modified, because internal class enties are shared between threads)
2018-06-27 12:33:20 +03:00
Xinchen Hui
1231b49271
Add test for issue #1400
2018-06-27 16:49:05 +08:00
Xinchen Hui
a394e1554c
Update NEWS
2018-06-27 13:09:54 +08:00
Xinchen Hui
3d8c82c353
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Update NEWS
Fixed bug #76534 (PHP hangs on 'illegal string offset on string references with an error handler)
Conflicts:
Zend/zend_vm_execute.h
2018-06-27 13:08:47 +08:00
Xinchen Hui
7b98d056d3
Update NEWS
2018-06-27 13:07:53 +08:00
Xinchen Hui
3521661bd1
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76534 (PHP hangs on 'illegal string offset on string references with an error handler)
Conflicts:
Zend/zend_execute.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
2018-06-27 13:07:36 +08:00
Xinchen Hui
d1b1866a3a
Fixed bug #76534 (PHP hangs on 'illegal string offset on string references with an error handler)
2018-06-27 13:05:11 +08:00
Kalle Sommer Nielsen
76827e39ba
Minor cleanup in regards to magic_quotes in tests:
...
- dba008.phpt never runs anyway, no need to keep it
- bug75357.phpt has a branch that is never hit, which should not change the bug behavior in anyway
- bug55371.phpt added a simple 'done' test to not let the EXPECT section be empty
2018-06-26 22:38:00 +02:00
Dmitry Stogov
1b80de93b8
Cleanup conditions
2018-06-26 16:18:30 +03:00
Dmitry Stogov
ff97ba253f
Merge branch 'fetch_r_tmp'
...
* fetch_r_tmp:
Make FETCH_R/IS, FETCH_DIM_R/IS, FETCH_OBJ_R/IS, FETCH_STATIC_PROP_R/IS return TMP_VAR, instead of VAR.
2018-06-26 14:48:53 +03:00
Dmitry Stogov
54f171cdc0
Restored zend_array_element_type() prototype
2018-06-26 11:23:37 +03:00
Dmitry Stogov
8c22d3e729
Make FETCH_R/IS, FETCH_DIM_R/IS, FETCH_OBJ_R/IS, FETCH_STATIC_PROP_R/IS return TMP_VAR, instead of VAR.
2018-06-25 23:43:23 +03:00
Nikita Popov
f2c4f06f84
Remove unnecessary uses of z/ parameters
2018-06-25 22:27:42 +02:00
Dmitry Stogov
49a4e69584
Fixed ability to call plain functions through zend_call_method()
2018-06-25 23:01:21 +03:00
Dmitry Stogov
b89ce98129
typo
2018-06-25 22:43:19 +03:00
Dmitry Stogov
7f67513ca3
Lazy function copying from op_cache SHM into process memory
2018-06-25 19:53:58 +03:00
Christoph M. Becker
30f7997762
[ci skip] Remove obsolete task
...
INSTALL points to the online docs and win32/install.txt is removed as
of commit 1e9e7d4[1].
[1] http://git.php.net/?p=php-src.git;a=commit;h=1e9e7d4dc4949b67908e55ab3f3e44528923c029
2018-06-25 18:00:26 +02:00
Dmitry Stogov
c8f355b12c
Micro-optimization
2018-06-25 17:32:13 +03:00
Nikita Popov
73f07738b9
Fix off-by-one error
2018-06-25 15:26:10 +02:00
Nikita Popov
2543e61aed
Fixed bug #76509
...
In PHP static properties are shared between inheriting classes,
unless they are explicitly overwritten. However, because this
functionality was implemented using reference, it was possible
to break the implementation by reassigning the static property
reference.
This is fixed by switching the implementation from using references
to using INDIRECTs, which cannot be affected by userland code.
2018-06-25 15:04:09 +02:00
Nikita Popov
102bcb5c05
Update array_element_type inference for previous change
...
LIST_R and DIM_IS return value can't be MAY_BE_REF anymore.
2018-06-25 14:27:02 +02:00
Nikita Popov
490a49d0bb
Use COPY_DEREF for DIM_IS and LIST_R as well
...
Also add an upgrading note for the behavior change, not that we
expect anyone to be affected...
2018-06-25 14:23:06 +02:00
Markus Staab
a0a4232ae3
[ci skip] fixed typos
2018-06-25 13:14:55 +02:00
Dmitry Stogov
ecce21169e
Added note about zend_function.reserved[] fields usage
2018-06-25 13:35:14 +03:00
Dmitry Stogov
7793bc8ee6
Improved type inference. Result of opcodes using ZVAL_COPY_DEREF can't be MAY_BE_REF.
2018-06-25 13:07:44 +03:00
Christoph M. Becker
0778359223
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix arginfo wrt. optional/required parameters
2018-06-25 11:57:25 +02:00
Christoph M. Becker
2458dab466
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix arginfo wrt. optional/required parameters
2018-06-25 11:54:45 +02:00
Christoph M. Becker
6b5597f7d8
Fix arginfo wrt. optional/required parameters
...
All parameters of phpdbg_color(), phpdbg_exec() and phpdbg_prompt() are
required. We mark them as such.
2018-06-25 11:52:17 +02:00
Christoph M. Becker
d169d06d30
Remove useless PHPDBG_* constants
...
The sole purpose of `PHPDBG_FILE`, `PHPDBG_METHOD`, `PHPDBG_LINENO` and
`PHPDBG_FUNC` has been to be passed as first argument to `phpdbg_break`.
However, this functions is replaced as of PHP 5.6.3 by
`phpdbg_break_file`, `phpdbg_break_method` and 'phpdbg_break_func`,
respectively. Therefore, we're finally removing the useless constants.
2018-06-25 11:42:54 +02:00
Anatol Belski
836f329114
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Prepare tests for ICU 62.1
2018-06-25 11:32:03 +02:00
Anatol Belski
096fd88dcb
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Prepare tests for ICU 62.1
2018-06-25 11:31:21 +02:00
Anatol Belski
5af0db88fa
Prepare tests for ICU 62.1
2018-06-25 11:30:14 +02:00
Nikita Popov
61d00a6cf3
Use COPY_DEREF instead of COPY_UNREF
...
This fixes the behavior when the storage location of the fetch is
modified before the operand is dereferenced by the using VM opcode.
Furthermore it elimiates references as a possible return value from
*_R opcodes, which will give us more opportunities for inferences,
in particular in regard to typed properties.
2018-06-25 11:23:59 +02:00
Dusta
da82719f20
Update http to https
2018-06-25 08:31:32 +02:00
COFFEE
19b42bd6b3
numner => number
2018-06-25 08:29:36 +02:00
Nikita Popov
4abf423d75
Merge branch 'PHP-7.2'
2018-06-24 22:29:19 +02:00
Nikita Popov
14b22704c7
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-24 22:28:57 +02:00
Nikita Popov
701460ba84
Fixed bug #76502
2018-06-24 22:26:45 +02:00
Nikita Popov
66cf76ee54
Remove expr_without_variable
...
We no longer need this distinction.
2018-06-24 13:44:54 +02:00
Anatol Belski
e03739d4ab
Remove obsolete version checks in tests
2018-06-22 17:56:18 +02:00
Anatol Belski
8c92318677
[ci skip] Update NEWS
2018-06-22 17:33:57 +02:00
Anatol Belski
aa92d42018
If there's no setlocale, char tables are not used
2018-06-22 17:31:26 +02:00
Nikita Popov
b592cd7b98
Merge branch 'PHP-7.2'
2018-06-22 16:23:25 +02:00
Nikita Popov
ed9d1b708b
Fixed bug #76520
2018-06-22 16:22:04 +02:00
Anatol Belski
8b58b2aac6
Don't discard char tables just generated
2018-06-22 15:18:39 +02:00
Remi Collet
3b9ecb2d65
add note about php_url struct changes
2018-06-22 14:58:30 +02:00
Anatol Belski
684ce24eec
Improve locale character tables handling and reduce pattern cache size
...
If a locale other than C is active, character tables are saved into the
compile context. Every compiled pattern will have a pointer to the
character table, that was present in the context at the time of the
pattern compilation. Thus, the cache entries don't need to carry char
tables pointer, which reduces their size to 8 bytes on 64-bit. Instead,
the generated character tables are tracked in a separate HashTable. If a
character table was generated before, it'll be assigned to the compile
context when the locale changes. Otherwise a new char table will be
generated and cached.
2018-06-22 14:45:29 +02:00
Dmitry Stogov
34e58a6447
Reduced overhead of magic method calls (__get/__set/__unset/__isset/__dectructor/__clone).
2018-06-22 14:29:54 +03:00
Dmitry Stogov
3c600e2d61
retval shouldn't be NULL
2018-06-22 14:28:29 +03:00
Dmitry Stogov
9b2d708f21
Reduce spl_autoload() overhead
2018-06-22 13:19:53 +03:00
Anatol Belski
bb2f1a6830
Fixed bug #76514 Regression in preg_match makes it fail with PREG_JIT_STACKLIMIT_ERROR
...
Looks like some patterns might require more stack for JIT execution. It
is a regression, as the same pattern was passing using JIT.
2018-06-22 11:05:30 +02:00
Dmitry Stogov
71e18471f2
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Added parenthesis
2018-06-22 12:04:49 +03:00
Dmitry Stogov
4a4c72a82a
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Added parenthesis
2018-06-22 12:04:39 +03:00
Dmitry Stogov
1f726c9925
Added parenthesis
2018-06-22 12:04:23 +03:00
Dmitry Stogov
73b675a988
Avoid duplication of "shadow" property_info
2018-06-22 02:46:59 +03:00
Christoph M. Becker
23ca95aa3e
Fix line endings in new PHPT
2018-06-22 00:01:51 +02:00
Christoph M. Becker
71d16feebb
Fix #76512 : \w no longer includes unicode characters
...
The migration from PCRE to PCRE2 missed to rename once occurrence of
`PCRE_UCP` to `PCRE2_UCP`. We fix that. We also revert the changes to
bug52971.phpt which had been incorrectly made in commit a5bc5ae[1].
[1] <http://git.php.net/?p=php-src.git;a=commit;h=a5bc5aed71f7a15f14f33bb31b8e17bf5f327e2d >
2018-06-21 22:45:08 +02:00
Jakub Zelenka
c2a3ab070b
Merge branch 'PHP-7.2'
2018-06-21 17:03:07 +01:00
Jakub Zelenka
d95ee27551
Make new openssl ext tests in 7.2 consitent
2018-06-21 17:02:44 +01:00
Jakub Zelenka
5f349b728e
Merge branch 'PHP-7.2'
2018-06-21 16:50:45 +01:00
Jakub Zelenka
77bd405959
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-21 16:47:08 +01:00
Jakub Zelenka
b20bcbc363
Use unix NL in all openssl ext tests
2018-06-21 16:43:32 +01:00
Jakub Zelenka
3c42f64e6e
Make code in openssl ext tests more consistent
...
Mainly use spaces for indent and fix some other CS issues. Also
drop checks for unsupported OpenSSL library versions.
2018-06-21 16:38:19 +01:00
Charles R. Portwood II
55277a6684
RFC: Argon2 Password Hash Enhancements Implementation of Argon2id per RFC https://wiki.php.net/rfc/argon2_password_hash_enhancements
...
- m4 and Windows configure scripts now forces Argon2 reference library version >= 20161029
- Implementation tested against 20161029 and 20171227 for Argon2id support
- Updates Argon2 ext/standard/password/tests to run tests for both Argon2i and Argon2id
2018-06-21 13:26:57 +02:00
Peter Kokot
3f96f01e9e
Bump phar and hash extension version to match PHP version
2018-06-21 13:15:32 +02:00
Dmitry Stogov
4418d61ca3
Avoid reusing zend_function.common.prototype for magic things (use reserved fields instead).
2018-06-21 13:09:25 +03:00
Anatol Belski
f87cc89f4d
Gereralize VA macro expansion mechanism
...
Avoids code duplication and makes in usable elsewhere.
2018-06-21 11:50:48 +02:00
Xinchen Hui
4bd6be8a5f
Update NEWS
2018-06-21 17:27:18 +08:00
Xinchen Hui
8b2f40724b
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Update NEWS
Fixed bug #76505 (array_merge_recursive() is duplicating sub-array keys)
2018-06-21 17:26:57 +08:00
Xinchen Hui
e62c6e7dbe
Update NEWS
2018-06-21 17:26:45 +08:00
Xinchen Hui
939e1095f2
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76505 (array_merge_recursive() is duplicating sub-array keys)
2018-06-21 17:26:27 +08:00
Xinchen Hui
6531719da5
Fixed bug #76505 (array_merge_recursive() is duplicating sub-array keys)
2018-06-21 17:26:05 +08:00
Stanislav Malyshev
3f53b02a53
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Revert "ICU 59+ requires C++11 and errors out without the option"
2018-06-20 10:42:04 -07:00
Stanislav Malyshev
011be49dda
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Revert "ICU 59+ requires C++11 and errors out without the option"
2018-06-20 10:41:59 -07:00
Stanislav Malyshev
bcf2e10ae7
Revert "ICU 59+ requires C++11 and errors out without the option"
...
This reverts commit 5dd1ef90ca .
2018-06-20 10:41:41 -07:00
Nikita Popov
22ce955b95
Remove unnnecessary DEREF parameter
2018-06-20 16:03:50 +02:00
Nikita Popov
e357f67faf
Remove code duplication
...
And fix indentation
2018-06-20 15:05:08 +02:00
Nikita Popov
8e2f0824f7
Merge branch 'PHP-7.2'
2018-06-20 12:32:20 +02:00
Nikita Popov
44f4d2be01
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-20 12:30:19 +02:00
Nikita Popov
69dee5c732
Fixed bug #73342
...
Directly listen on socket, instead of duping it to STDIN and
listening on that.
2018-06-20 12:28:15 +02:00
Stanislav Malyshev
2825c82076
Merge branch 'pull-request/3281'
...
* pull-request/3281:
Revert braces inside condition
Use .= where possible
Remove unncecessary parantheses
Remove unused variable old_php
Fix property name
2018-06-19 22:43:20 -07:00
Stanislav Malyshev
3346659f2a
Merge branch 'pull-request/3274'
...
* pull-request/3274:
Added const modifier
76363: added jsm extension to list of mime types
2018-06-19 16:50:16 -07:00
Stanislav Malyshev
f61e1d28fe
Merge branch 'pull-request/3288'
...
* pull-request/3288:
Fix bug #75481 : makedev warning
2018-06-19 16:43:52 -07:00
Stanislav Malyshev
30bdc09129
Merge branch 'pull-request/3309'
...
* pull-request/3309:
phar module, unsignedness check changes. while at it, correcting seemingly subtle bug when checking extension validity.
2018-06-19 16:42:28 -07:00
Sara Golemon
1108b5a19b
Move class constant definition to the right enum file
2018-06-19 18:21:08 -04:00
Christoph M. Becker
963998f0ab
Update NEWS for 7.3.0alpha3
2018-06-19 15:36:31 +02:00
Gabriel Caruso
fc775f6915
Report unknown variables passed to compact()
2018-06-19 12:50:15 +02:00
Robert Lu
ecc1a7c582
Fix bug #44217 : Output after stdout/stderr closed cause immediate exit with status 0
...
We exit with status 255 instead.
2018-06-19 12:15:33 +02:00
David Carlier
80bb649ad1
phar module, unsignedness check changes.
...
while at it, correcting seemingly subtle bug when checking
extension validity.
2018-06-18 14:08:50 +00:00
Dmitry Stogov
84d7d4e1cc
Fixed bug #76466 (Loop variable confusion)
2018-06-18 11:21:23 +03:00
Xinchen Hui
83a77f5a28
Fixed typo
2018-06-18 12:14:17 +08:00
Xinchen Hui
7f196c45ef
use defined macro
2018-06-18 12:14:00 +08:00
Xinchen Hui
4d69bbeee7
Fixed bug #76437 (token_get_all with TOKEN_PARSE flag fails to recognise close tag)
2018-06-18 11:33:48 +08:00
Stanislav Malyshev
24f7096154
Merge branch 'PHP-7.2'
...
* PHP-7.2:
ICU 59+ requires C++11 and errors out without the option
Fix #76300 - Dont attempt to change visibility of a parent private
2018-06-17 16:43:46 -07:00
Stanislav Malyshev
61a4fc4e44
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
ICU 59+ requires C++11 and errors out without the option
2018-06-17 16:42:49 -07:00
Stanislav Malyshev
5dd1ef90ca
ICU 59+ requires C++11 and errors out without the option
2018-06-17 16:42:41 -07:00
Pedro Magalhães
13e9a471d7
Fix #76300 - Dont attempt to change visibility of a parent private
2018-06-17 15:53:55 -07:00
Stanislav Malyshev
7d7b7e801e
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #76300 - Dont attempt to change visibility of a parent private
2018-06-17 15:47:06 -07:00
Stanislav Malyshev
671fc2ec55
Merge branch 'pull-request/3233' into PHP-7.2
...
* pull-request/3233:
Fix #76300 - Dont attempt to change visibility of a parent private
2018-06-17 15:26:42 -07:00
Stanislav Malyshev
5819ff4865
Merge branch 'pull-request/3268'
...
* pull-request/3268:
Sync sysvsem and sysvshm versions in phpinfo
2018-06-17 14:12:45 -07:00
Stanislav Malyshev
201f440760
Merge branch 'pull-request/3295'
...
* pull-request/3295:
Remove old and unused warnings when building apache
2018-06-17 14:11:07 -07:00
Stanislav Malyshev
19d5656b1a
Merge branch 'pull-request/3307'
...
* pull-request/3307:
Bump snmp extension version to PHP version
2018-06-17 14:06:40 -07:00
Stanislav Malyshev
d7ed929e1c
Merge branch 'pull-request/3296'
...
* pull-request/3296:
Bump fileinfo extension version to PHP release version
2018-06-17 14:05:01 -07:00
Stanislav Malyshev
0e7460d793
Merge branch 'pull-request/3304'
...
* pull-request/3304:
Bump intl extension version to PHP release version
2018-06-17 13:54:04 -07:00
Xinchen Hui
77e632d04f
only warning when the flag is true
2018-06-17 11:39:08 +08:00
Peter Kokot
be49d61b19
Remove old SVN keywords substitutions
...
When the PHP source code was versioned in Subversion, there was
possible to substitute certain keywords such as $Id$ with revision
number, last change time and author name. Such approach is not used
in Git so this patch removes these outdated artifacts from source
code files.
2018-06-16 13:04:30 +02:00
Peter Kokot
5651b1a7ca
Remove Git ident attribute from the iconv extension
2018-06-16 12:49:55 +02:00
Peter Kokot
7bf091c5c2
Remove SVN revision from phar phpinfo output
...
The SVN revision was utilized with Subversion. The Git ident
attribute applies only for particular file and since other core
extensions don't output this information anymore this patch
removes it from the phpinfo output to sync and make the phpinfo
core extensions more consistent.
2018-06-16 12:47:33 +02:00
Nikita Popov
d04917c7b3
Fixed bug #75218
...
I've introduced a new CompileError type, from which ParseError
inherits. These errors are not parse errors in the narrow sense
of the term, even though they happen to be generated during
parsing in our implementation. Additionally reusing the ParseError
class for this purpose would change existing error messages (if
the exception is not caught) from a "Fatal error:" to a "Parse
error:" prefix, and also the error kind from E_COMPILE_ERROR to
E_PARSE.
2018-06-16 12:41:03 +02:00
Peter Kokot
0bd3fecbcb
Remove old SVN keywords substitutions from the zip tests
2018-06-16 12:36:00 +02:00
David Carlier
19af5e471f
Add NEWS entries
...
[ci skip]
2018-06-16 12:33:28 +02:00
Tom Van Looy
3775bf9351
[ci skip] Mention new hrtime() in NEWS
2018-06-16 12:30:27 +02:00
Peter Kokot
70f41d1d9c
Bump snmp extension version to PHP version
...
This patch syncs the snmp extension to match it with the PHP release
version.
2018-06-15 12:55:21 +02:00
Xinchen Hui
35872c0960
Remove assertion
2018-06-15 17:21:59 +08:00
Xinchen Hui
51f6321189
Update NEWS
2018-06-15 16:32:27 +08:00
Xinchen Hui
efcaa37190
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed bug #76477 (Opcache causes empty return value)
2018-06-15 16:31:58 +08:00
Xinchen Hui
f31ba7cb53
Fixed bug #76477 (Opcache causes empty return value)
2018-06-15 16:31:31 +08:00
Anatol Belski
5334463e6c
[ci skip] Update NEWS
2018-06-15 07:30:10 +02:00
Victor Csiky
71c04324b7
Fixe bug #76386
...
..that is also a duplicate of #67122
2018-06-15 07:23:31 +02:00
Peter Kokot
d6ccaef3e6
Bump fileinfo extension version to PHP release version
...
To sync core extensions and their versioning more the fileinfo extension
can be versioned same way as PHP releases.
2018-06-15 00:28:28 +02:00
Peter Kokot
b1767d8a56
Bump intl extension version to PHP release version
...
This patch syncs and simplifies the intl core extension versioning
to match the PHP release version.
2018-06-14 23:35:29 +02:00
Nikita Popov
0b04938c87
Fix unspecialized executor
...
If we conditionally fetch a value, we also need to conditionally
free it.
2018-06-14 23:26:27 +02:00
Stanislav Malyshev
3d16bb5b62
Merge branch 'pull-request/3299'
...
* pull-request/3299:
Bump extension, module and PHP API numbers for 7.3
2018-06-14 12:30:41 -07:00
Jakub Zelenka
f3ef13e1d6
Bump PHP_JSON_VERSION to 1.7.0
2018-06-14 20:25:59 +01:00
Michael Moravec
a5748cab2e
Bump extension, module and PHP API numbers for 7.3
2018-06-14 16:26:13 +02:00
Peter Kokot
bbd7b2d0ee
Remove old and unused warnings when building apache
...
The configure script already warns users at the beginning with
unrecognized options warning so additional check is not required. These
sapis were also removed from the PHP core.
2018-06-14 04:45:28 +02:00
Dmitry Stogov
591f4f005d
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed invalid free introduced by d6e81f0bfd (avoid keeping "invalid" pointer)
2018-06-14 02:41:14 +03:00
Dmitry Stogov
dad8bd5851
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed invalid free introduced by d6e81f0bfd (avoid keeping "invalid" pointer)
2018-06-14 02:40:59 +03:00
Dmitry Stogov
11507c0e1b
Fixed invalid free introduced by d6e81f0bfd (avoid keeping "invalid" pointer)
2018-06-14 02:38:39 +03:00
Dmitry Stogov
fcfa006a4e
Avoid useless stream buffer copying and workaround with chunk_size manipulation.
2018-06-14 02:34:17 +03:00
Nat Zimmermann
4ac531afb3
Revert braces inside condition
2018-06-13 23:37:14 +01:00
Nikita Popov
bc56bb847d
Merge branch 'PHP-7.2'
2018-06-13 23:48:37 +02:00
Nikita Popov
d04a1e8d70
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-13 23:48:28 +02:00
Nikita Popov
e77077edeb
Make $locale parameter to BreakIterator ctors optional
...
It's documented as such and already accepts null.
2018-06-13 23:47:20 +02:00
Dmitry Stogov
c1ce43d1d2
php_json_escape_string() optimization
2018-06-13 18:26:48 +03:00
Christoph M. Becker
52f92b51aa
erealloc() is infallible
2018-06-13 16:10:08 +02:00
Markus Staab
10a9c51942
emalloc never returns null
2018-06-13 16:00:41 +02:00
Peter Kokot
128cd0d0f2
Remove old SVN keywords substitutions from xsl and sockets tests
...
When the PHP source code was versioned in Subversion, there was
possible to substitute certain keywords such as $Id$ with revision
number, last change time and author name. Such approach is not used
in Git so this patch removes these outdated artifacts from the xsl
and sockets extensions tests files.
2018-06-13 15:56:06 +02:00
Dmitry Stogov
100b4cdabd
emalloc() never returns NULL
2018-06-13 12:39:56 +03:00
Xinchen Hui
9465ec4673
Added num_roots to gc_status
2018-06-13 16:41:51 +08:00
Dmitry Stogov
e788e8261e
Removed "gc_" prefix.
2018-06-13 11:28:24 +03:00
Dmitry Stogov
2afc83732c
Allow access to some garbage collection internals (Benjamin Eberlei)
2018-06-13 11:10:17 +03:00
Xinchen Hui
609385bbf8
Fixed bug #76446 (zend_variables.c:73: zend_string_destroy: Assertion `!(zval_gc_flags((str)->gc)).
2018-06-13 15:06:51 +08:00
Peter Kokot
97f2ce4031
Fix bug #75481 : makedev warning
...
To use makedev the sys/sysmacros.h needs to be included on newer
systems.
2018-06-13 04:36:55 +02:00
Jakub Zelenka
1650e4669d
Merge branch 'PHP-7.2'
2018-06-12 18:11:20 +01:00
Jakub Zelenka
dd622f9ca9
Port FPM test 023 and 024 to the new FPM testing
2018-06-12 18:09:27 +01:00
Jakub Zelenka
b2460c9ec2
Merge branch 'PHP-7.2'
2018-06-12 18:04:30 +01:00
Jakub Zelenka
bc58ba750f
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-12 18:03:01 +01:00
Jakub Zelenka
ea592e6b6c
Rewrite FPM tests
2018-06-12 17:59:28 +01:00
Anatol Belski
0cb6b17b29
[ci skip] Update NEWS
2018-06-12 18:08:24 +02:00
Anatol Belski
548e2a6cd6
Merge branch 'PHP-7.2'
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-06-12 18:08:05 +02:00
Anatol Belski
827cb0484e
[ci skip] Update NEWS
2018-06-12 18:07:35 +02:00
Anatol Belski
87cb883563
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-06-12 18:07:11 +02:00
Anatol Belski
62554efffe
[ci skip] Update NEWS
2018-06-12 18:06:41 +02:00
Anatol Belski
c9fc0095ce
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed bug #76462 Undefined property: DateInterval::$f
2018-06-12 15:31:49 +02:00
Anatol Belski
5f1190684f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76462 Undefined property: DateInterval::$f
2018-06-12 15:31:01 +02:00
Anatol Belski
7212829435
Fixed bug #76462 Undefined property: DateInterval::$f
2018-06-12 15:30:14 +02:00
Xinchen Hui
1cc9933130
Fixed bug #76463 (var has array key type but not value type)
2018-06-12 20:55:06 +08:00
Tom Van Looy
19d31433dc
Enable HRTime on OpenBSD
...
OpenBSD has clock_gettime() so this will work. They have _POSIX_TIMERS on -1 in
unistd because they don't have per-process timers.
2018-06-12 12:27:48 +02:00
Remi Collet
c5ab9169ce
NEWS
2018-06-12 09:36:31 +02:00
Remi Collet
25188727b1
Merge branch 'PHP-7.2'
...
* PHP-7.2:
NEWS
Add OPSYS_CPM constant as documented and to match libzip naming
2018-06-12 09:36:14 +02:00
Remi Collet
eb2a3c6c65
NEWS
2018-06-12 09:35:52 +02:00
Remi Collet
075e685439
Add OPSYS_CPM constant as documented and to match libzip naming
2018-06-12 09:31:41 +02:00
Xinchen Hui
72104d2b6e
supplemental fix for bug #76427
...
there are two parts to make this problem visible , the first is
our new gc new freeing zvals in an opposite direction(compare to 7.2)
the second is zend_object_store_del doesn't check IS_VALID since 7.3
(using assertion instead)
2018-06-12 09:40:34 +08:00
Nikita Popov
f2be6e732a
Update data tables for Unicode 11
2018-06-11 20:25:37 +02:00
Nikita Popov
e4e334effb
Remove dead code for ADD_STRING/ADD_CHAR optimization
...
These opcodes don't exist anymore. The modern equivalent would be
the ROPE_* opcodes. However the code would have to be different
anyway.
2018-06-11 20:17:36 +02:00
Anatol Belski
3b07c6cf87
Skip tests when Oniguruma is disabled
2018-06-11 17:44:34 +02:00
Anatol Belski
a34ba6f30c
Fix mbstring fallback when --disable-mbregex used
2018-06-11 17:44:34 +02:00
Xinchen Hui
dc99a13fac
Correct NEWS
2018-06-11 21:10:13 +08:00
Xinchen Hui
1a952bca22
Merge branch 'master' of git.php.net:/php-src
...
* 'master' of git.php.net:/php-src:
Remove inappropriate FreeLibrary calls
Remove inappropriate FreeLibrary call
The ZEND_EXTENSION change is merged with xdebug now so we can drop this for master only
Fixed bug #76443 (php+php_interbase.dll crash on module_shutdown)
2018-06-11 21:01:10 +08:00
Xinchen Hui
ffaee27478
Fixed bug #76427 (Segfault in zend_objects_store_put)
2018-06-11 21:00:38 +08:00
Anatol Belski
b2a200188f
Remove inappropriate FreeLibrary calls
2018-06-11 13:53:17 +02:00
Anatol Belski
05e2d3d59d
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Remove inappropriate FreeLibrary call
2018-06-11 13:51:56 +02:00
Anatol Belski
7dcfa839c9
Remove inappropriate FreeLibrary call
2018-06-11 13:49:42 +02:00
Kalle Sommer Nielsen
dd494a83db
The ZEND_EXTENSION change is merged with xdebug now so we can drop this for master only
2018-06-11 13:34:20 +02:00
Kalle Sommer Nielsen
a6b9ddbfe2
Fixed bug #76443 (php+php_interbase.dll crash on module_shutdown)
2018-06-11 11:50:39 +02:00
Peter Kokot
eebad01672
Remove revision from OCI8 extension
...
The revisions were used in SVN. Other core extensions don't
provide this information in the phpinfo output anymore so
this patch removes it from the OCI8 info output to make it
consistent with other extensions.
2018-06-10 21:22:12 +02:00
Tyson Andre
d0fc6dba0c
Fix the Z_IMMUTABLE macro - '(' was mismatched
...
The macro properly has two matching `(` and `)` symbols
after this change.
This typo was causing syntax errors when compiling extensions
using the (deprecated) macro.
This fixes a bug in the PHP 7.3 branch introduced by
742d5a01ed
2018-06-10 21:21:42 +02:00
Nikita Popov
2edd33b29d
Merge branch 'PHP-7.2'
2018-06-10 21:21:29 +02:00
Nikita Popov
3d7284d09e
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-10 21:21:11 +02:00
Nikita Popov
6c9db02ff7
Fix mysqlnd build without openssl
...
Cherry-pick of 968eb0b38c , as these
changes were also introduced in lower branches.
2018-06-10 21:20:28 +02:00
Jakub Zelenka
8c3b0455ee
Merge branch 'PHP-7.2'
2018-06-10 14:34:23 +01:00
Jakub Zelenka
bca6d373fc
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-10 14:33:28 +01:00
Christoph M. Becker
3cbf594dfd
Deprecate image2wbmp()
...
According to https://wiki.php.net/rfc/image2wbmp , we deprecate
`image2wbmp()`, rename the `$threshold` parameter to `$foreground`, and
remove superfluous code.
2018-06-10 00:33:42 +02:00
Nikita Popov
60323906f9
Optimizer: Don't propagate constants into MAKE_REF
...
This occurs in Zend/tests/assign_ref_error_var_handling.phpt,
added in 95a0709935 .
2018-06-10 00:10:32 +02:00
Christoph M. Becker
92ae59cf64
[ci skip] Update NEWS
...
Cf. https://github.com/php/php-src/commit/3fdde65617e9f954e2c964768aac8831005497e5
2018-06-09 22:36:35 +02:00
Nikita Popov
95a0709935
Fix handling of ERROR zval in op1 of ASSIGN_REF
...
If op1 is ERROR the behavior is to not perform any assignment and
return NULL. However, if the RHS was a by-value returning function,
we'd instead emit a notice and return the RHS as the return value
(even though the value was not assigned to anything -- the temporary
is immediately destroyed).
This normalized the behavior to always check for an ERROR in op1
first.
2018-06-09 21:31:30 +02:00
Anatol Belski
6d239098cf
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix test portability
2018-06-09 20:59:41 +02:00
Anatol Belski
66badcdc0c
Fix test portability
2018-06-09 20:57:17 +02:00
Anatol Belski
8db4543fdc
[ci skip] Update NEWS
2018-06-09 20:36:50 +02:00
Anatol Belski
c79af09bc6
Add check for variable size array feature
...
Usage of VLA is not portable, wile supported by some compilers. For
instance, GCC supports it even if -std=c89 is passed. Even if we would
switch to C99, it would be still not portable at least with VC++. Thus,
adding a centralized check so such code can be guarded and moved to
alloca() if needed.
2018-06-09 20:27:16 +02:00
Nikita Popov
d877d18676
Error on by-ref assign to overloaded prop returning ref
...
This error was already thrown if __get() was used -- however not
if it returned by reference. This is incorrect, because the
reference return makes no difference to a by-reference assignment,
which has reference-breaking semantics. The result was that the
assignment was accepted silently, even though it didn't do anything
(not even the value was assigned, let alone the reference).
2018-06-09 18:42:22 +02:00
Nat Zimmermann
3c3ef6dd26
Use .= where possible
2018-06-09 17:02:35 +01:00
Nat Zimmermann
1b767ac26b
Remove unncecessary parantheses
2018-06-09 17:01:31 +01:00
Nat Zimmermann
e5043d06c9
Remove unused variable old_php
2018-06-09 16:59:25 +01:00
Nat Zimmermann
a91d5a8194
Fix property name
2018-06-09 16:58:41 +01:00
Christoph M. Becker
eed3637d84
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #76409 : heap use after free in _php_stream_free
2018-06-09 17:57:10 +02:00
Christoph M. Becker
3fdde65617
Fix #76409 : heap use after free in _php_stream_free
...
We must not close the stream in exif_read_from_impl(), since it is the
responsibility of the (caller's) caller to do so, if it actually opened
the stream.
We simplify the reproduce script, which is actually about supplying a
path to a directory (opposed to a regular file), and use `.` instead of
`/` to also make it work on Windows.
2018-06-09 17:52:05 +02:00
Peter Kokot
7bb741cad9
Remove exif version from the phpinfo output
...
This patch removes the exif version in the phpinfo output to sync it
with the rest of the php bundled extensions. Also in the past the
revision id from the version control system was used and is today not
needed anymore.
2018-06-09 15:32:21 +02:00
Nikita Popov
777187cbaf
Don't use UNREFs during array operations
...
Perform DEREFs instead. We were already doing this in some, but not
all places.
While UNREFs are supposed to be transparent, in practice they have
rare observable side effects. Calling array_merge() on an array
should never change how that array behaves.
2018-06-09 13:20:13 +02:00
Anatol Belski
9cd2d77514
Fixed bug #76422 ftruncate fails on files > 2GB
2018-06-09 11:28:24 +02:00
Nikita Popov
968eb0b38c
Fix mysqlnd build without openssl
2018-06-09 11:04:40 +02:00
Nikita Popov
7498f0163b
Fix handling of assign-ops on overloaded props with ref return
...
Assign-ops and incdec on overloaded properties are implemented
using a read_property followed by write_property. Previously, if
__get() returned by-reference, pre-incdec and assign-op
additionally also modified the reference, while post-incdec worked
correctly.
This change synchronizes the three code-paths to not modify the
reference. The pre-incdec implementation matches the post-incdec
implementation, the assign-op implementation uses a distinct
result operand.
2018-06-09 00:36:46 +02:00
Nikita Popov
befc518c82
Merge branch 'PHP-7.2'
2018-06-08 23:11:45 +02:00
Nikita Popov
e029019275
Deduplicate code using php_timezone_to_string()
...
Looks like this usage was overlooked when the function was
introduced.
2018-06-08 23:10:43 +02:00
David Carlier
ad52ec3db8
cast to int to disable compilation warnings.
2018-06-08 23:08:42 +02:00
Peter Kokot
25c35ab30a
Sync phpinfo output for pdo_pgsql
...
This patch removes the module version and revision from the phpinfo
output to sync the phpinfo with the rest of the bundled extensions.
2018-06-08 23:06:22 +02:00
Nikita Popov
fc8f5b0f09
Merge branch 'PHP-7.2'
2018-06-08 23:02:25 +02:00
Keyur Govande
695b8192c7
Avoid leaking the urandom fd
...
When Apache is reloaded, it unloads the extension, but the open file descriptor to /dev/urandom is left hanging around and is leaked. This fixes the bug.
Duplicate of https://github.com/jedisct1/libsodium-php/pull/173
2018-06-08 23:01:57 +02:00
Jakub Zelenka
f9d1d1f36f
Enable IPv6 in Travis
2018-06-08 20:09:33 +01:00
Stas Malyshev
fdd9f572da
Update NEWS for 7.3.0alpha2
2018-06-07 10:24:35 -07:00
Dmitry Stogov
1597b56619
Inline few small opcode handlers into hybrid executor
2018-06-07 16:30:53 +03:00
Joe Watkins
e9b8193b24
bump versions
2018-06-07 08:19:43 +02:00
pmukhin
57e72dc198
Added const modifier
2018-06-06 21:34:18 +07:00
pmukhin
48c954ca46
76363: added jsm extension to list of mime types
2018-06-06 21:04:42 +07:00
Dmitry Stogov
e17fc0d73c
Added parentheses
2018-06-06 15:29:59 +03:00
Dmitry Stogov
180bf90ded
Fastcall calling convention is not comaptible with variable number of arguments
2018-06-06 15:27:18 +03:00
Dmitry Stogov
531de5f24a
Fixed prototypes, foo(void) instead of foo()
2018-06-06 15:26:26 +03:00
Anatol Belski
7bef16c37b
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix VC compilation as variable size array is not supported
NEWS for 7.2.8
2018-06-06 11:21:11 +02:00
Anatol Belski
0bafb530d6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix VC compilation as variable size array is not supported
Fix MySQL 8 auth
2018-06-06 11:14:15 +02:00
Anatol Belski
f96df64cb2
Fix VC compilation as variable size array is not supported
2018-06-06 11:13:28 +02:00
Sara Golemon
917222f395
NEWS for 7.2.8
2018-06-05 12:07:52 -04:00
Peter Kokot
03a3faa151
Sync sysvsem and sysvshm versions in phpinfo
...
This patch removes the versions of the sysvsem and sysvshm extensions in
the phpinfo output to sync them with PHP core and bundled extensions
versions displayed. Instead it displays the extension enabled status.
2018-06-03 04:05:46 +02:00
Pedro Magalhães
2dca8671e4
Fix #76300 - Dont attempt to change visibility of a parent private
2018-05-03 21:54:44 +01:00