]> granicus.if.org Git - php/log
php
4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Tue, 19 May 2020 15:28:39 +0000 (17:28 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Bump version

4 years agoBump version
Christoph M. Becker [Tue, 19 May 2020 15:24:18 +0000 (17:24 +0200)]
Bump version

Seems that has been forgotten.

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Tue, 19 May 2020 14:01:48 +0000 (16:01 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix INI setting member name

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Tue, 19 May 2020 14:00:19 +0000 (16:00 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix INI setting member name

4 years agoFix INI setting member name
Christoph M. Becker [Mon, 18 May 2020 14:07:16 +0000 (16:07 +0200)]
Fix INI setting member name

Since the member is not used in `OnUpdateEol()` that's not really an
issue, but still it's confusing to apparently have two INI settings
targeting the same member.

4 years agoSeparate common code
Dmitry Stogov [Tue, 19 May 2020 13:59:07 +0000 (16:59 +0300)]
Separate common code

4 years agoFix some final classes in stubs
Máté Kocsis [Tue, 19 May 2020 12:54:37 +0000 (14:54 +0200)]
Fix some final classes in stubs

4 years agoGenerate method entries for Closure
Máté Kocsis [Tue, 19 May 2020 11:56:30 +0000 (13:56 +0200)]
Generate method entries for Closure

4 years agoFix opcache_get_configuration() test
Nikita Popov [Tue, 19 May 2020 12:12:30 +0000 (14:12 +0200)]
Fix opcache_get_configuration() test

4 years agoMake JIT parameters configurable through opcache.jit_... options
Dmitry Stogov [Tue, 19 May 2020 10:35:02 +0000 (13:35 +0300)]
Make JIT parameters configurable through opcache.jit_... options

4 years agoExtract zend_foreach_op_array()
Nikita Popov [Tue, 19 May 2020 09:10:19 +0000 (11:10 +0200)]
Extract zend_foreach_op_array()

Move this functionality from zend_call_graph into zend_optimizer,
because we use this pattern in a number of places.

4 years agoKeep ZEND_FUNC_INFO() for all run-time JIT triggers
Dmitry Stogov [Mon, 18 May 2020 16:00:38 +0000 (19:00 +0300)]
Keep ZEND_FUNC_INFO() for all run-time JIT triggers

4 years agoFix phpdbg test with JIT
Nikita Popov [Mon, 18 May 2020 13:25:24 +0000 (15:25 +0200)]
Fix phpdbg test with JIT

With JIT one extra cache slot is allocated, so the extended_value
needs one more character, and the output ends up having one space
less...

4 years agoMerge branch 'PHP-7.4'
Derick Rethans [Mon, 18 May 2020 12:51:47 +0000 (13:51 +0100)]
Merge branch 'PHP-7.4'

4 years agoPut Xdebug 3 into 'off' mode for run-tests.php
Derick Rethans [Mon, 18 May 2020 12:51:40 +0000 (13:51 +0100)]
Put Xdebug 3 into 'off' mode for run-tests.php

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Derick Rethans [Mon, 18 May 2020 12:51:14 +0000 (13:51 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

4 years agoPut Xdebug 3 into 'off' mode for run-tests.php
Derick Rethans [Mon, 18 May 2020 12:49:12 +0000 (13:49 +0100)]
Put Xdebug 3 into 'off' mode for run-tests.php

4 years agoFixed JIT on load with -O4
Dmitry Stogov [Mon, 18 May 2020 12:29:28 +0000 (15:29 +0300)]
Fixed JIT on load with -O4

4 years agoWrong condition
Dmitry Stogov [Mon, 18 May 2020 12:04:39 +0000 (15:04 +0300)]
Wrong condition

4 years agoFixed JIT with non-HYBRID VM
Dmitry Stogov [Mon, 18 May 2020 11:56:39 +0000 (14:56 +0300)]
Fixed JIT with non-HYBRID VM

4 years agoTracing JIT with -O1 doesn't need to do type inference and abstract stack maintaining
Dmitry Stogov [Mon, 18 May 2020 11:39:49 +0000 (14:39 +0300)]
Tracing JIT with -O1 doesn't need to do type inference and abstract stack maintaining

4 years agofunc_info should be empty
Dmitry Stogov [Mon, 18 May 2020 11:30:55 +0000 (14:30 +0300)]
func_info should be empty

4 years agoFix bogus check in TSRM and adjust TSRM_ASSERT macro
George Peter Banyard [Sun, 17 May 2020 23:13:11 +0000 (01:13 +0200)]
Fix bogus check in TSRM and adjust TSRM_ASSERT macro

Closes GH-5562

4 years agoJIT refactoring to allow run-time changes of JIT options (triggers, optimization_leve...
Dmitry Stogov [Mon, 18 May 2020 07:23:06 +0000 (10:23 +0300)]
JIT refactoring to allow run-time changes of JIT options (triggers, optimization_level, debug flags, etc)

4 years agoImprove error messages for invalid property access
Máté Kocsis [Fri, 24 Apr 2020 08:58:46 +0000 (10:58 +0200)]
Improve error messages for invalid property access

Closes GH-5446
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
4 years agorelax test (TS issue)
Remi Collet [Mon, 18 May 2020 05:53:03 +0000 (07:53 +0200)]
relax test (TS issue)

4 years agoFix [-Wextra-tokens] warning in MySQLi extension which breaks build
George Peter Banyard [Sun, 17 May 2020 23:00:39 +0000 (01:00 +0200)]
Fix [-Wextra-tokens] warning in MySQLi extension which breaks build

Didn't double check and this slipped through with my big search and replace

4 years agoFix [-Wundef] warning in MySQLnd extension
George Peter Banyard [Sun, 17 May 2020 21:10:10 +0000 (23:10 +0200)]
Fix [-Wundef] warning in MySQLnd extension

4 years agoFix [-Wundef] warning in MySQLi extension
George Peter Banyard [Sun, 17 May 2020 21:09:49 +0000 (23:09 +0200)]
Fix [-Wundef] warning in MySQLi extension

4 years agoFix [-Wundef] warning in ZIP extension
George Peter Banyard [Tue, 12 May 2020 15:55:50 +0000 (17:55 +0200)]
Fix [-Wundef] warning in ZIP extension

4 years agoFix [-Wundef] warning in Tidy extension
George Peter Banyard [Tue, 12 May 2020 16:04:24 +0000 (18:04 +0200)]
Fix [-Wundef] warning in Tidy extension

4 years agoFix [-Wundef] warning in Sysvmsg extension
George Peter Banyard [Sat, 16 May 2020 14:01:40 +0000 (16:01 +0200)]
Fix [-Wundef] warning in Sysvmsg extension

4 years agoFix [-Wundef] warning in Sysvsem extension
George Peter Banyard [Sat, 16 May 2020 13:55:24 +0000 (15:55 +0200)]
Fix [-Wundef] warning in Sysvsem extension

4 years agoFix [-Wundef] warning in Sysvshm extension
George Peter Banyard [Sat, 16 May 2020 13:53:28 +0000 (15:53 +0200)]
Fix [-Wundef] warning in Sysvshm extension

4 years agoFix [-Wundef] warnings in LDAP extension
George Peter Banyard [Fri, 15 May 2020 22:30:38 +0000 (00:30 +0200)]
Fix [-Wundef] warnings in LDAP extension

4 years agoAdjust bogus checks in FPM as HAVE_FPM_LQ is always defined
George Peter Banyard [Tue, 5 May 2020 17:56:43 +0000 (19:56 +0200)]
Adjust bogus checks in FPM as HAVE_FPM_LQ is always defined

Drop checks for FPM status as per review

Closes GH-5530

4 years agoFix [-Wundef] warnings in libxml extension
George Peter Banyard [Fri, 15 May 2020 22:32:37 +0000 (00:32 +0200)]
Fix [-Wundef] warnings in libxml extension

4 years agoFix [-Wundef] warning in MBString extension
George Peter Banyard [Tue, 12 May 2020 15:59:17 +0000 (17:59 +0200)]
Fix [-Wundef] warning in MBString extension

4 years agoFix [-Wundef] warning in IMAP extension
George Peter Banyard [Tue, 12 May 2020 21:29:04 +0000 (23:29 +0200)]
Fix [-Wundef] warning in IMAP extension

4 years agoFix [-Wundef] warning in GetText extension
George Peter Banyard [Tue, 12 May 2020 21:19:30 +0000 (23:19 +0200)]
Fix [-Wundef] warning in GetText extension

4 years agoFix [-Wundef] warning in FTP extension
George Peter Banyard [Tue, 12 May 2020 16:02:35 +0000 (18:02 +0200)]
Fix [-Wundef] warning in FTP extension

4 years agoFix [-Wundef] warning in Filter extension
George Peter Banyard [Tue, 12 May 2020 21:04:56 +0000 (23:04 +0200)]
Fix [-Wundef] warning in Filter extension

4 years agoFix [-Wundef] warning in EXIF extension
George Peter Banyard [Tue, 12 May 2020 20:58:49 +0000 (22:58 +0200)]
Fix [-Wundef] warning in EXIF extension

4 years agoFix [-Wundef] warning in DOM extension
George Peter Banyard [Tue, 12 May 2020 20:54:43 +0000 (22:54 +0200)]
Fix [-Wundef] warning in DOM extension

4 years agoFix [-Wundef] warning in cURL extension
George Peter Banyard [Tue, 12 May 2020 20:36:08 +0000 (22:36 +0200)]
Fix [-Wundef] warning in cURL extension

4 years agoFix [-Wundef] warning in CType extension
George Peter Banyard [Tue, 12 May 2020 20:29:51 +0000 (22:29 +0200)]
Fix [-Wundef] warning in CType extension

4 years agoFix [-Wundef] warning in BZip2 extension
George Peter Banyard [Tue, 12 May 2020 15:55:35 +0000 (17:55 +0200)]
Fix [-Wundef] warning in BZip2 extension

4 years agoFix [-Wundef] warning in BCMath extension
George Peter Banyard [Tue, 12 May 2020 20:24:01 +0000 (22:24 +0200)]
Fix [-Wundef] warning in BCMath extension

4 years agoDrop check for HAVE_NSLDAP
George Peter Banyard [Fri, 15 May 2020 22:40:37 +0000 (00:40 +0200)]
Drop check for HAVE_NSLDAP

This constant is never defined thus useless

4 years agoUse ZEND_FCI_INITIALIZED macro
George Peter Banyard [Mon, 11 May 2020 16:42:46 +0000 (18:42 +0200)]
Use ZEND_FCI_INITIALIZED macro

Instead of manually checking that the fci.size is different than 0

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 15 May 2020 09:05:00 +0000 (11:05 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed bug #79600

4 years agoFixed bug #79600
Nikita Popov [Fri, 15 May 2020 09:03:05 +0000 (11:03 +0200)]
Fixed bug #79600

Missed unsetting of DO_INIT in one case.

4 years agoRemove some uses of zend_inline_hash_func
Nikita Popov [Fri, 15 May 2020 08:13:38 +0000 (10:13 +0200)]
Remove some uses of zend_inline_hash_func

There's no need to force-inline the hashing for all of these.

4 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Fri, 15 May 2020 07:44:14 +0000 (10:44 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  fixed typo of bug id (#79599)
  master doesn't been affected since we are not passing errcontext now
  Fixed bug #97599 (coredump in set_error_handler)
  Fix #79557: extension_dir = ./ext now use current directory for base
  Fix #79596: MySQL FLOAT truncates to int some locales
  [ci skip] Fix NEWS

4 years agoMerge branch 'PHP-7.4'
Xinchen Hui [Fri, 15 May 2020 07:44:02 +0000 (15:44 +0800)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  fixed typo of bug id (#79599)

4 years agofixed typo of bug id (#79599)
Xinchen Hui [Fri, 15 May 2020 07:43:38 +0000 (15:43 +0800)]
fixed typo of bug id (#79599)

4 years agomaster doesn't been affected since we are not passing errcontext now
Xinchen Hui [Fri, 15 May 2020 07:40:53 +0000 (15:40 +0800)]
master doesn't been affected since we are not passing errcontext now

4 years agoMerge branch 'PHP-7.4'
Xinchen Hui [Fri, 15 May 2020 07:40:43 +0000 (15:40 +0800)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed bug #97599 (coredump in set_error_handler)

Conflicts:
Zend/zend.c

4 years agoMerge branch 'PHP-7.4' of git.php.net:/php-src into PHP-7.4
Xinchen Hui [Fri, 15 May 2020 07:36:51 +0000 (15:36 +0800)]
Merge branch 'PHP-7.4' of git.php.net:/php-src into PHP-7.4

* 'PHP-7.4' of git.php.net:/php-src:
  Fix #79557: extension_dir = ./ext now use current directory for base
  Fix #79596: MySQL FLOAT truncates to int some locales
  [ci skip] Fix NEWS

4 years agoFixed bug #97599 (coredump in set_error_handler)
Xinchen Hui [Fri, 15 May 2020 07:36:00 +0000 (15:36 +0800)]
Fixed bug #97599 (coredump in set_error_handler)

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Fri, 15 May 2020 07:24:07 +0000 (09:24 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79557: extension_dir = ./ext now use current directory for base

4 years agoFix #79557: extension_dir = ./ext now use current directory for base
Christoph M. Becker [Mon, 4 May 2020 12:55:24 +0000 (14:55 +0200)]
Fix #79557: extension_dir = ./ext now use current directory for base

For some reason, `ImageLoad()` fails to load images with a relative
path starting with `.\`  or `./`.  We work around this issue by
stripping those leading characters.

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Fri, 15 May 2020 07:12:56 +0000 (09:12 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79596: MySQL FLOAT truncates to int some locales

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Fri, 15 May 2020 07:11:19 +0000 (09:11 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #79596: MySQL FLOAT truncates to int some locales

4 years agoFix #79596: MySQL FLOAT truncates to int some locales
Christoph M. Becker [Fri, 15 May 2020 07:09:41 +0000 (09:09 +0200)]
Fix #79596: MySQL FLOAT truncates to int some locales

We must not do locale aware float to string conversion here; instead
we using our `snprintf()` implementation with the `F` specifier.

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Fri, 15 May 2020 06:59:55 +0000 (08:59 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  [ci skip] Fix NEWS

4 years ago[ci skip] Fix NEWS
Christoph M. Becker [Fri, 15 May 2020 06:53:58 +0000 (08:53 +0200)]
[ci skip] Fix NEWS

We add the missing release dates, the NEWS regarding the latest CVE
fixes, and move the entry for bug #79536 to 7.4.7 because it didn't
make it into 7.4.6.

4 years agoAdded HALT symbol
Dmitry Stogov [Thu, 14 May 2020 22:06:47 +0000 (01:06 +0300)]
Added HALT symbol

4 years agoRemove unused variable
Christoph M. Becker [Thu, 14 May 2020 15:55:31 +0000 (17:55 +0200)]
Remove unused variable

4 years agoImprove error message for deprecated methods
Máté Kocsis [Fri, 24 Apr 2020 08:58:10 +0000 (10:58 +0200)]
Improve error message for deprecated methods

4 years agoRemove generated zend_jit_x86.c upon make distclean
Bob Weinand [Thu, 14 May 2020 14:59:54 +0000 (16:59 +0200)]
Remove generated zend_jit_x86.c upon make distclean

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Thu, 14 May 2020 13:59:34 +0000 (15:59 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Check compatibility with proper runtime DLL

4 years agoCheck compatibility with proper runtime DLL
Christoph M. Becker [Thu, 14 May 2020 13:39:00 +0000 (15:39 +0200)]
Check compatibility with proper runtime DLL

In practise, this likely does not matter, because usually these DLLs
are installed side by side, but still we should check the proper DLL.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 14 May 2020 12:16:22 +0000 (14:16 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Canonicalize bison error during ini parsing

4 years agoCanonicalize bison error during ini parsing
Nikita Popov [Thu, 14 May 2020 10:54:20 +0000 (12:54 +0200)]
Canonicalize bison error during ini parsing

Bison 3.6 seems to use "end of file" rather than "$end" for this.
Force the same on older bison versions to be consistent.

4 years agoAdd stubs for some SAPIs
Máté Kocsis [Thu, 14 May 2020 11:31:52 +0000 (13:31 +0200)]
Add stubs for some SAPIs

For apache2handler, fpm, litespeed, phpdbg, specifically.
Partially implements GH-5295

4 years agoTracing JIT support for delayed call chain
Dmitry Stogov [Thu, 14 May 2020 11:21:46 +0000 (14:21 +0300)]
Tracing JIT support for delayed call chain

4 years agoConvert resource to object in Sysvmsg
Máté Kocsis [Fri, 8 May 2020 15:18:39 +0000 (17:18 +0200)]
Convert resource to object in Sysvmsg

Closes GH-5546

4 years agoAvoid duplicating the proc_open cleanup logic
Nikita Popov [Thu, 14 May 2020 08:35:33 +0000 (10:35 +0200)]
Avoid duplicating the proc_open cleanup logic

Use a slightly ugly "goto unreachable" pattern to share this code,
so we don't have to duplicate cleanup logic for the success and
the failure cases.

4 years agoFurther refactoring of proc_open.c
Alex Dowad [Tue, 12 May 2020 06:43:29 +0000 (08:43 +0200)]
Further refactoring of proc_open.c

This time a number of comments have been added to make it easy for new devs to understand
what is going on. Also adjusted error message to use colons rather than dashes.

4 years agoDon't leak memory if wrong resource type is passed to proc_open
Alex Dowad [Sat, 9 May 2020 16:16:45 +0000 (18:16 +0200)]
Don't leak memory if wrong resource type is passed to proc_open

proc_open can accept stream resources in the descriptorspec, like this:

    proc_open("command", array(0 => $resource), $pipes);

Previously, if a resource which was *not* of type "stream" was passed, proc_open would
return without freeing dynamically allocated memory. It's fixed now.

4 years agoAdd PTY support to proc_open (again after 16 long years)
Alex Dowad [Sun, 3 May 2020 15:54:06 +0000 (17:54 +0200)]
Add PTY support to proc_open (again after 16 long years)

Back in 2004, a feature was added to proc_open which allowed it to open a PTY,
connecting specific FDs in the child process to the slave end of the PTY and returning
the master end of the PTY (wrapped as a PHP stream) in the `$pipes` array. However,
this feature was disabled just about a month later. Little information is available
about why this was done, but from talking to the original implementer, it seems there
were portability problems with some rare flavors of Unix.

Re-enable this feature with a simplified implementation which uses openpty(). No
attempt is made to support PTYs if the platform does not have openpty(). The configure
script checks if linking with -lutil is necessary to use openpty(), but if anything
else is required, like including some special header or linking with some other library,
PTY support will be disabled.

The original PTY support for proc_open automatically daemonized the child process
(disassociating it from the TTY session and process group of the parent). However,
I don't think this is a good idea. Just because a user opens a child process in a
PTY, it doesn't mean they want it to continue running even when the parent process
is killed. Of course, if the child process is some kind of server, it will likely
daemonize itself; but we have no reason to preempt that decision.

It turns out that since 2015, there has been one test case for PTY support in
proc_open() in the test suite. This test was added in GitHub PR #1588
(https://github.com/php/php-src/pull/1588). That PR mentioned that the PHP
binary in the Debian/Ubuntu repositories is patched to *enable* PTY support. Checking
the Debian PHP repository (https://salsa.debian.org/php-team/php.git) shows that this
is still true. Debian's patch does not modify the implementation from 2004 in any
way; it just removes the #if 0 line which disables it.

Naturally, the test case is skipped if PTY support is not enabled. This means that ever
since it was added, every test run against the 'vanilla' PHP codebase has skipped it.

Interestingly, the test case which was added in 2015 fails on my Linux Mint PC... both
with this simplified implementation *and* when enabling the original implementation.
Investigation reveals the reason: when the child process using the slave end of the
PTY exits and its FDs are all closed, and all buffered data is read from the master
end of the PTY, any further attempt to read from the master end fails with EIO. The
test case seems to expect that reading from the master end will always return an
empty string if no data is available.

Likely this is because PHP's fread() was updated to report errors from the underlying
system calls only recently.

One way out of this dilemma: IF at least one FD referring to the slave end of the PTY is
kept open *in the parent process*, the failure with EIO will not occur even after the child
process exits. However, that would raise another issue: we would need a way to ensure the FD
will be closed eventually in long-running programs.

Another discovery made while testing this code is that fread() does not always return
all the data written to the slave end of the PTY in a single call, even if the data was
written with a single syscall and it is only a few bytes long.

Specifically, when the child process in the test case writes "foo\n" to the PTY, the parent
sometimes receives "foo" (3 bytes) and sometimes "foo\r\n" (5 bytes). (The "\r" is from the
TTY line discipline converting "\n" to "\r\n".) A second call to fread() does return the
remaining bytes, though sometimes all the data is read in the first call, and by the time
the second call is made, the child process has already exited. It seems that liberal use
of the @ operator is needed when using fread() on pipes.

Thanks to Nikita Popov for suggesting that we should just use openpty() rather than
grantpt(), unlockpt(), etc.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 14 May 2020 07:39:03 +0000 (09:39 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix lcov genhtml: ERROR: cannot read [file]
  Properly detect CRC32 APIs on aarch64 from configure

4 years agoFix lcov genhtml: ERROR: cannot read [file]
Gerard Roche [Wed, 13 May 2020 18:57:54 +0000 (19:57 +0100)]
Fix lcov genhtml: ERROR: cannot read [file]

lcov is emitting several errors for generated regex files that have no code
coverage data. The fix is to add the files to the lcov exlusion list.

This is not an issue for CI because it uses gcovr to generate code coverage.

The errors:

    Processing ext/date/lib/parse_date.gcda
    geninfo: WARNING: could not open /home/code/vendor/php/php-src/parse_date.re
    geninfo: WARNING: could not open /home/code/vendor/php/php-src/<stdout>
    geninfo: WARNING: some exclusion markers may be ignored
    Processing ext/date/lib/parse_tz.gcda
    Processing ext/date/lib/tm2unixtime.gcda
    Processing ext/date/lib/parse_iso_intervals.gcda
    geninfo: WARNING: could not open /home/code/vendor/php/php-src/<stdout>
    geninfo: WARNING: could not open /home/code/vendor/php/php-src/parse_iso_intervals.re
    geninfo: WARNING: some exclusion markers may be ignored
    ...
    genhtml: ERROR: cannot read /home/code/vendor/php/php-src/parse_date.re
    Processing file /home/code/vendor/php/php-src/parse_date.re
    make: *** [Makefile:443: lcov-html] Error 2

Closes GH-5568.

4 years agoProperly detect CRC32 APIs on aarch64 from configure
Ondřej Surý [Wed, 13 May 2020 06:22:29 +0000 (08:22 +0200)]
Properly detect CRC32 APIs on aarch64 from configure

The CRC32 APIs are optional for armv8-a. They became mandatory since
armv8.1-a.

Closes GH-5564.

4 years agoRemoved pure zpp tests in the imap extension
Jens de Nies [Wed, 13 May 2020 18:15:39 +0000 (20:15 +0200)]
Removed pure zpp tests in the imap extension

Closes GH-5569.

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Wed, 13 May 2020 21:31:09 +0000 (23:31 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix brittle shmop test

4 years agoFix brittle shmop test
Christoph M. Becker [Wed, 13 May 2020 21:09:57 +0000 (23:09 +0200)]
Fix brittle shmop test

To solve bug #70886, the test uses random keys to prevent collisions;
however, this is not guaranteed, and as such it may even collide with
other tests in the shmop test suite.  The proper solution would be to
use a single key (which could be randomly generated), but to actually
`shmop_close()` after each `shmop_delete()`.  This would, however, not
work on Windows due to bug #65987.  Therefore we use three different
keys for now.

4 years agoAllow null callback to array_filter()
Nikita Popov [Wed, 13 May 2020 15:24:13 +0000 (17:24 +0200)]
Allow null callback to array_filter()

With same behavior as not passing it.

4 years agoSet "hybrid_ret_counters" only after links to "function entry" traces.
Dmitry Stogov [Wed, 13 May 2020 14:45:48 +0000 (17:45 +0300)]
Set "hybrid_ret_counters" only after links to "function entry" traces.

4 years agoRevert "doc for enchant Object move"
Remi Collet [Wed, 13 May 2020 13:56:18 +0000 (15:56 +0200)]
Revert "doc for enchant Object move"

This reverts commit 2c63324a4eabf3f8bdf9585c8dae4527dca2e41f.

4 years agoRevert "convert enchant resources to objects of new classes - EnchantBroker - Enchant...
Remi Collet [Wed, 13 May 2020 13:56:14 +0000 (15:56 +0200)]
Revert "convert enchant resources to objects of new classes - EnchantBroker - EnchantDict add OO interface deprecate enchant_broker_free* (use unset instead) deprecate ENCHANT_MYSPELL and ENCHANT_ISPELL constants"

This reverts commit 7db4c24a37c96b3961cb1989ab71941e115b0fac.

4 years agoRevert "add myself as enchant maintainer"
Remi Collet [Wed, 13 May 2020 13:56:10 +0000 (15:56 +0200)]
Revert "add myself as enchant maintainer"

This reverts commit f987219c69360aa2f9364f826c71ef6a1c78f7d9.

4 years agodoc for enchant Object move
Remi Collet [Wed, 13 May 2020 13:23:07 +0000 (15:23 +0200)]
doc for enchant Object move

4 years agoconvert enchant resources to objects of new classes - EnchantBroker - EnchantDict...
Remi Collet [Wed, 6 May 2020 11:24:38 +0000 (13:24 +0200)]
convert enchant resources to objects of new classes - EnchantBroker - EnchantDict add OO interface deprecate enchant_broker_free* (use unset instead) deprecate ENCHANT_MYSPELL and ENCHANT_ISPELL constants

4 years agoAssert on unknown type in zend_get_type_by_const()
Nikita Popov [Wed, 13 May 2020 13:02:33 +0000 (15:02 +0200)]
Assert on unknown type in zend_get_type_by_const()

4 years agoFixed JIT with ON_HOT_COUNTERS trigger (opcache.jit=1235)
Dmitry Stogov [Wed, 13 May 2020 13:00:25 +0000 (16:00 +0300)]
Fixed JIT with ON_HOT_COUNTERS trigger (opcache.jit=1235)

4 years agoUse zend_zval_type_name() API where possible
Nikita Popov [Wed, 13 May 2020 12:55:08 +0000 (14:55 +0200)]
Use zend_zval_type_name() API where possible

Rather than zend_get_type_by_const(Z_TYPE_P()).

4 years agoRename zend_zval_get_type() API
Nikita Popov [Wed, 13 May 2020 12:46:15 +0000 (14:46 +0200)]
Rename zend_zval_get_type() API

We have a bunch of APIs for getting type names and it's sometimes
hard to keep them apart ... make it clear that this is the one
you definitely do not want to use.

4 years agoConvert resource to object in XML-RPC extension
Máté Kocsis [Sat, 25 Apr 2020 10:14:59 +0000 (12:14 +0200)]
Convert resource to object in XML-RPC extension

Closes GH-5457