Skip to content

Commit c2436fc

Browse files
authored
Merge pull request #126 from zephir-lang/#125-rename-ext-name
2 parents e529246 + e24be96 commit c2436fc

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

.ci/win-ci-tools.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ function EnableExtension {
299299

300300
Copy-Item -Path "${env:RELEASE_DLL_PATH}" -Destination "${env:PHPROOT}\ext\"
301301

302-
Enable-PhpExtension -Extension 'Zephir Parser' -Path "${env:PHPROOT}"
302+
Enable-PhpExtension -Extension zephir_parser -Path "${env:PHPROOT}"
303303
}
304304

305305
function PrepareReleasePackage {

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165
- name: Run Tests
166166
if: matrix.arch == 'x64'
167167
run: |
168-
& ${env:TEST_PHP_EXECUTABLE} --ri 'Zephir Parser'
168+
& ${env:TEST_PHP_EXECUTABLE} --ri zephir_parser
169169
& ${env:TEST_PHP_EXECUTABLE} run-tests.php
170170
171171
- name: Prepare Release Package
@@ -321,7 +321,7 @@ jobs:
321321

322322
- name: Run Tests
323323
run: |
324-
php -d extension=./modules/zephir_parser.so --ri 'Zephir Parser'
324+
php -d extension=./modules/zephir_parser.so --ri zephir_parser
325325
make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
326326
327327
- name: Print failures

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
8+
### Changed
9+
- Renamed extension name from `Zephir Parser` to `zephir_parser` [#125](https://github.com/phalcon/php-zephir-parser/issues/125)
810

911
## [1.4.0] - 2021-09-18
1012
### Added

tests/base/extension_info.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function contains($input, $expected) {
1111
: 'not contains';
1212
}
1313

14-
$version = phpversion('Zephir Parser');
14+
$version = phpversion('zephir_parser');
1515
$actual = trim(file_get_contents(__DIR__ . '/../../VERSION'));
1616

1717
$compare = $version === $actual;
@@ -23,7 +23,7 @@ $info = trim(ob_get_clean());
2323

2424
echo contains($info, 'Zephir Parser').PHP_EOL;
2525
echo contains($info, 'The Zephir Parser delivered as a C extension for the PHP language.').PHP_EOL;
26-
echo contains($info, 'Zephir Parser => enabled').PHP_EOL;
26+
echo contains($info, 'zephir_parser => enabled').PHP_EOL;
2727
echo contains($info, 'Author => Zephir Team and contributors').PHP_EOL;
2828
echo contains($info, 'Version =>').PHP_EOL;
2929
echo contains($info, 'Build Date =>').PHP_EOL;
@@ -32,7 +32,7 @@ echo contains($info, 'Build Date =>').PHP_EOL;
3232
bool(true)
3333
Zephir Parser
3434
The Zephir Parser delivered as a C extension for the PHP language.
35-
Zephir Parser => enabled
35+
zephir_parser => enabled
3636
Author => Zephir Team and contributors
3737
Version =>
3838
Build Date =>

tests/skipif.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php if (!extension_loaded("Zephir Parser")) print "skip The zephir_parser extension is not loaded"; ?>
1+
<?php if (!extension_loaded("zephir_parser")) print "skip The zephir_parser extension is not loaded"; ?>

zephir_parser.h

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

17-
#define PHP_ZEPHIR_PARSER_NAME "Zephir Parser"
17+
#define PHP_ZEPHIR_PARSER_NAME "zephir_parser"
1818
#define PHP_ZEPHIR_PARSER_VERSION "1.4.0"
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."

0 commit comments

Comments
 (0)