Skip to content

Fix build with PHP 8.6.0RC3 - #27

Merged
cataphract merged 1 commit into
cataphract:masterfrom
remicollet:issue-php86
Dec 6, 2026
Merged

cataphract merged 1 commit into
cataphract:masterfrom
remicollet:issue-php86

Conversation

@remicollet

Copy link
Copy Markdown
Contributor
  . The OPENBASEDIR_CHECKPATH() compatibility macro has been removed, instead
    use php_check_open_basedir() directly.

  . The php_stream_wrapper_log_error() signature changed from
    (wrapper, options, fmt, ...) to
    (wrapper, context, options, severity, terminating, code, fmt, ...).
    To keep the previous behaviour pass NULL for the context, or the context at
    hand if there is one, E_WARNING for the severity, and
    ZEND_ENUM_StreamErrorCode_Generic for the code. terminating should be true
    only if the error aborts the operation.

  . The XtOffsetOf() alias of C’s offsetof() macro has been removed. Use
    offsetof() directly.

  . The zval_dtor() alias of zval_ptr_dtor_nogc() has been removed.
    Call zval_ptr_dtor_nogc() directly instead.

And relax test expectations (stream error doesn't trace path anymore)

  . The OPENBASEDIR_CHECKPATH() compatibility macro has been removed, instead
    use php_check_open_basedir() directly.

  . The php_stream_wrapper_log_error() signature changed from
    (wrapper, options, fmt, ...) to
    (wrapper, context, options, severity, terminating, code, fmt, ...).
    To keep the previous behaviour pass NULL for the context, or the context at
    hand if there is one, E_WARNING for the severity, and
    ZEND_ENUM_StreamErrorCode_Generic for the code. terminating should be true
    only if the error aborts the operation.

  . The XtOffsetOf() alias of C’s offsetof() macro has been removed. Use
    offsetof() directly.

  . The zval_dtor() alias of zval_ptr_dtor_nogc() has been removed.
    Call zval_ptr_dtor_nogc() directly instead.

And relax test expectations (stream error doesn't trace path anymore)
@cataphract
cataphract merged commit 89a4f31 into cataphract:master Dec 6, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants