Skip to content

Commit

Permalink
Merge pull request #1983 from phalcon/cleanup
Browse files Browse the repository at this point in the history
Added more tests
  • Loading branch information
sergeyklay authored Oct 19, 2019
2 parents 1d7233b + 9e07ccf commit 6e9c252
Show file tree
Hide file tree
Showing 22 changed files with 167 additions and 93 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Fixed
- Fixed incorrect behaviour in `zephir_get_global` if `zval` reference count <= 1
[#1961](https://github.com/phalcon/zephir/issues/1961)

### Removed
- Removed `--vernum` option from the help for regular commands
- Removed `void` from the return type hint in the generated stubs
Expand Down
3 changes: 0 additions & 3 deletions ext/kernel/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ int zephir_get_global(zval *arr, const char *global, unsigned int global_length)
zend_hash_update(&EG(symbol_table), str, arr);
}

// See: https://github.com/phalcon/zephir/pull/1965#issuecomment-541299003
// ZVAL_COPY_VALUE(arr, gv);

zend_string_release(str);
return SUCCESS;
}
Expand Down
14 changes: 10 additions & 4 deletions ext/test/globals/server.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 15 additions & 17 deletions ext/test/oo/oodestruct.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext/test/optimizers/strreplace.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ext/test/properties/propertyarray.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/test/quantum.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/test/range.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/test/regexdna.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext/test/requires.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/test/requires/external3.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext/test/resourcetest.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ext/test/router.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ext/test/scall.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/test/scope.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6e9c252

Please sign in to comment.