Skip to content

Commit

Permalink
Fixed compilation error when a new file is added or removed to the pr…
Browse files Browse the repository at this point in the history
…oject

Closes #1776
  • Loading branch information
sergeyklay committed Dec 11, 2018
1 parent f1392d1 commit 9a7286f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- Fixed compilation error with inheritance of prototype interfaces
[#1758](https://github.com/phalcon/zephir/issues/1758)
- Fixed compilation error when a new file is added or removed to the project
[#1776](https://github.com/phalcon/zephir/issues/1776)

## [0.11.7] - 2018-11-27
### Changed
Expand Down
3 changes: 2 additions & 1 deletion Library/Compiler.php
Expand Up @@ -790,12 +790,13 @@ public function generate($fromGenerate = false)
* When a new file is added or removed we need to run configure again
*/
if (!$fromGenerate) {
if (!$this->filesystem->exists('compiled-files-sum')) {
if (false === $this->filesystem->exists('compiled-files-sum')) {
$needConfigure = true;
$this->filesystem->write('compiled-files-sum', $hash);
} else {
if ($this->filesystem->read('compiled-files-sum') != $hash) {
$needConfigure = true;
$this->filesystem->delete('compiled-files-sum');
$this->filesystem->write('compiled-files-sum', $hash);
}
}
Expand Down
2 changes: 1 addition & 1 deletion ext/php_test.h
Expand Up @@ -14,7 +14,7 @@
#define PHP_TEST_VERSION "1.0.0"
#define PHP_TEST_EXTNAME "test"
#define PHP_TEST_AUTHOR "Zephir Team"
#define PHP_TEST_ZEPVERSION "0.11.7-$Id$"
#define PHP_TEST_ZEPVERSION "0.11.9-$Id$"
#define PHP_TEST_DESCRIPTION "Description test for<br/>Test Extension"

typedef struct _zephir_struct_test {
Expand Down

0 comments on commit 9a7286f

Please sign in to comment.