Skip to content

Commit

Permalink
Merge pull request #2243 from zephir-lang/development
Browse files Browse the repository at this point in the history
0.13.5
  • Loading branch information
AlexNDRmac authored May 9, 2021
2 parents 1218434 + 298dd90 commit 1232784
Show file tree
Hide file tree
Showing 58 changed files with 457 additions and 350 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,6 @@ jobs:
restore-keys: |
${{ runner.os }}-composer-
- name: Setup Composer Token
run: |
# To increase the GitHub rate limit we're use GitHub authentication
if [ ! -z '${{ secrets.COMPOSER_TOKEN }}' ]; then
composer config github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }}
fi
- name: Install Project Dependencies for PHP
run: composer install --prefer-dist --no-interaction --no-ansi --no-progress --no-suggest

Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Setup Environment Variables
run: echo "BOX_VERSION=3.10.0" >> $GITHUB_ENV
run: echo "BOX_VERSION=3.12.2" >> $GITHUB_ENV

- name: Checkout Code
uses: actions/checkout@v2
Expand All @@ -38,13 +38,6 @@ jobs:
restore-keys: |
${{ runner.os }}-composer-
- name: Setup GitHub Token
run: |
# To increase the GitHub rate limit we're use GitHub authentication
if [ ! -z '${{ secrets.COMPOSER_TOKEN }}' ]; then
composer config github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }}
fi
- name: Install Project Dependencies
run: composer install --prefer-dist --no-interaction --no-ansi --no-progress --no-suggest

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ box.json
phpcs.xml
phpmd.xml
phpunit.xml
.phpunit.result.cache

# Build artefact
zephir.phar
box.phar

# Ignore codecoverage stuff.
*.profraw
Expand All @@ -44,3 +46,4 @@ zephir.phar
# Use this as your own wish list or a temporary buffer
LATER
php-zephir-parser/

52 changes: 51 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org).
## [Unreleased]


