350 Commits

Author SHA1 Message Date
Quentin Dreyer
2c6ac33433 Fix typo in LibYAML support message 2025-11-14 08:21:20 -07:00
Bryan Davis
bbe522346f Developer tool updates
- .gitignore: Ignore *.dep files generated by build
- dev-tools/maintainer-clean.sh: Update to match `make distclean`
- dev-tools/maintainer-clean.sh: Delete more generated files
- dev-tools/test-build.sh: Allow selecting YAML dir with LIBYAML envvar
2025-11-11 20:33:48 -07:00
Bryan Davis
c1f0d8ba5e Make a 2.3.0 release
New Features:
- Add a composer.json to enable support for PIE (asgrim)
Bugs Fixed:
- #97: Ignore null array offset warnings in explicit null tests (bd808)
- avoid unexpected NAN value was coerced to string (remicollet)
2.3.0
2025-11-11 19:20:54 -07:00
Bryan Davis
23287eaaeb Use symbols for error_reporting ini setting
Replace magic numbers with symbols in error_reporting ini setting to
improve clarity of intent.
2025-11-11 18:24:06 -07:00
Bryan Davis
c1c7bc72c6 Ignore null array offset warnings in explicit null tests
Ignore warnings while running tests involving explicit null handling.
This avoids false test failures triggered by PHP 8.5 deprecation
warnings.

