]> granicus.if.org Git - php/log
php
5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Thu, 19 Sep 2019 07:17:53 +0000 (09:17 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #78543: is_callable() on FFI\CData throws Exception

5 years agoFix #78543: is_callable() on FFI\CData throws Exception
Christoph M. Becker [Wed, 18 Sep 2019 09:55:20 +0000 (11:55 +0200)]
Fix #78543: is_callable() on FFI\CData throws Exception

If `Z_OBJ_HANDLER_P(callable, get_closure)` throws, we must not let the
exeception pass to userland, if called through `is_callable()`.

5 years agoIndicate entry is skipped in error message
George Peter Banyard [Sat, 31 Aug 2019 23:34:55 +0000 (01:34 +0200)]
Indicate entry is skipped in error message

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 18 Sep 2019 14:37:23 +0000 (16:37 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 18 Sep 2019 14:37:14 +0000 (16:37 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoRemove unstable test output
Nikita Popov [Wed, 18 Sep 2019 14:36:29 +0000 (16:36 +0200)]
Remove unstable test output

This may be printed in a different order, and we don't care about
it anyway.

5 years agoChange instructions to use oniguruma from git
Nikita Popov [Wed, 18 Sep 2019 12:11:36 +0000 (14:11 +0200)]
Change instructions to use oniguruma from git

Some bugs are already fixed there.

[ci skip]

5 years agoOptimize access to thread local cache.
Dmitry Stogov [Wed, 18 Sep 2019 11:03:07 +0000 (14:03 +0300)]
Optimize access to thread local cache.

This patch saves one CPU instruction on each "_tsrm_ls_cache" access in ZTS CLI/CGI/FPM builds.
This reduce typical instruction sequence for EG(current_execute_data) access from 4 to 3 CPU instructions.

5 years agoAdd instructions for building an instrumented libonig
Nikita Popov [Wed, 18 Sep 2019 09:53:15 +0000 (11:53 +0200)]
Add instructions for building an instrumented libonig

[ci skip]

5 years agoConvert session functions arginfo to php stubs
Craig Duncan [Sat, 10 Aug 2019 15:50:18 +0000 (16:50 +0100)]
Convert session functions arginfo to php stubs

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 18 Sep 2019 08:45:19 +0000 (10:45 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 18 Sep 2019 08:45:07 +0000 (10:45 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoFixed bug #78272
Nikita Popov [Wed, 18 Sep 2019 07:44:00 +0000 (09:44 +0200)]
Fixed bug #78272

Use MAP_JIT only when running under hardened runtime, because MAP_JIT
is incompatible with fork().

The check is based on
https://github.com/mono/mono/commit/f879e35e3ed7496d819bd766deb8be6992d068ed.

5 years agoAdd debugging code to usleep()
Nikita Popov [Wed, 18 Sep 2019 08:13:35 +0000 (10:13 +0200)]
Add debugging code to usleep()

To see if intermittent CI failures are caused by a signal interrupt.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 18 Sep 2019 07:31:52 +0000 (09:31 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 18 Sep 2019 07:31:44 +0000 (09:31 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoBackport MAP_JIT fixes from PCRE2 10.33
Nikita Popov [Wed, 18 Sep 2019 07:28:54 +0000 (09:28 +0200)]
Backport MAP_JIT fixes from PCRE2 10.33

This is intended to fix the primary issue from bug #77260.

Prior to macOS 10.14 multiple MAP_JIT segments were not permitted,
leading to mmap failures and corresponding "no more memory" errors
on macOS 10.13.

5 years agoChange XMLWriter resources to objects
Christoph M. Becker [Sat, 14 Sep 2019 16:31:59 +0000 (18:31 +0200)]
Change XMLWriter resources to objects

While we generally prefer objects over resources for quite a while, the
procedural XMLWriter API still uses resources, although there is
already an object-oriented API which uses objects.  This dichotomy
makes no sense, slightly complicates the implementation, and doesn't
allow a stepwise migration to the object-oriented API, which might be
desired.  Thus we completely drop the XMLWriter resources in favor of
XMLWriter objects.

We consider the minor BC break acceptable for a major version, since
only explicit type checks (`is_resource()`, `gettype()` etc.) need to
be adapted.

5 years agoUpgrading notes for removed ext/dom classes.
Benjamin Eberlei [Tue, 17 Sep 2019 21:52:08 +0000 (23:52 +0200)]
Upgrading notes for removed ext/dom classes.

5 years agoCleanup ext/dom: Removal of unimplemented dummy classes.
Benjamin Eberlei [Sun, 15 Sep 2019 13:09:33 +0000 (15:09 +0200)]
Cleanup ext/dom: Removal of unimplemented dummy classes.

The following classes were registered in ext/dom but
neither documented nor had any behavior (only test data).
These classes are now removed:

- DOMNameList
- DomImplementationList
- DOMConfiguration
- DomError
- DomErrorHandler
- DOMImplementationSource
- DOMLocator
- DOMUserDataHandler
- DOMTypeInfo

5 years agoUpdate NEWS for 7.4.0RC3
Derick Rethans [Tue, 17 Sep 2019 16:39:07 +0000 (16:39 +0000)]
Update NEWS for 7.4.0RC3

5 years agoUpdate NEWS for PHP 7.4.0RC2
Derick Rethans [Tue, 17 Sep 2019 16:37:49 +0000 (16:37 +0000)]
Update NEWS for PHP 7.4.0RC2

5 years agoMerge branch 'PHP-7.4'
Derick Rethans [Tue, 17 Sep 2019 16:34:31 +0000 (17:34 +0100)]
Merge branch 'PHP-7.4'

5 years agoRevert "Update NEWS for PHP 7.4.0RC2"
Derick Rethans [Tue, 17 Sep 2019 16:32:33 +0000 (17:32 +0100)]
Revert "Update NEWS for PHP 7.4.0RC2"

This reverts commit 050059cb269f3581901d3ac4d155292fee95d4cf.

5 years agoRevert "Update NEWS for 7.4.0RC3"
Derick Rethans [Tue, 17 Sep 2019 16:32:31 +0000 (17:32 +0100)]
Revert "Update NEWS for 7.4.0RC3"

This reverts commit 803dc6b8f2ea1f9314d19eb242365f32a364437e.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 17 Sep 2019 15:34:31 +0000 (17:34 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 17 Sep 2019 15:34:24 +0000 (17:34 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 17 Sep 2019 15:34:08 +0000 (17:34 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoIncrease timeout in test
Nikita Popov [Tue, 17 Sep 2019 15:33:46 +0000 (17:33 +0200)]
Increase timeout in test

5 years agoImplement NUL byte checks for dbnames
Christoph M. Becker [Tue, 10 Sep 2019 11:02:59 +0000 (13:02 +0200)]
Implement NUL byte checks for dbnames

Since we're passing these parameter to C functions accepting `char*`
without any further checking, we should reject strings with NUL bytes
in the first place.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 17 Sep 2019 14:18:03 +0000 (16:18 +0200)]
Merge branch 'PHP-7.4'

5 years agoEnable --with-mhash on CI
Nikita Popov [Tue, 17 Sep 2019 14:16:31 +0000 (16:16 +0200)]
Enable --with-mhash on CI

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 17 Sep 2019 13:43:57 +0000 (15:43 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 17 Sep 2019 13:43:35 +0000 (15: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, 17 Sep 2019 13:42:42 +0000 (15:42 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFix #76342: file_get_contents waits twice specified timeout
fancyweb [Mon, 29 Jul 2019 22:33:13 +0000 (00:33 +0200)]
Fix #76342: file_get_contents waits twice specified timeout

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Tue, 17 Sep 2019 12:44:40 +0000 (15:44 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed CLI/CGI/FPM build, when they are built together with Apache SAPI

5 years agoFixed CLI/CGI/FPM build, when they are built together with Apache SAPI
Dmitry Stogov [Tue, 17 Sep 2019 12:43:00 +0000 (15:43 +0300)]
Fixed CLI/CGI/FPM build, when they are built together with Apache SAPI

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 17 Sep 2019 11:15:01 +0000 (13:15 +0200)]
Merge branch 'PHP-7.4'

5 years agoCheck for exception after calling count_values()
Nikita Popov [Tue, 17 Sep 2019 11:13:44 +0000 (13:13 +0200)]
Check for exception after calling count_values()

To avoid a duplicate error if count_values() throws.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 17 Sep 2019 10:55:18 +0000 (12:55 +0200)]
Merge branch 'PHP-7.4'

5 years agoMonitoring anonymous pages on mac via vmmap tag
David Carlier [Sat, 27 Jul 2019 12:33:48 +0000 (13:33 +0100)]
Monitoring anonymous pages on mac via vmmap tag

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 17 Sep 2019 10:19:57 +0000 (12:19 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 17 Sep 2019 10:19:45 +0000 (12:19 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 17 Sep 2019 10:19:39 +0000 (12:19 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoAdd tilde to allowed status/ping path
Drakano [Thu, 12 Sep 2019 08:18:30 +0000 (10:18 +0200)]
Add tilde to allowed status/ping path

Because of user specific webdirs it should be possible to set a
status/ping path like "/~username/status".

Closes GH-4698.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 17 Sep 2019 10:18:01 +0000 (12:18 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 17 Sep 2019 10:09:06 +0000 (12:09 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 17 Sep 2019 10:08:57 +0000 (12:08 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFix opcache return type for get_headers in zend_func_info
Tyson Andre [Fri, 13 Sep 2019 18:09:15 +0000 (14:09 -0400)]
Fix opcache return type for get_headers in zend_func_info

https://www.php.net/manual/en/function.get-headers.php#refsect1-function.get-headers-examples
shows that it will return string keys when the second argument is
non-zero. I've verified that this is the case.

This bug was there since the initial commit in c88ffa9a567.

Closes GH-4702.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 17 Sep 2019 10:07:23 +0000 (12:07 +0200)]
Merge branch 'PHP-7.4'

5 years agoImprove test usleep_basic by inlining its output
Fabien Villepinte [Sat, 14 Sep 2019 06:38:33 +0000 (08:38 +0200)]
Improve test usleep_basic by inlining its output

Closes GH-4703.

5 years agoUpdate NEWS for 7.4.0RC3
Derick Rethans [Tue, 17 Sep 2019 07:37:35 +0000 (07:37 +0000)]
Update NEWS for 7.4.0RC3

5 years agoUpdate NEWS for PHP 7.4.0RC2
Derick Rethans [Tue, 17 Sep 2019 07:36:16 +0000 (07:36 +0000)]
Update NEWS for PHP 7.4.0RC2

5 years agoMove scripts out of corpus/ directory
Nikita Popov [Mon, 16 Sep 2019 18:18:00 +0000 (20:18 +0200)]
Move scripts out of corpus/ directory

5 years agoVarious improvements to fuzzer SAPIs
Nikita Popov [Fri, 13 Sep 2019 13:15:46 +0000 (15:15 +0200)]
Various improvements to fuzzer SAPIs

5 years agoAdd fuzzer SAPIs to the core
Stanislav Malyshev [Wed, 31 Jul 2019 05:45:55 +0000 (22:45 -0700)]
Add fuzzer SAPIs to the core

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 16 Sep 2019 14:01:49 +0000 (16:01 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #78429: opcache_compile_file(__FILE__); segfaults

5 years agoFix #78429: opcache_compile_file(__FILE__); segfaults
Christoph M. Becker [Tue, 20 Aug 2019 15:56:12 +0000 (17:56 +0200)]
Fix #78429: opcache_compile_file(__FILE__); segfaults

We have to ensure that OPcache has been properly started up when
`opcache_compile_file()` is called.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 16 Sep 2019 13:55:58 +0000 (15:55 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix typo

5 years agoFix typo
Fabien Villepinte [Mon, 16 Sep 2019 13:40:43 +0000 (15:40 +0200)]
Fix typo

5 years agoMake some session tests more robust
Fabien Villepinte [Mon, 16 Sep 2019 08:43:39 +0000 (10:43 +0200)]
Make some session tests more robust

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 16 Sep 2019 13:01:22 +0000 (15:01 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 16 Sep 2019 13:01:14 +0000 (15:01 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 16 Sep 2019 13:01:05 +0000 (15:01 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #78545
Nikita Popov [Mon, 16 Sep 2019 13:00:20 +0000 (15:00 +0200)]
Fixed bug #78545

By using an explicit (double) cast.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 16 Sep 2019 12:59:22 +0000 (14:59 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #78516: password_hash(): Memory cost is not in allowed range

5 years agoFix #78516: password_hash(): Memory cost is not in allowed range
Christoph M. Becker [Sat, 14 Sep 2019 10:04:01 +0000 (12:04 +0200)]
Fix #78516: password_hash(): Memory cost is not in allowed range

libsodium measures the memory cost in bytes, while password_hash() and
friends expect kibibyte values.  We have to properly map between these
scales not only when calling libsodium functions, but also when
checking for allowed values.

We also refactor to rid the code duplication.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 16 Sep 2019 12:38:19 +0000 (14:38 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix use-after-free due to packed->mixed conversion with __unserialize()
Nikita Popov [Mon, 16 Sep 2019 12:37:16 +0000 (14:37 +0200)]
Fix use-after-free due to packed->mixed conversion with __unserialize()

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 16 Sep 2019 11:53:44 +0000 (13:53 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix segfault when unserializing abstract class
Nikita Popov [Mon, 16 Sep 2019 11:52:52 +0000 (13:52 +0200)]
Fix segfault when unserializing abstract class

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 16 Sep 2019 11:03:18 +0000 (13:03 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 16 Sep 2019 11:03:08 +0000 (13:03 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 16 Sep 2019 11:02:56 +0000 (13:02 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFix leak in SplObjectStorage unserialization
Nikita Popov [Mon, 16 Sep 2019 11:01:59 +0000 (13:01 +0200)]
Fix leak in SplObjectStorage unserialization

The result of php_var_unserialize always needs to be destroyed,
even if the call failed.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 16 Sep 2019 10:00:26 +0000 (12:00 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix test after unserialize change
Nikita Popov [Mon, 16 Sep 2019 09:59:43 +0000 (11:59 +0200)]
Fix test after unserialize change

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 16 Sep 2019 09:40:13 +0000 (11:40 +0200)]
Merge branch 'PHP-7.4'

5 years agoSanity-check array/object lengths during unserialization
Nikita Popov [Mon, 16 Sep 2019 09:38:35 +0000 (11:38 +0200)]
Sanity-check array/object lengths during unserialization

Avoid OOM conditions in unserialize due to overly large array or
object length specifications.

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Mon, 16 Sep 2019 07:30:02 +0000 (10:30 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed typos

5 years agoFixed typos
Dmitry Stogov [Mon, 16 Sep 2019 07:29:29 +0000 (10:29 +0300)]
Fixed typos

5 years agoAdd stubs for ext-hash
Thomas Gerbet [Sun, 15 Sep 2019 18:28:40 +0000 (20:28 +0200)]
Add stubs for ext-hash

5 years agoAdd missing ZPP_none()
Christoph M. Becker [Sun, 15 Sep 2019 19:27:45 +0000 (21:27 +0200)]
Add missing ZPP_none()

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Sun, 15 Sep 2019 13:14:46 +0000 (15:14 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Stick with zend_long for ABI compatibility

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Sun, 15 Sep 2019 13:14:02 +0000 (15:14 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Stick with zend_long for ABI compatibility

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sun, 15 Sep 2019 13:13:13 +0000 (15:13 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Stick with zend_long for ABI compatibility

5 years agoStick with zend_long for ABI compatibility
Christoph M. Becker [Sun, 15 Sep 2019 13:11:25 +0000 (15:11 +0200)]
Stick with zend_long for ABI compatibility

Cf. <https://github.com/php/php-src/pull/4700#issuecomment-531515689>.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Sat, 14 Sep 2019 16:49:00 +0000 (18:49 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #78535: auto_detect_line_endings value not parsed as bool

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Sat, 14 Sep 2019 16:47:53 +0000 (18:47 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #78535: auto_detect_line_endings value not parsed as bool

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

* PHP-7.2:
  Fix #78535: auto_detect_line_endings value not parsed as bool

5 years agoFix #78535: auto_detect_line_endings value not parsed as bool
bugreportuser [Thu, 12 Sep 2019 18:44:08 +0000 (12:44 -0600)]
Fix #78535: auto_detect_line_endings value not parsed as bool

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Sat, 14 Sep 2019 10:10:15 +0000 (12:10 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix double-free on invalid large octal with separators
Nikita Popov [Sat, 14 Sep 2019 10:08:20 +0000 (12:08 +0200)]
Fix double-free on invalid large octal with separators

To clean up the mess here a bit, check for invalid octal digits
with an explicit loop instead of mixing this into the string to
number conversion.

Also clean up some type usage.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 13 Sep 2019 22:25:39 +0000 (00:25 +0200)]
Merge branch 'PHP-7.4'

5 years agoUse XtOffsetOf() in url_scanner_ex
Nikita Popov [Fri, 13 Sep 2019 22:00:04 +0000 (00:00 +0200)]
Use XtOffsetOf() in url_scanner_ex

Instead of a manual implementation.

5 years agoFix symtable_cache_limit assignment in phpdbg
Nikita Popov [Fri, 13 Sep 2019 21:49:50 +0000 (23:49 +0200)]
Fix symtable_cache_limit assignment in phpdbg

The meaning of the limit changed in 7.4, it now points one past the
end. Adjust code accordingly.

5 years agoFix tautological compare warning
David Carlier [Fri, 13 Sep 2019 10:37:53 +0000 (11:37 +0100)]
Fix tautological compare warning

The ZEND_ALLOCATOR() macro compares against constants that are
larger than the unsigned short type, resulting in warnings on
clang. Avoid this by explicitly casting to size_t.

5 years agoDefine OBJ_PROP_TO_OFFSET() using XtOffsetOf()
Nikita Popov [Fri, 13 Sep 2019 20:04:58 +0000 (22:04 +0200)]
Define OBJ_PROP_TO_OFFSET() using XtOffsetOf()

This avoids null pointer arithmetic UB.

5 years agoInclude stddef.h in zend_portability.h for offsetof() macro
Nikita Popov [Fri, 13 Sep 2019 19:52:17 +0000 (21:52 +0200)]
Include stddef.h in zend_portability.h for offsetof() macro

This makes sure that we use compiler builtins when they are
available and thus avoid ubsan warnings in clang.

And also reindent the fallback implementation.