]> granicus.if.org Git - php/log
php
5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Sat, 27 Apr 2019 16:48:09 +0000 (18:48 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77944: Wrong meta pdo_type for bigint on LLP64

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sat, 27 Apr 2019 16:46:57 +0000 (18:46 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77944: Wrong meta pdo_type for bigint on LLP64

5 years agoFix #77944: Wrong meta pdo_type for bigint on LLP64
Christoph M. Becker [Sat, 27 Apr 2019 16:46:27 +0000 (18:46 +0200)]
Fix #77944: Wrong meta pdo_type for bigint on LLP64

When actually fetching the data, bigint (unsigned) column values are
returned as integers on LLP64 architectures, so their pdo_type has to
be PDO::PARAM_INT accordingly.

5 years agoFix file name clash in zlib tests
Nikita Popov [Fri, 26 Apr 2019 13:05:42 +0000 (15:05 +0200)]
Fix file name clash in zlib tests

5 years agoEnable -Werror in CI
Nikita Popov [Tue, 23 Apr 2019 11:24:29 +0000 (13:24 +0200)]
Enable -Werror in CI

Add --enable-werror configure option and use it on Travis. It's not
possible to directly use CFLAGS, because it also affects configure
checks which often throw warnings.

We can't enable something similar for Windows builds at this time,
because they throw a lot more warnings.

5 years agoFix VirtualProtect() related Phar issues
Christoph M. Becker [Fri, 26 Apr 2019 07:09:22 +0000 (09:09 +0200)]
Fix VirtualProtect() related Phar issues

We must not (try to) modify shared values, but rather have to use our
own copies, if unixified filenames are required on Windows.  To avoid
excessive string duplication, we add checks whether the filenames are
already unixified (i.e. do not contain backslashes).  To improve the
performance if we need to copy strings, we use do_alloca() and friends.

Besides generally being somewhat messy, the handling of unixified
filenames is still suboptimal performance-wise, but we leave this for a
future cleanup, and focus on fixing the issue at hand for now.

We also enable opcache.protect_memory for the AppVeyor CI.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Thu, 25 Apr 2019 21:29:25 +0000 (23:29 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Thu, 25 Apr 2019 21:29:03 +0000 (23:29 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoFix #77940: test using outdated mon_thousands_sep for Swedish
Christoph M. Becker [Thu, 25 Apr 2019 21:28:41 +0000 (23:28 +0200)]
Fix #77940: test using outdated mon_thousands_sep for Swedish

Of course, we should expect a comma, not a period.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Thu, 25 Apr 2019 17:40:37 +0000 (19:40 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Thu, 25 Apr 2019 17:40:05 +0000 (19:40 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoFix #77940: test using outdated mon_thousands_sep for Swedish
Christoph M. Becker [Thu, 25 Apr 2019 17:39:42 +0000 (19:39 +0200)]
Fix #77940: test using outdated mon_thousands_sep for Swedish

This time so that it works for all Windows 10 versions (hopefully).

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Thu, 25 Apr 2019 06:59:35 +0000 (08:59 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Thu, 25 Apr 2019 06:59:09 +0000 (08:59 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoFix #77940: test using outdated mon_thousands_sep for Swedish
Christoph M. Becker [Thu, 25 Apr 2019 06:58:13 +0000 (08:58 +0200)]
Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Wed, 24 Apr 2019 22:06:15 +0000 (00:06 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77938: socket_get_option error

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Wed, 24 Apr 2019 22:04:37 +0000 (00:04 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77938: socket_get_option error

5 years agoFix #77938: socket_get_option error
Christoph M. Becker [Wed, 24 Apr 2019 22:03:45 +0000 (00:03 +0200)]
Fix #77938: socket_get_option error

Since tcp_socket/ssl streams are not representable, we suppress the
redirect to fix the test case.

5 years agoUse better macros
Dmitry Stogov [Wed, 24 Apr 2019 19:27:40 +0000 (22:27 +0300)]
Use better macros

5 years agosettype() optimization
Dmitry Stogov [Wed, 24 Apr 2019 19:23:49 +0000 (22:23 +0300)]
settype() optimization

5 years agoRemove html_errors from INI Quick Reference as INI values are identical to Engine...
George Peter Banyard [Wed, 24 Apr 2019 14:31:01 +0000 (16:31 +0200)]
Remove html_errors from INI Quick Reference as INI values are identical to Engine values

5 years agoUse ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference
Dmitry Stogov [Wed, 24 Apr 2019 15:28:29 +0000 (18:28 +0300)]
Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Remi Collet [Wed, 24 Apr 2019 07:46:20 +0000 (09:46 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  news entry for litespeed

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Wed, 24 Apr 2019 07:46:06 +0000 (09:46 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  news entry for litespeed

5 years agonews entry for litespeed
Remi Collet [Wed, 24 Apr 2019 07:45:48 +0000 (09:45 +0200)]
news entry for litespeed

5 years agoOptimize constant SWITCH_LONG and SWITCH_STRING
Dmitry Stogov [Tue, 23 Apr 2019 21:08:17 +0000 (00:08 +0300)]
Optimize constant SWITCH_LONG and SWITCH_STRING

5 years agoDon't eliminate BIND_STATIC if it may cause undefined constant warning
Dmitry Stogov [Tue, 23 Apr 2019 19:39:14 +0000 (22:39 +0300)]
Don't eliminate BIND_STATIC if it may cause undefined constant warning

5 years agoMove Autoconf Archive macros to a common m4 dir
Peter Kokot [Tue, 23 Apr 2019 18:37:31 +0000 (20:37 +0200)]
Move Autoconf Archive macros to a common m4 dir

In PHP the build dir is used as a directory for external macros
including Autoconf Archive macros.

5 years agoMove acinclude.m4 to build/php.m4
Peter Kokot [Tue, 12 Mar 2019 23:25:07 +0000 (00:25 +0100)]
Move acinclude.m4 to build/php.m4

The acinclude.m4 file is in a usual Autotools build processed with
Automake's aclocal tool. Since PHP currently doesn't use Automake and
aclocal this file can be moved into the build directory. PHP build
system currently generates a combined aclocal.m4 file that Autoconf
can processes automatically.

However, a newer practice is writing all local macros in separate
dedicated files prefixed with package name, in PHP's case PHP_MACRO_NAME
and putting them in a common `m4` directory. PHP uses currently `build`
directory for this purpose.

Name `php.m4` probably most resembles such file for PHP's case.

PHP manually created the aclocal.m4 file from acinclude.m4 and
build/libtool.m4. Which is also not a particularly good practice [1], so
this patch also removes the generated alocal.m4 usage and uses
m4_include() calls manually in the configure.ac and phpize.m4 files
manually.

- sort order is not important but can be alphabetical
- list of *.m4 files prerequisites for configure script generation
  updated
- Moving m4_include() before AC_INIT also removes all comments starting
  with hash character (`#`) in the included files.

[1] https://autotools.io/autoconf/macros.html

5 years agoSimplify libxmlrpc bundling and building
Peter Kokot [Mon, 22 Apr 2019 22:20:50 +0000 (00:20 +0200)]
Simplify libxmlrpc bundling and building

The xmlrpc library is a forked, modified and bundled into the PHP source
code. Instead of having a separate *nix build system files in the xmlrpc
library this patch removes unneeded build checks.

- AC_PROG_CC is not needed to be called by the extension itself since it
  is already part of the main configure.ac and the phpize's
  configure.ac.
- UNDEF_THREADS_HACK is not used in the current codebase.
- Symbols defined by XMLRPC_HEADER_CHECKS are not used in the current
  code.
- Symbols defined by XMLRPC_FUNCTION_CHECKS are not used in the current
  code.
- AC_PROG_RANLIB is already done by the TSRM's files and isn't needed
  for the xmlrpc extension to work.
- AC_PROG_LN_S is already done by the PHP main configure.ac and also
  isn't needed by the xmlrpc extension to be built.

5 years agoMake DateInterval objects uncomparable
Nikita Popov [Thu, 18 Apr 2019 11:46:10 +0000 (13:46 +0200)]
Make DateInterval objects uncomparable

Arbitrary DateInterval objects don't have well-defined comparison
semantics. Throw a warning and treat the objects as uncomparable.

Support for comparing DateInterval objects returned by
DateTime::diff() may be added in the future.

5 years agoRemove duplicate zend_unset_timeout()
bugreportuser [Mon, 8 Apr 2019 14:53:46 +0000 (10:53 -0400)]
Remove duplicate zend_unset_timeout()

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 23 Apr 2019 10:43:37 +0000 (12:43 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 23 Apr 2019 10:43:22 +0000 (12:43 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #77843
Nikita Popov [Tue, 23 Apr 2019 10:43:07 +0000 (12:43 +0200)]
Fixed bug #77843

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 23 Apr 2019 09:40:43 +0000 (11:40 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoFixed bug #77931
Nikita Popov [Tue, 23 Apr 2019 09:40:13 +0000 (11:40 +0200)]
Fixed bug #77931

5 years agoMerge branch 'pull-request/4046' into PHP-7.4
Peter Kokot [Tue, 23 Apr 2019 06:59:44 +0000 (08:59 +0200)]
Merge branch 'pull-request/4046' into PHP-7.4

* pull-request/4046:
  Remove php.gif from the project root directory

5 years ago[ci skip] Remove CLI sapi README
Peter Kokot [Tue, 23 Apr 2019 06:51:23 +0000 (08:51 +0200)]
[ci skip] Remove CLI sapi README

Removing in favour of:
- https://www.php.net/manual/en/features.commandline.introduction.php
- https://www.php.net/manual/en/features.commandline.differences.php

5 years agoRemove sinclude from tsrm.m4
Peter Kokot [Tue, 23 Apr 2019 06:27:11 +0000 (08:27 +0200)]
Remove sinclude from tsrm.m4

This was once part of a standalone TSRM build and is not used in current
build system anymore.

5 years agoRemove unused BIND_STATIC insructions
Dmitry Stogov [Mon, 22 Apr 2019 23:21:08 +0000 (02:21 +0300)]
Remove unused BIND_STATIC insructions

5 years agoMerge link.c and link_win32.c
Christoph M. Becker [Mon, 22 Apr 2019 10:58:09 +0000 (12:58 +0200)]
Merge link.c and link_win32.c

5 years agoAdd gcc global register for aarch64
CrazyMiaoo [Mon, 22 Apr 2019 11:29:30 +0000 (14:29 +0300)]
Add gcc global register for aarch64

5 years agoFix parameter order
Christoph M. Becker [Mon, 22 Apr 2019 09:46:19 +0000 (11:46 +0200)]
Fix parameter order

The parameter order of `php_sys_link()` should be identical on Windows
and POSIX, bug commit c9861bd[1] got that wrong.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=c9861bd7a974ef1555395b879c1035a0bbc12ef1>

5 years agoFixed wrong opline
Dmitry Stogov [Mon, 22 Apr 2019 08:05:56 +0000 (11:05 +0300)]
Fixed wrong opline

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
George Wang [Sun, 21 Apr 2019 19:59:49 +0000 (15:59 -0400)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
George Wang [Sun, 21 Apr 2019 19:59:07 +0000 (15:59 -0400)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoImproved LSAPI_End_Response_r() .
George Wang [Sun, 21 Apr 2019 19:04:54 +0000 (15:04 -0400)]
Improved LSAPI_End_Response_r() .

5 years agoFixed bug in litespeed_finish_request(), disable fastcgi_finish_request() alias for...
George Wang [Sun, 21 Apr 2019 18:59:51 +0000 (14:59 -0400)]
Fixed bug in litespeed_finish_request(), disable fastcgi_finish_request() alias for now.

5 years agoRefactor Zend/acinclude.m4 local macro
Peter Kokot [Sat, 20 Apr 2019 22:21:14 +0000 (00:21 +0200)]
Refactor Zend/acinclude.m4 local macro

There is now only a single M4 macro in the legacy acinclude.m4 file. A
separate acinclude file was once used with a standalone Zend engine
building but with current build system this can be simplified a bit.

5 years ago[ci skip] Fix CS in Markdown files
Peter Kokot [Sun, 21 Apr 2019 13:33:20 +0000 (15:33 +0200)]
[ci skip] Fix CS in Markdown files

Checked and quickfixed with Markdown linter
- 80 columns line width (~)
- code highlighting
- ...

Some most obvious outdated content updated a bit more.

5 years agoUpdated visual text elements using markdown
Rodrigo Prado [Sun, 21 Apr 2019 02:53:02 +0000 (23:53 -0300)]
Updated visual text elements using markdown

5 years agoRemove php.gif from the project root directory
Peter Kokot [Sun, 21 Apr 2019 01:20:47 +0000 (03:20 +0200)]
Remove php.gif from the project root directory

The PHP logo is also displayed in the main README.md file using a shiny
SVG format so there is no need to use GIF format.

5 years ago[ci skip] Fix logo location
Peter Kokot [Sun, 21 Apr 2019 01:16:11 +0000 (03:16 +0200)]
[ci skip] Fix logo location

5 years ago[ci skip] Fix typo
Peter Kokot [Sat, 20 Apr 2019 20:55:37 +0000 (22:55 +0200)]
[ci skip] Fix typo

5 years agoRefactor docs files for bcmath library
Peter Kokot [Sat, 20 Apr 2019 20:41:00 +0000 (22:41 +0200)]
Refactor docs files for bcmath library

5 years agoMove ucgendata README to generator file header
Peter Kokot [Sat, 20 Apr 2019 20:35:25 +0000 (22:35 +0200)]
Move ucgendata README to generator file header

5 years agoRemove zend.ico
Peter Kokot [Sat, 20 Apr 2019 20:22:56 +0000 (22:22 +0200)]
Remove zend.ico

The usage of the `zend.ico` image file was removed via
4b3e19802385c5874eefd3ba4565f2efbc55dc96 and is in current code base
not used anymore.

5 years agoAdded test for imagecolorclosesthwb
Rodrigo Prado [Mon, 15 Apr 2019 01:10:06 +0000 (22:10 -0300)]
Added test for imagecolorclosesthwb

The function was not tested yet.
See http://gcov.php.net/viewer.php?version=PHP_HEAD&func=tested_functions

5 years agoAdd test for date timestamp
Vitor Mattos [Sat, 13 Apr 2019 18:13:38 +0000 (15:13 -0300)]
Add test for date timestamp

- [date_timestamp_get] adding coverage for date_timestamp_get alias to
  DateTime::getTimestamp feature at PHPRio TestFest
- [date_timestamp_get] adding coverage for date_timestamp_get basic
  feature at PHPRio TestFest
- Combine tests into single file

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Peter Kokot [Sat, 20 Apr 2019 17:13:21 +0000 (19:13 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Update changelog
  Update changelog
  Fix #77921: static.php.net doesn't work anymore

5 years agoUpdate changelog
Peter Kokot [Sat, 20 Apr 2019 17:13:06 +0000 (19:13 +0200)]
Update changelog

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sat, 20 Apr 2019 17:12:31 +0000 (19:12 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update changelog
  Fix #77921: static.php.net doesn't work anymore

5 years agoUpdate changelog
Peter Kokot [Sat, 20 Apr 2019 17:12:17 +0000 (19:12 +0200)]
Update changelog

5 years agoFix #77921: static.php.net doesn't work anymore
Peter Kokot [Sat, 20 Apr 2019 17:00:51 +0000 (19:00 +0200)]
Fix #77921: static.php.net doesn't work anymore

This embeds the PHP logo image in the FPM status HTML page instead of
using remote location. The phpinfo() output also uses such approach
and browser compatibility looks decent [1].

1: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs

5 years agoUpdate changelogs
Peter Kokot [Sat, 20 Apr 2019 14:16:18 +0000 (16:16 +0200)]
Update changelogs

5 years agoRemove PHP_SETUP_KERBEROS m4 macro
Peter Kokot [Sat, 20 Apr 2019 14:12:54 +0000 (16:12 +0200)]
Remove PHP_SETUP_KERBEROS m4 macro

With recent transition to pkg-config/pkgconf this macro has been now a
simple wrapper for PKG_CHECK_MODULES and PHP_EVAL_INCLINE so it's better
to omit it altogether and use these two in the *.m4 code directly.

5 years agoFixed bug #77011
Gabriel Rodrigues Couto [Tue, 9 Apr 2019 00:42:11 +0000 (21:42 -0300)]
Fixed bug #77011

Added ".tbd" extension support for libiconv on Mac to use
CommandLineTools SDK shared library.

5 years agoUse PKG_CHECK_MODULES to detect the kerberos libraries
Hugh McMaster [Fri, 19 Apr 2019 04:57:35 +0000 (14:57 +1000)]
Use PKG_CHECK_MODULES to detect the kerberos libraries

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Peter Kokot [Fri, 19 Apr 2019 19:11:23 +0000 (21:11 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Update Git repository for Windows build tool kit

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Fri, 19 Apr 2019 19:11:01 +0000 (21:11 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update Git repository for Windows build tool kit

5 years agoUpdate Git repository for Windows build tool kit
Peter Kokot [Fri, 19 Apr 2019 19:09:46 +0000 (21:09 +0200)]
Update Git repository for Windows build tool kit

5 years agoFix typo in comments
Fabien Villepinte [Fri, 19 Apr 2019 15:41:19 +0000 (17:41 +0200)]
Fix typo in comments

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Thu, 18 Apr 2019 14:52:03 +0000 (16:52 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Use php-sdk-2.2.0beta5 on AppVeyor

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Thu, 18 Apr 2019 14:51:38 +0000 (16:51 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Use php-sdk-2.2.0beta5 on AppVeyor

5 years agoUse php-sdk-2.2.0beta5 on AppVeyor
Christoph M. Becker [Thu, 18 Apr 2019 14:51:10 +0000 (16:51 +0200)]
Use php-sdk-2.2.0beta5 on AppVeyor

5 years agoRemove dead "props" member from date objects
Nikita Popov [Thu, 18 Apr 2019 13:05:43 +0000 (15:05 +0200)]
Remove dead "props" member from date objects

5 years agoRevert "Fix zend_test interned strings loaded via dl()"
Nikita Popov [Thu, 18 Apr 2019 11:48:38 +0000 (13:48 +0200)]
Revert "Fix zend_test interned strings loaded via dl()"

This reverts commit 7435ab3375ad1ef313e13ac3b0658c948f2f4dac.

It looks like we can't access EG(current_module) here in ZTS builds.
As the problematic asserts have now been disabled outside RC_DEBUG,
I'm just reverting this commit and leaving things as they were.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Dmitry Stogov [Thu, 18 Apr 2019 11:27:05 +0000 (14:27 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Check assert only when RC_DEBUG is enabled

5 years agoCheck assert only when RC_DEBUG is enabled
Dmitry Stogov [Thu, 18 Apr 2019 11:26:15 +0000 (14:26 +0300)]
Check assert only when RC_DEBUG is enabled

5 years agoRename --enable-libxml to --with-libxml to meet naming guidelines
Hugh McMaster [Thu, 18 Apr 2019 10:09:01 +0000 (20:09 +1000)]
Rename --enable-libxml to --with-libxml to meet naming guidelines

5 years agoUse PKG_CHECK_MODULES to detect libxml2
Hugh McMaster [Wed, 17 Apr 2019 11:07:15 +0000 (21:07 +1000)]
Use PKG_CHECK_MODULES to detect libxml2

5 years agoRemove support for --with-libxml-dir
Hugh McMaster [Sun, 14 Apr 2019 13:00:01 +0000 (23:00 +1000)]
Remove support for --with-libxml-dir

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 18 Apr 2019 10:59:05 +0000 (12:59 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoAdd a dl() test to Travis
Nikita Popov [Thu, 18 Apr 2019 10:24:34 +0000 (12:24 +0200)]
Add a dl() test to Travis

Compile the zend_test extension as shared and try loading it with dl()
to test for obvious issues. Doing this as a standalone call because this
is very specific to the CI setup.

5 years agoFix zend_test interned strings loaded via dl()
Nikita Popov [Thu, 18 Apr 2019 10:33:53 +0000 (12:33 +0200)]
Fix zend_test interned strings loaded via dl()

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 18 Apr 2019 10:14:49 +0000 (12:14 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoFix more dl() interned string assertions
Nikita Popov [Thu, 18 Apr 2019 10:08:09 +0000 (12:08 +0200)]
Fix more dl() interned string assertions

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 18 Apr 2019 10:10:09 +0000 (12:10 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoFix more dl() interned string assertions
Nikita Popov [Thu, 18 Apr 2019 10:08:09 +0000 (12:08 +0200)]
Fix more dl() interned string assertions

5 years agoFix dl() module unloading in post deactivate
Nikita Popov [Thu, 18 Apr 2019 08:10:15 +0000 (10:10 +0200)]
Fix dl() module unloading in post deactivate

FOREACH_END_DEL() does not call the destructor by itself, we need to
explicitly call it. Due to the missing dtor call the functions were
not unregistered early, which resulted in later shutdown segfaults.

5 years agoDon't initialize return value before calling user functions
Dmitry Stogov [Wed, 17 Apr 2019 23:31:12 +0000 (02:31 +0300)]
Don't initialize return value before calling user functions

5 years agoFixed compatibility with phpdbg
Dmitry Stogov [Wed, 17 Apr 2019 22:33:56 +0000 (01:33 +0300)]
Fixed compatibility with phpdbg

5 years agoJoin build makefiles together
Peter Kokot [Tue, 16 Apr 2019 22:09:36 +0000 (00:09 +0200)]
Join build makefiles together

Changes:
- Joins build/build.mk and build/build2.mk files together since there
  isn't any practical reason for having two different files with the
  current build system.
- Makefile is now more portable. All special syntaxes are omitted, for
  example, a conditional assignment operators `?=`. This makes buildconf
  more useful on Solaris make derivative, so there is no longer need to
  override make with gmake: `MAKE=gmake ./buildconf`.
- Suppressing autoconf and autoheader warnings is not needed anymore
  with current build system. Instead, the option `-Wall` has been used
  when running `./buildconf --debug` to get more useful debug info
  about current M4.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Dmitry Stogov [Wed, 17 Apr 2019 19:08:55 +0000 (22:08 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  It's safe to keep old string if it's stored not in SHM.

5 years agoIt's safe to keep old string if it's stored not in SHM.
Dmitry Stogov [Wed, 17 Apr 2019 18:57:17 +0000 (21:57 +0300)]
It's safe to keep old string if it's stored not in SHM.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Dmitry Stogov [Wed, 17 Apr 2019 16:32:34 +0000 (19:32 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fixed dl() function. It failed in DEBUG build without opcache because of assert during string interning.

5 years agoFixed dl() function. It failed in DEBUG build without opcache because of assert durin...
Dmitry Stogov [Wed, 17 Apr 2019 16:31:28 +0000 (19:31 +0300)]
Fixed dl() function. It failed in DEBUG build without opcache because of assert during string interning.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Wed, 17 Apr 2019 15:24:36 +0000 (17:24 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77911: Wrong warning for session.sid_bits_per_character

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Wed, 17 Apr 2019 15:23:42 +0000 (17:23 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77911: Wrong warning for session.sid_bits_per_character