]> granicus.if.org Git - php/log
php
6 years agoEnforce C++11 in ext/intl
Anatol Belski [Fri, 28 Sep 2018 14:46:47 +0000 (16:46 +0200)]
Enforce C++11 in ext/intl

ICU 59 already requires C++11 by default. The minimum version required
by the core is 50, which is compiled with at least C++11 in many distros
as package defs tell. Headers for ICU versions between ICU 50 and 58 look
fine when included for C++11 compilation, the linking is thereof not affected.

The macro PHP_CXX_COMPILE_STDCXX is based on
https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
The patch consists on allowing to read the corresponding switch in a user
defined variable instead of enforcing CXXFLAGS globally. That way, every
ext or SAPI can decide, which C++ standard is to be used. The
documentation is provided in the m4 file.

C++11 is already somewhat older standard, C++14 were better. However
issues with GCC < 5.0 and some other compilers are possibly to hit back.
Still there's some time to check for C++14 for ext/intl, too. Having said
that, C++11 in ext/intl and a mechanism to determine features is a good step
towards better C++ support.

6 years agoInitialize ce->parent_name to NULL
Bob Weinand [Sun, 7 Oct 2018 09:20:38 +0000 (11:20 +0200)]
Initialize ce->parent_name to NULL

6 years agomysqli_fork: Fix undefined variable
bugreportuser [Sat, 6 Oct 2018 15:05:40 +0000 (09:05 -0600)]
mysqli_fork: Fix undefined variable