Bug: #97
2025-11-11 18:10:34 -07:00
James Titcumb
24d92834e0 Use pecl namespace for Package name 2025-10-07 09:13:25 -06:00
James Titcumb
4ad0c4b719 Added dependency on date extension 2025-10-07 09:13:25 -06:00
James Titcumb
471fcf5ce7 Added a composer.json to enable support for PIE 2025-10-07 09:13:25 -06:00
Remi Collet
d61ffec7b8 avoid unexpected NAN value was coerced to string 2025-10-06 15:19:46 -06:00
Bryan Davis
253073f6fb Make a 2.2.5 release
Bugs Fixed:
- use Zend/zend_smart_string.h (remicollet)
2.2.5
2025-08-02 13:00:47 -06:00
Bryan Davis
2ab181d417 ci: Test against PHP 8.5 on ubuntu 2025-08-02 11:47:31 -06:00
Remi Collet
c229645123 use Zend/zend_smart_string.h 2025-08-02 10:46:47 -06:00
Bryan Davis
0e7b997468 Bump version to 2.2.4 2.2.4 2024-10-07 07:52:47 -06:00
Bryan Davis
6f2a6a023f Make a 2.2.4 release
Bugs Fixed:
- #85: PHP 8.4.0 beta4 test yaml_parse_file_002.phpt fails (andypost)
- emit.c: fix -Wsign-compare (bd808)
- #75: yaml_parse_file does not set &$ndoc as expected (tomterl)
- Fix [-Wincompatible-pointer-types] warning (remicollet)
2024-10-07 07:49:14 -06:00
Christoph M. Becker
0a2ff6d5c2 Update Windows CI (#89)
* Update setup-php-sdk to v0.10 and enable caching
* Update AppVeyor CI
  * use php-sdk 2.3.0 from php fork (the microsoft repo is archieved)
  * switch to downloads.php.net
  * update to latest releases of PHP 7.*
* Add jobs for PHP 8.4 (requires to use windows-2022 runners)
2024-09-30 18:09:53 +02:00
Andy Postnikov
7e6f786b88 Add PHP 8.4 to Ubuntu CI (#87) 2024-09-30 18:08:32 +02:00
Andy Postnikov
3001d95ac0 Fix yaml_parse_file_002.phpt on PHP 8.4 (#86)
Closes #85
2024-09-30 17:43:30 +02:00
Samuel
ecae192fdb CI: Add build for php8.3 & enable artifact collection (#82)
* Support for php8.3 on Windows using php/setup-php-sdk@v0.8
* Collect the build artifacts (.dll / .so) in the following format:
  * Linux: `yaml_${{ matrix.php-version }}_linux`
  * Windows: `yaml_${{ matrix.php-version }}_win32_${{ matrix.ts }}_${{ matrix.arch }}`
2024-01-31 13:21:25 -07:00
Bryan Davis
5611632f42 ci: Use -Werror
Make gcc report warnings as errors so that we don't miss them in code
review.
2023-03-28 15:32:31 -06:00
Bryan Davis
fe099012e1 emit.c: fix -Wsign-compare
Use size_t for strlen to avoid sign-compare warning.
2023-03-28 15:32:31 -06:00
Bryan Davis
09bc7fd194 yaml.c: Use PHP_FE_END macro 2023-03-28 15:32:31 -06:00
Bryan Davis
48606d066d ci: Update problem matchers
* Move gcc matcher to linux builds
* Add msvc matcher for windows builds
2023-03-28 11:10:03 -06:00
Bryan Davis
c69ef7e4da ci: Add matcher for GCC errors & warnings
Add the ammaraskar/gcc-problem-matcher@master helper to add gcc error and warning messages as code review comments.
2023-03-28 10:55:37 -06:00
Tom Regner
767a0cd50a Update yaml_parse_file_003.phpt 2023-03-12 09:24:13 -06:00
Tom Regner
ad19049105 Add test for #75 2023-03-12 09:24:13 -06:00
Tom Regner
980454c012 Create yaml_parse_file_003.yaml 2023-03-12 09:24:13 -06:00
Tom Regner
730a781f77 Fix #75: Handle zndocs/ndocs correctly
Just changing the handling, that is param handling of ndocs and dtor call for zndocs, in yaml_parse_file to that in yaml_parse.
That fixes #75 for me.
2023-03-12 09:24:13 -06:00
Remi Collet
e7bffc01c4 Fix [-Wincompatible-pointer-types] warning 2023-03-12 09:02:39 -06:00
Bryan Davis
4702575c41 .github: Add windows target for github workflows 2023-03-05 18:37:50 -07:00
Bryan Davis
755fb1a53e .github: Add PHP 8.3 to build matrix 2023-03-05 11:50:56 -07:00
Bryan Davis
bd9cea3ae4 .github: Bump actions/checkout to v3 2023-03-05 11:12:11 -07:00
Bryan Davis
cb7831731b Make a 2.2.3 release
Bugs Fixed:
- Fixed memory release on error handling (negram)
- Fix test for PHP 8.2 (andypost)
- #65: Fix #65 yaml_parse_url method not working (remicollet)
2.2.3
2023-03-05 11:01:46 -07:00
Mikhail Galanin
2085414da7 Fixed memory release on error handling 2023-03-05 10:16:05 -07:00
Bryan Davis
d9803e6a65 workflows: Add php 8.2 target
Test using php 8.2 nightly build
2022-06-10 15:58:37 -06:00
Andy Postnikov
534124b822 Fix test for PHP 8.2 2022-06-10 15:57:45 -06:00
Remi Collet
2e08e23655 add test for #65 2022-02-27 15:21:26 -07:00
Remi Collet
5fadb29443 Fix #65 yaml_parse_url method not working 2022-02-27 15:21:26 -07:00
Bryan Davis
6acc5c8156 Make 2.2.2 release
Bugs Fixed:
- PHP 8.1 compilation fixes (remicollet)
2.2.2
2021-10-24 16:46:37 -06:00
Bryan Davis
8e480ff2ba ci: Remove travis 2021-10-24 15:38:56 -06:00
Remi Collet
b35ef25b4b fix ZEND_ATOL usage 2021-10-24 15:35:11 -06:00
Remi Collet
31d331f711 relax test, hide deprecation message 2021-10-24 15:35:11 -06:00
Bryan Davis
c81b1112d3 ci: Add missing libyaml-dev 2021-10-24 15:30:04 -06:00
Bryan Davis
6042792b52 Use GitHub Actions for running tests 2021-10-24 15:11:51 -06:00
Bryan Davis
80339304ff Make 2.2.1 release
Bugs Fixed:
- #80324: Segfault in YAML with anonymous functions (cmb69)
- Fix memory leak in y_write_object_callback() (cmb69)
- Fix memory leak in handle_mapping() (cmb69)
2.2.1
2020-12-20 11:03:22 -07:00
Bryan Davis
827cfefb3b Merge branch 'pull-request/58' into php7
* pull-request/58:
  Fix memory leak in handle_mapping()
2020-12-20 11:00:26 -07:00
Bryan Davis
884d19fa4a Merge branch 'pull-request/57' into php7
* pull-request/57:
  Fix memory leak in y_write_object_callback()
2020-12-20 11:00:16 -07:00
Bryan Davis
a0519c2a45 Merge branch 'pull-request/56' into php7
* pull-request/56:
  Fix #80324: Segfault in YAML with anonymous functions
2020-12-20 11:00:01 -07:00
Christoph M. Becker
4c26bec4ef Fix memory leak in handle_mapping()
We must not forget to release the previously created array in case we
return early due to an undefined value.

This memory leak could be observed when running `yaml_parse_003.phpt`
and `yaml_parse_004.phpt` under a debug build or with a leak checker.
2020-12-16 19:09:31 +01:00
Christoph M. Becker
190a6708ab Fix memory leak in y_write_object_callback()
We need to release the `retval` of `call_user_function()`.

This memory leak could be observed when running `yaml_emit_008.phpt`
and `yaml_emit_009.phpt` with a debug build or under a leak checker.
2020-12-16 18:32:40 +01:00
Christoph M. Becker
d991df2ed5 Fix #80324: Segfault in YAML with anonymous functions
We must not assume that `key->val` is `sizeof(YAML_TIMESTAMP_TAG)` long
or longer.  Actually, `zend_string_equals_literal()` (available as of
PHP 7.0.0) does exactly what we want.
2020-12-16 17:02:47 +01:00