Skip to content

Commit 3e92337

Browse files
authored
Merge pull request #153 from zephir-lang/development
1.6.1
2 parents 5ecdbcd + 11e4afe commit 3e92337

File tree

8 files changed

+41
-146
lines changed

8 files changed

+41
-146
lines changed

.ci/install-re2c.sh

Lines changed: 0 additions & 111 deletions
This file was deleted.

.github/actions/build-mac/action.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ runs:
66
steps:
77
- name: Install RE2C Lexer Generator
88
shell: bash
9-
run: |
10-
brew install re2c lcov
9+
run: brew install re2c lcov
1110
env:
12-
HOMEBREW_NO_INSTALL_CLEANUP: 1
11+
HOMEBREW_NO_INSTALL_CLEANUP: "1"
1312

1413
- name: Build Zephir Parser for macOS
1514
shell: bash
@@ -39,4 +38,8 @@ runs:
3938
shell: bash
4039
run: |
4140
cp ./modules/zephir_parser.so "$(php -r 'echo ini_get("extension_dir");')/zephir_parser.so"
42-
echo "extension=zephir_parser.so" > /usr/local/etc/php/${{ matrix.php }}/conf.d/ext-zephir_parser.ini
41+
if [ "${{ matrix.ts }}" = "ts" ]; then
42+
echo "extension=zephir_parser.so" > /usr/local/etc/php/${{ matrix.php }}-zts/conf.d/ext-zephir_parser.ini
43+
else
44+
echo "extension=zephir_parser.so" > /usr/local/etc/php/${{ matrix.php }}/conf.d/ext-zephir_parser.ini
45+
fi

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
# Linux
4343
- { name: ubuntu-gcc, os: ubuntu-latest, compiler: gcc, ccov: 'ON' }
4444
# macOS
45-
- { name: macos-clang, os: macos-12, compiler: clang, ccov: 'ON' }
45+
- { name: macos-clang, os: macos-12, compiler: clang, ccov: 'OFF' }
4646
# Windows
4747
- { php: '7.0', ts: 'nts', arch: 'x64', name: 'windows2019-vc14', os: 'windows-2019', compiler: 'vc14', ccov: 'OFF' }
4848
- { php: '7.0', ts: 'ts', arch: 'x64', name: 'windows2019-vc14', os: 'windows-2019', compiler: 'vc14', ccov: 'OFF' }
@@ -60,11 +60,11 @@ jobs:
6060
- { php: '8.1', ts: 'ts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16', ccov: 'OFF' }
6161
- { php: '8.2', ts: 'nts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16', ccov: 'OFF' }
6262
- { php: '8.2', ts: 'ts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16', ccov: 'OFF' }
63-
#- { php: '8.3', ts: 'nts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16', ccov: 'OFF' }
64-
#- { php: '8.3', ts: 'ts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16', ccov: 'OFF' }
63+
- { php: '8.3', ts: 'nts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16', ccov: 'OFF' }
64+
- { php: '8.3', ts: 'ts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16', ccov: 'OFF' }
6565

6666
steps:
67-
- uses: actions/checkout@v3
67+
- uses: actions/checkout@v4
6868

6969
- name: Install PHP ${{ matrix.php }}
7070
uses: shivammathur/setup-php@v2
@@ -141,7 +141,7 @@ jobs:
141141
# zephir_parser-php-7.3-nts-ubuntu-gcc-x64.zip
142142
# zephir_parser-php-7.3-nts-windows2019-vc15-x64.zip
143143
- name: Upload Zephir Parser
144-
uses: actions/upload-artifact@v3
144+
uses: actions/upload-artifact@v4
145145
with:
146146
name: zephir_parser-php-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.name }}-${{ matrix.arch }}.zip
147147
path: |
@@ -165,15 +165,15 @@ jobs:
165165

166166
- name: Upload Code Coverage Report
167167
if: matrix.ccov == 'ON'
168-
uses: codecov/codecov-action@v3
168+
uses: codecov/codecov-action@v4
169169
with:
170170
token: ${{ secrets.CODECOV_TOKEN }}
171171
files: ./lcov.info
172172
flags: unittests,${{ runner.os }}
173173

174174
- name: Upload Info for Debug on Fail
175175
if: failure()
176-
uses: actions/upload-artifact@v3
176+
uses: actions/upload-artifact@v4
177177
with:
178178
retention-days: 2
179179
name: debug-zephir_parser-php-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.name }}-${{ matrix.arch }}
@@ -188,12 +188,12 @@ jobs:
188188
runs-on: ubuntu-latest
189189

190190
steps:
191-
- uses: actions/checkout@v3
191+
- uses: actions/checkout@v4
192192

