History log of /PHP-8.4/ext/ffi/tests/bug79075.inc (Results 1 – 1 of 1)
Revision Date Author Comments
# 612a34cb 07-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix bug #79075: FFI header parser chokes on comments

The directives for FFI should be first in the file, which is fine,
however sometimes there can be comments or whitespace before or be

Fix bug #79075: FFI header parser chokes on comments

The directives for FFI should be first in the file, which is fine,
however sometimes there can be comments or whitespace before or between
these defines. One practical example is for license information or when
a user adds newlines "by accident". In these cases, it's quite confusing
that the directives do not work properly.
To solve this, make the zend_ffi_parse_directives() aware of comments.

Closes GH-17082.

show more ...