]> granicus.if.org Git - php/log
php
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

7 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Tue, 16 Jan 2018 10:51:50 +0000 (13:51 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Separate the cpuinfo initialization part and call it at startup

7 years agoAvoid EG(vm_interrupt) check on forward JMP
Dmitry Stogov [Tue, 16 Jan 2018 10:50:36 +0000 (13:50 +0300)]
Avoid EG(vm_interrupt) check on forward JMP

7 years agoSeparate the cpuinfo initialization part and call it at startup
Anatol Belski [Tue, 16 Jan 2018 10:27:18 +0000 (11:27 +0100)]
Separate the cpuinfo initialization part and call it at startup

7 years agoFix __cpuidex usage
Anatol Belski [Tue, 16 Jan 2018 09:56:46 +0000 (10:56 +0100)]
Fix __cpuidex usage

7 years agoFixed NEWS
Xinchen Hui [Tue, 16 Jan 2018 09:31:44 +0000 (17:31 +0800)]
Fixed NEWS

7 years agoMerge branch 'PHP-7.2'
Remi Collet [Tue, 16 Jan 2018 08:55:23 +0000 (09:55 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  next is 7.2.3

7 years agonext is 7.2.3
Remi Collet [Tue, 16 Jan 2018 08:54:57 +0000 (09:54 +0100)]
next is 7.2.3

7 years agoReplace checks with asserts
Dmitry Stogov [Tue, 16 Jan 2018 08:39:51 +0000 (11:39 +0300)]
Replace checks with asserts

7 years agoRemoved reference to the obsolete zend_vm_use_old_executor()
Dmitry Stogov [Tue, 16 Jan 2018 07:44:15 +0000 (10:44 +0300)]
Removed reference to the obsolete zend_vm_use_old_executor()

7 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Tue, 16 Jan 2018 07:34:15 +0000 (10:34 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Added missed header file
  Added ZEND_API zend_cpu_supports

7 years agoUse fastcall calling convention
Dmitry Stogov [Tue, 16 Jan 2018 07:33:41 +0000 (10:33 +0300)]
Use fastcall calling convention

7 years agoAdded missed header file
Xinchen Hui [Tue, 16 Jan 2018 06:56:43 +0000 (14:56 +0800)]
Added missed header file

7 years agoMerge branch 'master' of git.php.net:/php-src
Xinchen Hui [Tue, 16 Jan 2018 06:54:05 +0000 (14:54 +0800)]
Merge branch 'master' of git.php.net:/php-src

* 'master' of git.php.net:/php-src:
  Removed recursive call
  Put ZEND_FASTCALL into the proper place.

7 years agoAdded ZEND_API zend_cpu_supports
Xinchen Hui [Tue, 16 Jan 2018 06:44:06 +0000 (14:44 +0800)]
Added ZEND_API zend_cpu_supports

7 years agoRemoved recursive call
Dmitry Stogov [Tue, 16 Jan 2018 06:44:49 +0000 (09:44 +0300)]
Removed recursive call

7 years agoPut ZEND_FASTCALL into the proper place.
Dmitry Stogov [Tue, 16 Jan 2018 06:44:10 +0000 (09:44 +0300)]
Put ZEND_FASTCALL into the proper place.

7 years agoOptimize zval_dtor_func()
Dmitry Stogov [Mon, 15 Jan 2018 21:57:47 +0000 (00:57 +0300)]
Optimize zval_dtor_func()

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Mon, 15 Jan 2018 16:49:46 +0000 (17:49 +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, 15 Jan 2018 16:48:08 +0000 (17:48 +0100)]
[ci skip] Update NEWS

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Mon, 15 Jan 2018 16:47:29 +0000 (17:47 +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, 15 Jan 2018 16:46:34 +0000 (17:46 +0100)]
[ci skip] Update NEWS

7 years agoAdded missing #if to allow compilation withput ZEND_MM_CUSTOM
Dmitry Stogov [Mon, 15 Jan 2018 14:37:15 +0000 (17:37 +0300)]
Added missing #if to allow compilation withput ZEND_MM_CUSTOM

7 years agoManual CSE
Dmitry Stogov [Mon, 15 Jan 2018 14:36:35 +0000 (17:36 +0300)]
Manual CSE

7 years agoAdded missed PHPAPI
Xinchen Hui [Mon, 15 Jan 2018 13:39:25 +0000 (21:39 +0800)]
Added missed PHPAPI

7 years agoMerge branch 'master' of git.php.net:/php-src
Xinchen Hui [Mon, 15 Jan 2018 13:34:03 +0000 (21:34 +0800)]
Merge branch 'master' of git.php.net:/php-src

* 'master' of git.php.net:/php-src:
  Allow pecl like usage in ext/phar, closes #2955

7 years agoRestore change committed by accident
Xinchen Hui [Mon, 15 Jan 2018 13:30:56 +0000 (21:30 +0800)]
Restore change committed by accident

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Mon, 15 Jan 2018 13:26:22 +0000 (14:26 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Allow pecl like usage in ext/phar, closes #2955

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Mon, 15 Jan 2018 13:25:45 +0000 (14:25 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Allow pecl like usage in ext/phar, closes #2955

7 years agoAllow pecl like usage in ext/phar, closes #2955
Anatol Belski [Mon, 15 Jan 2018 13:23:46 +0000 (14:23 +0100)]
Allow pecl like usage in ext/phar, closes #2955

7 years agoOptimized php_addslashes with SSE4.2 instructions
Xinchen Hui [Mon, 15 Jan 2018 13:01:27 +0000 (21:01 +0800)]
Optimized php_addslashes with SSE4.2 instructions

According to benchmark
(https://gist.github.com/laruence/fd0d443d2c5bacca9d8ab99250499956) this brings 30%+ execution time reduced.

In the further, this open the door for possible SSE4.2 optimizations in
other places.

7 years agoRemove double include of fpm_scoreboard.h
motecshine [Sun, 14 Jan 2018 09:06:55 +0000 (17:06 +0800)]
Remove double include of fpm_scoreboard.h

7 years agoAdd test for bug #66960
Bishop Bettini [Mon, 8 Jan 2018 01:58:02 +0000 (20:58 -0500)]
Add test for bug #66960

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Mon, 15 Jan 2018 11:16:16 +0000 (12:16 +0100)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Mon, 15 Jan 2018 11:16:00 +0000 (12:16 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

7 years agoFixed bug #75079
Nikita Popov [Mon, 15 Jan 2018 11:13:55 +0000 (12:13 +0100)]
Fixed bug #75079

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Sun, 14 Jan 2018 15:43:21 +0000 (16:43 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Sync for upcoming vc++ 15.6 version raise

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Sun, 14 Jan 2018 15:42:17 +0000 (16:42 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Sync for upcoming vc++ 15.6 version raise

7 years agoSync for upcoming vc++ 15.6 version raise
Anatol Belski [Sun, 14 Jan 2018 15:38:36 +0000 (16:38 +0100)]
Sync for upcoming vc++ 15.6 version raise

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Sat, 13 Jan 2018 13:51:34 +0000 (14:51 +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 [Sat, 13 Jan 2018 13:50:58 +0000 (14:50 +0100)]
[ci skip] Update NEWS

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Sat, 13 Jan 2018 13:50:00 +0000 (14:50 +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 [Sat, 13 Jan 2018 13:48:48 +0000 (14:48 +0100)]
[ci skip] Update NEWS

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Sat, 13 Jan 2018 11:33:45 +0000 (12:33 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fix invalid free

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Sat, 13 Jan 2018 11:33:02 +0000 (12:33 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix invalid free

7 years agoFix invalid free
Anatol Belski [Sat, 13 Jan 2018 11:32:00 +0000 (12:32 +0100)]
Fix invalid free

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sat, 13 Jan 2018 10:06:58 +0000 (11:06 +0100)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Sat, 13 Jan 2018 10:06:46 +0000 (11:06 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

7 years agoFix generator GC if yield from parent chain does not reach root
Nikita Popov [Sat, 13 Jan 2018 10:04:26 +0000 (11:04 +0100)]
Fix generator GC if yield from parent chain does not reach root

Parents may be unlinked while another generator sharing part of the
chain is running. As such, we cannot assume that the parent chain
goes all the way to the root. Instead walk backwards from root to
leaf, like we also do during destruction.

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Fri, 12 Jan 2018 21:51:29 +0000 (22:51 +0100)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Fri, 12 Jan 2018 21:51:20 +0000 (22:51 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

7 years agoTry to fix yield from GC issues
Nikita Popov [Fri, 12 Jan 2018 21:48:29 +0000 (22:48 +0100)]
Try to fix yield from GC issues

Make sure we always update root and parent references before
releasing the old root object.

This fixes some crashes under aggressive cycle collection, so
hopefully this will also fix bug #75351.

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Fri, 12 Jan 2018 20:28:31 +0000 (21:28 +0100)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Fri, 12 Jan 2018 20:28:10 +0000 (21:28 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

7 years agoFixed bug #75396
Nikita Popov [Fri, 12 Jan 2018 20:24:04 +0000 (21:24 +0100)]
Fixed bug #75396

Do not run finally blocks in generators on unclean shutdown (e.g.
caused by exit). This is consistent with how finally blocks outside
of generators behave.

7 years agoSimplify non-linear generator yield from tree
Nikita Popov [Tue, 9 Jan 2018 20:49:16 +0000 (21:49 +0100)]
Simplify non-linear generator yield from tree

Remove special handling for 2-4 children. Now the three possible
cases are no children, one child, or many children (HT).

The non-linear (many children) case is extremely rare, so there is
no point in trying to optimize it.

7 years ago[ci skip] Fix typos
Anatol Belski [Fri, 12 Jan 2018 18:12:54 +0000 (19:12 +0100)]
[ci skip] Fix typos

7 years agoFix #75765 Exception on extend of undefined class
timurib [Sat, 6 Jan 2018 20:04:45 +0000 (23:04 +0300)]
Fix #75765 Exception on extend of undefined class

As the parent class is fetched prior to binding, there are no
safety concerns in this case and we can replace the fatal error
with an Error exception.

7 years agoDon't directly access refcount in interbase
Nikita Popov [Sun, 31 Dec 2017 11:32:29 +0000 (12:32 +0100)]
Don't directly access refcount in interbase

7 years agoAvoid duplicate addition of generators in yield from tree
Nikita Popov [Fri, 12 Jan 2018 17:37:47 +0000 (18:37 +0100)]
Avoid duplicate addition of generators in yield from tree

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Fri, 12 Jan 2018 17:30:34 +0000 (18:30 +0100)]
Merge branch 'PHP-7.2'

7 years agoFixed bug #75653
Nikita Popov [Fri, 12 Jan 2018 17:30:22 +0000 (18:30 +0100)]
Fixed bug #75653

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Fri, 12 Jan 2018 17:18:45 +0000 (18:18 +0100)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Fri, 12 Jan 2018 17:18:34 +0000 (18:18 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2