]>
granicus.if.org Git - php/log
Dmitry Stogov [Tue, 12 Dec 2017 16:01:10 +0000 (19:01 +0300)]
typo
Dmitry Stogov [Tue, 12 Dec 2017 10:47:47 +0000 (13:47 +0300)]
Avoid reallocation and double copying of variable names.
Dmitry Stogov [Mon, 11 Dec 2017 22:51:37 +0000 (01:51 +0300)]
Added special cases for array_diff(), when first argument is an empty array or an array with single element.
Dmitry Stogov [Mon, 11 Dec 2017 21:30:51 +0000 (00:30 +0300)]
Use cheaper API
Dmitry Stogov [Mon, 11 Dec 2017 20:00:07 +0000 (23:00 +0300)]
Use cheaper functions
Nikita Popov [Sat, 9 Dec 2017 20:57:41 +0000 (21:57 +0100)]
Add gmp_kronecker()
Exposes the mpz_kronecker(), mpz_si_kronecker() and
mpz_kronecher_si() for computing the Kronecker symbol.
Nikita Popov [Sat, 9 Dec 2017 20:32:42 +0000 (21:32 +0100)]
Add gmp_perfect_power()
Exposes the mpz_perfect_power_p() function.
We already had the more specific gmp_perfect_square() function.
Nikita Popov [Sat, 9 Dec 2017 20:22:37 +0000 (21:22 +0100)]
Add gmp_lcm()
Exposes mpz_lcm() and mpz_lcm_ui() for calculating the least
common multiple.
We already expose the somewhat complementary gmp_gcd() function.
Nikita Popov [Sat, 9 Dec 2017 20:09:27 +0000 (21:09 +0100)]
Add gmp_binomial()
Adds PHP bindings for mpz_bin_ui and mpz_bin_uiui, for calculating
binomial coefficients.
Dmitry Stogov [Mon, 11 Dec 2017 15:18:30 +0000 (18:18 +0300)]
Avoid temporary string creation and destruction.
Dmitry Stogov [Mon, 11 Dec 2017 15:16:54 +0000 (18:16 +0300)]
Reduce number of hash collisions during dulicate address detection.
Anatol Belski [Mon, 11 Dec 2017 13:15:28 +0000 (14:15 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Sync known vc++ versions in 7.1
Anatol Belski [Mon, 11 Dec 2017 13:14:44 +0000 (14:14 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Sync known vc++ versions in 7.1
Anatol Belski [Mon, 11 Dec 2017 13:13:14 +0000 (14:13 +0100)]
Sync known vc++ versions in 7.1
Anatol Belski [Mon, 11 Dec 2017 11:58:49 +0000 (12:58 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Add vc++ 19.12 to the known list
Anatol Belski [Mon, 11 Dec 2017 11:57:58 +0000 (12:57 +0100)]
Add vc++ 19.12 to the known list
Anatol Belski [Mon, 11 Dec 2017 11:26:47 +0000 (12:26 +0100)]
Apply calling convention explicitly to the function, not to the decl.
Dmitry Stogov [Mon, 11 Dec 2017 07:55:15 +0000 (10:55 +0300)]
Use "fastcal" calling convention for internal PHP functions on x86
Nikita Popov [Sun, 10 Dec 2017 21:33:47 +0000 (22:33 +0100)]
Fix relative constant addressing in file cache
PASS_TWO_UNDO_CONSTANT was using the serialized op_array->literals
pointer, resulting in incorrect offsets.
Peter Kokot [Wed, 29 Nov 2017 20:31:52 +0000 (21:31 +0100)]
Remove outdated TODO files
Some extensions included TODO files that has been present for several
years in the repository tree without changes. This included:
- ext/phar
- ext/intl
- ext/zip
- ext/soap
- ext/pdo
- ext/spl
- ext/dom
- ext/gmp
- ext/xmlwriter
- ext/xmlreader
ext/phar feature request has been created instead, and for others it
would be better to use wiki and RFC workflow instead based on current
feature requests and further PHP development requirements.
[ci skip]
Peter Kokot [Wed, 29 Nov 2017 21:00:20 +0000 (22:00 +0100)]
Update coding standards
Mentioned PHP versions indicate that there is a progress to make code
fully follow the coding standards which is not exactly the real case.
This patch changes few oudated used PHP versions in intro paragraph
and mentions the PHP documentation repository in more abstract way.
[ci skip]
Nikita Popov [Sat, 9 Dec 2017 18:07:47 +0000 (19:07 +0100)]
Merge branch 'PHP-7.2'
Nikita Popov [Sat, 9 Dec 2017 18:07:40 +0000 (19:07 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
Michael Heimpold [Sun, 26 Nov 2017 17:29:42 +0000 (18:29 +0100)]
ext/imap/config.m4: fix ac_cv_u8t_decompose check
Once upon the time, commit
c58f63a38ae19caaab339c61486fc3bd7e5894f9
changed the check from U8T_CANONICAL to U8T_DECOMPOSE. However,
the autoconf cache id was not renamed.
Sometimes it is desirable to preseed the autoconf variables, e.g. when
cross-compiling to avoid the tests running on the host system. In this
case it's confusing when the cache id does not match the variable to
set, so let's adjust it.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Javier Eguiluz [Thu, 30 Nov 2017 15:52:29 +0000 (16:52 +0100)]
Fixed a typo
sundarchi1 [Thu, 7 Dec 2017 22:42:02 +0000 (17:42 -0500)]
Make ini formatting more consistent
Default values should have no leading space, everything else should
have one.
Young-X [Sat, 9 Dec 2017 04:06:57 +0000 (12:06 +0800)]
Make sizeof formatting consistent
Everything else in that file uses sizeof with parentheses.
Tom Van Looy [Sun, 3 Dec 2017 21:35:50 +0000 (22:35 +0100)]
Remove RAND_RANGE() macro
The behavior of RANGE_RANGE() is 7.1 changed completely, from
rescaling an already generated number to generating a number
itself. Because of this str_shuffle() ended up generating two
random numbers on every iteration.
To avoid further misuse the function is dropped entirely. Extensions
for PHP >= 7.1 should directly call php_mt_rand_range().
David Walker [Fri, 6 Oct 2017 23:30:58 +0000 (17:30 -0600)]
Implement list() reference assignments
Support list() reference assignments of the form:
list(&$a, list(&$b, $c)) = $d;
RFC: https://wiki.php.net/rfc/list_reference_assignment
Anatol Belski [Sat, 9 Dec 2017 12:15:28 +0000 (13:15 +0100)]
Move temporary allocation to the stack
Anatol Belski [Sat, 9 Dec 2017 11:57:37 +0000 (12:57 +0100)]
Fix tests
Anatol Belski [Sat, 9 Dec 2017 11:38:19 +0000 (12:38 +0100)]
Use cheaper ascii conversion for mode
Anatol Belski [Sat, 9 Dec 2017 10:45:21 +0000 (11:45 +0100)]
Revamp fopen implementation, rely on open
Anatol Belski [Fri, 8 Dec 2017 23:26:18 +0000 (00:26 +0100)]
Put missing signature into header
Anatol Belski [Fri, 8 Dec 2017 23:21:23 +0000 (00:21 +0100)]
Cleanup
Anatol Belski [Fri, 8 Dec 2017 23:11:33 +0000 (00:11 +0100)]
Rework mkdir impl and expose wide char variant
Anatol Belski [Fri, 8 Dec 2017 21:59:00 +0000 (22:59 +0100)]
Remove dead code
Anatol Belski [Fri, 8 Dec 2017 15:47:39 +0000 (16:47 +0100)]
Move declarations
Anatol Belski [Fri, 8 Dec 2017 15:35:45 +0000 (16:35 +0100)]
Improve ioutil access impl and refactor tsrm_win32_access
Anatol Belski [Thu, 7 Dec 2017 22:05:19 +0000 (23:05 +0100)]
Revamp unlink() implementation and improve error handling
Anatol Belski [Thu, 7 Dec 2017 15:52:23 +0000 (16:52 +0100)]
Allow delete-sharing mode for CreateFile by default
This effectively allows a UNIX like semantics for deleting files
with an open handle. Some OS related limitations still persist,
but the Windows 95 times can be considered as definitely over.
Dmitry Stogov [Fri, 8 Dec 2017 16:55:12 +0000 (19:55 +0300)]
Improved shared interned string table implementation (use less memory and more CPU cache friendly)
Dmitry Stogov [Thu, 7 Dec 2017 19:35:17 +0000 (22:35 +0300)]
Use cheaper SEPARATE macros
Dmitry Stogov [Thu, 7 Dec 2017 19:34:38 +0000 (22:34 +0300)]
Removed useless separations
Dmitry Stogov [Thu, 7 Dec 2017 19:34:08 +0000 (22:34 +0300)]
Cleanup type conversion
Dmitry Stogov [Thu, 7 Dec 2017 19:01:41 +0000 (22:01 +0300)]
Cleanup type conversion
Dmitry Stogov [Thu, 7 Dec 2017 16:24:55 +0000 (19:24 +0300)]
Cleanup type conversion
Dmitry Stogov [Thu, 7 Dec 2017 12:20:17 +0000 (15:20 +0300)]
Use array specific functions
Dmitry Stogov [Thu, 7 Dec 2017 12:01:23 +0000 (15:01 +0300)]
Added assertion
Dmitry Stogov [Thu, 7 Dec 2017 12:01:04 +0000 (15:01 +0300)]
SEPARATE_STRING() micro optimization
Dmitry Stogov [Thu, 7 Dec 2017 11:59:42 +0000 (14:59 +0300)]
Avoid duplication
Dmitry Stogov [Thu, 7 Dec 2017 09:27:16 +0000 (12:27 +0300)]
Intern string constant values
Dmitry Stogov [Thu, 7 Dec 2017 09:26:48 +0000 (12:26 +0300)]
typo
Dmitry Stogov [Thu, 7 Dec 2017 09:00:41 +0000 (12:00 +0300)]
Avoid unnecessary duplication
Dmitry Stogov [Thu, 7 Dec 2017 08:59:58 +0000 (11:59 +0300)]
Wrap functions necessary only for ZTS build with #ifdef
Dmitry Stogov [Wed, 6 Dec 2017 22:52:27 +0000 (01:52 +0300)]
Reduced VM code size.
Made FETCH_DIM/OBJ_FUNC_ARG to dispatch ro corresponding FETCH_DIM/OBJ_R/_W handlers.
Merged TMP and VAR specializations of ZEND_FETCH_OBJ_R.
Allowed dispatching to less specialized handelrs and helpers. (e.g. from OP_TMP_CONST to OP_TMPVAR_CONST).
Nikita Popov [Wed, 6 Dec 2017 22:32:39 +0000 (23:32 +0100)]
Fixed bug #74372
Nikita Popov [Wed, 6 Dec 2017 22:15:09 +0000 (23:15 +0100)]
Fix movzb operand size
Anatol Belski [Wed, 6 Dec 2017 15:04:57 +0000 (16:04 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix yet one data race in PCRE
Anatol Belski [Wed, 6 Dec 2017 15:04:22 +0000 (16:04 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix yet one data race in PCRE
Anatol Belski [Wed, 6 Dec 2017 14:59:21 +0000 (15:59 +0100)]
Fix yet one data race in PCRE
PCRE 8.x initializes the pattern compiler on demand during the first
pcre_study call. It could be worse, but since the compiled patterns are
cached, the locking impact is minimal. PCRE 10.x always compiles the
pattern and thread sanitizer doesn't complain about the compiler
initialization, thus the newer PCRE version seems to be unafected.
Dmitry Stogov [Wed, 6 Dec 2017 14:47:30 +0000 (17:47 +0300)]
Use local labels
Dmitry Stogov [Wed, 6 Dec 2017 14:42:47 +0000 (17:42 +0300)]
Use inline assembler for fast_memcpy()
Dmitry Stogov [Wed, 6 Dec 2017 12:32:31 +0000 (15:32 +0300)]
Fixed gcc assembler constaints.
Added less efecient replacement functions for valgrind, to prevent warnings about uninitialized tail.
Dmitry Stogov [Tue, 5 Dec 2017 23:53:30 +0000 (02:53 +0300)]
Optimization of init_func_execute_data()
Anatol Belski [Tue, 5 Dec 2017 17:35:16 +0000 (18:35 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix use after free revealed by phpdbg
Anatol Belski [Tue, 5 Dec 2017 17:34:39 +0000 (18:34 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix use after free revealed by phpdbg
Anatol Belski [Tue, 5 Dec 2017 17:32:32 +0000 (18:32 +0100)]
Fix use after free revealed by phpdbg
Anatol Belski [Tue, 5 Dec 2017 16:41:08 +0000 (17:41 +0100)]
Fixed bug #75601 Thread race in PCRE JIT support
Anatol Belski [Tue, 5 Dec 2017 16:40:39 +0000 (17:40 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #75601 Thread race in PCRE JIT support
Fixed bug #75601 Thread race in PCRE JIT support
bump versions
Anatol Belski [Tue, 5 Dec 2017 16:40:00 +0000 (17:40 +0100)]
Fixed bug #75601 Thread race in PCRE JIT support
Anatol Belski [Tue, 5 Dec 2017 16:39:28 +0000 (17:39 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixed bug #75601 Thread race in PCRE JIT support
bump versions
Anatol Belski [Tue, 5 Dec 2017 16:38:18 +0000 (17:38 +0100)]
Fixed bug #75601 Thread race in PCRE JIT support
Dmitry Stogov [Tue, 5 Dec 2017 14:40:39 +0000 (17:40 +0300)]
Removed useless LOAD_OPLINE()
krakjoe [Tue, 5 Dec 2017 13:18:48 +0000 (14:18 +0100)]
bump versions
Peter Kokot [Thu, 30 Nov 2017 23:48:50 +0000 (00:48 +0100)]
Remove tutorial for building IMAP on windows
Procedure for building PHP on Windows systems has changed during the PHP
evolution and is for the time being available on wiki pages outside of
this code repository.
Anatol Belski [Tue, 5 Dec 2017 08:01:46 +0000 (09:01 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
[ci skip] update NEWS
[ci skip] update NEWS
Anatol Belski [Tue, 5 Dec 2017 08:01:02 +0000 (09:01 +0100)]
[ci skip] update NEWS
Anatol Belski [Tue, 5 Dec 2017 08:00:12 +0000 (09:00 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
[ci skip] update NEWS
Anatol Belski [Tue, 5 Dec 2017 07:59:33 +0000 (08:59 +0100)]
[ci skip] update NEWS
Anatol Belski [Tue, 5 Dec 2017 07:52:59 +0000 (08:52 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
7.0.28 is next
Anatol Belski [Tue, 5 Dec 2017 07:52:40 +0000 (08:52 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
7.0.28 is next
Anatol Belski [Tue, 5 Dec 2017 07:52:14 +0000 (08:52 +0100)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
7.0.28 is next
Anatol Belski [Tue, 5 Dec 2017 07:51:30 +0000 (08:51 +0100)]
7.0.28 is next
Anatol Belski [Tue, 5 Dec 2017 07:42:41 +0000 (08:42 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
[ci skip] update NEWS
Anatol Belski [Tue, 5 Dec 2017 07:42:25 +0000 (08:42 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
[ci skip] update NEWS
Anatol Belski [Tue, 5 Dec 2017 07:42:02 +0000 (08:42 +0100)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
[ci skip] update NEWS
Anatol Belski [Tue, 5 Dec 2017 07:41:24 +0000 (08:41 +0100)]
[ci skip] update NEWS
Dmitry Stogov [Mon, 4 Dec 2017 23:41:12 +0000 (02:41 +0300)]
Use unsigned comparison instructions
Dmitry Stogov [Mon, 4 Dec 2017 20:40:54 +0000 (23:40 +0300)]
Implemented x86 and x86_64 assembler functions for zend_string equality check.
They take into account zend_string layout (value alignment and trailing padding) and perform comparison by double or quad words.
Nuno Lopes [Mon, 4 Dec 2017 20:12:20 +0000 (15:12 -0500)]
fix build with older gccs: label attributes are only available with gcc 5+
Kalle Sommer Nielsen [Mon, 4 Dec 2017 16:39:08 +0000 (17:39 +0100)]
Introduce ZEND_EXTENSION() to the Windows build system
Zend Extensions should now be declared in their config.w32 with a ZEND_EXTENSION() call instead of EXTENSION(), the parameters sent is identical.
For a cross version compatible config.w32, the following will do:
if (typeof(ZEND_EXTENSION) == 'undefined') {
EXTENSION(...);
} else {
ZEND_EXTENSION(...);
}
Kalle Sommer Nielsen [Mon, 4 Dec 2017 15:43:48 +0000 (16:43 +0100)]
Remove this redundant define
Dmitry Stogov [Mon, 4 Dec 2017 14:23:34 +0000 (17:23 +0300)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #75608 ("Narrowing occurred during type inference" error)
Dmitry Stogov [Mon, 4 Dec 2017 14:22:28 +0000 (17:22 +0300)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixed bug #75608 ("Narrowing occurred during type inference" error)
Dmitry Stogov [Mon, 4 Dec 2017 14:22:06 +0000 (17:22 +0300)]
Fixed bug #75608 ("Narrowing occurred during type inference" error)
Dmitry Stogov [Mon, 4 Dec 2017 14:17:02 +0000 (17:17 +0300)]
Use zend_string_equal*() API for zend_string equality check instead of direct memcmp() usage.
Anatol Belski [Mon, 4 Dec 2017 13:20:25 +0000 (14:20 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Use dtor unconditionally in error case
Anatol Belski [Mon, 4 Dec 2017 13:16:45 +0000 (14:16 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Use dtor unconditionally in error case
Anatol Belski [Mon, 4 Dec 2017 13:16:23 +0000 (14:16 +0100)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Use dtor unconditionally in error case