]> granicus.if.org Git - php/log
php
7 years agoAdded integrity check before dfa
Xinchen Hui [Sun, 17 Dec 2017 01:48:27 +0000 (09:48 +0800)]
Added integrity check before dfa

7 years agoMerge branch 'PHP-7.2'
Xinchen Hui [Sun, 17 Dec 2017 01:42:18 +0000 (09:42 +0800)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Updated NEWS

7 years agoUpdated NEWS
Xinchen Hui [Sun, 17 Dec 2017 01:42:01 +0000 (09:42 +0800)]
Updated NEWS

7 years agoTransmit phpdbg webdata len in little-endian
Sebastian Ramadan [Sat, 16 Dec 2017 23:21:47 +0000 (00:21 +0100)]
Transmit phpdbg webdata len in little-endian

Rather than using machine-endianness through a UB cast.

7 years agoImprove explicit_bzero implementation
David Carlier [Sat, 9 Dec 2017 22:28:21 +0000 (22:28 +0000)]
Improve explicit_bzero implementation

Using the weak symbol explicit_bzero_hook does not work if LTO is
enabled. Instead avoid memset optimizations using an asm memory
barrier.

Use a fallback implementation where the memory is zeroed through
volatile.

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sat, 16 Dec 2017 21:33:06 +0000 (22:33 +0100)]
Merge branch 'PHP-7.2'

7 years agoFixed bug #75614
Nikita Popov [Sat, 16 Dec 2017 21:31:10 +0000 (22:31 +0100)]
Fixed bug #75614

Replace non-standard == with = in shell scripts.

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sat, 16 Dec 2017 21:04:38 +0000 (22:04 +0100)]
Merge branch 'PHP-7.2'

7 years agoFixed bug #75698
Nikita Popov [Sat, 16 Dec 2017 21:04:18 +0000 (22:04 +0100)]
Fixed bug #75698

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

7 years agoAdd test for bug #75681
Nikita Popov [Sat, 16 Dec 2017 20:24:26 +0000 (21:24 +0100)]
Add test for bug #75681

The issue itself has been fixed by 8a4532319dfae83ff16b2d2bbfeed062924c3c27.

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sat, 16 Dec 2017 20:12:57 +0000 (21:12 +0100)]
Merge branch 'PHP-7.2'

7 years agoImprove fix for bug #75687
Nikita Popov [Sat, 16 Dec 2017 20:11:40 +0000 (21:11 +0100)]
Improve fix for bug #75687

Adding an (incorrect) UNDEF here may cause subsequent narrowing in
other places.

Instead, let's try to handle this edge-case once for all
instructions...

7 years agoFix duplicate NEWS entry
Nikita Popov [Sat, 16 Dec 2017 16:40:32 +0000 (17:40 +0100)]
Fix duplicate NEWS entry

Also add an UPGRADING note while at it, as this is potentially
BC breaking.

[ci skip]

7 years agoFixed bug #75355: preg_quote() does not quote # control character
Michael Moravec [Tue, 10 Oct 2017 17:00:29 +0000 (19:00 +0200)]
Fixed bug #75355: preg_quote() does not quote # control character

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sat, 16 Dec 2017 16:21:06 +0000 (17:21 +0100)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Sat, 16 Dec 2017 16:21:01 +0000 (17:21 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

7 years agoMove includes in ps_title.c
David Carlier [Mon, 2 Oct 2017 13:42:58 +0000 (13:42 +0000)]
Move includes in ps_title.c

The HAVE_UNISTD_H check has to be after including config.h.

Also include sys/types.h, which may be needed for setproctitle.

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sat, 16 Dec 2017 16:10:09 +0000 (17:10 +0100)]
Merge branch 'PHP-7.2'

7 years agoFix #75607 - Check if existing static trait property is a ref before comparing
Pedro Magalhães [Fri, 1 Dec 2017 16:08:11 +0000 (16:08 +0000)]
Fix #75607 - Check if existing static trait property is a ref before comparing

