Skip to content

Commit

Permalink
Merge pull request #2389 from zephir-lang/development
Browse files Browse the repository at this point in the history
0.16.3
  • Loading branch information
Jeckerson authored Sep 17, 2022
2 parents 3e961ab + c3f9587 commit 5099f34
Show file tree
Hide file tree
Showing 13 changed files with 182 additions and 466 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org).

## [Unreleased]

## [0.16.3] - 2022-09-17
### Fixed
- Fixed segmentation fault on `mixed` return type and PHP 7.4 [#2387](https://github.com/zephir-lang/zephir/issues/2387)

## [0.16.2] - 2022-08-22
### Added
- Added support for `object` return type [#2374](https://github.com/zephir-lang/zephir/issues/2374)
Expand Down
4 changes: 1 addition & 3 deletions Library/ArgInfoDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,10 @@ private function richRenderStart(): void
$this->codePrinter->output('#else');
$this->codePrinter->output(
sprintf(
'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(%s, %d, %d, %s, %d)',
'ZEND_BEGIN_ARG_INFO_EX(%s, 0, %d, %d)',
$this->name,
(int) $this->returnByRef,
$this->functionLike->getNumberOfRequiredParameters(),
$this->getReturnType(),
(int) $this->functionLike->areReturnTypesNullCompatible()
)
);
$this->codePrinter->output('#endif');
Expand Down
2 changes: 1 addition & 1 deletion Library/Zephir.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

final class Zephir
{
public const VERSION = '0.16.2-$Id$';
public const VERSION = '0.16.3-$Id$';

public const LOGO = <<<'ASCII'
_____ __ _
Expand Down
571 changes: 142 additions & 429 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ext/php_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define PHP_STUB_VERSION "1.0.0"
#define PHP_STUB_EXTNAME "stub"
#define PHP_STUB_AUTHOR "Phalcon Team and contributors"
#define PHP_STUB_ZEPVERSION "0.16.2-$Id$"
#define PHP_STUB_ZEPVERSION "0.16.3-$Id$"
#define PHP_STUB_DESCRIPTION "Description <b>test</b> for<br/>Test Extension."

typedef struct _zephir_struct_db {
Expand Down
2 changes: 1 addition & 1 deletion ext/stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ static PHP_MINFO_FUNCTION(stub)
php_info_print_table_start();
php_info_print_table_header(2, "Test Extension support", "Value");
php_info_print_table_row(2, "Lifecycle hooks", "PHP provides several lifecycle events, which extensions can use to perform common initialization or shutdown tasks.");
php_info_print_table_row(2, "Static Analysis", "Test extensions&#039; compiler provides static analysis of the compiled code.");
php_info_print_table_row(2, "Static Analysis", "Test extensions' compiler provides static analysis of the compiled code.");
php_info_print_table_end();
php_info_print_table_start();
php_info_print_table_header(2, "Test variable", "Value");
Expand Down
2 changes: 1 addition & 1 deletion ext/stub/arrayaccessarr.zep.h

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

2 changes: 1 addition & 1 deletion ext/stub/arrayaccessobj.zep.h

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

4 changes: 2 additions & 2 deletions ext/stub/arrayiterator.zep.h

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

7 changes: 5 additions & 2 deletions ext/stub/mcall.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/stub/oo/oonativeimplements.zep.h

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

34 changes: 17 additions & 17 deletions ext/stub/types/mixedtype.zep.h

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

10 changes: 4 additions & 6 deletions zephir
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,13 @@ $consoleStdErrorHandler->setFormatter($formatter);
$consoleStdOutHandler = new StreamHandler('php://stdout', Logger::INFO, false);
$consoleStdOutHandler->setFormatter($formatter);

$handlers = [
$consoleStdErrorHandler,
$consoleStdOutHandler,
];

$disk = new HardDisk(getcwd().'/.zephir');

$parser = new Parser();
$logger = new Logger('zephir', $handlers);
$logger = new Logger('zephir', [
$consoleStdErrorHandler,
$consoleStdOutHandler,
]);
$compilerFactory = new Compiler\CompilerFileFactory($config, $disk, $logger);
$backend = (new BackendFactory($config, $rootPath.'/kernels', $rootPath.'/templates'))
->createBackend();
Expand Down

0 comments on commit 5099f34

Please sign in to comment.