[pecl-file_formats-yaml] php7: PHP8.6.0 beta2 compatible (#109)

From: Date: Tue, 15 Sep 2026 13:17:44 +0000
Subject: [pecl-file_formats-yaml] php7: PHP8.6.0 beta2 compatible (#109)
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-28681@lists.php.net to get a copy of this message
Author: Sunch (Sunch233) Committer: GitHub (web-flow) Pusher: rlerdorf Date: 2026-09-15T09:17:40-04:00 Commit: https://github.com/php/pecl-file_formats-yaml/commit/a7a3b8680b8fbf0895fd63371a0ffc1305b1a5b8 Raw diff: https://github.com/php/pecl-file_formats-yaml/commit/a7a3b8680b8fbf0895fd63371a0ffc1305b1a5b8.diff PHP8.6.0 beta2 compatible (#109) * Fix build on PHP8.6.0 beta2 The zval_dtor() alias of zval_ptr_dtor_nogc() has been removed. * update CI * fix Changed paths: M .github/workflows/main.yml M parse.c M tests/yaml_parse_file_002.phpt Diff: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c86a311..a38948b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,7 @@ jobs: - "8.3" - "8.4" - "8.5" + - "8.6" steps: - name: Install dependencies @@ -83,6 +84,7 @@ jobs: - "8.2" - "8.3" - "8.4" + - "8.5" arch: - "x64" ts: diff --git a/parse.c b/parse.c index 1b08134..b0f836a 100644 --- a/parse.c +++ b/parse.c @@ -929,7 +929,7 @@ eval_timestamp(zval **zpp, const char *ts, size_t ts_len) } } else { - zval_dtor(*zpp); + zval_ptr_dtor_nogc(*zpp); ZVAL_STRINGL(*zpp, ts, ts_len); return SUCCESS; } diff --git a/tests/yaml_parse_file_002.phpt b/tests/yaml_parse_file_002.phpt index 2e8d795..94c6c5e 100644 --- a/tests/yaml_parse_file_002.phpt +++ b/tests/yaml_parse_file_002.phpt @@ -36,6 +36,6 @@ Warning: yaml_parse_file(): %r(Filename|Path)%r %r(cannot|must not)%r be empty i Warning: yaml_parse_file(): %r(Filename|Path)%r %r(cannot|must not)%r be empty in %s on line %d -Warning: yaml_parse_file(invalid): %r[Ff]%railed to open stream: No such file or directory in %s on line %d +Warning: yaml_parse_file(%r(?:invalid)?%r): %r[Ff]%railed to open stream: No such file or directory in %s on line %d Warning: yaml_parse_file() expects at least 1 %r(argument|parameter)%r, 0 given in %s on line %d

« previous php.pecl.cvs (#28681) next »