7 years agoMerge branch 'PHP-7.2'
Xinchen Hui [Sat, 16 Dec 2017 15:59:44 +0000 (23:59 +0800)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fixed bug #75687 (var 8 (TMP) has array key type but not value type)

7 years agoFixed bug #75687 (var 8 (TMP) has array key type but not value type)
Xinchen Hui [Sat, 16 Dec 2017 15:59:10 +0000 (23:59 +0800)]
Fixed bug #75687 (var 8 (TMP) has array key type but not value type)

7 years agoFix some format specificers
David Carlier [Sat, 9 Dec 2017 10:37:41 +0000 (10:37 +0000)]
Fix some format specificers

time_t is of 64 bits type on some systems as well.

7 years agoUse known string "file" in stream layer
Markus Staab [Sat, 16 Dec 2017 12:25:05 +0000 (13:25 +0100)]
Use known string "file" in stream layer

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Fri, 15 Dec 2017 21:04:40 +0000 (22:04 +0100)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Fri, 15 Dec 2017 21:04:24 +0000 (22:04 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

7 years agoFix bug #69727: Support SOURCE_DATE_EPOCH for Build Date
Jelle van der Waa [Fri, 8 Dec 2017 18:19:22 +0000 (19:19 +0100)]
Fix bug #69727: Support SOURCE_DATE_EPOCH for Build Date

When checking for reproducible builds php is build twice, once with the
current date and once with a date in the future. To keep the build date
supported and reproducible builds possible, SOURCE_DATE_EPOCH is
introduced which can be set to the same epoch value for both builds.

7 years agoFix const qualifier warning
Nikita Popov [Fri, 15 Dec 2017 20:58:52 +0000 (21:58 +0100)]
Fix const qualifier warning

7 years agoFix bug #75677: Drop fastcall attribute on variadic function
Li-Wen Hsu [Wed, 13 Dec 2017 19:19:43 +0000 (03:19 +0800)]
Fix bug #75677: Drop fastcall attribute on variadic function

Fastcall generally doesn't make sense on variadic functions. For
clang in particular this eliminates a "fastcall calling convention
ignored on variadic function" warning.

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Fri, 15 Dec 2017 15:27:10 +0000 (16:27 +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 [Fri, 15 Dec 2017 15:26:40 +0000 (16:26 +0100)]
[ci skip] update NEWS

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Fri, 15 Dec 2017 15:26:21 +0000 (16:26 +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 [Fri, 15 Dec 2017 15:25:36 +0000 (16:25 +0100)]
[ci skip] update NEWS

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Fri, 15 Dec 2017 14:35:07 +0000 (15:35 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fixed bug #75671 pg_version() crashes when called on a connection to cockroach

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Fri, 15 Dec 2017 14:34:44 +0000 (15:34 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed bug #75671 pg_version() crashes when called on a connection to cockroach

7 years agoFixed bug #75671 pg_version() crashes when called on a connection to cockroach
Anatol Belski [Fri, 15 Dec 2017 14:33:14 +0000 (15:33 +0100)]
Fixed bug #75671 pg_version() crashes when called on a connection to cockroach

7 years agoDrop unused code
Anatol Belski [Fri, 15 Dec 2017 14:00:20 +0000 (15:00 +0100)]
Drop unused code

7 years agoDrop unused code
Anatol Belski [Fri, 15 Dec 2017 13:58:43 +0000 (14:58 +0100)]
Drop unused code

7 years agoModernize realpath and integrate quick variant into virtual_file_ex
Anatol Belski [Fri, 15 Dec 2017 12:23:34 +0000 (13:23 +0100)]
Modernize realpath and integrate quick variant into virtual_file_ex

The slower I/O as a traditional bottleneck on Windows which is
the target of this patch. The recursive path resolution, while being
an allround solution, is expensive when it comes to the common case.
Files with proper ACLs set can be resolved in one go by usage of specific
API. Those are available since Vista, so actually can be called old. Those
simpler api is used for the cases where no CWD_EXPAND is requested. For
the cases where ACLs are improper, the existing solution based on
FindFirstFile still does good job also partially providing quirks. Cases
involing reparse tags and other non local filesystems are also partially
server by new APIs.

The approach uses both APIs - the quick one for the common case still
integrating realpath cache, and the existing one as a fallback. The tests
show the I/O load drop on the realpath resolution part due to less
system calls for the sub part resolution of paths. In most case it is
justified, as the sub parts were otherwise cached or unused as well. The
realpath() implementation in ioutil is also closer to the POSIX.

7 years agoArray addition is not commutative
Dmitry Stogov [Fri, 15 Dec 2017 11:40:19 +0000 (14:40 +0300)]
Array addition is not commutative

7 years agoRemove duplicate handlers for commutative operations
Dmitry Stogov [Fri, 15 Dec 2017 10:42:54 +0000 (13:42 +0300)]
Remove duplicate handlers for commutative operations

7 years agoMove constants into read-only data segment
Dmitry Stogov [Thu, 14 Dec 2017 22:55:00 +0000 (01:55 +0300)]
Move constants into read-only data segment

7 years agotypo
Dmitry Stogov [Thu, 14 Dec 2017 20:56:55 +0000 (23:56 +0300)]
typo

7 years agoFixed stream handler override
Dmitry Stogov [Thu, 14 Dec 2017 20:55:57 +0000 (23:55 +0300)]
Fixed stream handler override

7 years agoTurn "pdo_stmt_methods" into constants.
Dmitry Stogov [Thu, 14 Dec 2017 19:59:58 +0000 (22:59 +0300)]
Turn "pdo_stmt_methods" into constants.

7 years agoTurn "php_stream_wrapper"s into constants
Dmitry Stogov [Thu, 14 Dec 2017 19:46:22 +0000 (22:46 +0300)]
Turn "php_stream_wrapper"s into constants
Keep non-constant "php_stream_wrapper"s in API functions and callbacks for compatibility.

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