]> granicus.if.org Git - php/log
php
6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Thu, 27 Dec 2018 14:34:22 +0000 (15:34 +0100)]
Merge branch 'PHP-7.3'

6 years agoFix #77360: class_uses causes segfault
Lauri Kenttä [Thu, 27 Dec 2018 14:16:29 +0000 (16:16 +0200)]
Fix #77360: class_uses causes segfault

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Thu, 27 Dec 2018 14:29:51 +0000 (15:29 +0100)]
Merge branch 'PHP-7.3'

6 years agoFix #77359: spl_autoload causes segfault
Lauri Kenttä [Thu, 27 Dec 2018 13:47:33 +0000 (15:47 +0200)]
Fix #77359: spl_autoload causes segfault

Use the correct function to free the string.

6 years agoRespect static method visibility
Dmitry Stogov [Thu, 27 Dec 2018 07:42:52 +0000 (10:42 +0300)]
Respect static method visibility

6 years agoTune ARRAY_KEY_EXISTS opcode handler for speed and code size
Dmitry Stogov [Wed, 26 Dec 2018 23:34:52 +0000 (02:34 +0300)]
Tune ARRAY_KEY_EXISTS opcode handler for speed and code size

6 years agoAdd performance improvement section to UPGRADING
Nikita Popov [Wed, 26 Dec 2018 21:26:01 +0000 (22:26 +0100)]
Add performance improvement section to UPGRADING

[ci skip]

6 years agoFixed ext/spl/tests/bug61347.phpt failure introduced by ZEND_ARRAY_KEY_EXISTS opcode
Dmitry Stogov [Wed, 26 Dec 2018 21:20:20 +0000 (00:20 +0300)]
Fixed ext/spl/tests/bug61347.phpt failure introduced by ZEND_ARRAY_KEY_EXISTS opcode

6 years agoAdd SCCP support for ZEND_ARRAY_KEY_EXISTS
Nikita Popov [Tue, 21 Aug 2018 06:56:17 +0000 (08:56 +0200)]
Add SCCP support for ZEND_ARRAY_KEY_EXISTS

6 years agoImplement ZEND_ARRAY_KEY_EXISTS opcode to speed up array_key_exists()
Michael Moravec [Mon, 2 Jul 2018 21:00:32 +0000 (23:00 +0200)]
Implement ZEND_ARRAY_KEY_EXISTS opcode to speed up array_key_exists()

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 26 Dec 2018 19:46:16 +0000 (20:46 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Update NEWS [ci skip]

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Wed, 26 Dec 2018 19:45:19 +0000 (20:45 +0100)]
Update NEWS [ci skip]

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 26 Dec 2018 19:08:06 +0000 (20:08 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Update NEWS [ci skip]
  Update NEWS [ci skip]

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Wed, 26 Dec 2018 19:07:31 +0000 (20:07 +0100)]
Update NEWS [ci skip]

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Wed, 26 Dec 2018 19:06:01 +0000 (20:06 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update NEWS [ci skip]

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Wed, 26 Dec 2018 19:05:15 +0000 (20:05 +0100)]
Update NEWS [ci skip]

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 26 Dec 2018 18:03:04 +0000 (19:03 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Initialize s_un (sockaddr_un) to zero before using it. Fixes #76839.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Wed, 26 Dec 2018 18:01:36 +0000 (19:01 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Initialize s_un (sockaddr_un) to zero before using it. Fixes #76839.

6 years agoInitialize s_un (sockaddr_un) to zero before using it. Fixes #76839.
Michael Meyer [Wed, 5 Sep 2018 14:21:36 +0000 (10:21 -0400)]
Initialize s_un (sockaddr_un) to zero before using it. Fixes #76839.

6 years agoRemove preg_options param from pcre_get_compiled_regex()
Nikita Popov [Wed, 26 Dec 2018 16:20:13 +0000 (17:20 +0100)]
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.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Wed, 26 Dec 2018 16:13:21 +0000 (17:13 +0100)]
Merge branch 'PHP-7.3'

6 years agoFixed bug #77338
Nikita Popov [Wed, 26 Dec 2018 16:11:27 +0000 (17:11 +0100)]
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.

6 years agoMigrate ext/zlib to use pkg-config
Nikita Popov [Wed, 26 Dec 2018 13:40:30 +0000 (14:40 +0100)]
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.

6 years agoReduce agressive inlining
Dmitry Stogov [Wed, 26 Dec 2018 15:29:04 +0000 (18:29 +0300)]
Reduce agressive inlining

