]> granicus.if.org Git - php/log
php
7 years agoAdd tests for `json_decode` with depth below 0
Nat Zimmermann [Mon, 15 Jan 2018 23:06:55 +0000 (23:06 +0000)]
Add tests for `json_decode` with depth below 0

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Wed, 24 Jan 2018 20:22:50 +0000 (21:22 +0100)]
Merge branch 'PHP-7.2'

7 years agoext/session: catch incompatible configure flags earlier.
Michael Orlitzky [Fri, 19 Jan 2018 23:53:22 +0000 (18:53 -0500)]
ext/session: catch incompatible configure flags earlier.

The session extension has a --with-mm flag that tells it to build
the mm backend ("mm" is the name of the library). However, that
backend is not thread-safe, and mod_mm.c will refuse to compile if
the --enable-maintainer-zts flag was also passed to the configure
script.

Rather than crash halfway through the build, this commit adds a check
to the session extension's config.m4 file. If both --with-mm and
--enable-maintainer-zts are "on," then the configure script will
die and explain that they can't be used together.

PHP-bug: 14269

7 years agoReimplement ASCII conversion using aligned routine
Anatol Belski [Wed, 24 Jan 2018 17:33:32 +0000 (18:33 +0100)]
Reimplement ASCII conversion using aligned routine

7 years agoMacrify the common operation
Anatol Belski [Wed, 24 Jan 2018 17:21:24 +0000 (18:21 +0100)]
Macrify the common operation

7 years agoUpdated to version 2018.3 (2018c)
Derick Rethans [Wed, 24 Jan 2018 13:57:08 +0000 (13:57 +0000)]
Updated to version 2018.3 (2018c)

7 years agoEmpty merge
Derick Rethans [Wed, 24 Jan 2018 13:57:08 +0000 (13:57 +0000)]
Empty merge

7 years agoUpdated to version 2018.3 (2018c)
Derick Rethans [Wed, 24 Jan 2018 13:57:07 +0000 (13:57 +0000)]
Updated to version 2018.3 (2018c)

7 years agoEmpty merge
Derick Rethans [Wed, 24 Jan 2018 13:57:07 +0000 (13:57 +0000)]
Empty merge

7 years agoUpdated to version 2018.3 (2018c)
Derick Rethans [Wed, 24 Jan 2018 13:57:06 +0000 (13:57 +0000)]
Updated to version 2018.3 (2018c)

7 years agoMove useful macro into zend_portability.h
Anatol Belski [Wed, 24 Jan 2018 09:14:28 +0000 (10:14 +0100)]
Move useful macro into zend_portability.h

7 years agoImplement intrinsic function resolving per MINIT
Anatol Belski [Wed, 24 Jan 2018 08:33:32 +0000 (09:33 +0100)]
Implement intrinsic function resolving per MINIT

7 years agoRemove padding just merged since 7.3 isn't released yet.
Sara Golemon [Tue, 23 Jan 2018 16:12:49 +0000 (11:12 -0500)]
Remove padding just merged since 7.3 isn't released yet.

Also bump PHP_API_VERSION since the struct size has changed.

