]> granicus.if.org Git - php/log
php
5 years agoImplement new custom object serialization mechanism
Nikita Popov [Tue, 22 Jan 2019 16:47:16 +0000 (17:47 +0100)]
Implement new custom object serialization mechanism

RFC: https://wiki.php.net/rfc/custom_object_serialization

5 years agoRemove HAVE_PCRE/HAVE_BUNDLED_PCRE checks
Nikita Popov [Fri, 22 Mar 2019 09:29:18 +0000 (10:29 +0100)]
Remove HAVE_PCRE/HAVE_BUNDLED_PCRE checks

PCRE is always available.

5 years agoDeduplicate code in zend_builtin_functions.c
rjhdby [Mon, 18 Mar 2019 14:17:29 +0000 (17:17 +0300)]
Deduplicate code in zend_builtin_functions.c

5 years agoSwitch to bison location tracking
Nikita Popov [Fri, 15 Mar 2019 11:36:49 +0000 (12:36 +0100)]
Switch to bison location tracking

Locations for AST nodes are now tracked with the help of bison
location tracking. This is more accurate than what we currently do
and easier to extend with more information.

A zend_ast_loc structure is introduced, which is used for the location
stack. Currently it only holds the start lineno, but can be extended
to also hold end lineno and offset/column information in the future.

All AST constructors now accept a zend_ast_loc* as first argument, and
will use it to determine their lineno. Previously this used either the
CG(zend_lineno), or the smallest AST lineno of child nodes.

On the parser side, the location structure for a whole rule can be
obtained using the &@$ character salad.

5 years agoTry to create interned strings in preg_split as well
Nikita Popov [Thu, 21 Mar 2019 09:14:19 +0000 (10:14 +0100)]
Try to create interned strings in preg_split as well

And convert last_match to last_match_offset, which is more
convenient now.

5 years agoCleanup add_offset_pair API
Nikita Popov [Thu, 21 Mar 2019 09:08:29 +0000 (10:08 +0100)]
Cleanup add_offset_pair API

Accept the two offsets directly, rather than doing length calculations
at all callsites. Also extract the logic to create a possibly interned
string.

Switch the split implementation to work on a char* subject internally,
because ZSTR_VAL(subject_str) is a mouthful...

5 years agoFix bug #73948
Nikita Popov [Tue, 19 Mar 2019 11:11:05 +0000 (12:11 +0100)]
Fix bug #73948