6 years agoMerge branch 'PHP-7.3'
Pedro Magalhães [Sat, 6 Oct 2018 14:59:05 +0000 (15:59 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Remove unstable dns tests

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Pedro Magalhães [Sat, 6 Oct 2018 14:58:51 +0000 (15:58 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Remove unstable dns tests

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Pedro Magalhães [Sat, 6 Oct 2018 14:58:32 +0000 (15:58 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Remove unstable dns tests

6 years agoRemove unstable dns tests
Pedro Magalhães [Fri, 5 Oct 2018 15:24:55 +0000 (16:24 +0100)]
Remove unstable dns tests

6 years agoMerge branch 'PHP-8.3'
Pedro Magalhães [Sat, 6 Oct 2018 14:46:30 +0000 (15:46 +0100)]
Merge branch 'PHP-8.3'

* PHP-7.3:
  Fix #76888 - Remove unstable test

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Pedro Magalhães [Sat, 6 Oct 2018 14:46:11 +0000 (15:46 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #76888 - Remove unstable test

6 years agoFix #76888 - Remove unstable test
Pedro Magalhães [Fri, 5 Oct 2018 00:09:39 +0000 (01:09 +0100)]
Fix #76888 - Remove unstable test

6 years agoUse the locally defined constants for dns record types
Pedro Magalhães [Sat, 6 Oct 2018 13:58:11 +0000 (14:58 +0100)]
Use the locally defined constants for dns record types

6 years ago[ci skip] Update NEWS and UPGRADING wrt. unbundling libsqlite
Christoph M. Becker [Sat, 6 Oct 2018 10:44:50 +0000 (12:44 +0200)]
[ci skip] Update NEWS and UPGRADING wrt. unbundling libsqlite

6 years agoUnbundle libsqlite3
Christoph M. Becker [Sat, 6 Oct 2018 10:36:55 +0000 (12:36 +0200)]
Unbundle libsqlite3

Since there is no need to patch libsqlite3 for our purposes, and since
libsqlite3 ≥ 3.3.9 (which is our current requirement) is widely
available on distros, there is no reason anymore to bundle the library.

Besides removing the bundled libsqlite, and adapting the configuration
respectively, we also fix the use of the SQLITE_ENABLE_COLUMN_METADATA
compile time constant to detect whether sqlite3_column_table_name() is
available by a working feature detection (otherwise bug_42589.phpt
would fail).  We also skip bug73068.phpt for libsqlite 3.11.0 to
3.14.1 which have a bug (<https://sqlite.org/src/info/ef360601>).

We also completely drop support for the obscure pdo_sqlite_external
extension (which could have been enabled on Windows only by passing
`--pdo-sqlite-external` to configure), since it is not needed anymore.

Furthermore, we remove references to the bundled libsqlite from
Makefile.gcov, CONTRIBUTING.md and README.REDIST.BINS.

6 years agoFix PHPT ENV sections
Christoph M. Becker [Sat, 6 Oct 2018 10:01:22 +0000 (12:01 +0200)]
Fix PHPT ENV sections

run-tests.php assumes the contents of an ENV section are a simple list
of key-value-pairs, instead of evaluating the section contents as PHP
script which server-tests.php did.  Since server-tests.php is gone, we
remove the superfluous and confusing scripting.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Sat, 6 Oct 2018 09:22:24 +0000 (11:22 +0200)]
Merge branch 'PHP-7.3'

6 years agoFix bug #76979: define() error message does not mention resources as valid values
Michael Moravec [Fri, 5 Oct 2018 22:07:41 +0000 (00:07 +0200)]
Fix bug #76979: define() error message does not mention resources as valid values

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Sat, 6 Oct 2018 09:06:59 +0000 (11:06 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #76975: preg_match difference between 7.3 and < 7.3 - II

6 years agoFix #76975: preg_match difference between 7.3 and < 7.3 - II
Christoph M. Becker [Sat, 6 Oct 2018 09:05:41 +0000 (11:05 +0200)]
Fix #76975: preg_match difference between 7.3 and < 7.3 - II

[ci skip]

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Fri, 5 Oct 2018 21:01:20 +0000 (23:01 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  Add test for bug #76942

6 years ago[ci skip] Update NEWS
Anatol Belski [Fri, 5 Oct 2018 21:01:03 +0000 (23:01 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Fri, 5 Oct 2018 21:00:24 +0000 (23:00 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  Add test for bug #76942

6 years ago[ci skip] Update NEWS
Anatol Belski [Fri, 5 Oct 2018 20:59:55 +0000 (22:59 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Fri, 5 Oct 2018 20:57:45 +0000 (22:57 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  [ci skip] Update NEWS
  Add test for bug #76942

6 years ago[ci skip] Update NEWS
Anatol Belski [Fri, 5 Oct 2018 20:57:27 +0000 (22:57 +0200)]
[ci skip] Update NEWS

6 years agoAdd test for bug #76942
Anatol Belski [Fri, 5 Oct 2018 20:51:58 +0000 (22:51 +0200)]
Add test for bug #76942

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Fri, 5 Oct 2018 20:54:03 +0000 (22:54 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Add test for bug #76942
  Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Fri, 5 Oct 2018 20:53:11 +0000 (22:53 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Add test for bug #76942
  Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Fri, 5 Oct 2018 20:52:53 +0000 (22:52 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Add test for bug #76942
  Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH

6 years agoAdd test for bug #76942
Anatol Belski [Fri, 5 Oct 2018 20:51:58 +0000 (22:51 +0200)]
Add test for bug #76942

6 years agoFixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
Anatol Belski [Fri, 5 Oct 2018 20:50:34 +0000 (22:50 +0200)]
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH

ref bug #74484

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Fri, 5 Oct 2018 19:34:04 +0000 (21:34 +0200)]
Merge branch 'PHP-7.3'

6 years agoOptimize MySQL statement execute without parameters
twosee [Mon, 1 Oct 2018 11:22:25 +0000 (19:22 +0800)]
Optimize MySQL statement execute without parameters

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Fri, 5 Oct 2018 16:42:45 +0000 (18:42 +0200)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 5 Oct 2018 16:41:42 +0000 (18:41 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Fri, 5 Oct 2018 16:41:16 +0000 (18:41 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoFix #76972: FTP data truncation due to forceful ssl socket shutdown
Manuel Mausz [Thu, 4 Oct 2018 16:40:26 +0000 (18:40 +0200)]
Fix #76972: FTP data truncation due to forceful ssl socket shutdown

Do a correct bidirectional shutdown instead

6 years agoUse the locally defined constants for dns record types
Pedro Magalhães [Fri, 5 Oct 2018 15:38:06 +0000 (16:38 +0100)]
Use the locally defined constants for dns record types

6 years agoUse HT_MIN_SIZE when duplicating an empty array
Pedro Magalhães [Thu, 4 Oct 2018 22:28:53 +0000 (23:28 +0100)]
Use HT_MIN_SIZE when duplicating an empty array

6 years agoRemove unused backpatch_count field
Nikita Popov [Thu, 4 Oct 2018 19:42:46 +0000 (21:42 +0200)]
Remove unused backpatch_count field

6 years agoEnsure target is \0 terminated
Anatol Belski [Thu, 4 Oct 2018 17:17:22 +0000 (19:17 +0200)]
Ensure target is \0 terminated

6 years agoClarify that the get_properties handler is required
Nikita Popov [Thu, 4 Oct 2018 08:56:43 +0000 (10:56 +0200)]
Clarify that the get_properties handler is required

Some places were checking for non-null get_properties, some weren't.
Make it clear that the handler is required and such checks are not
necessary.

6 years agoFix incorrect printf modifier after size_t changes
Nikita Popov [Thu, 4 Oct 2018 08:58:20 +0000 (10:58 +0200)]
Fix incorrect printf modifier after size_t changes

6 years agoMerge branch 'PHP-7.3'
Remi Collet [Thu, 4 Oct 2018 09:46:37 +0000 (11:46 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Allow to disable pcre.jit when system library is used as it is for now broken on some arch (s390x...)

6 years agoAllow to disable pcre.jit when system library is used
Remi Collet [Thu, 4 Oct 2018 09:45:35 +0000 (11:45 +0200)]
Allow to disable pcre.jit when system library is used
as it is for now broken on some arch (s390x...)

6 years agoMerge branch 'PHP-7.3'
Pierrick Charron [Thu, 4 Oct 2018 01:19:05 +0000 (21:19 -0400)]
Merge branch 'PHP-7.3'

6 years agoUpdate NEWS [ci skip]
Pierrick Charron [Thu, 4 Oct 2018 01:18:47 +0000 (21:18 -0400)]
Update NEWS [ci skip]

6 years agoMerge branch 'PHP-7.3'
Pierrick Charron [Wed, 3 Oct 2018 23:44:46 +0000 (19:44 -0400)]
Merge branch 'PHP-7.3'

6 years agoAdd constants from curl 7.50 to 7.55
Pierrick Charron [Wed, 3 Oct 2018 23:43:59 +0000 (19:43 -0400)]
Add constants from curl 7.50 to 7.55

6 years agoFix PRIMARY MAINTAINER and MAINTENANCE fields
Christoph M. Becker [Wed, 3 Oct 2018 22:47:52 +0000 (00:47 +0200)]
Fix PRIMARY MAINTAINER and MAINTENANCE fields

We have to distinguish between `PRIMARY_MAINTAINER` and `MAINTENANCE`.
Furthermore, all extensions should have both fields.

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Wed, 3 Oct 2018 22:30:40 +0000 (00:30 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  libzip has been unbundled in master only

6 years agolibzip has been unbundled in master only
Christoph M. Becker [Wed, 3 Oct 2018 22:30:10 +0000 (00:30 +0200)]
libzip has been unbundled in master only

Cf. <https://github.com/php/php-src/pull/3532>.

6 years agoReuse delivered length
Anatol Belski [Wed, 3 Oct 2018 21:10:30 +0000 (23:10 +0200)]
Reuse delivered length

Fix length calculation

6 years agoAdd compatibility bit
Anatol Belski [Wed, 3 Oct 2018 19:17:52 +0000 (21:17 +0200)]
Add compatibility bit

readlink in PHP doesn't error on regular files.

6 years agoRemoved wrong reference counting
Dmitry Stogov [Wed, 3 Oct 2018 17:15:30 +0000 (20:15 +0300)]
Removed wrong reference counting

6 years agoUpdate UPGRADING [ci skip]
Anatol Belski [Wed, 3 Oct 2018 17:11:31 +0000 (19:11 +0200)]
Update UPGRADING [ci skip]

6 years agoRefactor php_sys_readlink
Anatol Belski [Wed, 3 Oct 2018 16:56:08 +0000 (18:56 +0200)]
Refactor php_sys_readlink

Also move the implementation into win32 where it belongs

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 3 Oct 2018 16:54:47 +0000 (18:54 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Update NEWS [ci skip]

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Wed, 3 Oct 2018 16:54:08 +0000 (18:54 +0200)]
Update NEWS [ci skip]

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 3 Oct 2018 16:52:21 +0000 (18:52 +0200)]
Merge branch 'PHP-7.3'

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

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Wed, 3 Oct 2018 16:51:48 +0000 (18:51 +0200)]
Update NEWS [ci skip]

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Wed, 3 Oct 2018 16:50:24 +0000 (18:50 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

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

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Wed, 3 Oct 2018 16:49:52 +0000 (18:49 +0200)]
Update NEWS [ci skip]

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Wed, 3 Oct 2018 16:49:13 +0000 (18:49 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Update NEWS [ci skip]

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Wed, 3 Oct 2018 16:48:40 +0000 (18:48 +0200)]
Update NEWS [ci skip]

6 years agoMore careful handling of function prototypes
Dmitry Stogov [Wed, 3 Oct 2018 15:32:25 +0000 (18:32 +0300)]
More careful handling of function prototypes

6 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Wed, 3 Oct 2018 14:43:08 +0000 (17:43 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Avoid code duplication and don't miss env restore

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 3 Oct 2018 12:36:09 +0000 (14:36 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Avoid code duplication and don't miss env restore

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Wed, 3 Oct 2018 12:35:38 +0000 (14:35 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Avoid code duplication and don't miss env restore

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Wed, 3 Oct 2018 12:34:08 +0000 (14:34 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Avoid code duplication and don't miss env restore

6 years agoAvoid code duplication and don't miss env restore
Anatol Belski [Wed, 3 Oct 2018 12:32:52 +0000 (14:32 +0200)]
Avoid code duplication and don't miss env restore

6 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Wed, 3 Oct 2018 12:01:53 +0000 (15:01 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Hopefully last round of size_t fixes, this makes the remaining php_hash_ops use size_t over an int

6 years agoMerge branch 'master' of git.php.net:/php-src
Kalle Sommer Nielsen [Wed, 3 Oct 2018 11:36:30 +0000 (13:36 +0200)]
Merge branch 'master' of git.php.net:/php-src

6 years agoHopefully last round of size_t fixes, this makes the remaining php_hash_ops use size_...
Kalle Sommer Nielsen [Wed, 3 Oct 2018 11:36:05 +0000 (13:36 +0200)]
Hopefully last round of size_t fixes, this makes the remaining php_hash_ops use size_t over an int

6 years agotypo
Dmitry Stogov [Wed, 3 Oct 2018 11:35:36 +0000 (14:35 +0300)]
typo

6 years agoMerge branch 'PHP-7.3'
Remi Collet [Wed, 3 Oct 2018 10:59:46 +0000 (12:59 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  bump zip extension version

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Wed, 3 Oct 2018 10:59:31 +0000 (12:59 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  bump zip extension version

6 years agobump zip extension version
Remi Collet [Wed, 3 Oct 2018 10:59:01 +0000 (12:59 +0200)]
bump zip extension version

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 3 Oct 2018 10:15:54 +0000 (12:15 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fixed bug #76948 Failed shutdown/reboot or end session in Windows

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Wed, 3 Oct 2018 10:15:15 +0000 (12:15 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fixed bug #76948 Failed shutdown/reboot or end session in Windows

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Wed, 3 Oct 2018 10:13:22 +0000 (12:13 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed bug #76948 Failed shutdown/reboot or end session in Windows

6 years agoFixed bug #76948 Failed shutdown/reboot or end session in Windows
Anatol Belski [Wed, 3 Oct 2018 10:11:43 +0000 (12:11 +0200)]
Fixed bug #76948 Failed shutdown/reboot or end session in Windows

6 years agoMerge branch 'master' of git.php.net:/php-src
Kalle Sommer Nielsen [Wed, 3 Oct 2018 09:36:30 +0000 (11:36 +0200)]
Merge branch 'master' of git.php.net:/php-src

6 years agoRemove $ext_shared usage for ext/hash in the Unix build script (Thanks Christoph...
Kalle Sommer Nielsen [Wed, 3 Oct 2018 09:36:11 +0000 (11:36 +0200)]
Remove $ext_shared usage for ext/hash in the Unix build script (Thanks Christoph for the notice)

6 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Wed, 3 Oct 2018 09:33:36 +0000 (12:33 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Second round of fixing compiler warnings in ext/hash. Lots of the signatures that previously was unsigned int is now size_t, there was a fair bit of inconsistency there already and this commit should make it all sync nicely
  Write to correct smart_str
  Revert "Fix compiler warnings in ext/hash"

6 years agoMerge branch 'master' of git.php.net:/php-src
Kalle Sommer Nielsen [Wed, 3 Oct 2018 09:33:15 +0000 (11:33 +0200)]
Merge branch 'master' of git.php.net:/php-src

6 years agoSecond round of fixing compiler warnings in ext/hash. Lots of the signatures that...
Kalle Sommer Nielsen [Wed, 3 Oct 2018 09:32:57 +0000 (11:32 +0200)]
Second round of fixing compiler warnings in ext/hash. Lots of the signatures that previously was unsigned int is now size_t, there was a fair bit of inconsistency there already and this commit should make it all sync nicely

6 years agoAvoid method compatibility check with itself
Dmitry Stogov [Wed, 3 Oct 2018 09:32:33 +0000 (12:32 +0300)]
Avoid method compatibility check with itself

6 years agoAdded assertions
Dmitry Stogov [Wed, 3 Oct 2018 09:31:47 +0000 (12:31 +0300)]
Added assertions

6 years agoWrite to correct smart_str
Nikita Popov [Wed, 3 Oct 2018 09:03:55 +0000 (11:03 +0200)]
Write to correct smart_str

Mixed this up during the migration to ZEND_HASH_FOREACH.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Wed, 3 Oct 2018 08:50:38 +0000 (10:50 +0200)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Wed, 3 Oct 2018 08:50:27 +0000 (10:50 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Wed, 3 Oct 2018 08:50:16 +0000 (10:50 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoReflection: Copy invoke function also in the variadic case
Nikita Popov [Wed, 3 Oct 2018 08:48:42 +0000 (10:48 +0200)]
Reflection: Copy invoke function also in the variadic case

It doesn't matter how the parameters are provided, we always have
to copy the trampoline invoke function.

6 years agoRemove uses of apply_with_arguments API in reflection
Nikita Popov [Tue, 2 Oct 2018 21:28:38 +0000 (23:28 +0200)]
Remove uses of apply_with_arguments API in reflection

Instead of ZEND_HASH_FOREACH. As a side-effect, this fixes a latent
bug in _addmethod, where a zval was interpreted as a zval*.

Also apply some optimizations to getProperties() while at it: For
declared properties, use the HT key instead of unmangling the
property name. For dynamic properties check INDIRECT instead of
looking up prop info to determine if the property is dynamic.

6 years agoRevert "Fix compiler warnings in ext/hash"
Kalle Sommer Nielsen [Wed, 3 Oct 2018 08:37:20 +0000 (10:37 +0200)]
Revert "Fix compiler warnings in ext/hash"

This reverts commit 596fbf7393777cb14006813111875db5b0a21d3b.

6 years agoFix compiler warnings in ext/hash
Kalle Sommer Nielsen [Wed, 3 Oct 2018 06:48:27 +0000 (08:48 +0200)]
Fix compiler warnings in ext/hash

6 years agoUpdate hash tests for consistency in their titles and remove the skipif sections...
Kalle Sommer Nielsen [Wed, 3 Oct 2018 06:48:11 +0000 (08:48 +0200)]
Update hash tests for consistency in their titles and remove the skipif sections (except for the mhash related tests)

6 years agoImplemented RFC "Always available hash extension"
Kalle Sommer Nielsen [Wed, 3 Oct 2018 06:47:07 +0000 (08:47 +0200)]
Implemented RFC "Always available hash extension"

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Tue, 2 Oct 2018 22:22:34 +0000 (00:22 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fixed bug #76947 file_put_contents() blocks the directory of the file (__DIR__)

6 years agoFixed bug #76947 file_put_contents() blocks the directory of the file (__DIR__)
Anatol Belski [Tue, 2 Oct 2018 22:15:43 +0000 (00:15 +0200)]
Fixed bug #76947 file_put_contents() blocks the directory of the file (__DIR__)

The condition was wrong. The target buffer size only matters, when some
output is going to be copied into it.