7 years agoMerge branch 'PHP-7.2'
Sara Golemon [Tue, 23 Jan 2018 16:11:43 +0000 (11:11 -0500)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fix alignment of PG struct cause by ignore_user_abort big endian fix

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Sara Golemon [Tue, 23 Jan 2018 16:11:37 +0000 (11:11 -0500)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix alignment of PG struct cause by ignore_user_abort big endian fix

7 years agoFix alignment of PG struct cause by ignore_user_abort big endian fix
Sara Golemon [Tue, 23 Jan 2018 16:06:34 +0000 (11:06 -0500)]
Fix alignment of PG struct cause by ignore_user_abort big endian fix

7 years agoMerge branch 'PHP-7.2'
Sara Golemon [Tue, 23 Jan 2018 14:24:54 +0000 (09:24 -0500)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Use Z_EXPECTED_LONG to initialize FAST_ZPP parsing loop

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Sara Golemon [Tue, 23 Jan 2018 14:24:47 +0000 (09:24 -0500)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Use Z_EXPECTED_LONG to initialize FAST_ZPP parsing loop

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Sara Golemon [Tue, 23 Jan 2018 14:24:40 +0000 (09:24 -0500)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Use Z_EXPECTED_LONG to initialize FAST_ZPP parsing loop

7 years agoUse Z_EXPECTED_LONG to initialize FAST_ZPP parsing loop
Sara Golemon [Tue, 23 Jan 2018 14:10:36 +0000 (09:10 -0500)]
Use Z_EXPECTED_LONG to initialize FAST_ZPP parsing loop

7 years agoMerge branch 'PHP-7.2'
Sara Golemon [Tue, 23 Jan 2018 13:59:30 +0000 (08:59 -0500)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  BigEndian fix for ignore_user_abort. Use zend_bool to match OnUpdateBool

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Sara Golemon [Tue, 23 Jan 2018 13:58:53 +0000 (08:58 -0500)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  BigEndian fix for ignore_user_abort. Use zend_bool to match OnUpdateBool

7 years agoBigEndian fix for ignore_user_abort. Use zend_bool to match OnUpdateBool
Sara Golemon [Tue, 23 Jan 2018 13:46:38 +0000 (08:46 -0500)]
BigEndian fix for ignore_user_abort. Use zend_bool to match OnUpdateBool

7 years agoAccess extra data stored in zval through macros
Dmitry Stogov [Tue, 23 Jan 2018 09:56:22 +0000 (12:56 +0300)]
Access extra data stored in zval through macros

7 years agoUpdate to SQLite 3.22.0
Christoph M. Becker [Mon, 22 Jan 2018 22:39:58 +0000 (23:39 +0100)]
Update to SQLite 3.22.0

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Mon, 22 Jan 2018 18:15:53 +0000 (19:15 +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 [Mon, 22 Jan 2018 18:15:30 +0000 (19:15 +0100)]
[ci skip] Update NEWS

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Mon, 22 Jan 2018 18:15:02 +0000 (19:15 +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 [Mon, 22 Jan 2018 18:14:24 +0000 (19:14 +0100)]
[ci skip] Update NEWS

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Mon, 22 Jan 2018 16:05:03 +0000 (17:05 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fixed bug #73725 Unable to retrieve value of varchar(max) type

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Mon, 22 Jan 2018 16:03:48 +0000 (17:03 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed bug #73725 Unable to retrieve value of varchar(max) type

7 years agoFixed bug #73725 Unable to retrieve value of varchar(max) type
Anatol Belski [Mon, 22 Jan 2018 16:02:54 +0000 (17:02 +0100)]
Fixed bug #73725 Unable to retrieve value of varchar(max) type

7 years agoRemoved commented unoptimized code
Dmitry Stogov [Mon, 22 Jan 2018 13:14:56 +0000 (16:14 +0300)]
Removed commented unoptimized code

7 years agoUse OBJ_FLAGS() macro to access object flags (even if they are currently stored toget...
Dmitry Stogov [Mon, 22 Jan 2018 13:10:33 +0000 (16:10 +0300)]
Use OBJ_FLAGS() macro to access object flags (even if they are currently stored together with GC_FLAGS)

7 years agoUse OBJ_FLAGS() macro to access object flags (even if they are currently stored toget...
Dmitry Stogov [Mon, 22 Jan 2018 12:57:00 +0000 (15:57 +0300)]
Use OBJ_FLAGS() macro to access object flags (even if they are currently stored together with GC_FLAGS)

7 years agoMerge HashTable.u.v.consistency into HashTable.u.v.flags
Dmitry Stogov [Mon, 22 Jan 2018 12:32:34 +0000 (15:32 +0300)]
Merge HashTable.u.v.consistency into HashTable.u.v.flags

7 years agoUse HT_FLAGS() macro
Dmitry Stogov [Mon, 22 Jan 2018 11:58:16 +0000 (14:58 +0300)]
Use HT_FLAGS() macro

7 years agoIntroduce mcros to access HashTable iterators counter
Dmitry Stogov [Mon, 22 Jan 2018 11:14:35 +0000 (14:14 +0300)]
Introduce mcros to access HashTable iterators counter

7 years agows
Dmitry Stogov [Mon, 22 Jan 2018 10:37:48 +0000 (13:37 +0300)]
ws

7 years agoAccess HashTable.u.flags through HT_FLAGS() macro.
Dmitry Stogov [Mon, 22 Jan 2018 10:36:15 +0000 (13:36 +0300)]
Access HashTable.u.flags through HT_FLAGS() macro.

7 years agoNetBSD has its own unoptimizable memset version since 2013
David Carlier [Mon, 15 Jan 2018 22:10:58 +0000 (22:10 +0000)]
NetBSD has its own unoptimizable memset version since 2013

checking presence of the function if older versions of NetBSD

7 years agoImplement SSE2 based ASCII to UTF-16 conversion
Anatol Belski [Fri, 19 Jan 2018 16:58:52 +0000 (17:58 +0100)]
Implement SSE2 based ASCII to UTF-16 conversion

This also eliminates the INT_MAX length restriction.

7 years agoGet rid of IS_TYPE_COPYABLE.
Dmitry Stogov [Fri, 19 Jan 2018 14:47:26 +0000 (17:47 +0300)]
Get rid of IS_TYPE_COPYABLE.

7 years agoUse reference-counting instead of duplication
Dmitry Stogov [Fri, 19 Jan 2018 10:56:31 +0000 (13:56 +0300)]
Use reference-counting instead of duplication

7 years agoOnly persistent referencecounted strings should be duplicated.
Dmitry Stogov [Fri, 19 Jan 2018 10:41:35 +0000 (13:41 +0300)]
Only persistent referencecounted  strings should be duplicated.

7 years agoUsee reference-counting instead of duplication
Dmitry Stogov [Fri, 19 Jan 2018 10:19:49 +0000 (13:19 +0300)]
Usee reference-counting instead of duplication

7 years agoAvoid useless duplication
Dmitry Stogov [Fri, 19 Jan 2018 10:14:15 +0000 (13:14 +0300)]
Avoid useless duplication

7 years agoMove invariant code out of loop
Dmitry Stogov [Thu, 18 Jan 2018 22:29:37 +0000 (01:29 +0300)]
Move invariant code out of loop

7 years agoUse reference-counting instead of duplication and separation, if really necessary.
Dmitry Stogov [Thu, 18 Jan 2018 22:03:24 +0000 (01:03 +0300)]
Use reference-counting instead of duplication and separation, if really necessary.

7 years agoRemoved IS_TYPE_COPYABLE flag from IS_STRING zvals.
Dmitry Stogov [Thu, 18 Jan 2018 09:41:27 +0000 (12:41 +0300)]
Removed IS_TYPE_COPYABLE flag from IS_STRING zvals.

7 years agoMoved IS_CONSTANT_VISITED_MARK, used for protection from recursive self-referencing...
Dmitry Stogov [Thu, 18 Jan 2018 08:36:04 +0000 (11:36 +0300)]
Moved IS_CONSTANT_VISITED_MARK, used for protection from recursive self-referencing class constants, from zval.u1.v.type_flags into zval.u2.access_flags.

7 years agoMerge branch 'PHP-7.2'
Xinchen Hui [Thu, 18 Jan 2018 02:54:16 +0000 (10:54 +0800)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Updated NEWS
  Fixed #75838 (Memory leak in pg_escape_bytea())

7 years agoUpdated NEWS
Xinchen Hui [Thu, 18 Jan 2018 02:53:58 +0000 (10:53 +0800)]
Updated NEWS

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Xinchen Hui [Thu, 18 Jan 2018 02:53:39 +0000 (10:53 +0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed #75838 (Memory leak in pg_escape_bytea())

7 years agoFixed #75838 (Memory leak in pg_escape_bytea())
Xinchen Hui [Thu, 18 Jan 2018 02:53:23 +0000 (10:53 +0800)]
Fixed #75838 (Memory leak in pg_escape_bytea())

7 years agoExpand SEPARATE_STRING()
Dmitry Stogov [Wed, 17 Jan 2018 23:30:07 +0000 (02:30 +0300)]
Expand SEPARATE_STRING()

7 years agoRemoved useless SEPARATE_STRING() (zend_string_extend() performs separation anyway)
Dmitry Stogov [Wed, 17 Jan 2018 23:28:18 +0000 (02:28 +0300)]
Removed useless SEPARATE_STRING() (zend_string_extend() performs separation anyway)

7 years agoClenaup SEPARATE_ZVAL...() macros (the behavior is unchanged)
Dmitry Stogov [Wed, 17 Jan 2018 23:27:11 +0000 (02:27 +0300)]
Clenaup SEPARATE_ZVAL...() macros (the behavior is unchanged)

7 years agoAdd missing closing fold
Anatol Belski [Wed, 17 Jan 2018 14:08:22 +0000 (15:08 +0100)]
Add missing closing fold

7 years agoEliminate duplication, increment_string() performs it anyway.
Dmitry Stogov [Wed, 17 Jan 2018 17:09:28 +0000 (20:09 +0300)]
Eliminate duplication, increment_string() performs it anyway.

7 years agoSend by reference without duplication
Dmitry Stogov [Wed, 17 Jan 2018 15:50:18 +0000 (18:50 +0300)]
Send by reference without duplication

7 years agoZVAL_COPY_OR_DUP() instead of ZVAL_DUP()
Dmitry Stogov [Wed, 17 Jan 2018 14:58:42 +0000 (17:58 +0300)]
ZVAL_COPY_OR_DUP() instead of ZVAL_DUP()

7 years agoMore effecient array duplication
Dmitry Stogov [Wed, 17 Jan 2018 14:57:59 +0000 (17:57 +0300)]
More effecient array duplication

7 years agoMore effecient array duplication
Dmitry Stogov [Wed, 17 Jan 2018 14:56:04 +0000 (17:56 +0300)]
More effecient array duplication

7 years agoMore effecient conversion
Dmitry Stogov [Wed, 17 Jan 2018 14:51:18 +0000 (17:51 +0300)]
More effecient conversion

7 years agoUse ZVAL_COPY() instead og ZVAL_DUP(), because fault is an object
Dmitry Stogov [Wed, 17 Jan 2018 14:48:36 +0000 (17:48 +0300)]
Use ZVAL_COPY() instead og ZVAL_DUP(), because fault is an object

7 years agoUse zval_copy_ctor_func() instead of _zval_copy_ctor_func().
Dmitry Stogov [Wed, 17 Jan 2018 14:46:57 +0000 (17:46 +0300)]
Use zval_copy_ctor_func() instead of _zval_copy_ctor_func().

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Wed, 17 Jan 2018 13:48:06 +0000 (14:48 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Add switches for Spectre variant 1 mitigation

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Wed, 17 Jan 2018 13:47:39 +0000 (14:47 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Add switches for Spectre variant 1 mitigation

7 years agoAdd switches for Spectre variant 1 mitigation
Anatol Belski [Wed, 17 Jan 2018 13:31:51 +0000 (14:31 +0100)]
Add switches for Spectre variant 1 mitigation

7 years agoScalar types don't have reference counter
Dmitry Stogov [Wed, 17 Jan 2018 13:17:43 +0000 (16:17 +0300)]
Scalar types don't have reference counter

7 years agoEliminate duplication
Dmitry Stogov [Wed, 17 Jan 2018 12:52:52 +0000 (15:52 +0300)]
Eliminate duplication

7 years agoUse ZVAL_DUP() instead of zval_copy_ctor()
Dmitry Stogov [Wed, 17 Jan 2018 11:59:15 +0000 (14:59 +0300)]
Use ZVAL_DUP() instead of zval_copy_ctor()

7 years agoResource is not copyable (just refcounted)
Dmitry Stogov [Wed, 17 Jan 2018 11:57:42 +0000 (14:57 +0300)]
Resource is not copyable (just refcounted)

7 years agoFixed bug #74719
alexanderholman [Fri, 5 Jan 2018 00:42:06 +0000 (00:42 +0000)]
Fixed bug #74719

Allow stream context arguments for fopen, rename, unlink, mkdir
and rmdir to be null.

7 years agoSimplified conversion
Dmitry Stogov [Wed, 17 Jan 2018 11:19:13 +0000 (14:19 +0300)]
Simplified conversion

7 years agoEliminate separations
Dmitry Stogov [Wed, 17 Jan 2018 11:12:06 +0000 (14:12 +0300)]
Eliminate separations

7 years agoEliminate useless separations
Dmitry Stogov [Wed, 17 Jan 2018 11:11:40 +0000 (14:11 +0300)]
Eliminate useless separations

7 years agoMerge branch 'master' of git.php.net:/php-src
Xinchen Hui [Wed, 17 Jan 2018 10:04:07 +0000 (18:04 +0800)]
Merge branch 'master' of git.php.net:/php-src

* 'master' of git.php.net:/php-src:
  Eliminate useless separations
  Avoid separation and simlifyed conversion
  Eliminate useless separation
  Eliminate useless separation
  Eliminate useless separations
  A cheaper way to clone reference value.

7 years agoEliminate useless separations
Dmitry Stogov [Wed, 17 Jan 2018 09:45:23 +0000 (12:45 +0300)]
Eliminate useless separations

7 years agoAvoid separation and simlifyed conversion
Dmitry Stogov [Wed, 17 Jan 2018 09:37:42 +0000 (12:37 +0300)]
Avoid separation and simlifyed conversion

7 years agoDon't use ifunc if compiling with __SSE4_2__ deinfed
Xinchen Hui [Wed, 17 Jan 2018 09:31:10 +0000 (17:31 +0800)]
Don't use ifunc if compiling with __SSE4_2__ deinfed

7 years agoEliminate useless separation
Dmitry Stogov [Wed, 17 Jan 2018 09:25:49 +0000 (12:25 +0300)]
Eliminate useless separation

7 years agoEliminate useless separation
Dmitry Stogov [Wed, 17 Jan 2018 09:09:38 +0000 (12:09 +0300)]
Eliminate useless separation

7 years agoEliminate useless separations
Dmitry Stogov [Wed, 17 Jan 2018 08:59:01 +0000 (11:59 +0300)]
Eliminate useless separations

7 years agoA cheaper way to clone reference value.
Dmitry Stogov [Wed, 17 Jan 2018 07:59:50 +0000 (10:59 +0300)]
A cheaper way to clone reference value.

7 years agoFixed build extension by phpize
Xinchen Hui [Wed, 17 Jan 2018 07:09:04 +0000 (15:09 +0800)]
Fixed build extension by phpize

7 years agoUse SEPARATE_ARRAY
Dmitry Stogov [Wed, 17 Jan 2018 00:08:22 +0000 (03:08 +0300)]
Use SEPARATE_ARRAY

7 years agoUse SERPARATE_ARRAY
Dmitry Stogov [Wed, 17 Jan 2018 00:02:29 +0000 (03:02 +0300)]
Use SERPARATE_ARRAY

7 years agoUse SEPARATE_ARRAY
Dmitry Stogov [Wed, 17 Jan 2018 00:01:56 +0000 (03:01 +0300)]
Use SEPARATE_ARRAY

7 years agoReplaced separation with destructor
Dmitry Stogov [Wed, 17 Jan 2018 00:01:00 +0000 (03:01 +0300)]
Replaced separation with destructor

7 years agoRemoved useless separation
Dmitry Stogov [Wed, 17 Jan 2018 00:00:11 +0000 (03:00 +0300)]
Removed useless separation

7 years agoAvoid array duplication and in-place modification
Dmitry Stogov [Tue, 16 Jan 2018 23:25:36 +0000 (02:25 +0300)]
Avoid array duplication and in-place modification

7 years agoA cheaper way to reset type flags.
Dmitry Stogov [Tue, 16 Jan 2018 22:58:51 +0000 (01:58 +0300)]
A cheaper way to reset type flags.

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Tue, 16 Jan 2018 18:50:36 +0000 (19:50 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  7.0.15 next
  Fixed NEWS

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Tue, 16 Jan 2018 18:49:23 +0000 (19:49 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  7.0.15 next

7 years ago7.0.15 next
Anatol Belski [Tue, 16 Jan 2018 18:47:35 +0000 (19:47 +0100)]
7.0.15 next

7 years agoAdded zendi_smart_streq() for smart string equality check
Dmitry Stogov [Tue, 16 Jan 2018 14:24:00 +0000 (17:24 +0300)]
Added zendi_smart_streq() for smart string equality check

7 years agoInline function
Dmitry Stogov [Tue, 16 Jan 2018 11:13:49 +0000 (14:13 +0300)]
Inline function

7 years agoThe cpu setup is still needed when ifunc is supported
Anatol Belski [Tue, 16 Jan 2018 10:55:19 +0000 (11:55 +0100)]
The cpu setup is still needed when ifunc is supported