]> granicus.if.org Git - php/log
php
7 years agoCheck for exceptional cases before actual constant evaluation.
Dmitry Stogov [Tue, 4 Jul 2017 13:09:28 +0000 (16:09 +0300)]
Check for exceptional cases before actual constant evaluation.

7 years agoSeparate constants propagation code shatred between "first" and "block" passes into...
Dmitry Stogov [Tue, 4 Jul 2017 12:10:33 +0000 (15:10 +0300)]
Separate constants propagation code shatred between "first" and "block" passes into helper functions.

7 years agoMerge branch 'PHP-7.1'
Anatol Belski [Tue, 4 Jul 2017 10:15:19 +0000 (12:15 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  [ci skip] sync NEWS

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Tue, 4 Jul 2017 10:14:50 +0000 (12:14 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  [ci skip] sync NEWS

7 years ago[ci skip] sync NEWS
Anatol Belski [Tue, 4 Jul 2017 10:12:51 +0000 (12:12 +0200)]
[ci skip] sync NEWS

7 years agoUpdate NEWS for 7.2.0beta1
Remi Collet [Tue, 4 Jul 2017 09:27:47 +0000 (09:27 +0000)]
Update NEWS for 7.2.0beta1

7 years agoUpdate NEWS for PHP 7.2.0alpha3
Remi Collet [Tue, 4 Jul 2017 09:10:38 +0000 (09:10 +0000)]
Update NEWS for PHP 7.2.0alpha3

7 years agoupdate NEWS
Anatol Belski [Tue, 4 Jul 2017 09:31:35 +0000 (11:31 +0200)]
update NEWS

7 years agoMerge branch 'PHP-7.1'
Anatol Belski [Tue, 4 Jul 2017 09:31:09 +0000 (11:31 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  update NEWS
  update NEWS

7 years agoupdate NEWS
Anatol Belski [Tue, 4 Jul 2017 09:30:30 +0000 (11:30 +0200)]
update NEWS

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Tue, 4 Jul 2017 09:29:54 +0000 (11:29 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  update NEWS

7 years agoupdate NEWS
Anatol Belski [Tue, 4 Jul 2017 09:29:00 +0000 (11:29 +0200)]
update NEWS

7 years agoMerge branch 'PHP-7.1'
Anatol Belski [Tue, 4 Jul 2017 08:44:50 +0000 (10:44 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Fixed bug #74101 and bug #74614

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Tue, 4 Jul 2017 08:42:48 +0000 (10:42 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Fixed bug #74101 and bug #74614

7 years agoFixed bug #74101 and bug #74614
Nikita Popov [Sun, 25 Jun 2017 18:58:50 +0000 (20:58 +0200)]
Fixed bug #74101 and bug #74614

7 years agoCompile/optimisation-time constants can't be circular, but in general may be referenc...
Dmitry Stogov [Tue, 4 Jul 2017 07:43:34 +0000 (10:43 +0300)]
Compile/optimisation-time constants can't be circular, but in general may be reference-countable. It's better to use zval_ptr_dtor_nogc() to release them.

7 years agoGet rid of old compatibility macros
Dmitry Stogov [Tue, 4 Jul 2017 06:50:57 +0000 (09:50 +0300)]
Get rid of old compatibility macros

7 years agoFixed bug #74836 (isset on zero-prefixed numeric indexes in array broken)
Dmitry Stogov [Tue, 4 Jul 2017 04:23:46 +0000 (07:23 +0300)]
Fixed bug #74836 (isset on zero-prefixed numeric indexes in array broken)

7 years agoRevert "Avoid run-time checks performed at compile-time."
Dmitry Stogov [Tue, 4 Jul 2017 04:15:42 +0000 (07:15 +0300)]
Revert "Avoid run-time checks performed at compile-time."

This reverts commit 8fe47a47cf30eb3bf50a5cdb4e07f6fa135d21c7.

7 years ago[ci skip] update NEWS
Anatol Belski [Mon, 3 Jul 2017 21:21:38 +0000 (23:21 +0200)]
[ci skip] update NEWS

7 years agoFixed bug #74849 Process is started as interactive shell in PhpStorm
Anatol Belski [Mon, 3 Jul 2017 19:58:51 +0000 (21:58 +0200)]
Fixed bug #74849 Process is started as interactive shell in PhpStorm

7 years agoAdded missed opcodes
Dmitry Stogov [Mon, 3 Jul 2017 18:26:44 +0000 (21:26 +0300)]
Added missed opcodes

7 years agoAdd NEWS entry and a test for Bug#71412
Sara Golemon [Sun, 2 Jul 2017 14:21:58 +0000 (10:21 -0400)]
Add NEWS entry and a test for Bug#71412

7 years agoFixes Bug #71412 Incorrect ArrayIterator __construct signature
Tyson Andre [Sun, 2 Jul 2017 14:10:59 +0000 (10:10 -0400)]
Fixes Bug #71412 Incorrect ArrayIterator __construct signature

ArrayIterator doesn't have a getIterator method(), or an iterator setter,
and I don't think it makes sense for it to have one.

7 years agoMerge branch 'PHP-7.1'
Anatol Belski [Sat, 1 Jul 2017 18:07:05 +0000 (20:07 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  yet one C++ compat fix

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Sat, 1 Jul 2017 18:06:39 +0000 (20:06 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  yet one C++ compat fix

7 years agoyet one C++ compat fix
Anatol Belski [Sat, 1 Jul 2017 16:56:32 +0000 (18:56 +0200)]
yet one C++ compat fix

7 years agoMerge branch 'PHP-7.1'
Anatol Belski [Sat, 1 Jul 2017 16:39:02 +0000 (18:39 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  fix C++ compat

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Sat, 1 Jul 2017 16:38:18 +0000 (18:38 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  fix C++ compat

7 years agofix C++ compat
Anatol Belski [Sat, 1 Jul 2017 16:36:43 +0000 (18:36 +0200)]
fix C++ compat

7 years agoMerge branch 'PHP-7.1'
Bob Weinand [Sat, 1 Jul 2017 09:53:00 +0000 (11:53 +0200)]
Merge branch 'PHP-7.1'

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Bob Weinand [Sat, 1 Jul 2017 09:52:41 +0000 (11:52 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

7 years agoFixed bug #74840 (Opcache overwrites argument of GENERATOR_RETURN within finally)
Bob Weinand [Sat, 1 Jul 2017 09:52:03 +0000 (11:52 +0200)]
Fixed bug #74840 (Opcache overwrites argument of GENERATOR_RETURN within finally)

7 years agoFixed bug #74514 5 session functions incorrectly warn when calling in read-only/gette...
Yasuo Ohgaki [Fri, 30 Jun 2017 18:31:22 +0000 (03:31 +0900)]
Fixed bug #74514 5 session functions incorrectly warn when calling in read-only/getter mode

7 years agoFixed ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO macro
Richard Fussenegger [Sun, 14 May 2017 13:43:31 +0000 (15:43 +0200)]
Fixed ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO macro

The macro was expanding to a wrong macro and thus leads to compile errors upon
usage. Changed it to expand to the correct macro.

7 years agoMerge branch 'PHP-7.1'
Julien Pauli [Thu, 29 Jun 2017 18:25:18 +0000 (20:25 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Updated NEWS
  Updated NEWS
  Fix bug #74832, crash in extension loading

7 years agoUpdated NEWS
Julien Pauli [Thu, 29 Jun 2017 18:24:34 +0000 (20:24 +0200)]
Updated NEWS

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Julien Pauli [Thu, 29 Jun 2017 18:24:03 +0000 (20:24 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Updated NEWS
  Fix bug #74832, crash in extension loading

7 years agoUpdated NEWS
Julien Pauli [Thu, 29 Jun 2017 18:23:37 +0000 (20:23 +0200)]
Updated NEWS

7 years agoFix bug #74832, crash in extension loading
Julien Pauli [Thu, 29 Jun 2017 18:22:21 +0000 (20:22 +0200)]
Fix bug #74832, crash in extension loading

7 years agoApply fix for #69356 to "Sent SQL"
Adam Baratz [Thu, 29 Jun 2017 09:45:41 +0000 (11:45 +0200)]
Apply fix for #69356 to "Sent SQL"

7 years agoMerge branch 'PHP-7.1'
Adam Baratz [Thu, 29 Jun 2017 09:44:02 +0000 (11:44 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Fixed bug #69356
  Fixed #69356: PDOStatement::debugDumpParams() truncates query

7 years agoFixed bug #69356
Adam Baratz [Thu, 29 Jun 2017 09:43:12 +0000 (11:43 +0200)]
Fixed bug #69356

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Adam Baratz [Thu, 29 Jun 2017 09:40:56 +0000 (11:40 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Fixed #69356: PDOStatement::debugDumpParams() truncates query

7 years agoFixed #69356: PDOStatement::debugDumpParams() truncates query
Adam Baratz [Thu, 29 Jun 2017 09:14:38 +0000 (11:14 +0200)]
Fixed #69356: PDOStatement::debugDumpParams() truncates query

7 years agoUse inlined version of zval_ptr_dytor() in var_destroy() loop
Dmitry Stogov [Thu, 29 Jun 2017 09:16:52 +0000 (12:16 +0300)]
Use inlined version of zval_ptr_dytor() in var_destroy() loop

7 years agoUse inlined version of zval_ptr_dtor() in array_map() loop
Dmitry Stogov [Thu, 29 Jun 2017 09:15:57 +0000 (12:15 +0300)]
Use inlined version of zval_ptr_dtor() in array_map() loop

7 years agoUse zval_ptr_dtor_nogc() for data that can't be circular
Dmitry Stogov [Thu, 29 Jun 2017 09:14:41 +0000 (12:14 +0300)]
Use zval_ptr_dtor_nogc() for data that can't be circular

7 years agoSplit zend_init_execute_data() into zend_init_func_execute_data() and zend_init_code_...
Dmitry Stogov [Thu, 29 Jun 2017 07:10:57 +0000 (10:10 +0300)]
Split zend_init_execute_data() into zend_init_func_execute_data() and zend_init_code_execute_data()

7 years agoWe don't have to use "persistent" heap with PHP-7 HashTable(s).
Dmitry Stogov [Thu, 29 Jun 2017 06:24:07 +0000 (09:24 +0300)]
We don't have to use "persistent" heap with PHP-7 HashTable(s).

7 years agoMerge branch 'PHP-7.1'
Xinchen Hui [Thu, 29 Jun 2017 03:51:05 +0000 (11:51 +0800)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Fix typo in PHP 7.1.8 news

7 years agoFix typo in PHP 7.1.8 news
Tyson Andre [Wed, 28 Jun 2017 22:46:58 +0000 (15:46 -0700)]
Fix typo in PHP 7.1.8 news

7 years ago[ci skip] update NEWS
Anatol Belski [Wed, 28 Jun 2017 21:38:49 +0000 (23:38 +0200)]
[ci skip] update NEWS

7 years agoFix zend_get_zval_ptr()
Nikita Popov [Wed, 28 Jun 2017 08:21:19 +0000 (10:21 +0200)]
Fix zend_get_zval_ptr()

7 years agoMerge branch 'PHP-7.1'
George Wang [Wed, 28 Jun 2017 03:18:27 +0000 (23:18 -0400)]
Merge branch 'PHP-7.1'

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
George Wang [Wed, 28 Jun 2017 03:16:25 +0000 (23:16 -0400)]
Merge branch 'PHP-7.0' into PHP-7.1

7 years ago[BUGFIX] fixes the issue that a value from .user.ini displays in phpinfo(), but not...
George Wang [Wed, 28 Jun 2017 03:14:36 +0000 (23:14 -0400)]
[BUGFIX] fixes the issue that a value from .user.ini displays in phpinfo(), but not applies.
[BUGFIX] when lsapi used the php_value has higher priority then ini_set when called from the script by itself .

7 years agoAvoid string duplication in preg_split()
Dmitry Stogov [Tue, 27 Jun 2017 21:43:55 +0000 (00:43 +0300)]
Avoid string duplication in preg_split()

7 years agoBug #74815 crash with a combination of INI entries at startup
Anatol Belski [Tue, 27 Jun 2017 14:26:54 +0000 (16:26 +0200)]
Bug #74815 crash with a combination of INI entries at startup

TS related VCWD routines depend on CWD. Thus, a premature CWD
deactivation renders the VCWD layer unusable. Same issue seems to
persist in versions < 7.2, just that the code path is actually unused so
the issue didn't show up. Still might make sense to backport this into
lower branches.

7 years agoRemoved deprecated checks.
Dmitry Stogov [Tue, 27 Jun 2017 10:12:09 +0000 (13:12 +0300)]
Removed deprecated checks.

7 years agoCleanup. Removed unused functions and unimplemented prototype. Avoid useless "dtor_ob...
Dmitry Stogov [Tue, 27 Jun 2017 09:03:06 +0000 (12:03 +0300)]
Cleanup. Removed unused functions and unimplemented prototype. Avoid useless "dtor_obj" calls.

7 years agoupgrading: doc about ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX
Remi Collet [Mon, 26 Jun 2017 15:26:07 +0000 (17:26 +0200)]
upgrading: doc about ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX

7 years agoMerge branch 'master' of git.php.net:php-src
Remi Collet [Mon, 26 Jun 2017 15:22:01 +0000 (17:22 +0200)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src: (24 commits)
  Removed EG(valid_symbol_table). Used EG(active) instead.
  Release temporary string reference
  Remove superfluous semicolons
  Fix tests on Windows
  Produce a better exception message when IntlDateFormatter constructor fails.
  Fix format arguments
  Remove unused variable op2. It is redeclared later.
  Fix typo
  Implement object type annotation
  Fixed bug #73173
  Expose inflate_get_status() and inflate_get_read_len() functions
  Add more constants, improve comments, and add tests
  Fixed bug #73900
  Add OPENSSL_DONT_ZERO_PAD_KEY constant to prevent key padding
  Drop soap_hash_str_find_deref()
  Only compute callback name in error cases
  Extract zend_get_callable_name() API
  Move va_copy compatibility code into zend_portability.h
  Remove unnecessary string copy
  Fix FE_FETCH_* exception check
  ...

7 years agoRemoved EG(valid_symbol_table). Used EG(active) instead.
Dmitry Stogov [Mon, 26 Jun 2017 10:35:07 +0000 (13:35 +0300)]
Removed EG(valid_symbol_table). Used EG(active) instead.

7 years agoRelease temporary string reference
Sara Golemon [Sun, 25 Jun 2017 23:37:36 +0000 (19:37 -0400)]
Release temporary string reference

7 years agoRemove superfluous semicolons
Tom Van Looy [Sun, 25 Jun 2017 21:24:23 +0000 (23:24 +0200)]
Remove superfluous semicolons

7 years agoFix tests on Windows
Nikita Popov [Sun, 25 Jun 2017 22:22:14 +0000 (00:22 +0200)]
Fix tests on Windows

7 years agoProduce a better exception message when IntlDateFormatter constructor fails.
Sara Golemon [Sun, 25 Jun 2017 21:44:59 +0000 (17:44 -0400)]
Produce a better exception message when IntlDateFormatter constructor fails.

7 years agoFix format arguments
Nikita Popov [Sun, 25 Jun 2017 20:32:57 +0000 (22:32 +0200)]
Fix format arguments

Only dropped one before, both need to go...

7 years agoRemove unused variable op2. It is redeclared later.
Tom Van Looy [Sun, 25 Jun 2017 20:28:42 +0000 (22:28 +0200)]
Remove unused variable op2. It is redeclared later.

7 years agoFix typo
Nikita Popov [Sun, 25 Jun 2017 20:28:56 +0000 (22:28 +0200)]
Fix typo

7 years agoImplement object type annotation
Michał Brzuchalski [Sun, 25 Jun 2017 19:43:25 +0000 (21:43 +0200)]
Implement object type annotation

RFC: https://wiki.php.net/rfc/object-typehint

7 years agoMerge branch 'PHP-7.1'
Nikita Popov [Sun, 25 Jun 2017 18:17:34 +0000 (20:17 +0200)]
Merge branch 'PHP-7.1'

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Sun, 25 Jun 2017 18:17:15 +0000 (20:17 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

7 years agoFixed bug #73173
Nikita Popov [Sun, 25 Jun 2017 18:14:58 +0000 (20:14 +0200)]
Fixed bug #73173

Patch by tloi at fortinet dot com.

7 years agoMerge branch 'PHP-7.1'
Bob Weinand [Sun, 25 Jun 2017 18:15:31 +0000 (20:15 +0200)]
Merge branch 'PHP-7.1'

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Bob Weinand [Sun, 25 Jun 2017 18:13:48 +0000 (20:13 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

7 years agoExpose inflate_get_status() and inflate_get_read_len() functions
Bob Weinand [Sun, 25 Jun 2017 18:11:53 +0000 (20:11 +0200)]
Expose inflate_get_status() and inflate_get_read_len() functions

7 years agoAdd more constants, improve comments, and add tests
Matthew Trescott [Sun, 25 Jun 2017 09:07:14 +0000 (11:07 +0200)]
Add more constants, improve comments, and add tests

7 years agoMerge branch 'PHP-7.1'
Nikita Popov [Sun, 25 Jun 2017 17:49:25 +0000 (19:49 +0200)]
Merge branch 'PHP-7.1'

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Sun, 25 Jun 2017 17:48:54 +0000 (19:48 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

7 years agoFixed bug #73900
Nikita Popov [Sun, 25 Jun 2017 17:48:17 +0000 (19:48 +0200)]
Fixed bug #73900

7 years agoMerge branch 'PHP-7.1'
Jakub Zelenka [Sun, 25 Jun 2017 17:11:10 +0000 (18:11 +0100)]
Merge branch 'PHP-7.1'

7 years agoAdd OPENSSL_DONT_ZERO_PAD_KEY constant to prevent key padding
Jakub Zelenka [Sun, 25 Jun 2017 17:08:50 +0000 (18:08 +0100)]
Add OPENSSL_DONT_ZERO_PAD_KEY constant to prevent key padding

It fixes bug #71917 (openssl_open() returns junk on envelope < 16 bytes)
and bug #72362 (OpenSSL Blowfish encryption is incorrect for short
keys).

7 years agoDrop soap_hash_str_find_deref()
Nikita Popov [Sun, 25 Jun 2017 16:51:40 +0000 (18:51 +0200)]
Drop soap_hash_str_find_deref()

And directly use zend_hash_str_find_deref() instead.

7 years agoOnly compute callback name in error cases
Nikita Popov [Sun, 25 Jun 2017 16:45:59 +0000 (18:45 +0200)]
Only compute callback name in error cases

Mostly the callback name is only used to report an error. Try to
avoid calculating it if no error occurred.

7 years agoExtract zend_get_callable_name() API
Nikita Popov [Sun, 25 Jun 2017 15:55:56 +0000 (17:55 +0200)]
Extract zend_get_callable_name() API

Instead of interleaving this inside zend_is_callable(), implement
this in a separate function instead.

Also add _deref() hash APIs. I've wanted these for a while, and
this is another place where they're useful, so finally do it...

7 years agoMove va_copy compatibility code into zend_portability.h
Nikita Popov [Sun, 25 Jun 2017 15:00:26 +0000 (17:00 +0200)]
Move va_copy compatibility code into zend_portability.h

Previously this was defined in zend.c and php.h and also handled
in another way in soap.c.

7 years agoRemove unnecessary string copy
Nikita Popov [Sun, 25 Jun 2017 14:52:50 +0000 (16:52 +0200)]
Remove unnecessary string copy

7 years agoFix FE_FETCH_* exception check
Nikita Popov [Sun, 25 Jun 2017 14:45:17 +0000 (16:45 +0200)]
Fix FE_FETCH_* exception check

Only applying this for 7.2, because handling this would be ugly
under the old retval freeing semantics.

7 years agoFixed bug #74810
Nikita Popov [Sun, 25 Jun 2017 13:37:29 +0000 (15:37 +0200)]
Fixed bug #74810

And also did some general cleanup in ZEND_FUNC_GET_ARGS.

7 years agoMerge branch 'PHP-7.1'
Nikita Popov [Sun, 25 Jun 2017 13:31:06 +0000 (15:31 +0200)]
Merge branch 'PHP-7.1'

7 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Sun, 25 Jun 2017 13:30:29 +0000 (15:30 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

7 years agoDon't leave holes in func_get_args() and backtraces
Nikita Popov [Sun, 25 Jun 2017 13:08:36 +0000 (15:08 +0200)]
Don't leave holes in func_get_args() and backtraces

Argument lists should always be continuous and hole-free, even if
local variables are unset. Replace UNDEF values with NULLs.

7 years agoFixed bug #73944 (inflate_init() dictionary option) - add NEWS entry
Bob Weinand [Sun, 25 Jun 2017 08:57:36 +0000 (10:57 +0200)]
Fixed bug #73944 (inflate_init() dictionary option) - add NEWS entry

7 years agoRemove invalid check of dictionary content and add initialization of dictionary if...
wapmorgan [Sat, 24 Jun 2017 19:44:01 +0000 (22:44 +0300)]
Remove invalid check of dictionary content and add initialization of dictionary if raw compression used

7 years agonot about zend_arg_info.class_name
Remi Collet [Sun, 25 Jun 2017 06:41:11 +0000 (08:41 +0200)]
not about zend_arg_info.class_name

7 years agonote about IS_TYPE_IMMUTABLE
Remi Collet [Sun, 25 Jun 2017 06:32:03 +0000 (08:32 +0200)]
note about IS_TYPE_IMMUTABLE

7 years agonote about php_pcre_replace*
Remi Collet [Sun, 25 Jun 2017 06:27:52 +0000 (08:27 +0200)]
note about php_pcre_replace*

7 years agoZEND_ACC_CLONE is removed
Remi Collet [Sun, 25 Jun 2017 06:23:30 +0000 (08:23 +0200)]
ZEND_ACC_CLONE is removed