If PREG_UNMATCHED_AS_NULL is used, make sure that unmatched capturing
groups at the end are also set to null, rather than just those in the
middle.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Remi Collet [Thu, 21 Mar 2019 08:20:03 +0000 (09:20 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  fix test

5 years agofix test
Remi Collet [Thu, 21 Mar 2019 08:19:42 +0000 (09:19 +0100)]
fix test

5 years agoSync the changes to ext/filter with 7.4, now that it works.
Kalle Sommer Nielsen [Wed, 20 Mar 2019 18:09:45 +0000 (20:09 +0200)]
Sync the changes to ext/filter with 7.4, now that it works.

- Removed --with-pcre-dir
- The filter extension can now be built as shared on Unix with ./configure

5 years agoUnbundle ext/wddx
Christoph M. Becker [Wed, 20 Mar 2019 13:15:50 +0000 (14:15 +0100)]
Unbundle ext/wddx

The extension is now available from <https://pecl.php.net/package/wddx>.

Cf. <https://wiki.php.net/rfc/deprecate-and-remove-ext-wddx>.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Remi Collet [Wed, 20 Mar 2019 13:08:30 +0000 (14:08 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix tests after fix for #76717

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Wed, 20 Mar 2019 13:08:18 +0000 (14:08 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix tests after fix for #76717

5 years agoFix tests after fix for #76717
Remi Collet [Wed, 20 Mar 2019 13:07:26 +0000 (14:07 +0100)]
Fix tests after fix for #76717

5 years agoFixed bug #74345
Nikita Popov [Wed, 20 Mar 2019 11:03:45 +0000 (12:03 +0100)]
Fixed bug #74345

Export zend_release_fcall_info_cache(). It is only necessary to
call it if the fcc may not have been used -- if it is passed to
zend_call_function() and friends, then they will take care of
freeing trampolines.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Remi Collet [Wed, 20 Mar 2019 10:55:44 +0000 (11:55 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

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

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Wed, 20 Mar 2019 10:55:06 +0000 (11:55 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

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

5 years agoNEWS
Remi Collet [Wed, 20 Mar 2019 10:54:49 +0000 (11:54 +0100)]
NEWS

5 years agoRevert "Fix #77609: Tests from mailparse extension fails"
Remi Collet [Wed, 20 Mar 2019 10:54:27 +0000 (11:54 +0100)]
Revert "Fix #77609: Tests from mailparse extension fails"

This reverts commit 3ead67239419632eecb83f0f101ead2021ee6c14.

5 years agoMark bug76348.phpt as online test
Nikita Popov [Tue, 19 Mar 2019 14:47:25 +0000 (15:47 +0100)]
Mark bug76348.phpt as online test

5 years agoFixed incorrect error message
Dmitry Stogov [Tue, 19 Mar 2019 23:41:08 +0000 (02:41 +0300)]
Fixed incorrect error message

5 years agoFixed typo
Dmitry Stogov [Tue, 19 Mar 2019 22:31:35 +0000 (01:31 +0300)]
Fixed typo

5 years agoUpgrade deprecated directives and use non-posix bison
Peter Kokot [Mon, 18 Mar 2019 23:33:53 +0000 (00:33 +0100)]
Upgrade deprecated directives and use non-posix bison

With Bison 3.0 some directives are deprecated:
- %name-prefix "x" should be %define api.prefix {x}
- %error-verbose should be %define parse.error verbose

Bison 3.3 also started emiting more warnings and since PHP souce parsers
are not POSIX compliant this patch fixes this as pointed out via
495a46aa1dc564656bf919cb49aae48a31ae15f4.

5 years agoRemove extension readmes
Peter Kokot [Mon, 18 Mar 2019 00:26:18 +0000 (01:26 +0100)]
Remove extension readmes

This patch removes several extension readmes in favor of the PHP manual
and where possible.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Sara Golemon [Tue, 19 Mar 2019 18:33:13 +0000 (14:33 -0400)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Bump versions for 7.2.18

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Sara Golemon [Tue, 19 Mar 2019 18:32:28 +0000 (14:32 -0400)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Bump versions for 7.2.18

5 years agoBump versions for 7.2.18
Sara Golemon [Tue, 19 Mar 2019 18:31:01 +0000 (14:31 -0400)]
Bump versions for 7.2.18

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Remi Collet [Tue, 19 Mar 2019 15:28:10 +0000 (16:28 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  comment out sqlite3.defensive = 1 follow common practice, this is the default value

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Tue, 19 Mar 2019 15:27:57 +0000 (16:27 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  comment out sqlite3.defensive = 1 follow common practice, this is the default value

5 years agocomment out sqlite3.defensive = 1
Remi Collet [Tue, 19 Mar 2019 15:26:26 +0000 (16:26 +0100)]
comment out sqlite3.defensive = 1
follow common practice, this is the default value

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Tue, 19 Mar 2019 15:22:12 +0000 (16:22 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Prepare main branch for PHP 7.3.5

5 years agoPrepare main branch for PHP 7.3.5
Christoph M. Becker [Tue, 19 Mar 2019 15:20:55 +0000 (16:20 +0100)]
Prepare main branch for PHP 7.3.5

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Remi Collet [Tue, 19 Mar 2019 15:16:13 +0000 (16:16 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  fix test for upcoming pcre2 10.33

5 years agofix test for upcoming pcre2 10.33
Remi Collet [Tue, 19 Mar 2019 15:15:14 +0000 (16:15 +0100)]
fix test for upcoming pcre2 10.33

"group name ..." => "subpattern name ..."

5 years agoRespect OFFSET_CAPTURE when padding preg_match_all() results
Nikita Popov [Tue, 19 Mar 2019 14:35:15 +0000 (15:35 +0100)]
Respect OFFSET_CAPTURE when padding preg_match_all() results

This issue was mentioned in bug #73948. The PREG_PATTERN_ORDER
padding was performed without respecting the PREF_OFFSET_CAPTURE
flag, which resulted in unmatched subpatterns being either null or
[null, -1] depending on where they occur. Now they will always be
[null, -1], consistent with other usages.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 19 Mar 2019 12:59:43 +0000 (13:59 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoFixed bug #76127
Nikita Popov [Tue, 19 Mar 2019 12:57:39 +0000 (13:57 +0100)]
Fixed bug #76127

Per documentation, and consistent with other preg functions, we
should return false if an error occurred.

5 years agoDon't create a new array for empty/null match every time
Nikita Popov [Tue, 19 Mar 2019 12:06:21 +0000 (13:06 +0100)]
Don't create a new array for empty/null match every time

If PREG_OFFSET_CAPTURE is used, unmatched subpatterns will be either
[null, -1] or ['', -1] depending on PREG_UNMATCHED_AS_NULL mode.
Instead of creating a new array like this every time, cache it inside
a global (per-request -- could make it immutable though).

Additionally check whether the subpattern is an empty string or
single character string and use an existing interned string in that
case. Empty / single-char subpatterns are common, so let's avoid
allocating strings for them.

5 years agoRevert unintended change
Nikita Popov [Tue, 19 Mar 2019 11:00:38 +0000 (12:00 +0100)]
Revert unintended change

I wanted to cache subpat names, but we can't do that because the
cache relives request boundaries.

5 years agoUse zend_string for subpat_names table
Nikita Popov [Tue, 19 Mar 2019 10:55:40 +0000 (11:55 +0100)]
Use zend_string for subpat_names table

When used with preg_match_all or preg_replace_callback(_array),
subpattern names can be used in the matches array many times.
Switch the subpat_names table to use zend_string, so we don't have
to allocate a new string every time. Also don't bother creating the
table if no $matches were passed.

This might be a regression for the case where preg_match() is used
with many trailing named subpatterns that are skipped in the result
array, but that seems rather contrived.

5 years agoImprove white-space handling
Dmitry Stogov [Tue, 19 Mar 2019 10:52:55 +0000 (13:52 +0300)]
Improve white-space handling

5 years agoAvoid copying subpat twice if named subpats are used
Nikita Popov [Tue, 19 Mar 2019 10:18:43 +0000 (11:18 +0100)]
Avoid copying subpat twice if named subpats are used

5 years agoFix #77094: Add flags support for pcre_replace_callback(_array)
Nikita Popov [Mon, 18 Mar 2019 13:22:06 +0000 (14:22 +0100)]
Fix #77094: Add flags support for pcre_replace_callback(_array)

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 19 Mar 2019 09:03:11 +0000 (10:03 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 19 Mar 2019 09:02:50 +0000 (10:02 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #77765
Vlad Temian [Mon, 18 Mar 2019 16:35:24 +0000 (18:35 +0200)]
Fixed bug #77765

Set mode 40755 for directories, via FTP stream stat.

Because we already manage to CWD into the current directory,
we should set 40755 as mode, instead of 40644.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 19 Mar 2019 08:55:52 +0000 (09:55 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 19 Mar 2019 08:55:24 +0000 (09:55 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFix #77767: phpdbg break command help message shows incorrect aliases
Miriam Lauter [Mon, 18 Mar 2019 16:47:18 +0000 (12:47 -0400)]
Fix #77767: phpdbg break command help message shows incorrect aliases

Previously the aliases for at and del were listed as A and d
in the help message for break. This patch corrects the aliases
to be @ and ~ respectively.

5 years agomicro-optimization
Dmitry Stogov [Mon, 18 Mar 2019 23:02:14 +0000 (02:02 +0300)]
micro-optimization

5 years agoLeave bundled generated files untouched
Peter Kokot [Mon, 18 Mar 2019 22:02:57 +0000 (23:02 +0100)]
Leave bundled generated files untouched

When building lexer and parser files leave bundled files untouched as
are tracked in the Git. *.orig files also don't need to be cleaned
anymore.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 18 Mar 2019 19:08:49 +0000 (20:08 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix order

5 years agoFix order
Christoph M. Becker [Mon, 18 Mar 2019 19:07:38 +0000 (20:07 +0100)]
Fix order

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

* PHP-7.3:
  Fix #77578: Crash when php unload

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

* PHP-7.2:
  Fix #77578: Crash when php unload

5 years agoFix #77578: Crash when php unload
Christoph M. Becker [Mon, 18 Mar 2019 17:47:34 +0000 (18:47 +0100)]
Fix #77578: Crash when php unload

Since we're putting `ITypeLib *`s into the hash, we're getting
`ITypeLib *`s back, not `ITypeLib **`s.

5 years agoOptimization for ASCII data
Dmitry Stogov [Mon, 18 Mar 2019 16:33:51 +0000 (19:33 +0300)]
Optimization for ASCII data

5 years agoDon't use random mode in mysqli_query test
Nikita Popov [Mon, 18 Mar 2019 15:55:25 +0000 (16:55 +0100)]
Don't use random mode in mysqli_query test

MYSQLI_ASYNC is also valid here, at least with mysqlnd. Rather than
using a random mode that is prone to failing once in a blue moon,
use a fixed invalid value.

5 years agoFixed bug #72685
Nikita Popov [Mon, 18 Mar 2019 11:57:43 +0000 (12:57 +0100)]
Fixed bug #72685

We currently have a large performance problem when implementing lexers
working on UTF-8 strings in PHP. This kind of code tends to perform a
large number of matches at different offsets on a single string. This
is generally fast. However, if /u mode is used, the full string will
be UTF-8 validated on each match. This results in quadratic runtime.

This patch fixes the issue by adding a IS_STR_VALID_UTF8 flag, which
is set when we have determined that the string is valid UTF8 and
further validation is skipped.

A limitation of this approach is that we can't set the flag for interned
strings. I think this is not a problem for this use-case which will
generally work on dynamic data. If we want to use this flag for other
purposes as well (mbstring?) then it might be worthwhile to UTF-8 validate
strings during interning. But right now this doesn't seem useful.

5 years agoAvoid unnecessary global variable
Christoph M. Becker [Mon, 18 Mar 2019 14:53:56 +0000 (15:53 +0100)]
Avoid unnecessary global variable

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 18 Mar 2019 14:05:19 +0000 (15:05 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Add bison version check to configure

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Mon, 18 Mar 2019 14:04:09 +0000 (15:04 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Add bison version check to configure

5 years agoAdd bison version check to configure
Christoph M. Becker [Mon, 18 Mar 2019 11:27:29 +0000 (12:27 +0100)]
Add bison version check to configure

Since we're already checking for the minimum required re2c version,
also checking for the minimum required bison version is sensible.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 18 Mar 2019 13:59:08 +0000 (14:59 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Simplfy test case

5 years agoAccept zend_string* instead of char* in php_pcre_match_impl()
Nikita Popov [Mon, 18 Mar 2019 11:25:10 +0000 (12:25 +0100)]
Accept zend_string* instead of char* in php_pcre_match_impl()

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Xinchen Hui [Mon, 18 Mar 2019 11:30:11 +0000 (19:30 +0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Simplfy test case

5 years agoSimplfy test case
Xinchen Hui [Mon, 18 Mar 2019 11:28:23 +0000 (19:28 +0800)]
Simplfy test case

(I was working on the same bug while nikic committed the similar fix

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 18 Mar 2019 11:16:18 +0000 (12:16 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 18 Mar 2019 11:16:12 +0000 (12:16 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoMake test independent of icu version
Nikita Popov [Mon, 18 Mar 2019 11:14:33 +0000 (12:14 +0100)]
Make test independent of icu version

We don't really care about the actual output here, just that it
doesn't fail.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 18 Mar 2019 10:41:19 +0000 (11:41 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 18 Mar 2019 10:39:58 +0000 (11:39 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoAllow DateTimeImmutable in datefmt_format_object()
Nikita Popov [Mon, 18 Mar 2019 10:39:16 +0000 (11:39 +0100)]
Allow DateTimeImmutable in datefmt_format_object()

As pointed out in a comment on bug #65683.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 18 Mar 2019 10:07:36 +0000 (11:07 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 18 Mar 2019 10:07:27 +0000 (11:07 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoPartial fix for bug #77751
Nikita Popov [Mon, 18 Mar 2019 10:04:25 +0000 (11:04 +0100)]
Partial fix for bug #77751

This avoids the segfault, but it will not make writing to the
SplFileObject during output shutdown work.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 18 Mar 2019 09:51:20 +0000 (10:51 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 18 Mar 2019 09:50:39 +0000 (10:50 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #77743
Nikita Popov [Mon, 18 Mar 2019 09:49:53 +0000 (10:49 +0100)]
Fixed bug #77743

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 18 Mar 2019 09:20:41 +0000 (10:20 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #76956: Wrong value for 'syslog.filter' documented in php.ini

5 years agoFix #76956: Wrong value for 'syslog.filter' documented in php.ini
Christoph M. Becker [Mon, 18 Mar 2019 09:04:18 +0000 (10:04 +0100)]
Fix #76956: Wrong value for 'syslog.filter' documented in php.ini

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 18 Mar 2019 09:14:03 +0000 (10:14 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoRemove x86 bit test optimization
Nikita Popov [Mon, 18 Mar 2019 09:12:15 +0000 (10:12 +0100)]
Remove x86 bit test optimization

This is undefined behavior and we cannot rely on it. Additionally it
breaks builds using undefined behavior sanitizers.

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 18 Mar 2019 09:11:25 +0000 (10:11 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFix unused variable warning
Nikita Popov [Mon, 18 Mar 2019 09:11:00 +0000 (10:11 +0100)]
Fix unused variable warning

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 18 Mar 2019 09:04:59 +0000 (10:04 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 18 Mar 2019 09:04:29 +0000 (10:04 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoDon't disable object slot reuse while running shutdown functions
twosee [Sat, 16 Mar 2019 05:21:48 +0000 (13:21 +0800)]
Don't disable object slot reuse while running shutdown functions

We only need to do this once we're running destructors. The current
approach interferes with some event loop code that runs everything
inside a shutdown function.

5 years ago[ci skip] Update changelog
Peter Kokot [Mon, 18 Mar 2019 01:14:18 +0000 (02:14 +0100)]
[ci skip] Update changelog

5 years agoSync AC_CHECK_SIZEOF m4 macro calls
Peter Kokot [Thu, 14 Mar 2019 22:21:17 +0000 (23:21 +0100)]
Sync AC_CHECK_SIZEOF m4 macro calls

- AC_CHECK_SIZEOF is now called mostly only in PHP_CHECK_STDINT_TYPES()
  macro except for some parts checking for the 32 or 64 bit architecture.
- SIZEOF_CHAR removed since it is always 1
- ZEND_BIN_ID is now of a more logical pattern `BIN_48888` on 64bit
  architectures and `BIN_44444` on 32bit instead of literal string
  `BIN_SIZEOF_CHAR48888` on 64bit and `BIN_SIZEOF_CHAR44444` on 32bit.
  The unneeded SIZEOF_CHAR part has been removed.
- XMLRPC_TYPE_CHECKS removed
- The `long long int` is the same as `long long` and redundant checks
  removed accordingly.
- Removed PHP_CHECK_64BIT macro. Checking if current platform is 64bit
  or not can be also done simply by using a check of the long type on
  place. This removes redundant m4 macro PHP_CHECK_64BIT.

5 years agoRemove unused variables
Fabien Villepinte [Fri, 8 Mar 2019 12:23:07 +0000 (13:23 +0100)]
Remove unused variables

5 years agoMerge remote-tracking branch 'refs/remotes/origin/PHP-7.4' into PHP-7.4
Derick Rethans [Sun, 17 Mar 2019 19:16:08 +0000 (15:16 -0400)]
Merge remote-tracking branch 'refs/remotes/origin/PHP-7.4' into PHP-7.4

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Derick Rethans [Sun, 17 Mar 2019 19:13:16 +0000 (15:13 -0400)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoRemove outdated README for ext/json
Peter Kokot [Sun, 17 Mar 2019 19:10:26 +0000 (20:10 +0100)]
Remove outdated README for ext/json

The php manual already includes introduction to the JSON extension. The
re2c and bison version required to build parser and lexer files have
changed so to move this info on a central place this removes the README.

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Derick Rethans [Sun, 17 Mar 2019 18:55:53 +0000 (14:55 -0400)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed 7.2 compat issue
Derick Rethans [Sun, 17 Mar 2019 18:53:56 +0000 (14:53 -0400)]
Fixed 7.2 compat issue

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Derick Rethans [Sun, 17 Mar 2019 18:38:11 +0000 (14:38 -0400)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Derick Rethans [Sun, 17 Mar 2019 18:38:04 +0000 (14:38 -0400)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoMerge branch 'pr/3888' into PHP-7.2
Derick Rethans [Sun, 17 Mar 2019 18:37:52 +0000 (14:37 -0400)]
Merge branch 'pr/3888' into PHP-7.2

5 years agoFixed bug #75113: Added DatePeriod::getRecurrences() method.
Ignace Nyamagana Butera [Tue, 26 Feb 2019 20:21:46 +0000 (21:21 +0100)]
Fixed bug #75113: Added DatePeriod::getRecurrences() method.