]> granicus.if.org Git - php/log
php
6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Fri, 3 Aug 2018 08:53:07 +0000 (10:53 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Update UPGRADING.INTERNALS wrt. Same Site Cookies

6 years agoUpdate UPGRADING.INTERNALS wrt. Same Site Cookies
Christoph M. Becker [Fri, 3 Aug 2018 08:52:31 +0000 (10:52 +0200)]
Update UPGRADING.INTERNALS wrt. Same Site Cookies

6 years agoMissing piece for the inliner cache
Anatol Belski [Fri, 3 Aug 2018 08:19:43 +0000 (10:19 +0200)]
Missing piece for the inliner cache

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Fri, 3 Aug 2018 05:50:00 +0000 (07:50 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Update maintainer info [skip ci]

6 years agoUpdate maintainer info [skip ci]
Anatol Belski [Fri, 3 Aug 2018 05:49:29 +0000 (07:49 +0200)]
Update maintainer info [skip ci]

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Fri, 3 Aug 2018 05:12:13 +0000 (07:12 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Improve cleanup

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Fri, 3 Aug 2018 05:11:23 +0000 (07:11 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Improve cleanup

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Fri, 3 Aug 2018 05:10:27 +0000 (07:10 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Improve cleanup

6 years agoImprove cleanup
Anatol Belski [Fri, 3 Aug 2018 05:08:53 +0000 (07:08 +0200)]
Improve cleanup

The persistent connection locks the file which might prevent deletion.

6 years agoRemove superfluous checks of always available functions
Gabriel Caruso [Fri, 3 Aug 2018 03:13:01 +0000 (00:13 -0300)]
Remove superfluous checks of always available functions

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Thu, 2 Aug 2018 19:41:07 +0000 (21:41 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Thu, 2 Aug 2018 19:40:50 +0000 (21:40 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix callbacks
  bump version

6 years agoMerge branch 'PHP-7.2'
Anatol Belski [Thu, 2 Aug 2018 19:25:29 +0000 (21:25 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fix callbacks
  bump version

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Thu, 2 Aug 2018 19:20:04 +0000 (21:20 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix callbacks
  bump version

6 years agoFix callbacks
Anatol Belski [Thu, 2 Aug 2018 16:59:34 +0000 (18:59 +0200)]
Fix callbacks

The signatures wasn't synced in 7.0

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Thu, 2 Aug 2018 16:29:33 +0000 (18:29 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Cleanup unused items

6 years agoCleanup unused items
Anatol Belski [Thu, 2 Aug 2018 16:28:18 +0000 (18:28 +0200)]
Cleanup unused items

6 years agoMerge branch 'PHP-7.3'
Sara Golemon [Thu, 2 Aug 2018 15:24:29 +0000 (11:24 -0400)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Roll NEWS for 7.2.10

6 years agoMerge branch 'PHP-7.2' into HEAD
Sara Golemon [Thu, 2 Aug 2018 15:23:14 +0000 (11:23 -0400)]
Merge branch 'PHP-7.2' into HEAD

* PHP-7.2:
  Roll NEWS for 7.2.10

6 years agoRoll NEWS for 7.2.10
Sara Golemon [Thu, 2 Aug 2018 15:21:40 +0000 (11:21 -0400)]
Roll NEWS for 7.2.10

6 years agoEnable inline reader cache
Anatol Belski [Thu, 2 Aug 2018 09:12:32 +0000 (11:12 +0200)]
Enable inline reader cache

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Thu, 2 Aug 2018 12:13:40 +0000 (14:13 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] Fix wrong dash character in UPGRADING

6 years ago[ci skip] Fix wrong dash character in UPGRADING
Michael Moravec [Thu, 2 Aug 2018 11:38:56 +0000 (13:38 +0200)]
[ci skip] Fix wrong dash character in UPGRADING

6 years agoCreate and expose php_sys_symlink() and php_sys_link()
Christoph M. Becker [Thu, 2 Aug 2018 12:08:30 +0000 (14:08 +0200)]
Create and expose php_sys_symlink() and php_sys_link()

These macros are supposed to behave like POSIX's symlink() and link(),
respectively, on POSIX compliant systems and on Windows.

Future scope: merge link.c and link_win32.c

6 years agoMake test run on non zts builds
Gabriel Caruso [Thu, 2 Aug 2018 02:14:56 +0000 (23:14 -0300)]
Make test run on non zts builds

6 years agoRemove invalid SKIPIF sections
Gabriel Caruso [Thu, 2 Aug 2018 01:39:00 +0000 (22:39 -0300)]
Remove invalid SKIPIF sections

6 years agoGive a reason why the test was skipped
Gabriel Caruso [Thu, 2 Aug 2018 01:18:57 +0000 (22:18 -0300)]
Give a reason why the test was skipped

A follow up for c93aba04

6 years agoAdd \PDO::SQLITE_ATTR_READONLY_STATEMENT
BohwaZ [Wed, 1 Aug 2018 21:45:20 +0000 (17:45 -0400)]
Add \PDO::SQLITE_ATTR_READONLY_STATEMENT

This attribute is a boolean value. It is taken from the return value of
sqlite3_stmt_readonly(), indicating if and only if the prepared statement makes
no direct changes to the content of the database.

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 1 Aug 2018 16:19:50 +0000 (18:19 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Suppress more irrelevant clang warnings

6 years agoSuppress more irrelevant clang warnings
Anatol Belski [Wed, 1 Aug 2018 16:18:37 +0000 (18:18 +0200)]
Suppress more irrelevant clang warnings

6 years agoRemove needless version checks
Christoph M. Becker [Wed, 1 Aug 2018 15:39:34 +0000 (17:39 +0200)]
Remove needless version checks

As of PHP 5.5.3, we're requiring ICU ≥ 4.0[1] anyway, so there's no
need to check for ICU 3.x.

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

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 1 Aug 2018 14:45:39 +0000 (16:45 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Unused var

6 years agoUnused var
Xinchen Hui [Wed, 1 Aug 2018 06:49:06 +0000 (14:49 +0800)]
Unused var

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 1 Aug 2018 14:24:07 +0000 (16:24 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix clang compilation

6 years agoFix clang compilation
Anatol Belski [Wed, 1 Aug 2018 14:19:54 +0000 (16:19 +0200)]
Fix clang compilation

By usage of -fmodules, all the intrinsic items are loaded automatically.
The headers included come however from Visual Studio, thus bringing some
conflicting declarations. On the other hand, -fmodules is needed to
mitigate linking issues with clang in VS compatibility mode.

6 years agoUnused var
Xinchen Hui [Wed, 1 Aug 2018 06:49:06 +0000 (14:49 +0800)]
Unused var

6 years ago[ci skip] Typo
Stanislav Malyshev [Wed, 1 Aug 2018 05:40:21 +0000 (22:40 -0700)]
[ci skip] Typo

6 years ago[ci skip] Ugh, whitespace
Stanislav Malyshev [Tue, 31 Jul 2018 19:44:51 +0000 (12:44 -0700)]
[ci skip] Ugh, whitespace

6 years ago[ci skip] Clarify difference between security & regular bugfixes
Stanislav Malyshev [Tue, 31 Jul 2018 19:43:22 +0000 (12:43 -0700)]
[ci skip] Clarify difference between security & regular bugfixes

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Tue, 31 Jul 2018 15:32:49 +0000 (17:32 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix length to copy

6 years agoFix length to copy
Anatol Belski [Tue, 31 Jul 2018 15:31:13 +0000 (17:31 +0200)]
Fix length to copy

6 years agoUPDATE README.GIT-RULES wrt. PHP-7.3
Christoph M. Becker [Tue, 31 Jul 2018 15:06:44 +0000 (17:06 +0200)]
UPDATE README.GIT-RULES wrt. PHP-7.3

We also add a respective note to README.RELEASE_PROCESS, so this won't
get overlooked again.

6 years agobump version
Joe Watkins [Tue, 31 Jul 2018 14:38:35 +0000 (16:38 +0200)]
bump version

6 years agoPrepare UPGRADING(.INTERNALS) for PHP 7.4
Christoph M. Becker [Tue, 31 Jul 2018 13:54:03 +0000 (15:54 +0200)]
Prepare UPGRADING(.INTERNALS) for PHP 7.4

We also add this as task to README.RELEASE_PROCESS, so that it's not
overlooked next time.

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Tue, 31 Jul 2018 12:11:59 +0000 (14:11 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix ZEND_EXTENSION_API_NO

6 years agoFix ZEND_EXTENSION_API_NO
Christoph M. Becker [Tue, 31 Jul 2018 12:11:39 +0000 (14:11 +0200)]
Fix ZEND_EXTENSION_API_NO

6 years agoFix README.RELEASE_PROCESS
Christoph M. Becker [Tue, 31 Jul 2018 12:09:31 +0000 (14:09 +0200)]
Fix README.RELEASE_PROCESS

The version has to be updated in configure.ac; by running `./configure`
afterwards, main/php_versions.h will be updated automatically.

6 years agoPrepare for PHP 7.4
Christoph M. Becker [Tue, 31 Jul 2018 11:56:24 +0000 (13:56 +0200)]
Prepare for PHP 7.4

6 years agoUpdate API version numbers
Christoph M. Becker [Tue, 31 Jul 2018 11:28:47 +0000 (13:28 +0200)]
Update API version numbers

These are supposed to be final now for PHP 7.3.

6 years agoFix UPGRADING
Christoph M. Becker [Tue, 31 Jul 2018 11:31:28 +0000 (13:31 +0200)]
Fix UPGRADING

6 years agoUpdate UPGRADING wrt. samesite cookie RFC
Christoph M. Becker [Tue, 31 Jul 2018 10:48:33 +0000 (12:48 +0200)]
Update UPGRADING wrt. samesite cookie RFC

Cf. <https://wiki.php.net/rfc/same-site-cookie>.

6 years agoSupport for samesite cookies with array syntax
Pedro Magalhães [Thu, 19 Jul 2018 01:40:39 +0000 (02:40 +0100)]
Support for samesite cookies with array syntax

Allows using an alternative array argument with
support for the samesite option on the following
functions:
setcookie
setrawcookie
session_set_cookie_params

6 years agoimplement same site cookie see https://bugs.php.net/bug.php?id=72230 see https:/...
Frederik Bosch [Fri, 7 Jul 2017 17:06:53 +0000 (19:06 +0200)]
implement same site cookie see https://bugs.php.net/bug.php?id=72230 see https://tools.ietf.org/html/draft-west-first-party-cookies-07 see https://scotthelme.co.uk/csrf-is-dead/

6 years agoImproved method visibility checks
Dmitry Stogov [Tue, 31 Jul 2018 10:05:57 +0000 (13:05 +0300)]
Improved method visibility checks

6 years agoSimplified property name to string conversion
Dmitry Stogov [Tue, 31 Jul 2018 09:24:53 +0000 (12:24 +0300)]
Simplified property name to string conversion

6 years agoRemoved useless IS_UNDEF checks
Dmitry Stogov [Tue, 31 Jul 2018 09:23:46 +0000 (12:23 +0300)]
Removed useless IS_UNDEF checks

6 years agoRemove TSRM_CHECK_GCC_ARG and LIBZEND_CPLUSPLUS_CHECKS
Peter Kokot [Tue, 31 Jul 2018 03:59:05 +0000 (05:59 +0200)]
Remove TSRM_CHECK_GCC_ARG and LIBZEND_CPLUSPLUS_CHECKS

This removes two old Autoconf macro definitions since they are not used
anymore.

6 years agoFix minor Autoconf coding style
Peter Kokot [Tue, 31 Jul 2018 01:09:44 +0000 (03:09 +0200)]
Fix minor Autoconf coding style

This fixes two minor Autoconf coding styles. Double quotes in arguments
don't need to be escaped. This removes warning given by autoreconf:
- warning: back quotes and double quotes must not be escaped in...

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Mon, 30 Jul 2018 17:44:59 +0000 (19:44 +0200)]
Update NEWS [ci skip]

6 years agoMerge branch 'PHP-7.2'
Anatol Belski [Mon, 30 Jul 2018 17:44:01 +0000 (19:44 +0200)]
Merge branch 'PHP-7.2'

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

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Mon, 30 Jul 2018 17:43:23 +0000 (19:43 +0200)]
Update NEWS [ci skip]

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Mon, 30 Jul 2018 17:42:45 +0000 (19:42 +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 [Mon, 30 Jul 2018 17:42:10 +0000 (19:42 +0200)]
Update NEWS [ci skip]

6 years agoMerge branch 'PHP-7.2'
Anatol Belski [Mon, 30 Jul 2018 16:29:40 +0000 (18:29 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Mon, 30 Jul 2018 16:28:53 +0000 (18:28 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option

6 years agoFixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option
Anatol Belski [Mon, 30 Jul 2018 16:27:59 +0000 (18:27 +0200)]
Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option

6 years agoUse better macros
Dmitry Stogov [Mon, 30 Jul 2018 13:48:34 +0000 (16:48 +0300)]
Use better macros

6 years agoLoop optimization
Dmitry Stogov [Mon, 30 Jul 2018 13:08:45 +0000 (16:08 +0300)]
Loop optimization

6 years agoMake more tests run on 64bit plataforms
Gabriel Caruso [Fri, 27 Jul 2018 03:19:13 +0000 (00:19 -0300)]
Make more tests run on 64bit plataforms

6 years agoGive a reason why the test was skipped
Gabriel Caruso [Sun, 29 Jul 2018 16:44:22 +0000 (13:44 -0300)]
Give a reason why the test was skipped

6 years agoRemove superfluous SKIPIF sections of always available functions
Gabriel Caruso [Sun, 29 Jul 2018 18:45:38 +0000 (15:45 -0300)]
Remove superfluous SKIPIF sections of always available functions

6 years agoAdded missing define
Dmitry Stogov [Mon, 30 Jul 2018 10:29:09 +0000 (13:29 +0300)]
Added missing define

6 years agoRemoved duplicate code. zend_fetch_dimension_address_LIST_w() was a copy of zend_fetc...
Dmitry Stogov [Mon, 30 Jul 2018 07:53:39 +0000 (10:53 +0300)]
Removed duplicate code. zend_fetch_dimension_address_LIST_w() was a copy of zend_fetch_dimension_address_W(), ZEND_FETCH_LIST_W_SPEC_CV_... a  copy of ZEND_FETCH_DIM_W_SPEC_CV_...

6 years agoFix AC_RUN_IFELSE calls when cross-compiling
Peter Kokot [Mon, 30 Jul 2018 04:38:59 +0000 (06:38 +0200)]
Fix AC_RUN_IFELSE calls when cross-compiling

AC_RUN_IFELSE program can't be run when cross-compiling. This fix removes
warnings given by autotools scripts.

6 years ago[ci skip] Fix typo
Peter Kokot [Mon, 30 Jul 2018 04:28:40 +0000 (06:28 +0200)]
[ci skip] Fix typo

6 years agoRemove superfluous SKIPIF sections of always available constants
Gabriel Caruso [Mon, 30 Jul 2018 03:53:28 +0000 (00:53 -0300)]
Remove superfluous SKIPIF sections of always available constants

6 years agoReplace obsolete AC_TRY_FOO with AC_FOO_IFELSE
Peter Kokot [Sun, 29 Jul 2018 23:50:24 +0000 (01:50 +0200)]
Replace obsolete AC_TRY_FOO with AC_FOO_IFELSE

Autoconf 2.50 released in 2001 made several macros obsolete including
the AC_TRY_RUN, AC_TRY_COMPILE and AC_TRY_LINK:
http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2

These macros should be replaced with the current AC_FOO_IFELSE instead:
- AC_TRY_RUN with AC_RUN_IFELSE and AC_LANG_SOURCE
- AC_TRY_LINK with AC_LINK_IFELSE and AC_LANG_PROGRAM
- AC_TRY_COMPILE with AC_COMPILE_IFELSE and AC_LANG_PROGRAM

PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require
2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which
are all greater than above mentioned 2.50 version therefore systems
should be well supported by now.

This patch was created with the help of autoupdate script:
autoupdate <file>

Reference docs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
- https://www.gnu.org/software/autoconf/manual/autoconf-2.59/autoconf.pdf

6 years agoRemove superfluous SKIPIF sections of always available interfaces
Gabriel Caruso [Sun, 29 Jul 2018 21:03:34 +0000 (18:03 -0300)]
Remove superfluous SKIPIF sections of always available interfaces

6 years ago[ci skip] Document RETSIGTYPE
Peter Kokot [Sun, 29 Jul 2018 19:32:35 +0000 (21:32 +0200)]
[ci skip] Document RETSIGTYPE

6 years agoRemove superfluous SKIPIF sections of always available functions
Gabriel Caruso [Sun, 29 Jul 2018 18:42:19 +0000 (15:42 -0300)]
Remove superfluous SKIPIF sections of always available functions

6 years ago[ci skip] Fix typo
Gabriel Caruso [Sun, 29 Jul 2018 16:48:35 +0000 (13:48 -0300)]
[ci skip] Fix typo

6 years agoRun tokenizer_data_gen.sh to reorganize tokens
Gabriel Caruso [Sun, 29 Jul 2018 16:21:33 +0000 (13:21 -0300)]
Run tokenizer_data_gen.sh to reorganize tokens

This will help us in future PRs, reducing the numbers of changed lines

6 years agoRemove obsolete AC_TYPE_SIGNAL
Peter Kokot [Mon, 23 Jul 2018 05:25:38 +0000 (07:25 +0200)]
Remove obsolete AC_TYPE_SIGNAL

The AC_TYPE_SIGNAL macro defined the RETSIGTYPE based on the signal
type defined in the signal.h. On pre C89 sistems (K&R C) it could be
void or int. Since C89 it can be safely assumed that the signal and
therefore the RETSIGTYPE is always void, so the RETSIGTYPE can be
replaced with void in the code if it uses it. PHP doesn't use the
RETSIGTYPE in current code anyway.

Refs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html

6 years agoUpgrade deprecated AC_OUTPUT macro calls
Peter Kokot [Sat, 28 Jul 2018 21:09:06 +0000 (23:09 +0200)]
Upgrade deprecated AC_OUTPUT macro calls

Autoconf 2.50 made several changes to macro calls. These include also
arguments passed to AC_OUTPUT macro. The upgrading chapter in Autoconf
documentation include an example of using AC_OUTPUT with
AC_CONFIG_FILES and AC_CONFIG_COMMANDS:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html

PHP 5.4 to 7.1 require Autoconf 2.59+, PHP 7.2+ require Autoconf 2.64+,
and PHP 7.2 phpize script requires Autoconf 2.59+ which are all greater
than above mentioned 2.50 version. Systems out there should well support
this by now.

This patch was created with the help of autoupdate script:
autoupdate <file>

More info on where exactly this got deprecated:
- ftp://ftp.gnu.org/old-gnu/Manuals/autoconf-2.13/html_mono/autoconf.html
- ftp://ftp.auckland.ac.nz/pub/gnu/Manuals/autoconf-2.52/html_chapter/autoconf_15.html
- http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS

6 years agoUpgrade AX_FUNC_WHICH_GETHOSTBYNAME_R to serial 8
Peter Kokot [Thu, 26 Jul 2018 15:12:07 +0000 (17:12 +0200)]
Upgrade AX_FUNC_WHICH_GETHOSTBYNAME_R to serial 8

The AX_FUNC_WHICH_GETHOSTBYNAME_R macro is from the Autoconf Archive.
Latest version of the file has few docs changes. File is also renamed
as is a pattern of other m4 Autoconf Archive files.

Refs:
- http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_func_which_gethostbyname_r.m4

6 years agoTrim trailing whitespaces in build files
Peter Kokot [Sun, 29 Jul 2018 01:53:52 +0000 (03:53 +0200)]
Trim trailing whitespaces in build files

Some editors utilizing .editorconfig automatically trim whitespaces. For
convenience this patch removes whitespaces in certain build files in
Zend and TSRM folders.

6 years ago[ci skip] Note HAVE_ST_BLKSIZE and HAVE_ST_RDEV
Peter Kokot [Sun, 29 Jul 2018 12:44:56 +0000 (14:44 +0200)]
[ci skip] Note HAVE_ST_BLKSIZE and HAVE_ST_RDEV

6 years agoReplace obsolete AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV
Peter Kokot [Sun, 29 Jul 2018 11:12:33 +0000 (13:12 +0200)]
Replace obsolete AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV

Autoconf 2.50 released in 2001 has made several macros obsolete. Instead
of the AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV the new
AC_CHECK_MEMBERS should be used.

When checking for the presence of stat struct members st_blkzize and
st_rdev the new AC_CHECK_MEMBERS macro defines new constants
HAVE_STRUCT_STAT_ST_BLKSIZE and HAVE_STRUCT_STAT_ST_RDEV.

Old constants HAVE_ST_BLKSIZE and HAVE_ST_RDEV need to be replaced
respectively in PHP code (this patch) and in PHP extenstions if they use
them.

PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require
2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which
are all greater than above mentioned 2.50 version.

6 years ago[ci skip] Note removal of PHP_PROG_LEX
Peter Kokot [Sun, 29 Jul 2018 11:37:48 +0000 (13:37 +0200)]
[ci skip] Note removal of PHP_PROG_LEX

6 years agoRemove unused PHP_PROG_LEX macro
Peter Kokot [Thu, 26 Jul 2018 05:05:47 +0000 (07:05 +0200)]
Remove unused PHP_PROG_LEX macro

Since PHP 5.3 flex lexer has been replaced with re2c. Commit
0f9e2b1753661afe1c0dee6982e161fcf00d349f made PHP_PROG_LEX macro still
available for BC.

In commit df6bd506d492292ef4353b0f8da0c34eeb076be5 it was updated. Since
this macro is entirely not used in PHP source code anymore from PHP 5.3
and up, this patch removes it together with some old traces of warnings
suppression and comments.

6 years agoRemove unused libmbfl build system related files
Peter Kokot [Thu, 26 Jul 2018 21:55:55 +0000 (23:55 +0200)]
Remove unused libmbfl build system related files

PHP build system already builds necessary files also from libmbfl
directory using the mbstring config.m4 file.

6 years agoReplace obsolete AC_AIX with AC_USE_SYSTEM_EXTENSIONS
Peter Kokot [Wed, 25 Jul 2018 07:34:25 +0000 (09:34 +0200)]
Replace obsolete AC_AIX with AC_USE_SYSTEM_EXTENSIONS

Since Autoconf 2.62 the AC_AIX macro has been made obsolete and should
be replaced with the AC_USE_SYSTEM_EXTENSIONS instead.

Both macro behaviors are the same since the old one is just a wrapper
around the new AC_USE_SYSTEM_EXTENSIONS:
http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/specific.m4

PHP 7.2+ and the main configure.ac script require minimum Autoconf 2.64+.

Refs:
- http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html

6 years agoFix typo in config.m4
Peter Kokot [Sun, 29 Jul 2018 04:10:16 +0000 (06:10 +0200)]
Fix typo in config.m4

The AC_CHECK_FUNCS has the following synopsis:
AC_CHECK_FUNCS(function..., [action-if-found], [action-if-not-found]).

Fourth argument doesn't exist.

6 years agoTrim trailing whitespaces in build files
Peter Kokot [Sun, 29 Jul 2018 01:43:45 +0000 (03:43 +0200)]
Trim trailing whitespaces in build files

Some editors utilizing .editorconfig automatically trim whitespaces. For
convenience this patch removes whitespaces in certain build files:
- ext/*/config*.m4
- configure.ac
- acinclude.m4

6 years agoUpgrade AX_CHECK_COMPILE_FLAG macro to serial 6
Peter Kokot [Thu, 26 Jul 2018 14:29:23 +0000 (16:29 +0200)]
Upgrade AX_CHECK_COMPILE_FLAG macro to serial 6

The AX_CHECK_COMPILE_FLAG macro is from the Autoconf Archive. Latest
version of the file has a new All-permissive license for even more
convenience for usage.

Refs:
- http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_check_compile_flag.m4
- https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html

6 years agoFix typos in code
Peter Kokot [Wed, 25 Jul 2018 22:03:10 +0000 (00:03 +0200)]
Fix typos in code

6 years agoRemove unused Git ident attributes from zip extension
Peter Kokot [Tue, 26 Jun 2018 22:51:02 +0000 (00:51 +0200)]
Remove unused Git ident attributes from zip extension

$Id attributes were used with SVN. With Git most of the Git ident
attributes in source code files are not used anymore.

6 years agoReverts some changes from 7ec64a83
Gabriel Caruso [Fri, 27 Jul 2018 11:01:43 +0000 (08:01 -0300)]
Reverts some changes from 7ec64a83

Checking for the PHP_VERSION_ID here is actually part of the test

6 years agoImproved assignment to "next" element of array ($a[] = ...)
Dmitry Stogov [Fri, 27 Jul 2018 10:15:22 +0000 (13:15 +0300)]
Improved assignment to "next" element of array ($a[] = ...)

6 years agoFixed bug #76667 (Segfault with divide-assign op and __get + __set)
Xinchen Hui [Fri, 27 Jul 2018 05:00:14 +0000 (13:00 +0800)]
Fixed bug #76667 (Segfault with divide-assign op and __get + __set)