]> granicus.if.org Git - php/log
php
6 years agoRemove more zpp error/variation tests
Nikita Popov [Tue, 5 Mar 2019 10:55:03 +0000 (11:55 +0100)]
Remove more zpp error/variation tests

6 years agoRemove custom error handler in mbstring tests
Nikita Popov [Tue, 5 Mar 2019 10:41:53 +0000 (11:41 +0100)]
Remove custom error handler in mbstring tests

To make it more obvious what is tested and what the error messages
are.

6 years agoRemove more zpp error tests
Nikita Popov [Tue, 5 Mar 2019 09:39:19 +0000 (10:39 +0100)]
Remove more zpp error tests

6 years agoRemove tests for zpp failure conditions
Nikita Popov [Tue, 5 Mar 2019 08:46:02 +0000 (09:46 +0100)]
Remove tests for zpp failure conditions

These tests only check zpp error conditions, so drop them per
zpp testing policy.

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Remi Collet [Tue, 5 Mar 2019 06:33:11 +0000 (07:33 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  add NEWS entry

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Tue, 5 Mar 2019 06:32:54 +0000 (07:32 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  add NEWS entry

6 years agoadd NEWS entry
Remi Collet [Tue, 5 Mar 2019 06:32:24 +0000 (07:32 +0100)]
add NEWS entry

6 years agoFixed support for callbacks with "void" return type
Dmitry Stogov [Mon, 4 Mar 2019 22:03:47 +0000 (01:03 +0300)]
Fixed support for callbacks with "void" return type

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 4 Mar 2019 18:51:17 +0000 (19:51 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Update NEWS

6 years agoUpdate NEWS
Christoph M. Becker [Mon, 4 Mar 2019 18:50:41 +0000 (19:50 +0100)]
Update NEWS

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Stanislav Malyshev [Mon, 4 Mar 2019 17:18:55 +0000 (09:18 -0800)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix bug #77630 - safer rename() procedure

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Mon, 4 Mar 2019 17:18:22 +0000 (09:18 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix bug #77630 - safer rename() procedure

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Mon, 4 Mar 2019 17:17:14 +0000 (09:17 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix bug #77630 - safer rename() procedure

6 years agoFix bug #77630 - safer rename() procedure
Stanislav Malyshev [Sun, 3 Mar 2019 07:42:53 +0000 (23:42 -0800)]
Fix bug #77630 - safer rename() procedure

In order to rename safer, we do the following:
- set umask to 077 (unfortunately, not TS, so excluding ZTS)
- chown() first, to set proper group before allowing group access
- chmod() after, even if chown() fails

6 years agoReplace --with-gd by --enable-gd for Travis
Fabien Villepinte [Mon, 4 Mar 2019 13:11:34 +0000 (14:11 +0100)]
Replace --with-gd by --enable-gd for Travis

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Anatol Belski [Mon, 4 Mar 2019 13:30:32 +0000 (14:30 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix test portability

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Mon, 4 Mar 2019 13:30:01 +0000 (14:30 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix test portability

6 years agoFix test portability
Anatol Belski [Mon, 4 Mar 2019 13:28:47 +0000 (14:28 +0100)]
Fix test portability

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 4 Mar 2019 12:47:45 +0000 (13:47 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Update NEWS

6 years agoUpdate NEWS
Christoph M. Becker [Mon, 4 Mar 2019 12:47:14 +0000 (13:47 +0100)]
Update NEWS

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 4 Mar 2019 12:16:25 +0000 (13:16 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 4 Mar 2019 12:16:01 +0000 (13:16 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #77691
Nikita Popov [Mon, 4 Mar 2019 12:11:12 +0000 (13:11 +0100)]
Fixed bug #77691

We cannot replace an op1_def opcode with an ASSIGN, if it also has
a used res_def. Usually this doesn't happen because the res_def use
can be eliminated first. The example is a case where operand replacement
on the res_def use fails.

6 years agoMove Makefile.global and Makefile.gcov to build directory
Peter Kokot [Mon, 4 Mar 2019 05:06:10 +0000 (06:06 +0100)]
Move Makefile.global and Makefile.gcov to build directory

These files can be stored in the build directory instead of bloating the
project root directory.

6 years agoRevert "Detect invalid uses of parent:: during compilation"
Nikita Popov [Mon, 4 Mar 2019 11:18:33 +0000 (12:18 +0100)]
Revert "Detect invalid uses of parent:: during compilation"

This reverts commit a9e6667817c38f22f4645ec5b4e5c6b0e4b928fa.

Breakage found in the wild: Mockery uses a parent:: call in the
implementation regardless of whether the class has a parent or not:
https://github.com/mockery/mockery/blob/4324afeaf9d95b492507e6587abb3f024e2576de/library/Mockery/Mock.php#L600

This change is not worth the compat break in 7.4.

6 years agoReplace PHP_TM_GMTOFF with AC_CHECK_MEMBERS
Peter Kokot [Sun, 3 Mar 2019 01:54:03 +0000 (02:54 +0100)]
Replace PHP_TM_GMTOFF with AC_CHECK_MEMBERS

Changes:
- PHP_TM_GMTOFF removed
- HAVE_TM_GMTOFF replaced with HAVE_STRUCT_TM_TM_GMTOFF
- HAVE_TM_ZONE replaced with HAVE_STRUCT_TM_TM_ZONE
- HAVE_TZNAME removed

The PHP_TM_GMTOFF macro can be replaced with Autoconf's AC_CHECK_MEMBERS
that defines the HAVE_STRUCT_TM_TM_GMTOFF symbol instead of the
HAVE_TM_ZONE.

The HAVE_TZNAME symbol is not used in current code. The obsolete
HAVE_TM_ZONE symbol has been replaced with more proper
HAVE_STRUCT_TM_TM_ZONE. These are defined by the AC_STRUCT_TIMEZONE
macro.

6 years agoRemove mkinstalldirs, install-sh and missing
Peter Kokot [Mon, 4 Mar 2019 04:25:04 +0000 (05:25 +0100)]
Remove mkinstalldirs, install-sh and missing

These scripts are part of Automake [1] and are in current *nix build
system not used anymore nor empty files need to be created.

[1] https://www.gnu.org/software/automake/manual/html_node/Auxiliary-Programs.html

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Remi Collet [Mon, 4 Mar 2019 10:09:31 +0000 (11:09 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  add NEWS entries

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Mon, 4 Mar 2019 10:09:17 +0000 (11:09 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  add NEWS entries

6 years agoadd NEWS entries
Remi Collet [Mon, 4 Mar 2019 10:09:01 +0000 (11:09 +0100)]
add NEWS entries

6 years agoDon't generate script for proc_open_pipes tests
Nikita Popov [Mon, 4 Mar 2019 09:52:50 +0000 (10:52 +0100)]
Don't generate script for proc_open_pipes tests

Commit the generated script instead, which is much simpler than
the code generating it...

6 years agoUse separate output files in x2gd tests
Nikita Popov [Mon, 4 Mar 2019 09:48:09 +0000 (10:48 +0100)]
Use separate output files in x2gd tests

6 years agoUse separate directories for win32 dir tests
Nikita Popov [Fri, 1 Mar 2019 14:15:31 +0000 (15:15 +0100)]
Use separate directories for win32 dir tests

Also remove one redundant piece of cleanup code.

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Stanislav Malyshev [Mon, 4 Mar 2019 07:33:54 +0000 (23:33 -0800)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Mon, 4 Mar 2019 07:33:48 +0000 (23:33 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Mon, 4 Mar 2019 07:33:43 +0000 (23:33 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow

6 years agoFix bug #77586 - phar_tar_writeheaders_int() buffer overflow
Stanislav Malyshev [Mon, 4 Mar 2019 06:33:38 +0000 (22:33 -0800)]
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Stanislav Malyshev [Mon, 4 Mar 2019 06:20:49 +0000 (22:20 -0800)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Update NEWS
  Fix test error message
  Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
  Fix bug #77540 - Invalid Read on exif_process_SOFn
  Fix integer overflows on 32-bits
  Fix #77431 SplFileInfo::__construct() accepts NUL bytes
  Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Mon, 4 Mar 2019 06:20:42 +0000 (22:20 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update NEWS
  Fix test error message
  Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
  Fix bug #77540 - Invalid Read on exif_process_SOFn
  Fix integer overflows on 32-bits
  Fix #77431 SplFileInfo::__construct() accepts NUL bytes
  Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Mon, 4 Mar 2019 06:20:35 +0000 (22:20 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Update NEWS
  Fix test error message
  Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
  Fix bug #77540 - Invalid Read on exif_process_SOFn
  Fix integer overflows on 32-bits
  Fix #77431 SplFileInfo::__construct() accepts NUL bytes
  Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename

6 years agoUpdate NEWS
Stanislav Malyshev [Mon, 4 Mar 2019 04:10:12 +0000 (20:10 -0800)]
Update NEWS

6 years agoFix test error message
Stanislav Malyshev [Mon, 4 Mar 2019 03:30:14 +0000 (19:30 -0800)]
Fix test error message

6 years agoFix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
Stanislav Malyshev [Sat, 2 Mar 2019 23:07:40 +0000 (15:07 -0800)]
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE

Also fix for bug #77659

6 years agoFix bug #77540 - Invalid Read on exif_process_SOFn
Stanislav Malyshev [Sat, 2 Mar 2019 21:38:00 +0000 (13:38 -0800)]
Fix bug #77540 - Invalid Read on exif_process_SOFn

6 years agoFix integer overflows on 32-bits
Stanislav Malyshev [Sat, 2 Mar 2019 07:25:45 +0000 (23:25 -0800)]
Fix integer overflows on 32-bits

6 years agoFix #77431 SplFileInfo::__construct() accepts NUL bytes
Christoph M. Becker [Wed, 9 Jan 2019 13:26:18 +0000 (14:26 +0100)]
Fix #77431 SplFileInfo::__construct() accepts NUL bytes

`SplFileInfo::__construct()` has to expect a path instead of a string,
analogous to `SplFileObject::__construct()`.

6 years agoFix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
Stanislav Malyshev [Mon, 4 Mar 2019 02:22:32 +0000 (18:22 -0800)]
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename

6 years ago[ci skip] Remove oniguruma and libzip leftovers
Peter Kokot [Mon, 4 Mar 2019 00:26:56 +0000 (01:26 +0100)]
[ci skip] Remove oniguruma and libzip leftovers

Oniguruma and libzip are unbundled from php-src.

6 years agoRemove outdated hack for AIX 4
Peter Kokot [Sat, 2 Mar 2019 21:59:06 +0000 (22:59 +0100)]
Remove outdated hack for AIX 4

AIX 4 is not supported anymore for a while. This hack was added very
long time ago into PHP and is not needed anymore.

6 years agoRemove AC_PROG_CC_C_O
Peter Kokot [Sat, 2 Mar 2019 22:15:52 +0000 (23:15 +0100)]
Remove AC_PROG_CC_C_O

The AC_PROG_CC_C_O macro checks if compiler can use both -c and -o
options together and if not it defines the NO_MINUS_C_MINUS_O symbol.
It is not used in current codebase and therefore removed.

6 years agoHeedlessly enable thread LS cache for ext/hash.
Anatol Belski [Sat, 2 Mar 2019 20:25:35 +0000 (21:25 +0100)]
Heedlessly enable thread LS cache for ext/hash.

It's always static now and as such always has access to the cached
TLS pointer.

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Peter Kokot [Sat, 2 Mar 2019 17:52:30 +0000 (18:52 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Update NEWS
  Fix shared module generation on AIX bug #77676

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sat, 2 Mar 2019 17:52:01 +0000 (18:52 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update NEWS
  Fix shared module generation on AIX bug #77676

6 years agoUpdate NEWS
Peter Kokot [Sat, 2 Mar 2019 17:50:33 +0000 (18:50 +0100)]
Update NEWS

6 years agoFix shared module generation on AIX bug #77676
Kevin Adler [Mon, 18 Feb 2019 17:01:23 +0000 (11:01 -0600)]
Fix shared module generation on AIX bug #77676

Makefiles for PHP extensions generated by phpize expect the PHP_MODULES
to contain a list of libtool .la files so that it can read the $dlname
variable from them by sourcing them in to a shell. On AIX, the code was
setting PHP_MODULES to a list of .so files, which meant the dlname was
blank, preventing the tests from being able to run.

Change the AIX code path in the PHP_SHARED_MODULE macro to match the
output on other platforms, using libtool .la files.

6 years agoRemove LIBZEND_CHECK_INT_TYPE and PHP_CHECK_TYPES
Peter Kokot [Sat, 2 Mar 2019 11:11:44 +0000 (12:11 +0100)]
Remove LIBZEND_CHECK_INT_TYPE and PHP_CHECK_TYPES

Checking for int32_t and uint32_t types is already done by the
PHP_CHECK_STDINT_TYPES m4 macro.

The PHP_CHECK_TYPES m4 macro has been once used by the mysqlnd and has
been removed via 14caf174ff219376e4f1234bd297ffe973cc416e and
additionally, the internal unused macro _PHP_DEF_HAVE_FILE has been
removed.

Additionally, the unused PHP_HAVE_STDINT_TYPES symbol has been removed.

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Peter Kokot [Fri, 1 Mar 2019 21:45:32 +0000 (22:45 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Update NEWS
  Fix #77609: Tests from mailparse extension fails

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Fri, 1 Mar 2019 21:44:37 +0000 (22:44 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update NEWS
  Fix #77609: Tests from mailparse extension fails

6 years agoUpdate NEWS
Peter Kokot [Fri, 1 Mar 2019 21:44:22 +0000 (22:44 +0100)]
Update NEWS

6 years agoFix #77609: Tests from mailparse extension fails
Ralf Habacker [Fri, 1 Mar 2019 21:32:01 +0000 (22:32 +0100)]
Fix #77609: Tests from mailparse extension fails

Add installed php extensions to temporary created ini file

In php extensions configured with phpize, a temporarily generated
php.ini is used for testing, but currently contains no installed
PHP extensions, which is required by the mailparse extension,
for example.

Installed extensions must be added with their absolute path,
because the extension_dir parameter is already occupied.

See https://bugs.php.net/bug.php?id=77609

6 years agoRemove obsolescent AC_HEADER_STDC and memcpy check
Peter Kokot [Wed, 27 Feb 2019 23:41:30 +0000 (00:41 +0100)]
Remove obsolescent AC_HEADER_STDC and memcpy check

Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems anymore, including the `AC_HEADER_STDC`.

This macro checks if given system has C89 compliant header files such
as `<string.h>`, `<stdlib.h>`, `<stdarg.h>`, `<float.h>`,... and defines
the `STDC_HEADERS` symbol [2]. Case is that current systems should be
well supported with at least C89 standard headers [3].

Given headers are still additionally checked with the `AC_PROG_CC`
macro, yet not needed anyway.

Additionally, the HAVE_MEMCPY check has been removed. The memcpy
function is standardized by C89 and later.

Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
[3] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2

6 years agoFix out-dated docs and typo
c9s [Fri, 1 Mar 2019 06:15:32 +0000 (14:15 +0800)]
Fix out-dated docs and typo

[ci skip]

6 years agoUse separate files for SplFileObject::setCsvControl() tests
Nikita Popov [Fri, 1 Mar 2019 14:32:02 +0000 (15:32 +0100)]
Use separate files for SplFileObject::setCsvControl() tests

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Fri, 1 Mar 2019 13:55:24 +0000 (14:55 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 1 Mar 2019 13:55:15 +0000 (14:55 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agocurl_error: return an empty string if no error occurred
Jay Satiro [Fri, 1 Mar 2019 06:37:00 +0000 (01:37 -0500)]
curl_error: return an empty string if no error occurred

CURLOPT_ERRORBUFFER doc says "Do not rely on the contents of the
buffer unless an error code was returned." [1]

Prior to this change the error buffer was returned even if no error had
occurred, and that buffer may contain incorrect information in such a
case. [2]

[1]: https://curl.haxx.se/libcurl/c/CURLOPT_ERRORBUFFER.html
[2]: https://github.com/curl/curl/issues/3629

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Fri, 1 Mar 2019 13:52:02 +0000 (14:52 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 1 Mar 2019 13:51:37 +0000 (14:51 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFix bug #77677: WCOREDUMP not available on all systems
Kevin Adler [Mon, 18 Feb 2019 16:32:38 +0000 (10:32 -0600)]
Fix bug #77677: WCOREDUMP not available on all systems

Add #ifdef WCOREDUMP around all uses.

Also Change core dump message to yes/no/unknown in lsapilib.

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Fri, 1 Mar 2019 13:35:26 +0000 (14:35 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoCheck for NULL GC type in objects_store_del
Nikita Popov [Fri, 1 Mar 2019 13:32:11 +0000 (14:32 +0100)]
Check for NULL GC type in objects_store_del

This might happen if OBJ_RELEASE is used on an object that was already
released by GC. Specific cases of this issue were previously fixed in
ffaee27478a9cb338e40edeb5acf233f9cb67111 and
72104d2b6ecbbabd18de15f10739be5ce3dc9ce0, however the issue still
affects 3rd-party extensions using OBJ_RELEASE.

The whole GC type NULL + OBJ_IS_VALID + IS_FREE_CALLED system seems
overly complicated and can probably be simplified in 7.4.

6 years agoUnused parameter
Dmitry Stogov [Fri, 1 Mar 2019 11:34:17 +0000 (14:34 +0300)]
Unused parameter

6 years agoKeep original debug info
Dmitry Stogov [Fri, 1 Mar 2019 11:11:37 +0000 (14:11 +0300)]
Keep original debug info

6 years agoEnable Posix Shared Memory on Linux
Dmitry Stogov [Fri, 1 Mar 2019 09:15:56 +0000 (12:15 +0300)]
Enable Posix Shared Memory on Linux

6 years agoTest for function posix_getpwnam() basic functionality
Rodrigo Prado [Fri, 1 Mar 2019 01:01:52 +0000 (02:01 +0100)]
Test for function posix_getpwnam() basic functionality

The coverage for the function posix_getpwnam() that was not covered yet.
http://gcov.php.net/PHP_HEAD/lcov_html/ext/posix/posix.c.gcov.php#1182
Rodrigo Prado de Jesus <royopa [at] gmail [dot] com>
User Group: PHPSP #PHPTestFestBrasil

6 years agoFix file permissions
Peter Kokot [Thu, 28 Feb 2019 21:07:16 +0000 (22:07 +0100)]
Fix file permissions

Git can track executable (0755) and non-executable (0644) file modes.

This patch fixes file permissions in the php-src repository according to
the predefined executable files with 0755 permissions (shell scripts)
and all others with 0644 permissions.

6 years agoRemove PHP_DECLARED_TIMEZONE and HAVE_DECLARED_TIMEZONE
Peter Kokot [Wed, 27 Feb 2019 21:36:11 +0000 (22:36 +0100)]
Remove PHP_DECLARED_TIMEZONE and HAVE_DECLARED_TIMEZONE

The HAVE_DECLARED_TIMEZONE symbol usage has been introduced in
2fd8cbff2ac301a90fc417bff206bd0a65e8692c
and then removed via
667a9b9bce87e422d9b092ce23f1b536c8fd4ece.

6 years agoFree map_base_ptr during post_startup
Nikita Popov [Thu, 28 Feb 2019 16:23:18 +0000 (17:23 +0100)]
Free map_base_ptr during post_startup

6 years agoDon't remove CONST CAST in CONCAT operand
Nikita Popov [Thu, 28 Feb 2019 15:35:35 +0000 (16:35 +0100)]
Don't remove CONST CAST in CONCAT operand

CONCAT assumes that CONST operands are strings, so we cannot
blindly remove CAST operands.

6 years agoRemove unnecessary convert_to_string_safe macro
Nikita Popov [Thu, 28 Feb 2019 15:30:05 +0000 (16:30 +0100)]
Remove unnecessary convert_to_string_safe macro

I'm assuming that the reason this existed was to avoid modifying
an interned string. However, the current code handles this case
fine already.

6 years agoFix leak in resolve_property_types
Nikita Popov [Thu, 28 Feb 2019 15:14:25 +0000 (16:14 +0100)]
Fix leak in resolve_property_types

We need to free the original string as well, not just the lowercased
one.

6 years agoDon't return inside _DO_THROW macro
Nikita Popov [Thu, 28 Feb 2019 14:45:47 +0000 (15:45 +0100)]
Don't return inside _DO_THROW macro

Returning inside _DO_THROW() is kind of pointless if we are going
to comment most uses with "this is gonna return".

6 years agoRemove more leftovers of mysqli embedded server
Nikita Popov [Thu, 28 Feb 2019 11:59:38 +0000 (12:59 +0100)]
Remove more leftovers of mysqli embedded server

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Derick Rethans [Thu, 28 Feb 2019 13:52:33 +0000 (13:52 +0000)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Derick Rethans [Thu, 28 Feb 2019 13:51:10 +0000 (13:51 +0000)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoMerge branch 'DateIntervalBogusData' into PHP-7.2
Derick Rethans [Thu, 28 Feb 2019 13:50:58 +0000 (13:50 +0000)]
Merge branch 'DateIntervalBogusData' into PHP-7.2

6 years agoFixed bug #50020 (DateInterval:createDateFromString() silently fails)
Derick Rethans [Thu, 28 Feb 2019 13:50:35 +0000 (13:50 +0000)]
Fixed bug #50020 (DateInterval:createDateFromString() silently fails)

6 years agoSync with 7be0e06b482e5bf14eaf4fe9a882d8b72d644038
Anatol Belski [Thu, 28 Feb 2019 13:03:49 +0000 (14:03 +0100)]
Sync with 7be0e06b482e5bf14eaf4fe9a882d8b72d644038

6 years agoRemove dead code
Christoph M. Becker [Thu, 28 Feb 2019 12:11:41 +0000 (13:11 +0100)]
Remove dead code

`_php_image_output()` is only ever called for `PHP_GDIMG_CONVERT_WBM`,
`PHP_GDIMG_TYPE_GD` and `PHP_GDIMG_TYPE_GD2`.  All other image types
solely use the more flexible `_php_image_output_ctx()`.

6 years agoRemove mysqli embedded server support
Nikita Popov [Thu, 28 Feb 2019 11:51:19 +0000 (12:51 +0100)]
Remove mysqli embedded server support

This code is not compatible with PHP 7.0. The fact that nobody
complained that the mysqli embedded server functionality doesn't
build anymore seems like a strong signal that we can drop it...

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Anatol Belski [Thu, 28 Feb 2019 11:53:05 +0000 (12:53 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Sync with behavior change in OpenSSL 1.1.1b

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Thu, 28 Feb 2019 11:52:28 +0000 (12:52 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Sync with behavior change in OpenSSL 1.1.1b

6 years agoSync with behavior change in OpenSSL 1.1.1b
Anatol Belski [Thu, 28 Feb 2019 11:48:47 +0000 (12:48 +0100)]
Sync with behavior change in OpenSSL 1.1.1b

A behavior change in revealed by some openssl_decrypt() based test,
where an encrypt API is used with a decrypt context. The EVP_Cipher*
functions will automatically choose the right operation depending on the
context passed.

6 years agoDisable test parallelization on AppVeyor with opcache
Nikita Popov [Thu, 28 Feb 2019 09:57:24 +0000 (10:57 +0100)]
Disable test parallelization on AppVeyor with opcache

This is too unstable due to shared opcache state. Disabling it until
this issue is resolved to reduce the number of spurious failures.

6 years agoMark ext/xmlreader/tests/bug70309.phpt as online test
Nikita Popov [Thu, 28 Feb 2019 09:12:40 +0000 (10:12 +0100)]
Mark ext/xmlreader/tests/bug70309.phpt as online test

The relax NG schema is fetched from a remote server. We could
include it in the repo, but it's 500KB. A minimized test case would
be better.

Also, apparently this bug has never been reported upstream and just
patched in the libxml we build on Windows?

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 28 Feb 2019 08:59:07 +0000 (09:59 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 28 Feb 2019 08:58:30 +0000 (09:58 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #77669
Nikita Popov [Thu, 28 Feb 2019 08:58:01 +0000 (09:58 +0100)]
Fixed bug #77669

6 years agoFix test (order of warning / notice changes due to delaying until runtime)
Bob Weinand [Thu, 28 Feb 2019 08:10:07 +0000 (09:10 +0100)]
Fix test (order of warning / notice changes due to delaying until runtime)

6 years agoRemove unused package2.xml file
Peter Kokot [Wed, 27 Feb 2019 22:45:52 +0000 (23:45 +0100)]
Remove unused package2.xml file