193193
- name: Install PHP
194194
uses: shivammathur/setup-php@v2
195195
with:
196-
php-version: '8.2'
196+
php-version: '8.3'
197197
tools: pecl
198198

199199
- name: Install System Dependencies
@@ -244,7 +244,7 @@ jobs:
244244
pecl info zephir_parser-pecl.tgz
245245
246246
- name: Upload Artifact
247-
uses: actions/upload-artifact@v3
247+
uses: actions/upload-artifact@v4
248248
with:
249249
name: 'zephir_parser-pecl'
250250
path: zephir_parser-pecl.tgz
@@ -258,7 +258,7 @@ jobs:
258258

259259
steps:
260260
- name: Checkout Code
261-
uses: actions/checkout@v3
261+
uses: actions/checkout@v4
262262
with:
263263
fetch-depth: 1
264264

@@ -269,7 +269,7 @@ jobs:
269269
270270
- name: Download Zephir Parser build artifacts
271271
id: download
272-
uses: actions/download-artifact@v3
272+
uses: actions/download-artifact@v4
273273
with:
274274
path: ./build-artifacts
275275

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased] - xxxx-xx-xx
88

9+
## [1.6.1] - 2024-06-03
10+
### Fixed
11+
- Fix lcov coverage [#151](https://github.com/phalcon/php-zephir-parser/issues/151)
12+
913
## [1.6.0] - 2023-08-27
1014
### Added
1115
- Enabled support of PHP8.3 for PECL [#141](https://github.com/phalcon/php-zephir-parser/issues/148)
@@ -202,6 +206,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
202206
- Initial stable release
203207

204208
[Unreleased]: https://github.com/phalcon/php-zephir-parser/compare/v1.6.0...HEAD
209+
[1.6.1]: https://github.com/phalcon/php-zephir-parser/compare/v1.6.0...v1.6.1
205210
[1.6.0]: https://github.com/phalcon/php-zephir-parser/compare/v1.5.3...v1.6.0
206211
[1.5.3]: https://github.com/phalcon/php-zephir-parser/compare/v1.5.2...v1.5.3
207212
[1.5.2]: https://github.com/phalcon/php-zephir-parser/compare/v1.5.1...v1.5.2

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.0
1+
1.6.1

ide/zephir_parser.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22

3-
/*
4-
+--------------------------------------------------------------------------+
5-
| Zephir Parser |
6-
| Copyright (c) 2013-present Zephir Team (https://zephir-lang.com/) |
7-
| |
8-
| This source file is subject the MIT license, that is bundled with this |
9-
| package in the file LICENSE, and is available through the world-wide-web |
10-
| at the following url: http://zephir-lang.com/license.html |
11-
+--------------------------------------------------------------------------+
12-
*/
3+
/**
4+
* This file is part of the Zephir.
5+
*
6+
* (c) Phalcon Team <[email protected]>
7+
*
8+
* For the full copyright and license information, please view
9+
* the LICENSE file that was distributed with this source code.
10+
*/
1311

1412
/**
1513
* Parses a file and returning an intermediate representation.

package.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
<email>[email protected]</email>
1313
<active>yes</active>
1414
</lead>
15-
<date>2023-08-27</date>
16-
<time>22:00:00</time>
15+
<date>2024-06-03</date>
16+
<time>21:00:00</time>
1717
<version>
18-
<release>1.6.0</release>
19-
<api>1.6.0</api>
18+
<release>1.6.1</release>
19+
<api>1.6.1</api>
2020
</version>
2121
<stability>
2222
<release>stable</release>
2323
<api>stable</api>
2424
</stability>
2525
<license uri="https://github.com/zephir-lang/php-zephir-parser/blob/development/LICENSE">MIT</license>
2626
<notes>
27-
Sun, Aug 27, 2023 - Zephir Parser 1.6.0
27+
Mon, Jun 03, 2024 - Zephir Parser 1.6.1
2828

29-
= Added:
29+
= Fixed:
3030

31-
- Enabled support of PHP8.3 for PECL
31+
- Fixed lcov coverage
3232
</notes>
3333
<contents>
3434
<dir name="/">

zephir_parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extern zend_module_entry zephir_parser_module_entry;
1515
#define phpext_zephir_parser_ptr &zephir_parser_module_entry
1616

1717
#define PHP_ZEPHIR_PARSER_NAME "zephir_parser"
18-
#define PHP_ZEPHIR_PARSER_VERSION "1.6.0"
18+
#define PHP_ZEPHIR_PARSER_VERSION "1.6.1"
1919
#define PHP_ZEPHIR_PARSER_AUTHOR "Zephir Team and contributors"
2020
#define PHP_ZEPHIR_PARSER_DESCRIPTION "The Zephir Parser delivered as a C extension for the PHP language."
2121

0 commit comments

Comments
 (0)