[PECL-CVS] [pecl-file_formats-yaml] fix-memory-leaks: Fix Windows CI and init retval

[email protected] (Rasmus Lerdorf) Sun, 5 Apr 2026 03:35:16 +0000
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Rasmus Lerdorf (rlerdorf)
Date: 2026-04-04T23:35:11-04:00

Commit: https://github.com/php/pecl-file_formats-yaml/commit/6a6e18e46fd20b47efd079e5e0e235124dfc1572
Raw diff: https://github.com/php/pecl-file_formats-yaml/commit/6a6e18e46fd20b47efd079e5e0e235124dfc1572.diff

Fix Windows CI and init retval

Changed paths:
  M  .github/workflows/main.yml
  M  parse.c


Diff:

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 2f9c8af..c86a311 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -98,7 +98,7 @@ jobs:
         uses: actions/checkout@v3
       - name: Setup PHP
         id: setup-php
-        uses: php/[email protected]
+        uses: php/setup-php-sdk@fix/invoke-webrequest-tls
         with:
           version: "${{ matrix.php-version }}"
           arch: "${{ matrix.arch }}"
diff --git a/parse.c b/parse.c
index 9369fc3..c504cb3 100644
--- a/parse.c
+++ b/parse.c
@@ -164,6 +164,8 @@ void php_yaml_read_partial(
 {
 	int code = Y_PARSER_CONTINUE;
 
+	ZVAL_UNDEF(retval);
+
 	while (Y_PARSER_CONTINUE == code) {
 
 		if (!NEXT_EVENT()) {