Skip to content

Commit 5099f34

Browse files
authored
Merge pull request #2389 from zephir-lang/development
0.16.3
2 parents 3e961ab + c3f9587 commit 5099f34

13 files changed

+182
-466
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org).
66

77
## [Unreleased]
88

9+
## [0.16.3] - 2022-09-17
10+
### Fixed
11+
- Fixed segmentation fault on `mixed` return type and PHP 7.4 [#2387](https://github.com/zephir-lang/zephir/issues/2387)
12+
913
## [0.16.2] - 2022-08-22
1014
### Added
1115
- Added support for `object` return type [#2374](https://github.com/zephir-lang/zephir/issues/2374)

Diff for: Library/ArgInfoDefinition.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,10 @@ private function richRenderStart(): void
220220
$this->codePrinter->output('#else');
221221
$this->codePrinter->output(
222222
sprintf(
223-
'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(%s, %d, %d, %s, %d)',
223+
'ZEND_BEGIN_ARG_INFO_EX(%s, 0, %d, %d)',
224224
$this->name,
225225
(int) $this->returnByRef,
226226
$this->functionLike->getNumberOfRequiredParameters(),
227-
$this->getReturnType(),
228-
(int) $this->functionLike->areReturnTypesNullCompatible()
229227
)
230228
);
231229
$this->codePrinter->output('#endif');

Diff for: Library/Zephir.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
final class Zephir
1717
{
18-
public const VERSION = '0.16.2-$Id$';
18+
public const VERSION = '0.16.3-$Id$';
1919

2020
public const LOGO = <<<'ASCII'
2121
_____ __ _

Diff for: composer.lock

+142-429
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ext/php_stub.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define PHP_STUB_VERSION "1.0.0"
1515
#define PHP_STUB_EXTNAME "stub"
1616
#define PHP_STUB_AUTHOR "Phalcon Team and contributors"
17-
#define PHP_STUB_ZEPVERSION "0.16.2-$Id$"
17+
#define PHP_STUB_ZEPVERSION "0.16.3-$Id$"
1818
#define PHP_STUB_DESCRIPTION "Description <b>test</b> for<br/>Test Extension."
1919

2020
typedef struct _zephir_struct_db {

Diff for: ext/stub.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ static PHP_MINFO_FUNCTION(stub)
586586
php_info_print_table_start();
587587
php_info_print_table_header(2, "Test Extension support", "Value");
588588
php_info_print_table_row(2, "Lifecycle hooks", "PHP provides several lifecycle events, which extensions can use to perform common initialization or shutdown tasks.");
589-
php_info_print_table_row(2, "Static Analysis", "Test extensions&#039; compiler provides static analysis of the compiled code.");
589+
php_info_print_table_row(2, "Static Analysis", "Test extensions' compiler provides static analysis of the compiled code.");
590590
php_info_print_table_end();
591591
php_info_print_table_start();
592592
php_info_print_table_header(2, "Test variable", "Value");

Diff for: ext/stub/arrayaccessarr.zep.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ext/stub/arrayaccessobj.zep.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ext/stub/arrayiterator.zep.h

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ext/stub/mcall.zep.c

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ext/stub/oo/oonativeimplements.zep.h

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ext/stub/types/mixedtype.zep.h

+17-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: zephir

+4-6
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,13 @@ $consoleStdErrorHandler->setFormatter($formatter);
9999
$consoleStdOutHandler = new StreamHandler('php://stdout', Logger::INFO, false);
100100
$consoleStdOutHandler->setFormatter($formatter);
101101

102-
$handlers = [
103-
$consoleStdErrorHandler,
104-
$consoleStdOutHandler,
105-
];
106-
107102
$disk = new HardDisk(getcwd().'/.zephir');
108103

109104
$parser = new Parser();
110-
$logger = new Logger('zephir', $handlers);
105+
$logger = new Logger('zephir', [
106+
$consoleStdErrorHandler,
107+
$consoleStdOutHandler,
108+
]);
111109
$compilerFactory = new Compiler\CompilerFileFactory($config, $disk, $logger);
112110
$backend = (new BackendFactory($config, $rootPath.'/kernels', $rootPath.'/templates'))
113111
->createBackend();

0 commit comments

Comments
 (0)