]> granicus.if.org Git - php/log
php
5 years agoAlways invoke zpp in ReflectionProperty::getValue/isInitialized
Nikita Popov [Mon, 10 Feb 2020 10:05:26 +0000 (11:05 +0100)]
Always invoke zpp in ReflectionProperty::getValue/isInitialized

Make sure we still perform a zpp check for the static case, and
also always enforce that the parameter is ?object. Otherwise we
violate the specified signature.

5 years agoRename reflection stub file
Nikita Popov [Mon, 10 Feb 2020 09:51:37 +0000 (10:51 +0100)]
Rename reflection stub file

Where possible, the stub file should match the name of the C file,
so that the build system integration automatically recompiles it.

5 years agoFix stub for DomImplementation::createDocumentType()
Nikita Popov [Mon, 10 Feb 2020 09:48:18 +0000 (10:48 +0100)]
Fix stub for DomImplementation::createDocumentType()

5 years agoDeref slow-path ASSIGN_OBJ result
Nikita Popov [Mon, 10 Feb 2020 09:42:06 +0000 (10:42 +0100)]
Deref slow-path ASSIGN_OBJ result

We should not store a reference inside IS_TMP_VAR.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 10 Feb 2020 09:05:42 +0000 (10:05 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove hint to security purpose of disable_functions

5 years agoRemove hint to security purpose of disable_functions
jsmmo [Wed, 5 Feb 2020 10:27:33 +0000 (11:27 +0100)]
Remove hint to security purpose of disable_functions

These features are not intended to offer security against a
determined attacher with full local code execution privileges.

Closes GH-5150.

5 years agoMerge branch 'PHP-7.4'
Xinchen Hui [Mon, 10 Feb 2020 05:02:45 +0000 (13:02 +0800)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed bug #79244 (php crashes during parsing INI file). (Laruence)

5 years agoFixed bug #79244 (php crashes during parsing INI file). (Laruence)
Xinchen Hui [Mon, 10 Feb 2020 05:01:51 +0000 (13:01 +0800)]
Fixed bug #79244 (php crashes during parsing INI file). (Laruence)

Cherry-picked the fix(not sure why this wasn't merged to 7.4) for:
Fixed bug #77589 (Core dump using parse_ini_string with numeric sections)

Section name should not be typed(NULL, FALSE, TRUE etc)

Conflicts:

Zend/zend_ini_scanner.c

5 years agoAdd stubs for NumberFormatter
Máté Kocsis [Mon, 14 Oct 2019 22:44:45 +0000 (00:44 +0200)]
Add stubs for NumberFormatter

Closes GH-4827

5 years agoUpdate release-process.md
Ruud Boon [Mon, 3 Feb 2020 09:24:28 +0000 (10:24 +0100)]
Update release-process.md

I would like to suggest posting tweet to become part of the release process.

[skip ci] Closes GH-5144

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Sat, 8 Feb 2020 16:07:49 +0000 (17:07 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79248: Traversing empty VT_ARRAY throws com_exception

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Sat, 8 Feb 2020 16:06:34 +0000 (17:06 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #79248: Traversing empty VT_ARRAY throws com_exception

5 years agoFix #79248: Traversing empty VT_ARRAY throws com_exception
Christoph M. Becker [Sat, 8 Feb 2020 15:56:30 +0000 (16:56 +0100)]
Fix #79248: Traversing empty VT_ARRAY throws com_exception

If the `VT_ARRAY` is empty, i.e. its upperbound is less than its lower
bound, we must not call `php_com_safearray_get_elem()`, because that
function throws in this case.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Sat, 8 Feb 2020 10:06:45 +0000 (11:06 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79247: Garbage collecting variant objects segfaults

5 years agoFix #79247: Garbage collecting variant objects segfaults
Christoph M. Becker [Sat, 8 Feb 2020 09:58:15 +0000 (10:58 +0100)]
Fix #79247: Garbage collecting variant objects segfaults

variant objects have no (declared) properties, so the `get_properties`
handlers returns a pointer to constant storage for efficiency reasons.
This pointer must not be returned from the `get_gc` handler, though;
instead we set up an own `get_gc` handler and return NULL from it, to
signal that there are no properties to collect.

5 years agoMerge branch 'PHP-7.4'
Anatol Belski [Sat, 8 Feb 2020 09:18:08 +0000 (10:18 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Update bundled stdxx check macros

5 years agoUpdate bundled stdxx check macros
Anatol Belski [Sat, 8 Feb 2020 09:13:46 +0000 (10:13 +0100)]
Update bundled stdxx check macros

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Fri, 7 Feb 2020 20:11:32 +0000 (21:11 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Skip test case on x86 where it otherwise fails [ci skip]

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Fri, 7 Feb 2020 20:10:44 +0000 (21:10 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Skip test case on x86 where it otherwise fails [ci skip]

5 years agoSkip test case on x86 where it otherwise fails [ci skip]
Christoph M. Becker [Fri, 7 Feb 2020 20:00:27 +0000 (21:00 +0100)]
Skip test case on x86 where it otherwise fails [ci skip]

`-2200000000` can't be converted to integer on x86, so the constructor
call would fail.

5 years agoSimplify COM_ERR_CONST definition for x64
Christoph M. Becker [Fri, 7 Feb 2020 17:24:46 +0000 (18:24 +0100)]
Simplify COM_ERR_CONST definition for x64

This is also a wee bit faster.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Fri, 7 Feb 2020 17:11:41 +0000 (18:11 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79242: COM error constants don't match com_exception codes

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Fri, 7 Feb 2020 17:04:52 +0000 (18:04 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #79242: COM error constants don't match com_exception codes

5 years agoFix #79242: COM error constants don't match com_exception codes
Christoph M. Becker [Fri, 7 Feb 2020 17:04:14 +0000 (18:04 +0100)]
Fix #79242: COM error constants don't match com_exception codes

Because a `HRESULT` is a `LONG`[1], no special treatment is required on
x86 platforms to get appropriate values.  On x64 platforms we prefer
positive values, what we could accomplish by casting the `HRESULT`
value to `ULONG` and then to `zend_long`, but since the current
behavior is correct and the performance improvement is negligible, we
defer that to master.

[1] <https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types#hresult>

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 7 Feb 2020 16:02:49 +0000 (17:02 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  PCRE: Only remember valid UTF-8 if start offset zero
  PCRE: Check whether start offset is on char boundary

5 years agoPCRE: Only remember valid UTF-8 if start offset zero
Nikita Popov [Fri, 7 Feb 2020 16:01:39 +0000 (17:01 +0100)]
PCRE: Only remember valid UTF-8 if start offset zero

PCRE only validates the string starting from the start offset
(minus maximum look-behind, but let's ignore that), so we can
only remember that the string is fully valid UTF-8 is the original
start offset is zero.

5 years agoPCRE: Check whether start offset is on char boundary
Nikita Popov [Fri, 7 Feb 2020 15:39:06 +0000 (16:39 +0100)]
PCRE: Check whether start offset is on char boundary

We need not just the whole string to be UTF-8, but the start
position to be on a character boundary as well. Check this by
looking for a continuation byte.

5 years agoRemoved ext/zip/tests/oo_namelocate.zip
Dmitry Stogov [Fri, 7 Feb 2020 13:52:26 +0000 (16:52 +0300)]
Removed ext/zip/tests/oo_namelocate.zip

5 years agoEnable -msse2 on m32 builder
Nikita Popov [Fri, 7 Feb 2020 10:33:42 +0000 (11:33 +0100)]
Enable -msse2 on m32 builder

This helps to catch stack alignment issues in JIT.

5 years agotypo
Dmitry Stogov [Fri, 7 Feb 2020 11:21:56 +0000 (14:21 +0300)]
typo

5 years agoMake ASSIGN, ASSIGN_OP, INC and DEC opcodes to return IS_TMP_VAR instead of IS_VAR.
Dmitry Stogov [Fri, 7 Feb 2020 10:36:52 +0000 (13:36 +0300)]
Make ASSIGN, ASSIGN_OP, INC and DEC opcodes to return IS_TMP_VAR instead of IS_VAR.

This helps to avoid unnecessary IS_REFERENCE checks.
This changes some notices "Only variables should be passed by reference" to exception "Cannot pass parameter %d by reference".

Also, for consistency, compile-time fatal error "Only variables can be passed by reference" was converted to exception "Cannot pass parameter %d by reference"

5 years agoFixed stack alignment
Dmitry Stogov [Fri, 7 Feb 2020 10:00:48 +0000 (13:00 +0300)]
Fixed stack alignment

5 years agoTry to fix Windows build
Nikita Popov [Thu, 6 Feb 2020 14:27:49 +0000 (15:27 +0100)]
Try to fix Windows build

5 years agoBasic JIT support for verify return
Nikita Popov [Fri, 6 Dec 2019 14:02:15 +0000 (15:02 +0100)]
Basic JIT support for verify return

5 years agoFix ext/dom test helper method causing trailing whitespaces.
Benjamin Eberlei [Thu, 6 Feb 2020 21:24:18 +0000 (22:24 +0100)]
Fix ext/dom test helper method causing trailing whitespaces.

5 years agoFixed JIT for PTR_INC instruction to return de-referenced value of reference
Dmitry Stogov [Thu, 6 Feb 2020 18:29:43 +0000 (21:29 +0300)]
Fixed JIT for PTR_INC instruction to return de-referenced value of reference

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Thu, 6 Feb 2020 14:02:12 +0000 (15:02 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #66322: COMPersistHelper::SaveToFile can save to wrong location

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Thu, 6 Feb 2020 14:00:39 +0000 (15:00 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #66322: COMPersistHelper::SaveToFile can save to wrong location

5 years agoFix #66322: COMPersistHelper::SaveToFile can save to wrong location
Christoph M. Becker [Thu, 6 Feb 2020 13:59:55 +0000 (14:59 +0100)]
Fix #66322: COMPersistHelper::SaveToFile can save to wrong location

Saving under the given `filename` may also work, but since
`::LoadFromFile` uses the `fullpath` we follow suit.

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Thu, 6 Feb 2020 12:57:29 +0000 (15:57 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Make opcodes to return de-refereced values of typed references (in the same was as for non-typed)

5 years agoMake opcodes to return de-refereced values of typed references (in the same was as...
Dmitry Stogov [Thu, 6 Feb 2020 12:48:54 +0000 (15:48 +0300)]
Make opcodes to return de-refereced values of typed references (in the same was as for non-typed)

5 years agoFix [-Wtype-limits] warning in LDAP by removing unnecessary condition
George Peter Banyard [Thu, 6 Feb 2020 12:20:15 +0000 (13:20 +0100)]
Fix [-Wtype-limits] warning in LDAP by removing unnecessary condition

As context is a pointer to a berval struct and bv_len is of type
ber_len_t [1] which it self is defined as an unsigned integer [2]
this condition is always true.

[1] https://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=blob;f=include/lber.h#l212
[2] https://www.openldap.org/software//man.cgi?query=ber_free&sektion=3&apropos=0&manpath=OpenLDAP+2.4-Release

5 years agoRemove spurious const qualifier from function return type
Nikita Popov [Thu, 6 Feb 2020 10:59:52 +0000 (11:59 +0100)]
Remove spurious const qualifier from function return type

5 years agoRemove ZEND_ACC_IMPLEMENT_INTERFACES flag
Nikita Popov [Thu, 6 Feb 2020 09:51:45 +0000 (10:51 +0100)]
Remove ZEND_ACC_IMPLEMENT_INTERFACES flag

This is equivalent to checking ce->num_interfaces. The only subtle
moment is during inheritance, where num_interface may change when
parent interfaces are inherited. The check in zend_do_link_class
thus uses "interfaces", not "ce->num_interfaces".

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Thu, 6 Feb 2020 09:49:53 +0000 (10:49 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix NEWS [ci skip]

5 years agoFix NEWS [ci skip]
Christoph M. Becker [Thu, 6 Feb 2020 09:46:38 +0000 (10:46 +0100)]
Fix NEWS [ci skip]

This bugfix didn't make it into 7.4.3.

5 years agoRemove ZEND_ACC_IMPLEMENTS_TRAITS flag
Nikita Popov [Thu, 6 Feb 2020 09:45:49 +0000 (10:45 +0100)]
Remove ZEND_ACC_IMPLEMENTS_TRAITS flag

This is equivalent to checking ce->num_traits.

5 years agoRemove ZEND_ACC_INHERITED flag
Nikita Popov [Thu, 6 Feb 2020 09:42:25 +0000 (10:42 +0100)]
Remove ZEND_ACC_INHERITED flag

It is equivalent to checking ce->parent != NULL. Just adds more
state that needs to be kept in sync.

5 years agoFix [-Wtype-limits] in bundled GD lib by using signed integers
George Peter Banyard [Thu, 6 Feb 2020 00:20:46 +0000 (01:20 +0100)]
Fix [-Wtype-limits] in bundled GD lib by using signed integers

As seen in the gdImageRotateBicubicFixed() function the same setup
occurs but it uses signed integers, therefore we use also use
signed integers in gdImageRotateBilinear()

Moreover, these two functions have been removed upstream in
https://github.com/libgd/libgd/commit/bd6d2e101f6f1df106d1cd2e2dc8058a5538109b
therefore we should also mimic upstream and remove them...

Thanks to @cmb69 for pointing it out.

5 years agoAdjust XFAIL tests due to TypeErrors
George Peter Banyard [Wed, 5 Feb 2020 20:22:49 +0000 (21:22 +0100)]
Adjust XFAIL tests due to TypeErrors

Closes GH-5152

5 years agoFix false positive for -Wtype-limits in standard image ext
George Peter Banyard [Wed, 5 Feb 2020 17:10:09 +0000 (18:10 +0100)]
Fix false positive for -Wtype-limits in standard image ext

5 years agoRemove unnecessary condition as always true.
George Peter Banyard [Wed, 5 Feb 2020 16:44:20 +0000 (17:44 +0100)]
Remove unnecessary condition as always true.

ZSTR_LEN(str) is an unsigned integer therefor it is always greater
or equal than 0.

Detected by -Wtype-limits compiler warning.

5 years agoFix some -Wold-style-declaration compiler warnings
George Peter Banyard [Wed, 5 Feb 2020 16:39:29 +0000 (17:39 +0100)]
Fix some -Wold-style-declaration compiler warnings

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 5 Feb 2020 10:21:34 +0000 (11:21 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed bug #79188

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 5 Feb 2020 10:19:55 +0000 (11:19 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fixed bug #79188

5 years agoFixed bug #79188
Nikita Popov [Wed, 29 Jan 2020 09:57:44 +0000 (10:57 +0100)]
Fixed bug #79188

5 years agoPromote invalid mode/unknow option from Warning to ValueError for plain streams.
George Peter Banyard [Tue, 4 Feb 2020 21:25:43 +0000 (22:25 +0100)]
Promote invalid mode/unknow option from Warning to ValueError for plain streams.

Closes GH-5076

5 years agoAddress path is 104 bytes on macOs compared to 108 on Linux
George Peter Banyard [Tue, 4 Feb 2020 21:23:56 +0000 (22:23 +0100)]
Address path is 104 bytes on macOs compared to 108 on Linux

5 years agoAdd various stubs for Intl
Máté Kocsis [Mon, 14 Oct 2019 20:02:22 +0000 (22:02 +0200)]
Add various stubs for Intl

Closes GH-4826

5 years agoAdd stubs for IntlCalendar
Máté Kocsis [Thu, 21 Nov 2019 18:35:25 +0000 (19:35 +0100)]
Add stubs for IntlCalendar

Closes GH-4846

5 years agoFix ZPP of intl_cal_set()
Máté Kocsis [Thu, 21 Nov 2019 18:34:23 +0000 (19:34 +0100)]
Fix ZPP of intl_cal_set()

5 years agoFixed JIT for BIND_GLOBAL
Dmitry Stogov [Tue, 4 Feb 2020 12:56:55 +0000 (15:56 +0300)]
Fixed JIT for BIND_GLOBAL

5 years agoAdd stubs for IntlDateFormatter & MessageFormatter
Máté Kocsis [Tue, 4 Feb 2020 12:08:06 +0000 (13:08 +0100)]
Add stubs for IntlDateFormatter & MessageFormatter

Closes GH-4812

5 years agoMerge branch 'PHP-7.4' [ci skip]
Christoph M. Becker [Tue, 4 Feb 2020 10:46:43 +0000 (11:46 +0100)]
Merge branch 'PHP-7.4' [ci skip]

* PHP-7.4:
  Next is 7.3.16

5 years agoMerge branch 'PHP-7.3' into PHP-7.4 [ci skip]
Christoph M. Becker [Tue, 4 Feb 2020 10:41:07 +0000 (11:41 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4 [ci skip]

* PHP-7.3:
  Next is 7.3.16

5 years agoNext is 7.3.16
Christoph M. Becker [Tue, 4 Feb 2020 10:38:29 +0000 (11:38 +0100)]
Next is 7.3.16

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Tue, 4 Feb 2020 10:30:57 +0000 (11:30 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79019: Copied cURL handles upload empty file

5 years agoFix #79019: Copied cURL handles upload empty file
Christoph M. Becker [Tue, 4 Feb 2020 10:01:33 +0000 (11:01 +0100)]
Fix #79019: Copied cURL handles upload empty file

To cater to `curl_copy_handle()` of cURL handles with attached
`CURLFile`s, we must not attach the opened stream, because the stream
may not be seekable, so that we could rewind, when the same stream is
going to be uploaded multiple times.  Instead, we're opening the stream
lazily in the read callback.

Since `curl_multi_perfom()` processes easy handles asynchronously, we
have no control of the operation sequence.  Since duplicated cURL
handles may be used with multi handles, we cannot use a single arg
structure, but actually have to rebuild the whole mime structure on
handle duplication and attach this to the new handle.

In order to better test this behavior, we extend the test responder to
print the size of the upload, and patch the existing tests accordingly.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 3 Feb 2020 23:54:54 +0000 (00:54 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #78090: bug45161.phpt takes forever to finish

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 3 Feb 2020 23:44:55 +0000 (00:44 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #78090: bug45161.phpt takes forever to finish

5 years agoFix #78090: bug45161.phpt takes forever to finish
Christoph M. Becker [Mon, 3 Feb 2020 10:47:01 +0000 (11:47 +0100)]
Fix #78090: bug45161.phpt takes forever to finish

Not all systems support the discard protocol (TCP port 9), and since
there is no particular reason to use it, we switch to using actual
server testing.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 3 Feb 2020 22:38:40 +0000 (23:38 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79191: Error in SoapClient ctor disables DOMDocument::save()

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 3 Feb 2020 22:32:46 +0000 (23:32 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #79191: Error in SoapClient ctor disables DOMDocument::save()

5 years agoFix #79191: Error in SoapClient ctor disables DOMDocument::save()
Christoph M. Becker [Mon, 3 Feb 2020 22:10:20 +0000 (23:10 +0100)]
Fix #79191: Error in SoapClient ctor disables DOMDocument::save()

The culprit is the too restrictive fix for bug #71536, which prevents
`php_libxml_streams_IO_write()` from properly executing when unclean
shutdown is flagged.  A *more* suitable solution is to move the
`xmlwriter_free_resource_ptr()` call from the `free_obj` handler to an
added `dtor_obj` handler, to avoid to write to a closed stream in case
of late object freeing.  This makes the `EG(active)` guard superfluous.

We also fix bug79029.phpt which has to use different variables for the
three parts to actually check the original shutdown issue.

Thanks to bwoebi and daverandom for helping to investigate this issue.

5 years agoReindent phpt files
Nikita Popov [Mon, 3 Feb 2020 21:52:20 +0000 (22:52 +0100)]
Reindent phpt files

5 years agoEnable formatting of phpt files in tidy.php
Nikita Popov [Mon, 3 Feb 2020 12:46:42 +0000 (13:46 +0100)]
Enable formatting of phpt files in tidy.php

5 years agoFix indentation/trailing whitespaces of 32-bit tests
Máté Kocsis [Mon, 3 Feb 2020 15:50:59 +0000 (16:50 +0100)]
Fix indentation/trailing whitespaces of 32-bit tests

5 years agoFix indentation/trailing whitespaces of tests
Máté Kocsis [Mon, 3 Feb 2020 14:00:44 +0000 (15:00 +0100)]
Fix indentation/trailing whitespaces of tests

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 3 Feb 2020 12:41:45 +0000 (13:41 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Apply tidy formatting

5 years agoApply tidy formatting
Nikita Popov [Mon, 3 Feb 2020 12:41:31 +0000 (13:41 +0100)]
Apply tidy formatting

Mostly reindent PHP scripts to spaces.

5 years agoAdd bundled jit libraries to exclude list
Nikita Popov [Mon, 3 Feb 2020 12:41:09 +0000 (13:41 +0100)]
Add bundled jit libraries to exclude list

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 3 Feb 2020 12:35:49 +0000 (13:35 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Add tidy.php to enforce formatting

5 years agoAdd tidy.php to enforce formatting
Nikita Popov [Fri, 10 Jan 2020 14:52:42 +0000 (15:52 +0100)]
Add tidy.php to enforce formatting

Many parts are disabled for the PHP-7.4 branch. We only strip
trailing whitespace in C files and reindent .php files to spaces.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 3 Feb 2020 12:05:54 +0000 (13:05 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Relax test expectation

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 3 Feb 2020 12:05:09 +0000 (13:05 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Relax test expectation

5 years agoRelax test expectation
Christoph M. Becker [Mon, 3 Feb 2020 12:02:12 +0000 (13:02 +0100)]
Relax test expectation

Since we're dealing with floating point numbers, precision issues may
hit us, and actually it's not necessary to check for the exact number
anyway, because it is not exact in the first place.  Therefore, we
relax the test expectations.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 3 Feb 2020 11:30:42 +0000 (12:30 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79212: NumberFormatter::format() may detect wrong type

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 3 Feb 2020 11:29:28 +0000 (12:29 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #79212: NumberFormatter::format() may detect wrong type

5 years agoFix #79212: NumberFormatter::format() may detect wrong type
Christoph M. Becker [Sun, 2 Feb 2020 12:38:34 +0000 (13:38 +0100)]
Fix #79212: NumberFormatter::format() may detect wrong type

We have to convert to number *before* detecting the type, to cater to
internal objects implementing `cast_object`.

We also get rid of the fallback behavior of using `FORMAT_TYPE_INT32`,
because that can no longer happen; after `convert_scalar_to_number_ex`
the type is either `IS_LONG` or `IS_DOUBLE`.  We cater explicitly to
the `IS_ARRAY` case what also avoids triggering a type confusion when
`::TYPE_INT64` is passed as `$type`.

5 years agozip ext is now 1.17.1
Remi Collet [Mon, 3 Feb 2020 10:37:20 +0000 (11:37 +0100)]
zip ext is now 1.17.1

5 years agoExport zend_type_to_string() with ZEND_API
Derick Rethans [Mon, 3 Feb 2020 10:26:20 +0000 (10:26 +0000)]
Export zend_type_to_string() with ZEND_API

5 years agoMerge branch 'PHP-7.4'
Remi Collet [Mon, 3 Feb 2020 09:24:57 +0000 (10:24 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  add test
  NEWS
  Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method

5 years agoadd test
Remi Collet [Mon, 3 Feb 2020 09:21:46 +0000 (10:21 +0100)]
add test

5 years agoNEWS
Remi Collet [Mon, 3 Feb 2020 09:09:12 +0000 (10:09 +0100)]
NEWS

5 years agoFixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method
Remi Collet [Mon, 3 Feb 2020 09:06:44 +0000 (10:06 +0100)]
Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method

5 years agoMerge branch 'PHP-7.4'
Remi Collet [Mon, 3 Feb 2020 09:09:27 +0000 (10:09 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  NEWS
  Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method

5 years agoNEWS
Remi Collet [Mon, 3 Feb 2020 09:09:12 +0000 (10:09 +0100)]
NEWS

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 3 Feb 2020 09:08:20 +0000 (10:08 +0100)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Add WHITESPACE_SENSITIVE run-tests section

5 years agoAdd WHITESPACE_SENSITIVE run-tests section
Nikita Popov [Fri, 10 Jan 2020 15:54:12 +0000 (16:54 +0100)]
Add WHITESPACE_SENSITIVE run-tests section

This is used to indicate that the test should not be changed by
automated formatting changes.

5 years agoFixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method
Remi Collet [Mon, 3 Feb 2020 09:06:44 +0000 (10:06 +0100)]
Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method