6 years agoRemoved transparent wrapper
Dmitry Stogov [Wed, 26 Dec 2018 14:34:03 +0000 (17:34 +0300)]
Removed transparent wrapper

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 26 Dec 2018 13:19:04 +0000 (14:19 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Update binary SDK version for AppVeyor

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Wed, 26 Dec 2018 13:17:56 +0000 (14:17 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update binary SDK version for AppVeyor

6 years agoUpdate binary SDK version for AppVeyor
Anatol Belski [Wed, 26 Dec 2018 13:15:21 +0000 (14:15 +0100)]
Update binary SDK version for AppVeyor

6 years agoRequire pkg-config for external PCRE
Eli Schwartz [Mon, 22 Oct 2018 17:07:44 +0000 (13:07 -0400)]
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.

6 years agoext/gd: use --with instead of --enable
Eli Schwartz [Wed, 7 Nov 2018 20:13:35 +0000 (15:13 -0500)]
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

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 26 Dec 2018 12:05:46 +0000 (13:05 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fixed bug #77317 __DIR__, __FILE__, realpath() reveal physical path for subst virtual drive

6 years agoFixed bug #77317 __DIR__, __FILE__, realpath() reveal physical path for subst virtual...
Anatol Belski [Wed, 26 Dec 2018 11:49:49 +0000 (12:49 +0100)]
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.

6 years agoMerge branch 'PHP-7.3'
Dmitry Stogov [Wed, 26 Dec 2018 10:10:02 +0000 (13:10 +0300)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Respect EG(vm_stack_page_size)

6 years agoRespect EG(vm_stack_page_size)
Dmitry Stogov [Wed, 26 Dec 2018 10:09:32 +0000 (13:09 +0300)]
Respect EG(vm_stack_page_size)

6 years agoCreate object only after parameter checks
Dmitry Stogov [Wed, 26 Dec 2018 10:06:33 +0000 (13:06 +0300)]
Create object only after parameter checks

6 years agoRemoved useless zval_ptr_dtor(return_value)
Dmitry Stogov [Wed, 26 Dec 2018 09:58:11 +0000 (12:58 +0300)]
Removed useless zval_ptr_dtor(return_value)

6 years agoMicro optimization
Dmitry Stogov [Wed, 26 Dec 2018 09:30:30 +0000 (12:30 +0300)]
Micro optimization

6 years agoFixed crashes introduced by 7e597f48e9fda982e930e4f617d2b2d98d8878a5 (only master...
Dmitry Stogov [Tue, 25 Dec 2018 20:30:59 +0000 (23:30 +0300)]
Fixed crashes introduced by 7e597f48e9fda982e930e4f617d2b2d98d8878a5 (only master was affected)

6 years agoRemoved dead condition
Dmitry Stogov [Tue, 25 Dec 2018 16:23:40 +0000 (19:23 +0300)]
Removed dead condition

6 years agoAvoid code duplication
Dmitry Stogov [Tue, 25 Dec 2018 14:48:29 +0000 (17:48 +0300)]
Avoid code duplication

6 years agoMerge branch 'PHP-7.3'
Dmitry Stogov [Mon, 24 Dec 2018 10:45:52 +0000 (13:45 +0300)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Backport later interned strings destruction.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Dmitry Stogov [Mon, 24 Dec 2018 10:45:40 +0000 (13:45 +0300)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Backport later interned strings destruction.

6 years agoBackport later interned strings destruction.
Dmitry Stogov [Mon, 24 Dec 2018 10:45:02 +0000 (13:45 +0300)]
Backport later interned strings destruction.

6 years agoMerge branch 'PHP-7.3'
Dmitry Stogov [Mon, 24 Dec 2018 10:25:24 +0000 (13:25 +0300)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fixed bug #77339 (__callStatic may get incorrect arguments)

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Dmitry Stogov [Mon, 24 Dec 2018 10:23:47 +0000 (13:23 +0300)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fixed bug #77339 (__callStatic may get incorrect arguments)

6 years agoFixed bug #77339 (__callStatic may get incorrect arguments)
Dmitry Stogov [Mon, 24 Dec 2018 10:22:43 +0000 (13:22 +0300)]
Fixed bug #77339 (__callStatic may get incorrect arguments)

6 years agoAdded note about changes in class declaration opcodes
Dmitry Stogov [Mon, 24 Dec 2018 07:51:48 +0000 (10:51 +0300)]
Added note about changes in class declaration opcodes

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Sun, 23 Dec 2018 19:21:16 +0000 (20:21 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Sun, 23 Dec 2018 19:20:53 +0000 (20:20 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFix invalid efree in browscap
Nikita Popov [Sun, 23 Dec 2018 19:20:04 +0000 (20:20 +0100)]
Fix invalid efree in browscap

Related to bug #77338.

6 years agoMerge branch 'PHP-7.3'
Derick Rethans [Sun, 23 Dec 2018 17:57:23 +0000 (17:57 +0000)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'timelib-201801RC3' into PHP-7.3
Derick Rethans [Sun, 23 Dec 2018 17:57:09 +0000 (17:57 +0000)]
Merge branch 'timelib-201801RC3' into PHP-7.3

6 years agoUpdate API use due to changes in timelib 2018.01RC3
Derick Rethans [Sun, 23 Dec 2018 17:54:57 +0000 (17:54 +0000)]
Update API use due to changes in timelib 2018.01RC3

6 years agoUpgrade timelib to 2018.01RC3
Derick Rethans [Sun, 23 Dec 2018 17:54:37 +0000 (17:54 +0000)]
Upgrade timelib to 2018.01RC3

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Fri, 21 Dec 2018 16:47:02 +0000 (17:47 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77298: segfault occurs when add property to unserialized empty ArrayObject

6 years agoFix #77298: segfault occurs when add property to unserialized empty ArrayObject
CHU Zhaowei [Wed, 19 Dec 2018 15:53:48 +0000 (16:53 +0100)]
Fix #77298: segfault occurs when add property to unserialized empty ArrayObject

6 years agoFixed ws
Dmitry Stogov [Fri, 21 Dec 2018 16:03:28 +0000 (19:03 +0300)]
Fixed ws

6 years agoMerge branch 'PHP-7.3'
Dmitry Stogov [Fri, 21 Dec 2018 16:01:36 +0000 (19:01 +0300)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Removed /e modifirer and fixed ws.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Dmitry Stogov [Fri, 21 Dec 2018 16:01:18 +0000 (19:01 +0300)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Removed /e modifirer and fixed ws.

6 years agoRemoved /e modifirer and fixed ws.
Dmitry Stogov [Fri, 21 Dec 2018 15:58:50 +0000 (18:58 +0300)]
Removed /e modifirer and fixed ws.

6 years agoAdded specialized code for small arrays
Dmitry Stogov [Thu, 20 Dec 2018 14:55:01 +0000 (17:55 +0300)]
Added specialized code for small arrays

6 years agoAdded specialized code for small arrays
Dmitry Stogov [Wed, 19 Dec 2018 14:40:34 +0000 (17:40 +0300)]
Added specialized code for small arrays

6 years agoReuse add_property_zval_ex() instead of code duplication
Dmitry Stogov [Wed, 19 Dec 2018 14:24:56 +0000 (17:24 +0300)]
Reuse add_property_zval_ex() instead of code duplication

6 years agoRemoved add_get_assoc_*() and add_get_index_*() API functions
Dmitry Stogov [Wed, 19 Dec 2018 13:47:48 +0000 (16:47 +0300)]
Removed add_get_assoc_*() and add_get_index_*() API functions

6 years agoReplace add_index_zval() and add_next_index_zval() functions by macros
Dmitry Stogov [Wed, 19 Dec 2018 13:43:38 +0000 (16:43 +0300)]
Replace add_index_zval() and add_next_index_zval() functions by macros

6 years agoFixed compilation warnings
Dmitry Stogov [Wed, 19 Dec 2018 13:15:49 +0000 (16:15 +0300)]
Fixed compilation warnings

6 years agoReplace zend_hash_apply... with ZEND_HASH_FOREACH...
Dmitry Stogov [Tue, 18 Dec 2018 23:49:56 +0000 (02:49 +0300)]
Replace zend_hash_apply... with ZEND_HASH_FOREACH...

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Tue, 18 Dec 2018 22:23:40 +0000 (23:23 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] Add missing entry for bug 77020

6 years ago[ci skip] Add missing entry for bug 77020
Christoph M. Becker [Tue, 18 Dec 2018 22:21:51 +0000 (23:21 +0100)]
[ci skip] Add missing entry for bug 77020

6 years agoReorder conditions
Dmitry Stogov [Tue, 18 Dec 2018 20:23:44 +0000 (23:23 +0300)]
Reorder conditions

6 years agoMerge branch 'PHP-7.3'
Remi Collet [Tue, 18 Dec 2018 15:30:09 +0000 (16:30 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  missing entry for #77020

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Tue, 18 Dec 2018 15:29:53 +0000 (16:29 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  missing entry for #77020

6 years ago missing entry for #77020
Remi Collet [Tue, 18 Dec 2018 15:29:31 +0000 (16:29 +0100)]
 missing entry for #77020

6 years agoReduce executor size
Dmitry Stogov [Tue, 18 Dec 2018 14:34:18 +0000 (17:34 +0300)]
Reduce executor size

6 years agoMerge branch 'PHP-7.3'
Remi Collet [Tue, 18 Dec 2018 12:12:25 +0000 (13:12 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  bump to 7.2.15-dev

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Tue, 18 Dec 2018 12:12:05 +0000 (13:12 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  bump to 7.2.15-dev

6 years agobump to 7.2.15-dev
Remi Collet [Tue, 18 Dec 2018 12:11:23 +0000 (13:11 +0100)]
bump to 7.2.15-dev

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Tue, 18 Dec 2018 12:10:35 +0000 (13:10 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] Fix release date

6 years ago[ci skip] Fix release date
Christoph M. Becker [Tue, 18 Dec 2018 12:08:59 +0000 (13:08 +0100)]
[ci skip] Fix release date

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Tue, 18 Dec 2018 11:16:40 +0000 (12:16 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Prepare main branch for 7.3.2

6 years agoPrepare main branch for 7.3.2
Christoph M. Becker [Tue, 18 Dec 2018 11:15:25 +0000 (12:15 +0100)]
Prepare main branch for 7.3.2

6 years agoFixed expectation
Dmitry Stogov [Mon, 17 Dec 2018 12:59:16 +0000 (15:59 +0300)]
Fixed expectation

6 years agoCFG construction: Avoid code duplication
Nikita Popov [Mon, 17 Dec 2018 10:29:23 +0000 (11:29 +0100)]
CFG construction: Avoid code duplication

These code for those two cases is the same nowadays, so merge them.

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Sun, 16 Dec 2018 15:37:15 +0000 (16:37 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77297: SodiumException segfaults on PHP 7.3

6 years agoFix #77297: SodiumException segfaults on PHP 7.3
Scott [Fri, 14 Dec 2018 21:35:49 +0000 (22:35 +0100)]
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.

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Sun, 16 Dec 2018 12:36:02 +0000 (13:36 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77291: magic methods inherited from a trait may be ignored

6 years agoFix #77291: magic methods inherited from a trait may be ignored
Christoph M. Becker [Sun, 16 Dec 2018 12:30:11 +0000 (13:30 +0100)]
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.

6 years agoImplement SQLite3Stmt::getSQL method, returning the original statement SQL, eventuall...
BohwaZ [Thu, 18 Oct 2018 13:21:10 +0000 (15:21 +0200)]
Implement SQLite3Stmt::getSQL method, returning the original statement SQL, eventually expanded

6 years agoAllow empty $escape to eschew escaping CSV
Christoph M. Becker [Sun, 2 Dec 2018 15:28:18 +0000 (16:28 +0100)]
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>

6 years agoFixed memory leaks
Dmitry Stogov [Thu, 13 Dec 2018 13:21:08 +0000 (16:21 +0300)]
Fixed memory leaks

6 years agoImprove unserialize()
Dmitry Stogov [Thu, 13 Dec 2018 09:55:29 +0000 (12:55 +0300)]
Improve unserialize()

6 years agoImprove unserialize()
Dmitry Stogov [Wed, 12 Dec 2018 17:04:36 +0000 (20:04 +0300)]
Improve unserialize()

6 years agoResolve imagecropauto() default $mode quirk
Christoph M. Becker [Wed, 12 Dec 2018 16:25:37 +0000 (17:25 +0100)]
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.

6 years agoImplement FR #72510: systemd service should be hardened
Craig Andrews [Tue, 28 Jun 2016 20:08:45 +0000 (22:08 +0200)]
Implement FR #72510: systemd service should be hardened

6 years agoProvide is_zend_ptr() function to check if a pointer lays in Zend MM heap.
Dmitry Stogov [Wed, 12 Dec 2018 10:02:28 +0000 (13:02 +0300)]
Provide is_zend_ptr() function to check if a pointer lays in Zend MM heap.

6 years agoSplit php_array_merge_or_replace_wrapper() into php_array_merge_wrapper() and php_arr...
Dmitry Stogov [Tue, 11 Dec 2018 12:59:44 +0000 (15:59 +0300)]
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.

6 years agoMerge branch 'PHP-7.3'
Xinchen Hui [Tue, 11 Dec 2018 07:25:29 +0000 (15:25 +0800)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Update NEWS

6 years agoUpdate NEWS
Xinchen Hui [Tue, 11 Dec 2018 07:25:19 +0000 (15:25 +0800)]
Update NEWS

6 years agoMerge branch 'PHP-7.3'
Xinchen Hui [Tue, 11 Dec 2018 07:23:25 +0000 (15:23 +0800)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix __zend_cpuid on i386 PIC without __cpuid_count

6 years agoMerge branch 'i386-PIC' of https://github.com/ryandesign/php-src into PHP-7.3
Xinchen Hui [Tue, 11 Dec 2018 07:22:50 +0000 (15:22 +0800)]
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