]> granicus.if.org Git - php/log
php
7 years agoMove constants into read-only data segment
Dmitry Stogov [Thu, 14 Dec 2017 19:14:36 +0000 (22:14 +0300)]
Move constants into read-only data segment

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Thu, 14 Dec 2017 17:18:54 +0000 (18:18 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  [ci skip] update NEWS
  [ci skip] update NEWS

7 years ago[ci skip] update NEWS
Anatol Belski [Thu, 14 Dec 2017 17:18:26 +0000 (18:18 +0100)]
[ci skip] update NEWS

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Thu, 14 Dec 2017 17:17:54 +0000 (18:17 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  [ci skip] update NEWS

7 years ago[ci skip] update NEWS
Anatol Belski [Thu, 14 Dec 2017 17:17:19 +0000 (18:17 +0100)]
[ci skip] update NEWS

7 years agoMove constants into read-only data segment
Dmitry Stogov [Thu, 14 Dec 2017 15:43:44 +0000 (18:43 +0300)]
Move constants into read-only data segment

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Thu, 14 Dec 2017 15:18:33 +0000 (16:18 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fixed bug #75679 Path 260 character problem

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Thu, 14 Dec 2017 15:17:37 +0000 (16:17 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed bug #75679 Path 260 character problem

7 years agoFixed bug #75679 Path 260 character problem
Anatol Belski [Thu, 14 Dec 2017 15:16:50 +0000 (16:16 +0100)]
Fixed bug #75679 Path 260 character problem

7 years agoMove zend_object_iterator_funcs structures into read-only data segment
Dmitry Stogov [Thu, 14 Dec 2017 11:21:22 +0000 (14:21 +0300)]
Move zend_object_iterator_funcs structures into read-only data segment

7 years agoUse fastcall calling convention for objects and resources API
Dmitry Stogov [Thu, 14 Dec 2017 10:50:39 +0000 (13:50 +0300)]
Use fastcall calling convention for objects and resources API

7 years agoManual loop optimizaton.
Dmitry Stogov [Thu, 14 Dec 2017 00:39:22 +0000 (03:39 +0300)]
Manual loop optimizaton.
Cost of the loops body is still the same, but the loop headers are improved.

7 years agoDisable some "bad" GCC optimizations
Dmitry Stogov [Thu, 14 Dec 2017 00:25:20 +0000 (03:25 +0300)]
Disable some "bad" GCC optimizations

7 years agoImproved branch prediction and code locality
Dmitry Stogov [Wed, 13 Dec 2017 23:22:07 +0000 (02:22 +0300)]
Improved branch prediction and code locality

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Wed, 13 Dec 2017 20:29:13 +0000 (21:29 +0100)]
Merge branch 'PHP-7.2'

7 years agoSet default value for some properties in generate-phpt
Danilo Correa [Wed, 13 Dec 2017 16:52:51 +0000 (14:52 -0200)]
Set default value for some properties in generate-phpt

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Wed, 13 Dec 2017 20:25:38 +0000 (21:25 +0100)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Wed, 13 Dec 2017 20:25:21 +0000 (21:25 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

7 years agoFix copy-and-paste bugs
Levi Morrison [Wed, 13 Dec 2017 05:39:28 +0000 (22:39 -0700)]
Fix copy-and-paste bugs

7 years agoPrep NEWS for PHP 7.2.2
Sara Golemon [Tue, 12 Dec 2017 19:04:27 +0000 (19:04 +0000)]
Prep NEWS for PHP 7.2.2

7 years agotypo
Dmitry Stogov [Tue, 12 Dec 2017 16:01:10 +0000 (19:01 +0300)]
typo

7 years agoAvoid reallocation and double copying of variable names.
Dmitry Stogov [Tue, 12 Dec 2017 10:47:47 +0000 (13:47 +0300)]
Avoid reallocation and double copying of variable names.

7 years agoAdded special cases for array_diff(), when first argument is an empty array or an...
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.

7 years agoUse cheaper API
Dmitry Stogov [Mon, 11 Dec 2017 21:30:51 +0000 (00:30 +0300)]
Use cheaper API

7 years agoUse cheaper functions
Dmitry Stogov [Mon, 11 Dec 2017 20:00:07 +0000 (23:00 +0300)]
Use cheaper functions

7 years agoAdd gmp_kronecker()
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.

7 years agoAdd gmp_perfect_power()
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.

7 years agoAdd gmp_lcm()
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.

7 years agoAdd gmp_binomial()
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.

7 years agoAvoid temporary string creation and destruction.
Dmitry Stogov [Mon, 11 Dec 2017 15:18:30 +0000 (18:18 +0300)]
Avoid temporary string creation and destruction.

7 years agoReduce number of hash collisions during dulicate address detection.
Dmitry Stogov [Mon, 11 Dec 2017 15:16:54 +0000 (18:16 +0300)]
Reduce number of hash collisions during dulicate address detection.

7 years agoMerge branch 'PHP-7.2'
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

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
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

7 years agoSync 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

7 years agoMerge branch 'PHP-7.2'
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

7 years agoAdd 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

7 years agoApply calling convention explicitly to the function, not to the decl.
Anatol Belski [Mon, 11 Dec 2017 11:26:47 +0000 (12:26 +0100)]
Apply calling convention explicitly to the function, not to the decl.

7 years agoUse "fastcal" calling convention for internal PHP functions on x86
Dmitry Stogov [Mon, 11 Dec 2017 07:55:15 +0000 (10:55 +0300)]
Use "fastcal" calling convention for internal PHP functions on x86

7 years agoFix relative constant addressing in file cache
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.

7 years agoRemove outdated TODO files
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]

7 years agoUpdate coding standards
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]

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sat, 9 Dec 2017 18:07:47 +0000 (19:07 +0100)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into 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

7 years agoext/imap/config.m4: fix ac_cv_u8t_decompose check
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>
7 years agoFixed a typo
Javier Eguiluz [Thu, 30 Nov 2017 15:52:29 +0000 (16:52 +0100)]
Fixed a typo

7 years agoMake ini formatting more consistent
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.

7 years agoMake sizeof formatting consistent
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.

7 years agoRemove RAND_RANGE() macro
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().

7 years agoImplement list() reference assignments
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

7 years agoMove temporary allocation to the stack
Anatol Belski [Sat, 9 Dec 2017 12:15:28 +0000 (13:15 +0100)]
Move temporary allocation to the stack

7 years agoFix tests
Anatol Belski [Sat, 9 Dec 2017 11:57:37 +0000 (12:57 +0100)]
Fix tests

7 years agoUse cheaper ascii conversion for mode
Anatol Belski [Sat, 9 Dec 2017 11:38:19 +0000 (12:38 +0100)]
Use cheaper ascii conversion for mode

7 years agoRevamp fopen implementation, rely on open
Anatol Belski [Sat, 9 Dec 2017 10:45:21 +0000 (11:45 +0100)]
Revamp fopen implementation, rely on open

7 years agoPut missing signature into header
Anatol Belski [Fri, 8 Dec 2017 23:26:18 +0000 (00:26 +0100)]
Put missing signature into header

7 years agoCleanup
Anatol Belski [Fri, 8 Dec 2017 23:21:23 +0000 (00:21 +0100)]
Cleanup

7 years agoRework mkdir impl and expose wide char variant
Anatol Belski [Fri, 8 Dec 2017 23:11:33 +0000 (00:11 +0100)]
Rework mkdir impl and expose wide char variant

7 years agoRemove dead code
Anatol Belski [Fri, 8 Dec 2017 21:59:00 +0000 (22:59 +0100)]
Remove dead code

7 years agoMove declarations
Anatol Belski [Fri, 8 Dec 2017 15:47:39 +0000 (16:47 +0100)]
Move declarations

7 years agoImprove ioutil access impl and refactor tsrm_win32_access
Anatol Belski [Fri, 8 Dec 2017 15:35:45 +0000 (16:35 +0100)]
Improve ioutil access impl and refactor tsrm_win32_access

7 years agoRevamp unlink() implementation and improve error handling
Anatol Belski [Thu, 7 Dec 2017 22:05:19 +0000 (23:05 +0100)]
Revamp unlink() implementation and improve error handling

7 years agoAllow delete-sharing mode for CreateFile by default
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.

7 years agoImproved shared interned string table implementation (use less memory and more CPU...
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)

7 years agoUse cheaper SEPARATE macros
Dmitry Stogov [Thu, 7 Dec 2017 19:35:17 +0000 (22:35 +0300)]
Use cheaper SEPARATE macros

7 years agoRemoved useless separations
Dmitry Stogov [Thu, 7 Dec 2017 19:34:38 +0000 (22:34 +0300)]
Removed useless separations

7 years agoCleanup type conversion
Dmitry Stogov [Thu, 7 Dec 2017 19:34:08 +0000 (22:34 +0300)]
Cleanup type conversion

7 years agoCleanup type conversion
Dmitry Stogov [Thu, 7 Dec 2017 19:01:41 +0000 (22:01 +0300)]
Cleanup type conversion

7 years agoCleanup type conversion
Dmitry Stogov [Thu, 7 Dec 2017 16:24:55 +0000 (19:24 +0300)]
Cleanup type conversion

7 years agoUse array specific functions
Dmitry Stogov [Thu, 7 Dec 2017 12:20:17 +0000 (15:20 +0300)]
Use array specific functions

7 years agoAdded assertion
Dmitry Stogov [Thu, 7 Dec 2017 12:01:23 +0000 (15:01 +0300)]
Added assertion

7 years agoSEPARATE_STRING() micro optimization
Dmitry Stogov [Thu, 7 Dec 2017 12:01:04 +0000 (15:01 +0300)]
SEPARATE_STRING() micro optimization

7 years agoAvoid duplication
Dmitry Stogov [Thu, 7 Dec 2017 11:59:42 +0000 (14:59 +0300)]
Avoid duplication

7 years agoIntern string constant values
Dmitry Stogov [Thu, 7 Dec 2017 09:27:16 +0000 (12:27 +0300)]
Intern string constant values

7 years agotypo
Dmitry Stogov [Thu, 7 Dec 2017 09:26:48 +0000 (12:26 +0300)]
typo

7 years agoAvoid unnecessary duplication
Dmitry Stogov [Thu, 7 Dec 2017 09:00:41 +0000 (12:00 +0300)]
Avoid unnecessary duplication

7 years agoWrap functions necessary only for ZTS build with #ifdef
Dmitry Stogov [Thu, 7 Dec 2017 08:59:58 +0000 (11:59 +0300)]
Wrap functions necessary only for ZTS build with #ifdef

7 years agoReduced VM code size.
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).

7 years agoFixed bug #74372
Nikita Popov [Wed, 6 Dec 2017 22:32:39 +0000 (23:32 +0100)]
Fixed bug #74372

7 years agoFix movzb operand size
Nikita Popov [Wed, 6 Dec 2017 22:15:09 +0000 (23:15 +0100)]
Fix movzb operand size

7 years agoMerge branch 'PHP-7.2'
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

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
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

7 years agoFix 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.

7 years agoUse local labels
Dmitry Stogov [Wed, 6 Dec 2017 14:47:30 +0000 (17:47 +0300)]
Use local labels

7 years agoUse inline assembler for fast_memcpy()
Dmitry Stogov [Wed, 6 Dec 2017 14:42:47 +0000 (17:42 +0300)]
Use inline assembler for fast_memcpy()

7 years agoFixed gcc assembler constaints.
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.

7 years agoOptimization of init_func_execute_data()
Dmitry Stogov [Tue, 5 Dec 2017 23:53:30 +0000 (02:53 +0300)]
Optimization of init_func_execute_data()

7 years agoMerge branch 'PHP-7.2'
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

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
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

7 years agoFix 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

7 years agoFixed bug #75601 Thread race in PCRE JIT support
Anatol Belski [Tue, 5 Dec 2017 16:41:08 +0000 (17:41 +0100)]
Fixed bug #75601 Thread race in PCRE JIT support

7 years agoMerge branch 'PHP-7.2'
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

7 years agoFixed bug #75601 Thread race in PCRE JIT support
Anatol Belski [Tue, 5 Dec 2017 16:40:00 +0000 (17:40 +0100)]
Fixed bug #75601 Thread race in PCRE JIT support

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
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

7 years agoFixed bug #75601 Thread race in PCRE JIT support
Anatol Belski [Tue, 5 Dec 2017 16:38:18 +0000 (17:38 +0100)]
Fixed bug #75601 Thread race in PCRE JIT support

7 years agoRemoved useless LOAD_OPLINE()
Dmitry Stogov [Tue, 5 Dec 2017 14:40:39 +0000 (17:40 +0300)]
Removed useless LOAD_OPLINE()

7 years agobump versions
krakjoe [Tue, 5 Dec 2017 13:18:48 +0000 (14:18 +0100)]
bump versions

7 years agoRemove tutorial for building IMAP on windows
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.

7 years agoMerge branch 'PHP-7.2'
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

7 years ago[ci skip] update NEWS
Anatol Belski [Tue, 5 Dec 2017 08:01:02 +0000 (09:01 +0100)]
[ci skip] update NEWS

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
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

7 years ago[ci skip] update NEWS
Anatol Belski [Tue, 5 Dec 2017 07:59:33 +0000 (08:59 +0100)]
[ci skip] update NEWS