]> granicus.if.org Git - php/log
php
6 years agoFixed bug #76437 (token_get_all with TOKEN_PARSE flag fails to recognise close tag)
Xinchen Hui [Mon, 18 Jun 2018 03:33:48 +0000 (11:33 +0800)]
Fixed bug #76437 (token_get_all with TOKEN_PARSE flag fails to recognise close tag)

6 years agoMerge branch 'PHP-7.2'
Stanislav Malyshev [Sun, 17 Jun 2018 23:43:46 +0000 (16:43 -0700)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  ICU 59+ requires C++11 and errors out without the option
  Fix #76300 - Dont attempt to change visibility of a parent private

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Sun, 17 Jun 2018 23:42:49 +0000 (16:42 -0700)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  ICU 59+ requires C++11 and errors out without the option

6 years agoICU 59+ requires C++11 and errors out without the option
Stanislav Malyshev [Sun, 17 Jun 2018 23:00:06 +0000 (16:00 -0700)]
ICU 59+ requires C++11 and errors out without the option

6 years agoFix #76300 - Dont attempt to change visibility of a parent private
Pedro Magalhães [Thu, 3 May 2018 20:25:12 +0000 (21:25 +0100)]
Fix #76300 - Dont attempt to change visibility of a parent private

6 years agoMerge branch 'PHP-7.2'
Stanislav Malyshev [Sun, 17 Jun 2018 22:47:03 +0000 (15:47 -0700)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fix #76300 - Dont attempt to change visibility of a parent private

6 years agoMerge branch 'pull-request/3233' into PHP-7.2
Stanislav Malyshev [Sun, 17 Jun 2018 22:26:42 +0000 (15:26 -0700)]
Merge branch 'pull-request/3233' into PHP-7.2

* pull-request/3233:
  Fix #76300 - Dont attempt to change visibility of a parent private

6 years agoMerge branch 'pull-request/3268'
Stanislav Malyshev [Sun, 17 Jun 2018 21:12:45 +0000 (14:12 -0700)]
Merge branch 'pull-request/3268'

* pull-request/3268:
  Sync sysvsem and sysvshm versions in phpinfo

6 years agoMerge branch 'pull-request/3295'
Stanislav Malyshev [Sun, 17 Jun 2018 21:11:07 +0000 (14:11 -0700)]
Merge branch 'pull-request/3295'

* pull-request/3295:
  Remove old and unused warnings when building apache

6 years agoMerge branch 'pull-request/3307'
Stanislav Malyshev [Sun, 17 Jun 2018 21:06:40 +0000 (14:06 -0700)]
Merge branch 'pull-request/3307'

* pull-request/3307:
  Bump snmp extension version to PHP version

6 years agoMerge branch 'pull-request/3296'
Stanislav Malyshev [Sun, 17 Jun 2018 21:05:01 +0000 (14:05 -0700)]
Merge branch 'pull-request/3296'

* pull-request/3296:
  Bump fileinfo extension version to PHP release version

6 years agoMerge branch 'pull-request/3304'
Stanislav Malyshev [Sun, 17 Jun 2018 20:54:04 +0000 (13:54 -0700)]
Merge branch 'pull-request/3304'

* pull-request/3304:
  Bump intl extension version to PHP release version

6 years agoonly warning when the flag is true
Xinchen Hui [Sun, 17 Jun 2018 03:39:08 +0000 (11:39 +0800)]
only warning when the flag is true

6 years agoRemove old SVN keywords substitutions
Peter Kokot [Tue, 12 Jun 2018 18:01:37 +0000 (20:01 +0200)]
Remove old SVN keywords substitutions

When the PHP source code was versioned in Subversion, there was
possible to substitute certain keywords such as $Id$ with revision
number, last change time and author name. Such approach is not used
in Git so this patch removes these outdated artifacts from source
code files.

6 years agoRemove Git ident attribute from the iconv extension
Peter Kokot [Tue, 12 Jun 2018 13:06:07 +0000 (15:06 +0200)]
Remove Git ident attribute from the iconv extension

6 years agoRemove SVN revision from phar phpinfo output
Peter Kokot [Tue, 12 Jun 2018 14:09:30 +0000 (16:09 +0200)]
Remove SVN revision from phar phpinfo output

The SVN revision was utilized with Subversion. The Git ident
attribute applies only for particular file and since other core
extensions don't output this information anymore this patch
removes it from the phpinfo output to sync and make the phpinfo
core extensions more consistent.

6 years agoFixed bug #75218
Nikita Popov [Sun, 24 Sep 2017 13:24:51 +0000 (15:24 +0200)]
Fixed bug #75218

I've introduced a new CompileError type, from which ParseError
inherits. These errors are not parse errors in the narrow sense
of the term, even though they happen to be generated during
parsing in our implementation. Additionally reusing the ParseError
class for this purpose would change existing error messages (if
the exception is not caught) from a "Fatal error:" to a "Parse
error:" prefix, and also the error kind from E_COMPILE_ERROR to
E_PARSE.

6 years agoRemove old SVN keywords substitutions from the zip tests
Peter Kokot [Wed, 13 Jun 2018 08:05:40 +0000 (10:05 +0200)]
Remove old SVN keywords substitutions from the zip tests

6 years agoAdd NEWS entries
David Carlier [Thu, 14 Jun 2018 20:17:25 +0000 (21:17 +0100)]
Add NEWS entries

[ci skip]

6 years ago[ci skip] Mention new hrtime() in NEWS
Tom Van Looy [Thu, 14 Jun 2018 20:04:30 +0000 (22:04 +0200)]
[ci skip] Mention new hrtime() in NEWS

6 years agoBump snmp extension version to PHP version
Peter Kokot [Fri, 15 Jun 2018 10:55:21 +0000 (12:55 +0200)]
Bump snmp extension version to PHP version

This patch syncs the snmp extension to match it with the PHP release
version.

6 years agoRemove assertion
Xinchen Hui [Fri, 15 Jun 2018 09:21:59 +0000 (17:21 +0800)]
Remove assertion

6 years agoUpdate NEWS
Xinchen Hui [Fri, 15 Jun 2018 08:32:27 +0000 (16:32 +0800)]
Update NEWS

6 years agoMerge branch 'PHP-7.2'
Xinchen Hui [Fri, 15 Jun 2018 08:31:58 +0000 (16:31 +0800)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fixed bug #76477 (Opcache causes empty return value)

6 years agoFixed bug #76477 (Opcache causes empty return value)
Xinchen Hui [Fri, 15 Jun 2018 08:31:31 +0000 (16:31 +0800)]
Fixed bug #76477 (Opcache causes empty return value)

6 years ago[ci skip] Update NEWS
Anatol Belski [Fri, 15 Jun 2018 05:30:10 +0000 (07:30 +0200)]
[ci skip] Update NEWS

6 years agoFixe bug #76386
Victor Csiky [Wed, 30 May 2018 05:49:56 +0000 (07:49 +0200)]
Fixe bug #76386

..that is also a duplicate of #67122

6 years agoBump fileinfo extension version to PHP release version
Peter Kokot [Thu, 14 Jun 2018 03:20:14 +0000 (05:20 +0200)]
Bump fileinfo extension version to PHP release version

To sync core extensions and their versioning more the fileinfo extension
can be versioned same way as PHP releases.

6 years agoBump intl extension version to PHP release version
Peter Kokot [Thu, 14 Jun 2018 21:35:29 +0000 (23:35 +0200)]
Bump intl extension version to PHP release version

This patch syncs and simplifies the intl core extension versioning
to match the PHP release version.

6 years agoFix unspecialized executor
Nikita Popov [Thu, 14 Jun 2018 21:22:35 +0000 (23:22 +0200)]
Fix unspecialized executor

If we conditionally fetch a value, we also need to conditionally
free it.

6 years agoMerge branch 'pull-request/3299'
Stanislav Malyshev [Thu, 14 Jun 2018 19:30:41 +0000 (12:30 -0700)]
Merge branch 'pull-request/3299'

* pull-request/3299:
  Bump extension, module and PHP API numbers for 7.3

6 years agoBump PHP_JSON_VERSION to 1.7.0
Jakub Zelenka [Thu, 14 Jun 2018 19:25:59 +0000 (20:25 +0100)]
Bump PHP_JSON_VERSION to 1.7.0

6 years agoBump extension, module and PHP API numbers for 7.3
Michael Moravec [Thu, 14 Jun 2018 12:31:49 +0000 (14:31 +0200)]
Bump extension, module and PHP API numbers for 7.3

6 years agoRemove old and unused warnings when building apache
Peter Kokot [Thu, 14 Jun 2018 02:45:28 +0000 (04:45 +0200)]
Remove old and unused warnings when building apache

The configure script already warns users at the beginning with
unrecognized options warning so additional check is not required. These
sapis were also removed from the PHP core.

6 years agoMerge branch 'PHP-7.2'
Dmitry Stogov [Wed, 13 Jun 2018 23:41:14 +0000 (02:41 +0300)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fixed invalid free introduced by d6e81f0bfd0cb90586dd83d4fd47a4302605261a (avoid keeping "invalid" pointer)

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Dmitry Stogov [Wed, 13 Jun 2018 23:40:59 +0000 (02:40 +0300)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed invalid free introduced by d6e81f0bfd0cb90586dd83d4fd47a4302605261a (avoid keeping "invalid" pointer)

6 years agoFixed invalid free introduced by d6e81f0bfd0cb90586dd83d4fd47a4302605261a (avoid...
Dmitry Stogov [Wed, 13 Jun 2018 23:38:39 +0000 (02:38 +0300)]
Fixed invalid free introduced by d6e81f0bfd0cb90586dd83d4fd47a4302605261a (avoid keeping "invalid" pointer)

6 years agoAvoid useless stream buffer copying and workaround with chunk_size manipulation.
Dmitry Stogov [Wed, 13 Jun 2018 23:34:17 +0000 (02:34 +0300)]
Avoid useless stream buffer copying and workaround with chunk_size manipulation.

6 years agoMerge branch 'PHP-7.2'
Nikita Popov [Wed, 13 Jun 2018 21:48:37 +0000 (23:48 +0200)]
Merge branch 'PHP-7.2'

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Wed, 13 Jun 2018 21:48:28 +0000 (23:48 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoMake $locale parameter to BreakIterator ctors optional
Nikita Popov [Wed, 13 Jun 2018 21:47:20 +0000 (23:47 +0200)]
Make $locale parameter to BreakIterator ctors optional

It's documented as such and already accepts null.

6 years agophp_json_escape_string() optimization
Dmitry Stogov [Wed, 13 Jun 2018 15:26:48 +0000 (18:26 +0300)]
php_json_escape_string() optimization

6 years agoerealloc() is infallible
Christoph M. Becker [Wed, 13 Jun 2018 14:10:08 +0000 (16:10 +0200)]
erealloc() is infallible

6 years agoemalloc never returns null
Markus Staab [Wed, 13 Jun 2018 10:27:57 +0000 (12:27 +0200)]
emalloc never returns null

6 years agoRemove old SVN keywords substitutions from xsl and sockets tests
Peter Kokot [Wed, 13 Jun 2018 07:56:32 +0000 (09:56 +0200)]
Remove old SVN keywords substitutions from xsl and sockets tests

When the PHP source code was versioned in Subversion, there was
possible to substitute certain keywords such as $Id$ with revision
number, last change time and author name. Such approach is not used
in Git so this patch removes these outdated artifacts from the xsl
and sockets extensions tests files.

6 years agoemalloc() never returns NULL
Dmitry Stogov [Wed, 13 Jun 2018 09:39:56 +0000 (12:39 +0300)]
emalloc() never returns NULL

6 years agoAdded num_roots to gc_status
Xinchen Hui [Wed, 13 Jun 2018 08:41:51 +0000 (16:41 +0800)]
Added num_roots to gc_status

6 years agoRemoved "gc_" prefix.
Dmitry Stogov [Wed, 13 Jun 2018 08:28:24 +0000 (11:28 +0300)]
Removed "gc_" prefix.

6 years agoAllow access to some garbage collection internals (Benjamin Eberlei)
Dmitry Stogov [Wed, 13 Jun 2018 08:10:17 +0000 (11:10 +0300)]
Allow access to some garbage collection internals (Benjamin Eberlei)

6 years agoFixed bug #76446 (zend_variables.c:73: zend_string_destroy: Assertion `!(zval_gc_flag...
Xinchen Hui [Wed, 13 Jun 2018 07:06:51 +0000 (15:06 +0800)]
Fixed bug #76446 (zend_variables.c:73: zend_string_destroy: Assertion `!(zval_gc_flags((str)->gc)).

6 years agoMerge branch 'PHP-7.2'
Jakub Zelenka [Tue, 12 Jun 2018 17:11:20 +0000 (18:11 +0100)]
Merge branch 'PHP-7.2'

6 years agoPort FPM test 023 and 024 to the new FPM testing
Jakub Zelenka [Tue, 12 Jun 2018 17:09:27 +0000 (18:09 +0100)]
Port FPM test 023 and 024 to the new FPM testing

6 years agoMerge branch 'PHP-7.2'
Jakub Zelenka [Tue, 12 Jun 2018 17:04:30 +0000 (18:04 +0100)]
Merge branch 'PHP-7.2'

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Jakub Zelenka [Tue, 12 Jun 2018 17:03:01 +0000 (18:03 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoRewrite FPM tests
Jakub Zelenka [Thu, 7 Jun 2018 16:21:54 +0000 (17:21 +0100)]
Rewrite FPM tests

6 years ago[ci skip] Update NEWS
Anatol Belski [Tue, 12 Jun 2018 16:08:24 +0000 (18:08 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.2'
Anatol Belski [Tue, 12 Jun 2018 16:08:05 +0000 (18:08 +0200)]
Merge branch 'PHP-7.2'

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

6 years ago[ci skip] Update NEWS
Anatol Belski [Tue, 12 Jun 2018 16:07:35 +0000 (18:07 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Tue, 12 Jun 2018 16:07:11 +0000 (18:07 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  [ci skip] Update NEWS

6 years ago[ci skip] Update NEWS
Anatol Belski [Tue, 12 Jun 2018 16:06:41 +0000 (18:06 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.2'
Anatol Belski [Tue, 12 Jun 2018 13:31:49 +0000 (15:31 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fixed bug #76462 Undefined property: DateInterval::$f

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Tue, 12 Jun 2018 13:31:01 +0000 (15:31 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed bug #76462 Undefined property: DateInterval::$f

6 years agoFixed bug #76462 Undefined property: DateInterval::$f
Anatol Belski [Tue, 12 Jun 2018 13:30:14 +0000 (15:30 +0200)]
Fixed bug #76462 Undefined property: DateInterval::$f

6 years agoFixed bug #76463 (var has array key type but not value type)
Xinchen Hui [Tue, 12 Jun 2018 12:55:06 +0000 (20:55 +0800)]
Fixed bug #76463 (var has array key type but not value type)

6 years agoEnable HRTime on OpenBSD
Tom Van Looy [Fri, 8 Jun 2018 21:17:34 +0000 (23:17 +0200)]
Enable HRTime on OpenBSD

OpenBSD has clock_gettime() so this will work. They have _POSIX_TIMERS on -1 in
unistd because they don't have per-process timers.

6 years agoNEWS
Remi Collet [Tue, 12 Jun 2018 07:36:31 +0000 (09:36 +0200)]
NEWS

6 years agoMerge branch 'PHP-7.2'
Remi Collet [Tue, 12 Jun 2018 07:36:14 +0000 (09:36 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  NEWS
  Add OPSYS_CPM constant as documented and to match libzip naming

6 years agoNEWS
Remi Collet [Tue, 12 Jun 2018 07:35:52 +0000 (09:35 +0200)]
NEWS

6 years agoAdd OPSYS_CPM constant as documented and to match libzip naming
Remi Collet [Tue, 12 Jun 2018 07:31:41 +0000 (09:31 +0200)]
Add OPSYS_CPM constant as documented and to match libzip naming

6 years agosupplemental fix for bug #76427
Xinchen Hui [Tue, 12 Jun 2018 01:40:34 +0000 (09:40 +0800)]
supplemental fix for bug #76427

there are two parts to make this problem visible , the first is
our new gc new freeing zvals in an opposite direction(compare to 7.2)
the second is zend_object_store_del doesn't check IS_VALID since 7.3
(using assertion instead)

6 years agoUpdate data tables for Unicode 11
Nikita Popov [Mon, 11 Jun 2018 18:24:36 +0000 (20:24 +0200)]
Update data tables for Unicode 11

6 years agoRemove dead code for ADD_STRING/ADD_CHAR optimization
Nikita Popov [Mon, 11 Jun 2018 13:26:19 +0000 (15:26 +0200)]
Remove dead code for ADD_STRING/ADD_CHAR optimization

These opcodes don't exist anymore. The modern equivalent would be
the ROPE_* opcodes. However the code would have to be different
anyway.

6 years agoSkip tests when Oniguruma is disabled
Anatol Belski [Mon, 11 Jun 2018 15:44:06 +0000 (17:44 +0200)]
Skip tests when Oniguruma is disabled

6 years agoFix mbstring fallback when --disable-mbregex used
Anatol Belski [Mon, 11 Jun 2018 15:43:29 +0000 (17:43 +0200)]
Fix mbstring fallback when --disable-mbregex used

6 years agoCorrect NEWS
Xinchen Hui [Mon, 11 Jun 2018 13:10:13 +0000 (21:10 +0800)]
Correct NEWS

6 years agoMerge branch 'master' of git.php.net:/php-src
Xinchen Hui [Mon, 11 Jun 2018 13:01:10 +0000 (21:01 +0800)]
Merge branch 'master' of git.php.net:/php-src

* 'master' of git.php.net:/php-src:
  Remove inappropriate FreeLibrary calls
  Remove inappropriate FreeLibrary call
  The ZEND_EXTENSION change is merged with xdebug now so we can drop this for master only
  Fixed bug #76443 (php+php_interbase.dll crash on module_shutdown)

6 years agoFixed bug #76427 (Segfault in zend_objects_store_put)
Xinchen Hui [Mon, 11 Jun 2018 13:00:09 +0000 (21:00 +0800)]
Fixed bug #76427 (Segfault in zend_objects_store_put)

6 years agoRemove inappropriate FreeLibrary calls
Anatol Belski [Mon, 11 Jun 2018 11:53:17 +0000 (13:53 +0200)]
Remove inappropriate FreeLibrary calls

6 years agoMerge branch 'PHP-7.2'
Anatol Belski [Mon, 11 Jun 2018 11:51:56 +0000 (13:51 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Remove inappropriate FreeLibrary call

6 years agoRemove inappropriate FreeLibrary call
Anatol Belski [Mon, 11 Jun 2018 11:49:42 +0000 (13:49 +0200)]
Remove inappropriate FreeLibrary call

6 years agoThe ZEND_EXTENSION change is merged with xdebug now so we can drop this for master...
Kalle Sommer Nielsen [Mon, 11 Jun 2018 11:34:20 +0000 (13:34 +0200)]
The ZEND_EXTENSION change is merged with xdebug now so we can drop this for master only

6 years agoFixed bug #76443 (php+php_interbase.dll crash on module_shutdown)
Kalle Sommer Nielsen [Mon, 11 Jun 2018 09:50:39 +0000 (11:50 +0200)]
Fixed bug #76443 (php+php_interbase.dll crash on module_shutdown)

6 years agoRemove revision from OCI8 extension
Peter Kokot [Sun, 10 Jun 2018 18:42:57 +0000 (20:42 +0200)]
Remove revision from OCI8 extension

The revisions were used in SVN. Other core extensions don't
provide this information in the phpinfo output anymore so
this patch removes it from the OCI8 info output to make it
consistent with other extensions.

6 years agoFix the Z_IMMUTABLE macro - '(' was mismatched
Tyson Andre [Sat, 9 Jun 2018 22:54:22 +0000 (15:54 -0700)]
Fix the Z_IMMUTABLE macro - '(' was mismatched

The macro properly has two matching `(` and `)` symbols
after this change.

This typo was causing syntax errors when compiling extensions
using the (deprecated) macro.

This fixes a bug in the PHP 7.3 branch introduced by
742d5a01ed5bd39a18929c04a5f5c5596a4b005b

6 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sun, 10 Jun 2018 19:21:29 +0000 (21:21 +0200)]
Merge branch 'PHP-7.2'

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Sun, 10 Jun 2018 19:21:11 +0000 (21:21 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoFix mysqlnd build without openssl
Nikita Popov [Sat, 9 Jun 2018 09:04:40 +0000 (11:04 +0200)]
Fix mysqlnd build without openssl

Cherry-pick of 968eb0b38cc9095d418beb8f0df08c4b9abdb079, as these
changes were also introduced in lower branches.

6 years agoMerge branch 'PHP-7.2'
Jakub Zelenka [Sun, 10 Jun 2018 13:34:23 +0000 (14:34 +0100)]
Merge branch 'PHP-7.2'

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Jakub Zelenka [Sun, 10 Jun 2018 13:33:28 +0000 (14:33 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoDeprecate image2wbmp()
Christoph M. Becker [Sat, 9 Jun 2018 22:33:42 +0000 (00:33 +0200)]
Deprecate image2wbmp()

According to https://wiki.php.net/rfc/image2wbmp, we deprecate
`image2wbmp()`, rename the `$threshold` parameter to `$foreground`, and
remove superfluous code.

6 years agoOptimizer: Don't propagate constants into MAKE_REF
Nikita Popov [Sat, 9 Jun 2018 22:09:11 +0000 (00:09 +0200)]
Optimizer: Don't propagate constants into MAKE_REF

This occurs in Zend/tests/assign_ref_error_var_handling.phpt,
added in 95a07099359a91b81964565703a0991a55fb6889.

6 years ago[ci skip] Update NEWS
Christoph M. Becker [Sat, 9 Jun 2018 20:36:35 +0000 (22:36 +0200)]
[ci skip] Update NEWS

Cf. https://github.com/php/php-src/commit/3fdde65617e9f954e2c964768aac8831005497e5

6 years agoFix handling of ERROR zval in op1 of ASSIGN_REF
Nikita Popov [Sat, 9 Jun 2018 19:28:30 +0000 (21:28 +0200)]
Fix handling of ERROR zval in op1 of ASSIGN_REF

If op1 is ERROR the behavior is to not perform any assignment and
return NULL. However, if the RHS was a by-value returning function,
we'd instead emit a notice and return the RHS as the return value
(even though the value was not assigned to anything -- the temporary
is immediately destroyed).

This normalized the behavior to always check for an ERROR in op1
first.

6 years agoMerge branch 'PHP-7.2'
Anatol Belski [Sat, 9 Jun 2018 18:59:41 +0000 (20:59 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fix test portability

6 years agoFix test portability
Anatol Belski [Sat, 9 Jun 2018 18:57:17 +0000 (20:57 +0200)]
Fix test portability

6 years ago[ci skip] Update NEWS
Anatol Belski [Sat, 9 Jun 2018 18:36:50 +0000 (20:36 +0200)]
[ci skip] Update NEWS

6 years agoAdd check for variable size array feature
Anatol Belski [Sat, 9 Jun 2018 18:27:16 +0000 (20:27 +0200)]
Add check for variable size array feature

Usage of VLA is not portable, wile supported by some compilers. For
instance, GCC supports it even if -std=c89 is passed. Even if we would
switch to C99, it would be still not portable at least with VC++. Thus,
adding a centralized check so such code can be guarded and moved to
alloca() if needed.

6 years agoError on by-ref assign to overloaded prop returning ref
Nikita Popov [Sat, 9 Jun 2018 16:36:54 +0000 (18:36 +0200)]
Error on by-ref assign to overloaded prop returning ref

This error was already thrown if __get() was used -- however not
if it returned by reference. This is incorrect, because the
reference return makes no difference to a by-reference assignment,
which has reference-breaking semantics. The result was that the
assignment was accepted silently, even though it didn't do anything
(not even the value was assigned, let alone the reference).

6 years agoMerge branch 'PHP-7.2'
Christoph M. Becker [Sat, 9 Jun 2018 15:57:10 +0000 (17:57 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fix #76409: heap use after free in _php_stream_free

6 years agoFix #76409: heap use after free in _php_stream_free
Christoph M. Becker [Sat, 9 Jun 2018 15:52:05 +0000 (17:52 +0200)]
Fix #76409: heap use after free in _php_stream_free

We must not close the stream in exif_read_from_impl(), since it is the
responsibility of the (caller's) caller to do so, if it actually opened
the stream.

We simplify the reproduce script, which is actually about supplying a
path to a directory (opposed to a regular file), and use `.` instead of
`/` to also make it work on Windows.