## [0.13.5] - 2021-05-09
### Fixed
- Fixed `zephir build` command [#2240](https://github.com/zephir-lang/zephir/pull/2240)
- Fixed `zephir generate` when processing Closure [#2241](https://github.com/zephir-lang/zephir/pull/2241)
- Fixed stubs generation with variable-length argument [#2239](https://github.com/zephir-lang/zephir/issues/2239)


## [0.13.4] - 2021-04-26
### Fixed
- Fixed cast string from null [#2232](https://github.com/zephir-lang/zephir/issues/2232)
Expand All @@ -23,13 +30,15 @@ and this project adheres to [Semantic Versioning](http://semver.org).
### Added
- Added support syntax assign-bitwise operators [#1103](https://github.com/zephir-lang/zephir/issues/1103)


## [0.13.2] - 2021-04-10
### Fixed
- Fixed default value of nullable string parameter [#2180](https://github.com/zephir-lang/zephir/issues/2180)
- Fixed cast of `string` to `int` and `float` [#828](https://github.com/zephir-lang/zephir/issues/828)
- Fix `uint` cast to `unsigned int` in function params [#812](https://github.com/zephir-lang/zephir/issues/812)
- Fixed `null` strict check when variable is `string` type [#2186](https://github.com/zephir-lang/zephir/issues/2186)


## [0.13.1] - 2021-03-31
### Added
- Added jobs `-j, --jobs` option for `zephir compile` [#2174](https://github.com/zephir-lang/zephir/issues/2174)
Expand All @@ -38,6 +47,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed not used arginfo for interface static method without parameters (PHP `>= 8.0` only) [#2178](https://github.com/zephir-lang/zephir/pull/2178)
- Fixed `zephir install` command [#2175](https://github.com/zephir-lang/zephir/issues/2175)


## [0.13.0] - 2021-03-25
### Added
- Added support of PHP `8.0` [#2111](https://github.com/zephir-lang/zephir/pull/2111), [#2165](https://github.com/zephir-lang/zephir/pull/2165)
Expand All @@ -51,10 +61,12 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed parameters type detection in methods/functions (PHP `>= 8.0` only)
- Fixed not adding all build directories [#2144](https://github.com/zephir-lang/zephir/pull/2144)


## [0.12.21] - 2021-03-05
### Fixed
- Fixed path separators in generated `config.m4` file on Windows [#2153](https://github.com/zephir-lang/zephir/issues/2153)


## [0.12.20] - 2020-12-16
### Added
- Added supports void type return value for stubs
Expand All @@ -66,6 +78,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed stubs generation for case with array declaration with square brackets in params
- Fixed parameters positioning for `implode()` php function [#2120](https://github.com/zephir-lang/zephir/issues/2120)


## [0.12.19] - 2020-05-13
### Fixed
- Fixed duplicate definition with GCC 10
Expand All @@ -78,6 +91,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Improved stubs generation for methods which may return object or null
[#2092](https://github.com/zephir-lang/zephir/issues/2092)


## [0.12.18] - 2020-04-25
### Fixed
- In some cases for C "control characters" aren't properly escaped
Expand All @@ -88,6 +102,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
[phalcon/cphalcon#14810](https://github.com/phalcon/cphalcon/issues/14810),
[phalcon/cphalcon#14766](https://github.com/phalcon/cphalcon/issues/14766)


## [0.12.17] - 2020-02-14
### Fixed
- On some platforms special alpha characters aren't correctly escaped.
Expand All @@ -97,6 +112,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Changed the internal DI environment mode when compile PHAR
[#2049](https://github.com/zephir-lang/zephir/pull/2049)


## [0.12.16] - 2020-01-16
### Fixed
- Do not dump config file if config was changed.
Expand All @@ -122,21 +138,25 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Improved type hint for arrays when generating stubs
[#2026](https://github.com/zephir-lang/zephir/issues/2026)


## [0.12.15] - 2019-12-12
### Removed
- Removed `uint` typedef usage


## [0.12.14] - 2019-12-11
### Removed
- Removed `zend_uint` typedef usage


## [0.12.13] - 2019-12-08
### Fixed
- Fixed PHP 7.4 support for macOS [phalcon/cphalcon#14577](https://github.com/phalcon/cphalcon/issues/14577)

### Removed
- Removed `uint` and `ulong` typedefs usage


## [0.12.12] - 2019-11-25
### Added
- Option to set banner for stubs generator
Expand All @@ -157,6 +177,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed incorrect stubs generation for classes in the same namespace
[#2016](https://github.com/zephir-lang/zephir/issues/2016)


## [0.12.11] - 2019-11-02
### Fixed
- Fixed arithmetical operations with `zvals` which stores `double` numbers
Expand All @@ -171,6 +192,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed incorrect namespace on type hinted return when generating API docs
[#1229](https://github.com/zephir-lang/zephir/issues/1229)


## [0.12.10] - 2019-10-19
### Fixed
- Fixed incorrect behavior in `zephir_get_global` if `zval` reference count <= 1
Expand All @@ -189,6 +211,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Introduced support of multi line `@param` body for generated stubs
[#1968](https://github.com/zephir-lang/zephir/issues/1968)


## [0.12.9] - 2019-10-14
### Added
- Added a single hyphen version of `dumpversion` option (just `-dumpversion`)
Expand All @@ -214,13 +237,15 @@ and this project adheres to [Semantic Versioning](http://semver.org).
### Removed
- Removed no longer used `zephir_dtor` macro


## [0.12.8] - 2019-10-03
### Fixed
- Fixed `zephir_preg_match` to use `ZVAL_NULL` instead of `ZEPHIR_NULL`
[#1946](https://github.com/zephir-lang/zephir/issues/1946)
- Fixed `Extension\InternalClassesTest` test to be able run full test suite
without Phalcon [#1949](https://github.com/zephir-lang/zephir/issues/1949)


## [0.12.7] - 2019-10-03
### Fixed
- Fixed regression introduced in `0.12.5` for those users who doesn't use
Expand All @@ -229,11 +254,13 @@ and this project adheres to [Semantic Versioning](http://semver.org).
[#1940](https://github.com/zephir-lang/zephir/issues/1940)
- Fixed sitemap API generator [#1940](https://github.com/zephir-lang/zephir/issues/1940)


## [0.12.6] - 2019-10-03
### Fixed
- Fixed regression introduced in `0.12.5` for those users who doesn't use
bundled `ext/json/php_json.h` [#1940](https://github.com/zephir-lang/zephir/issues/1940)


## [0.12.5] - 2019-10-02
### Changed
- Update `zend_update_static_property` to be compatible with PHP >= 7.3
Expand All @@ -251,10 +278,12 @@ and this project adheres to [Semantic Versioning](http://semver.org).
[#1934](https://github.com/zephir-lang/zephir/issues/1934),
[phalcon/cphalcon#14426](https://github.com/phalcon/cphalcon/issues/14426)


## [0.12.4] - 2019-09-22
### Fixed
- Fixed install template


## [0.12.3] - 2019-09-22
### Fixed
- Fixed concatenation support of strings with `double` numbers
Expand All @@ -264,6 +293,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed updating array properties
[#1915](https://github.com/zephir-lang/zephir/issues/1915)


## [0.12.2] - 2019-08-05
### Added
- Introduced initial ability to generate `zend_module_deps`
Expand All @@ -274,6 +304,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
### Changed
- Write errors compiler to stderr if available


## [0.12.1] - 2019-07-30
### Added
- Added initial bash completion support (see `zephir-autocomplete` file)
Expand All @@ -297,6 +328,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed modifying array values in loops
[#1879](https://github.com/zephir-lang/zephir/issues/1879)


## [0.12.0] - 2019-06-20
### Added
- Added initial support of "use" keyword in closures
Expand Down Expand Up @@ -325,6 +357,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed exception on call undefined method
[#1863](https://github.com/zephir-lang/zephir/issues/1863)


## [0.11.12] - 2019-03-24
### Fixed
- Compilation error for instanceof [#1828](https://github.com/zephir-lang/zephir/issues/1828)
Expand All @@ -333,6 +366,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed reference counting while changing object's properties that are arrays
[#1833](https://github.com/zephir-lang/zephir/pull/1833)


## [0.11.11] - 2019-02-26
### Fixed
- Objects are not traversable with `foreach`
Expand All @@ -341,6 +375,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Recursion for array_push on PHP 7 [#1140](https://github.com/zephir-lang/zephir/issues/1140)
- Invalid array initialization [#1159](https://github.com/zephir-lang/zephir/issues/1159)


## [0.11.10] - 2019-02-23
### Changed
- Moved internal cache and logs to the user's home directory.
Expand All @@ -361,16 +396,19 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed incorrect behavior during work with ArrayAccess [#1061](https://github.com/zephir-lang/zephir/issues/1061),
[#1400](https://github.com/zephir-lang/zephir/issues/1400)


## [0.11.9] - 2019-01-15
- Fixed `zend_closure` declaration to reflect PHP 7.3 changes


## [0.11.8] - 2018-12-01
### Fixed
- Fixed compilation error with inheritance of prototype interfaces
[#1758](https://github.com/zephir-lang/zephir/issues/1758)
- Fixed compilation error when a new file is added or removed to the project
[#1776](https://github.com/zephir-lang/zephir/issues/1776)


## [0.11.7] - 2018-11-27
### Changed
- The cache directory, formerly known as `.temp`, used for temporary operations was moved to
Expand All @@ -386,13 +424,15 @@ and this project adheres to [Semantic Versioning](http://semver.org).
### Fixed
- Fixed incorrect behavior of `func_get_arg` and `func_get_args` functions for PHP 7.3


## [0.11.6] - 2018-11-19
### Fixed
- Fixed incorrect behavior of `require` statement for ZendEngine3
[#1621](https://github.com/zephir-lang/zephir/issues/1621)
[#1403](https://github.com/zephir-lang/zephir/issues/1403)
[#1428](https://github.com/zephir-lang/zephir/pull/1428)


## [0.11.4] - 2018-11-18
### Added
- Introduced a brand new CLI interface
Expand All @@ -409,6 +449,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed regression introduced in the 0.10.12 related to `require` file using protocols
[#1713](https://github.com/zephir-lang/zephir/issues/1713)


## [0.11.3] - 2018-11-13
### Changed
- Remove legacy installers and provide a common way to install Zephir
Expand All @@ -418,6 +459,7 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Install as a Git clone (using `git clone` and `composer install` inside cloned project)
- Install as a project's dependency (using `composer require`)


## [0.11.2] - 2018-11-11
### Added
- Introduced an ability to pack project into one `zephir.phar` file (for PHP 7.1 and later)
Expand All @@ -432,20 +474,24 @@ and this project adheres to [Semantic Versioning](http://semver.org).
### Fixed
- Correct return types hint check


## [0.11.1] - 2018-10-19
### Added
- Initial support of PHP 7.3 (ported from the 0.10.x branch)


## [0.11.0] - 2018-08-05
### Added
- Add type hints for scalar arguments and return values in ZendEngine 3
[1656](https://github.com/zephir-lang/zephir/issues/1656)


## [0.10.14] - 2018-11-20
### Fixed
- Fixed incorrect behavior of `func_get_arg` and `func_get_args` functions for PHP 7.3
(backported from the upstream)


## [0.10.13] - 2018-11-18
### Fixed
- Fixed regression introduced in the 0.10.12 related to `require` file using protocols
Expand All @@ -456,10 +502,12 @@ and this project adheres to [Semantic Versioning](http://semver.org).
[#1428](https://github.com/zephir-lang/zephir/pull/1428)
(backported from the upstream)


## [0.10.12] - 2018-10-19
### Added
- Initial support of PHP 7.3


## [0.10.11] - 2018-08-05
### Added
- Allow extension to be loaded prior to the tests
Expand All @@ -471,7 +519,9 @@ and this project adheres to [Semantic Versioning](http://semver.org).
- Fixed casting resource to int (only ZendEngine 3)
[#1524](https://github.com/zephir-lang/zephir/issues/1524)

[Unreleased]: https://github.com/zephir-lang/zephir/compare/0.13.4...HEAD

[Unreleased]: https://github.com/zephir-lang/zephir/compare/0.13.5...HEAD
[0.13.5]: https://github.com/zephir-lang/zephir/compare/0.13.4...0.13.5
[0.13.4]: https://github.com/zephir-lang/zephir/compare/0.13.3...0.13.4
[0.13.3]: https://github.com/zephir-lang/zephir/compare/0.13.2...0.13.3
[0.13.2]: https://github.com/zephir-lang/zephir/compare/0.13.1...0.13.2
Expand Down
3 changes: 3 additions & 0 deletions Library/ClassMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -2446,6 +2446,9 @@ private function detectClassNameEntry(string $className, CompilationContext $com

$isAlias = false;
$aliasManager = $this->classDefinition->getAliasManager();
if (is_null($aliasManager)) {
return null;
}
if ($aliasManager->isAlias($className)) {
$isAlias = true;
$className = $aliasManager->getAlias($className);
Expand Down
Loading

0 comments on commit 1232784

Please sign in to comment.