diff --git a/.ci/appveyor.psm1 b/.ci/appveyor.psm1
index 3a344994fc..4315135ef6 100644
--- a/.ci/appveyor.psm1
+++ b/.ci/appveyor.psm1
@@ -45,7 +45,7 @@ Function SetupPhpVersionString {
$DestinationPath = "${Env:Temp}\php-sha1sum.txt"
If (-not [System.IO.File]::Exists($DestinationPath)) {
- Write-Host "Downloading PHP SHA sums file: ${RemoteUrl} ..."
+ Write-Output "Downloading PHP SHA sums file: ${RemoteUrl} ..."
DownloadFile $RemoteUrl $DestinationPath
}
@@ -99,14 +99,14 @@ Function EnsureChocolateyIsInstalled {
}
Function InstallSdk {
- Write-Host "Install PHP SDK binary tools: ${Env:PHP_SDK_VERSION}" -foregroundcolor Cyan
+ Write-Output "Install PHP SDK binary tools: ${Env:PHP_SDK_VERSION}" -foregroundcolor Cyan
$RemoteUrl = "https://github.com/OSTC/php-sdk-binary-tools/archive/php-sdk-${Env:PHP_SDK_VERSION}.zip"
$DestinationPath = "C:\Downloads\php-sdk-${Env:PHP_SDK_VERSION}.zip"
If (-not (Test-Path $Env:PHP_SDK_PATH)) {
If (-not [System.IO.File]::Exists($DestinationPath)) {
- Write-Host "Downloading PHP SDK binary tools: $RemoteUrl ..."
+ Write-Output "Downloading PHP SDK binary tools: $RemoteUrl ..."
DownloadFile $RemoteUrl $DestinationPath
}
@@ -121,14 +121,14 @@ Function InstallSdk {
}
Function InstallPhp {
- Write-Host "Install PHP: ${Env:PHP_VERSION}" -foregroundcolor Cyan
+ Write-Output "Install PHP: ${Env:PHP_VERSION}" -foregroundcolor Cyan
$RemoteUrl = "http://windows.php.net/downloads/releases/php-${Env:PHP_VERSION}-${Env:BUILD_TYPE}-vc${Env:VC_VERSION}-${Env:PLATFORM}.zip"
$DestinationPath = "C:\Downloads\php-${Env:PHP_VERSION}-${Env:BUILD_TYPE}-VC${Env:VC_VERSION}-${Env:PLATFORM}.zip"
If (-not (Test-Path $Env:PHP_PATH)) {
If (-not [System.IO.File]::Exists($DestinationPath)) {
- Write-Host "Downloading PHP source code: $RemoteUrl ..."
+ Write-Output "Downloading PHP source code: $RemoteUrl ..."
DownloadFile $RemoteUrl $DestinationPath
}
@@ -141,14 +141,14 @@ Function InstallPhp {
}
Function InstallPhpDevPack {
- Write-Host "Install PHP Dev pack: ${Env:PHP_VERSION}" -foregroundcolor Cyan
+ Write-Output "Install PHP Dev pack: ${Env:PHP_VERSION}" -foregroundcolor Cyan
$RemoteUrl = "http://windows.php.net/downloads/releases/php-devel-pack-${Env:PHP_VERSION}-${Env:BUILD_TYPE}-vc${Env:VC_VERSION}-${Env:PLATFORM}.zip"
$DestinationPath = "C:\Downloads\php-devel-pack-${Env:PHP_VERSION}-${Env:BUILD_TYPE}-VC${Env:VC_VERSION}-${Env:PLATFORM}.zip"
If (-not (Test-Path $Env:PHP_DEVPACK)) {
If (-not [System.IO.File]::Exists($DestinationPath)) {
- Write-Host "Downloading PHP Dev pack: ${RemoteUrl} ..."
+ Write-Output "Downloading PHP Dev pack: ${RemoteUrl} ..."
DownloadFile $RemoteUrl $DestinationPath
}
@@ -177,7 +177,7 @@ Function InstallParser {
If (-not (Test-Path "${Env:PHP_PATH}\ext\php_zephir_parser.dll")) {
If (-not [System.IO.File]::Exists($DestinationPath)) {
- Write-Host "Downloading Zephir Parser: ${RemoteUrl} ..."
+ Write-Output "Downloading Zephir Parser: ${RemoteUrl} ..."
DownloadFile $RemoteUrl $DestinationPath
}
@@ -200,7 +200,7 @@ Function InstallPsrExtension {
If (-not (Test-Path "${Env:PHP_PATH}\ext\php_psr.dll")) {
If (-not [System.IO.File]::Exists($DestinationPath)) {
- Write-Host "Downloading PHP PSR: ${RemoteUrl} ..."
+ Write-Output "Downloading PHP PSR: ${RemoteUrl} ..."
DownloadFile $RemoteUrl $DestinationPath
}
@@ -338,13 +338,13 @@ Function EnableExtension {
Function PrintBuildDetails {
$BuildDate = Get-Date -Format g
- Write-Host "Build date: ${BuildDate}"
- Write-Host "Build version: ${Env:APPVEYOR_BUILD_VERSION}"
- Write-Host "Build type: ${Env:BUILD_TYPE}"
- Write-Host "Build worker image: ${Env:APPVEYOR_BUILD_WORKER_IMAGE}"
- Write-Host "Git commit: ${Env:APPVEYOR_REPO_COMMIT}"
- Write-Host "Platform: ${Env:PLATFORM}"
- Write-Host "Target PHP version: ${Env:PHP_MINOR}"
+ Write-Output "Build date: ${BuildDate}"
+ Write-Output "Build version: ${Env:APPVEYOR_BUILD_VERSION}"
+ Write-Output "Build type: ${Env:BUILD_TYPE}"
+ Write-Output "Build worker image: ${Env:APPVEYOR_BUILD_WORKER_IMAGE}"
+ Write-Output "Git commit: ${Env:APPVEYOR_REPO_COMMIT}"
+ Write-Output "Platform: ${Env:PLATFORM}"
+ Write-Output "Target PHP version: ${Env:PHP_MINOR}"
}
Function PrintLogs {
@@ -362,7 +362,7 @@ Function PrintLogs {
}
Function PrintVars {
- Write-Host ($Env:Path).Replace(';', "`n")
+ Write-Output ($Env:Path).Replace(';', "`n")
Get-ChildItem Env:
}
@@ -398,13 +398,13 @@ Function PrintPhpInfo {
$PhpExe = "${Env:PHP_PATH}\php.exe"
If (Test-Path -Path "${PhpExe}") {
- Write-Host ""
+ Write-Output ""
& "${PhpExe}" -v
- Write-Host ""
+ Write-Output ""
& "${PhpExe}" -m
- Write-Host ""
+ Write-Output ""
& "${PhpExe}" -i
} ElseIf (Test-Path -Path "${IniFile}") {
Get-Content -Path "${IniFile}"
@@ -428,7 +428,7 @@ Function Expand-Item7zip {
$Result = (& 7z x "$Archive" "-o$Destination" -aoa -bd -y -r)
If ($LastExitCode -ne 0) {
- Write-Host "An error occurred while unzipping [$Archive] to [$Destination]. Error code was: ${LastExitCode}"
+ Write-Output "An error occurred while unzipping [$Archive] to [$Destination]. Error code was: ${LastExitCode}"
Exit $LastExitCode
}
}
@@ -453,7 +453,7 @@ Function DownloadFile {
} Catch {
If ($RetryCount -ge $RetryMax) {
$ErrorMessage = $_.Exception.Message
- Write-Host "Error downloadingig ${RemoteUrl}: $ErrorMessage"
+ Write-Output "Error downloadingig ${RemoteUrl}: $ErrorMessage"
$Completed = $true
} Else {
$RetryCount++
diff --git a/.travis.yml b/.travis.yml
index 2d17f2987e..bbd0fb6dfb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,7 +25,7 @@ env:
- BUILD_TYPE=regular
- BOX_VERSION=3.8.1
- REPORT_COVERAGE=1
- - ZEPHIR_PARSER_VERSION="v1.3.2"
+ - ZEPHIR_PARSER_VERSION="v1.3.3"
- PATH="${HOME}/bin:${PATH}"
- TRAVIS_COMMIT_LOG="$(git log --format=fuller -5)"
- MAKEFLAGS="-j $(getconf _NPROCESSORS_ONLN)"
@@ -33,8 +33,6 @@ env:
matrix:
fast_finish: true
- allow_failures:
- - php: '7.4snapshot'
include:
- os: linux
@@ -80,14 +78,13 @@ matrix:
- os: linux
compiler: gcc
- php: '7.4snapshot'
+ php: '7.4'
addons:
apt:
packages:
- gdb
env:
- # TODO: Recheck
- - BUILD_PHAR=0
+ - SYMFONY_PHPUNIT_VERSION=7.4
- os: linux
cache: false
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dcd824f2c1..b593c739f7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,11 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
+## [0.12.14] - 2019-12-11
+### Removed
+- Removed `zend_uint` typedef usage
+
## [0.12.13] - 2019-12-08
### Fixed
-- Removed `uint` and `ulong` typedefs support
- 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
@@ -344,7 +350,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fixed casting resource to int (only ZendEngine 3)
[#1524](https://github.com/phalcon/zephir/issues/1524)
-[Unreleased]: https://github.com/phalcon/zephir/compare/0.12.13...HEAD
+[Unreleased]: https://github.com/phalcon/zephir/compare/0.12.14...HEAD
+[0.12.14]: https://github.com/phalcon/zephir/compare/0.12.14...0.12.14
[0.12.13]: https://github.com/phalcon/zephir/compare/0.12.12...0.12.13
[0.12.12]: https://github.com/phalcon/zephir/compare/0.12.11...0.12.12
[0.12.11]: https://github.com/phalcon/zephir/compare/0.12.10...0.12.11
diff --git a/Library/Backends/ZendEngine3/StringsManager.php b/Library/Backends/ZendEngine3/StringsManager.php
index 7cd970f5b7..4d077731a7 100644
--- a/Library/Backends/ZendEngine3/StringsManager.php
+++ b/Library/Backends/ZendEngine3/StringsManager.php
@@ -87,7 +87,7 @@ public function genConcatCode()
$t = substr($key, $i, 1);
$sparams[] = 'op'.$n;
if ('s' == $t) {
- $params[] = 'const char *op'.$n.', zend_uint op'.$n.'_len';
+ $params[] = 'const char *op'.$n.', uint32_t op'.$n.'_len';
$lparams[] = 'op'.$n.', sizeof(op'.$n.')-1';
$lengths[] = 'op'.$n.'_len';
$svars[] = $n;
diff --git a/Library/Config.php b/Library/Config.php
index 825d2f7cbc..64112b05ea 100644
--- a/Library/Config.php
+++ b/Library/Config.php
@@ -120,7 +120,7 @@ public function __construct()
*/
public function __toString()
{
- return json_encode($this, JSON_PRETTY_PRINT);
+ return (string) json_encode($this, JSON_PRETTY_PRINT);
}
/**
@@ -130,7 +130,7 @@ public function __toString()
*
* @return Config
*/
- public static function fromServer()
+ public static function fromServer(): self
{
$config = new self();
diff --git a/Library/Zephir.php b/Library/Zephir.php
index 403ab6fd0b..fecdbad356 100644
--- a/Library/Zephir.php
+++ b/Library/Zephir.php
@@ -16,7 +16,7 @@
*/
final class Zephir
{
- const VERSION = '0.12.13-$Id$';
+ const VERSION = '0.12.14-$Id$';
const LOGO = <<<'ASCII'
_____ __ _
diff --git a/appveyor.yml b/appveyor.yml
index e1786c55e3..9fd71a712e 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,9 +1,9 @@
-version: 0.12.13-{build}
+version: 0.12.14-{build}
environment:
matrix:
- - PHP_MINOR: 7.2
- VC_VERSION: 15
+ - PHP_MINOR: '7.2'
+ VC_VERSION: '15'
BUILD_TYPE: nts-Win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
@@ -18,8 +18,8 @@ environment:
NO_INTERACTION: 1
REPORT_EXIT_STATUS: 1
COMPOSER_NO_INTERACTION: 1
- PARSER_VERSION: 1.3.2
- PARSER_RELEASE: 505
+ PARSER_VERSION: 1.3.3
+ PARSER_RELEASE: 514
PSR_VERSION: 0.6.1
matrix:
diff --git a/ext/php_test.h b/ext/php_test.h
index f64c581c52..3c2eb8b5fc 100644
--- a/ext/php_test.h
+++ b/ext/php_test.h
@@ -14,7 +14,7 @@
#define PHP_TEST_VERSION "1.0.0"
#define PHP_TEST_EXTNAME "test"
#define PHP_TEST_AUTHOR "Zephir Team and contributors"
-#define PHP_TEST_ZEPVERSION "0.12.13-$Id$"
+#define PHP_TEST_ZEPVERSION "0.12.14-$Id$"
#define PHP_TEST_DESCRIPTION "Description test for
Test Extension."
typedef struct _zephir_struct_db {
diff --git a/kernels/ZendEngine3/array.c b/kernels/ZendEngine3/array.c
index 51b0e62df8..151a9e634d 100644
--- a/kernels/ZendEngine3/array.c
+++ b/kernels/ZendEngine3/array.c
@@ -28,7 +28,7 @@
#include "kernel/object.h"
#include "kernel/fcall.h"
-void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, zend_uint size, int initialize)
+void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint32_t size, int initialize)
{
uint i;
zval null_value;
@@ -153,7 +153,7 @@ int zephir_array_isset_fetch(zval *fetched, const zval *arr, zval *index, int re
return 0;
}
-int zephir_array_isset_string_fetch(zval *fetched, const zval *arr, char *index, zend_uint index_length, int readonly)
+int zephir_array_isset_string_fetch(zval *fetched, const zval *arr, char *index, uint32_t index_length, int readonly)
{
zval *zv;
if (UNEXPECTED(Z_TYPE_P(arr) == IS_OBJECT && zephir_instance_of_ev((zval *)arr, (const zend_class_entry *)zend_ce_arrayaccess))) {
@@ -280,7 +280,7 @@ int ZEPHIR_FASTCALL zephir_array_isset(const zval *arr, zval *index)
}
}
-int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char *index, zend_uint index_length)
+int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char *index, uint32_t index_length)
{
if (UNEXPECTED(Z_TYPE_P(arr) == IS_OBJECT && zephir_instance_of_ev((zval *)arr, (const zend_class_entry *)zend_ce_arrayaccess))) {
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -369,7 +369,7 @@ int ZEPHIR_FASTCALL zephir_array_unset(zval *arr, zval *index, int flags)
}
}
-int ZEPHIR_FASTCALL zephir_array_unset_string(zval *arr, const char *index, zend_uint index_length, int flags)
+int ZEPHIR_FASTCALL zephir_array_unset_string(zval *arr, const char *index, uint32_t index_length, int flags)
{
if (UNEXPECTED(Z_TYPE_P(arr) == IS_OBJECT && zephir_instance_of_ev(arr, (const zend_class_entry *)zend_ce_arrayaccess))) {
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -515,7 +515,7 @@ int zephir_array_fetch(zval *return_value, zval *arr, zval *index, int flags ZEP
return FAILURE;
}
-int zephir_array_fetch_string(zval *return_value, zval *arr, const char *index, zend_uint index_length, int flags ZEPHIR_DEBUG_PARAMS)
+int zephir_array_fetch_string(zval *return_value, zval *arr, const char *index, uint32_t index_length, int flags ZEPHIR_DEBUG_PARAMS)
{
zval *zv;
@@ -698,7 +698,7 @@ int zephir_array_update_zval(zval *arr, zval *index, zval *value, int flags)
return ret != NULL ? FAILURE : SUCCESS;
}
-int zephir_array_update_string(zval *arr, const char *index, zend_uint index_length, zval *value, int flags)
+int zephir_array_update_string(zval *arr, const char *index, uint32_t index_length, zval *value, int flags)
{
if (UNEXPECTED(Z_TYPE_P(arr) == IS_OBJECT && zephir_instance_of_ev(arr, (const zend_class_entry *)zend_ce_arrayaccess))) {
diff --git a/kernels/ZendEngine3/array.h b/kernels/ZendEngine3/array.h
index 756549c1e8..2381f8ea56 100644
--- a/kernels/ZendEngine3/array.h
+++ b/kernels/ZendEngine3/array.h
@@ -18,7 +18,7 @@
#include "kernel/globals.h"
#include "kernel/main.h"
-void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, zend_uint size, int initialize);
+void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint32_t size, int initialize);
/**
* Simple convenience function which ensures that you are dealing with an array and you can
@@ -28,22 +28,22 @@ void ZEPHIR_FASTCALL zephir_ensure_array(zval *probable_array);
/** Combined isset/fetch */
int zephir_array_isset_fetch(zval *fetched, const zval *arr, zval *index, int readonly);
-int zephir_array_isset_string_fetch(zval *fetched, const zval *arr, char *index, zend_uint index_length, int readonly);
+int zephir_array_isset_string_fetch(zval *fetched, const zval *arr, char *index, uint32_t index_length, int readonly);
int zephir_array_isset_long_fetch(zval *fetched, const zval *arr, unsigned long index, int readonly);
/** Check for index existence */
int ZEPHIR_FASTCALL zephir_array_isset(const zval *arr, zval *index);
int ZEPHIR_FASTCALL zephir_array_isset_long(const zval *arr, unsigned long index);
-int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char *index, zend_uint index_length);
+int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char *index, uint32_t index_length);
/** Unset existing indexes */
int ZEPHIR_FASTCALL zephir_array_unset(zval *arr, zval *index, int flags);
int ZEPHIR_FASTCALL zephir_array_unset_long(zval *arr, unsigned long index, int flags);
-int ZEPHIR_FASTCALL zephir_array_unset_string(zval *arr, const char *index, zend_uint index_length, int flags);
+int ZEPHIR_FASTCALL zephir_array_unset_string(zval *arr, const char *index, uint32_t index_length, int flags);
/** Fetch items from arrays */
int zephir_array_fetch(zval *return_value, zval *arr, zval *index, int flags ZEPHIR_DEBUG_PARAMS);
-int zephir_array_fetch_string(zval *return_value, zval *arr, const char *index, zend_uint index_length, int flags ZEPHIR_DEBUG_PARAMS);
+int zephir_array_fetch_string(zval *return_value, zval *arr, const char *index, uint32_t index_length, int flags ZEPHIR_DEBUG_PARAMS);
int zephir_array_fetch_long(zval *return_value, zval *arr, unsigned long index, int flags ZEPHIR_DEBUG_PARAMS);
/** Append elements to arrays */
@@ -52,7 +52,7 @@ void zephir_merge_append(zval *left, zval *values);
/** Modify array */
int zephir_array_update_zval(zval *arr, zval *index, zval *value, int flags);
-int zephir_array_update_string(zval *arr, const char *index, zend_uint index_length, zval *value, int flags);
+int zephir_array_update_string(zval *arr, const char *index, uint32_t index_length, zval *value, int flags);
int zephir_array_update_long(zval *arr, unsigned long index, zval *value, int flags ZEPHIR_DEBUG_PARAMS);
void zephir_array_keys(zval *return_value, zval *arr);
diff --git a/kernels/ZendEngine3/exception.c b/kernels/ZendEngine3/exception.c
index 13b77e6142..cd943fe221 100644
--- a/kernels/ZendEngine3/exception.c
+++ b/kernels/ZendEngine3/exception.c
@@ -37,7 +37,7 @@
/**
* Throws a zval object as exception
*/
-void zephir_throw_exception_debug(zval *object, const char *file, zend_uint line)
+void zephir_throw_exception_debug(zval *object, const char *file, uint32_t line)
{
zend_class_entry *default_exception_ce;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -77,7 +77,7 @@ void zephir_throw_exception_debug(zval *object, const char *file, zend_uint line
/**
* Throws an exception with a single string parameter + debug info
*/
-void zephir_throw_exception_string_debug(zend_class_entry *ce, const char *message, zend_uint message_len, const char *file, zend_uint line)
+void zephir_throw_exception_string_debug(zend_class_entry *ce, const char *message, uint32_t message_len, const char *file, uint32_t line)
{
zval object, msg;
int ZEPHIR_LAST_CALL_STATUS = 0;
@@ -105,7 +105,7 @@ void zephir_throw_exception_string_debug(zend_class_entry *ce, const char *messa
/**
* Throws an exception with a single string parameter
*/
-void zephir_throw_exception_string(zend_class_entry *ce, const char *message, zend_uint message_len)
+void zephir_throw_exception_string(zend_class_entry *ce, const char *message, uint32_t message_len)
{
zval object, msg;
int ZEPHIR_LAST_CALL_STATUS = 0;
diff --git a/kernels/ZendEngine3/exception.h b/kernels/ZendEngine3/exception.h
index 13759cf810..a0f8fa7a4a 100644
--- a/kernels/ZendEngine3/exception.h
+++ b/kernels/ZendEngine3/exception.h
@@ -56,9 +56,9 @@
#define ZEPHIR_THROW_EXCEPTION_DEBUG_ZVALW(class_entry, message, file, line) zephir_throw_exception_zval_debug(class_entry, message, file, line)
/** Throw Exceptions */
-void zephir_throw_exception_string(zend_class_entry *ce, const char *message, zend_uint message_len);
-void zephir_throw_exception_debug(zval *object, const char *file, zend_uint line);
+void zephir_throw_exception_string(zend_class_entry *ce, const char *message, uint32_t message_len);
+void zephir_throw_exception_debug(zval *object, const char *file, uint32_t line);
void zephir_throw_exception_format(zend_class_entry *ce, const char *format, ...);
-void zephir_throw_exception_string_debug(zend_class_entry *ce, const char *message, zend_uint message_len, const char *file, zend_uint line);
+void zephir_throw_exception_string_debug(zend_class_entry *ce, const char *message, uint32_t message_len, const char *file, uint32_t line);
#endif /* ZEPHIR_KERNEL_EXCEPTIONS_H */
diff --git a/kernels/ZendEngine3/fcall.c b/kernels/ZendEngine3/fcall.c
index 545f5529d0..7da42dd194 100644
--- a/kernels/ZendEngine3/fcall.c
+++ b/kernels/ZendEngine3/fcall.c
@@ -283,7 +283,7 @@ static void populate_fcic(zend_fcall_info_cache* fcic, zephir_call_type type, ze
* Calls a function/method in the PHP userland
*/
int zephir_call_user_function(zval *object_pp, zend_class_entry *obj_ce, zephir_call_type type,
- zval *function_name, zval *retval_ptr, zephir_fcall_cache_entry **cache_entry, int cache_slot, zend_uint param_count,
+ zval *function_name, zval *retval_ptr, zephir_fcall_cache_entry **cache_entry, int cache_slot, uint32_t param_count,
zval *params[])
{
zval local_retval_ptr;
diff --git a/kernels/ZendEngine3/main.h b/kernels/ZendEngine3/main.h
index afd8e0715e..c2e13ad93e 100644
--- a/kernels/ZendEngine3/main.h
+++ b/kernels/ZendEngine3/main.h
@@ -36,8 +36,9 @@ extern zend_string* i_self;
#define PH_COPY 1024
#define PH_CTOR 4096
+/* Deprecated */
#ifndef zend_uint
- #define zend_uint uint
+ #define zend_uint uint32_t
#endif
#ifndef ZEND_ACC_FINAL_CLASS
diff --git a/kernels/ZendEngine3/object.c b/kernels/ZendEngine3/object.c
index 81b32bc9ea..5c96b00564 100644
--- a/kernels/ZendEngine3/object.c
+++ b/kernels/ZendEngine3/object.c
@@ -67,7 +67,7 @@ int zephir_is_instance_of(zval *object, const char *class_name, unsigned int cla
int zephir_zval_is_traversable(zval *object)
{
zend_class_entry *ce;
- zend_uint i;
+ uint32_t i;
zval *z = Z_ISREF_P(object) ? Z_REFVAL_P(object) : object;
if (Z_TYPE_P(z) == IS_OBJECT) {
@@ -462,7 +462,7 @@ static inline zend_class_entry *zephir_lookup_class_ce(zend_class_entry *ce, con
/**
* Reads a property from an object
*/
-int zephir_read_property(zval *result, zval *object, const char *property_name, zend_uint property_length, int flags)
+int zephir_read_property(zval *result, zval *object, const char *property_name, uint32_t property_length, int flags)
{
zval property;
zend_class_entry *ce, *old_scope;
@@ -524,7 +524,7 @@ int zephir_read_property(zval *result, zval *object, const char *property_name,
/**
* Fetches a property using a const char
*/
-int zephir_fetch_property(zval *result, zval *object, const char *property_name, zend_uint property_length, int silent)
+int zephir_fetch_property(zval *result, zval *object, const char *property_name, uint32_t property_length, int silent)
{
if (zephir_isset_property(object, property_name, property_length)) {
zephir_read_property(result, object, property_name, property_length, 0);
@@ -655,7 +655,7 @@ int zephir_update_property_zval_zval(zval *object, zval *property, zval *value)
/**
* Updates an array property
*/
-int zephir_update_property_array(zval *object, const char *property, zend_uint property_length, const zval *index, zval *value)
+int zephir_update_property_array(zval *object, const char *property, uint32_t property_length, const zval *index, zval *value)
{
zval tmp, sep_value;
int separated = 0;
@@ -818,7 +818,7 @@ int zephir_update_property_array_append(zval *object, char *property, unsigned i
/**
* Multiple array-offset update
*/
-int zephir_update_property_array_multi(zval *object, const char *property, zend_uint property_length, zval *value, const char *types, int types_length, int types_count, ...)
+int zephir_update_property_array_multi(zval *object, const char *property, uint32_t property_length, zval *value, const char *types, int types_length, int types_count, ...)
{
va_list ap;
zval tmp_arr;
@@ -1049,7 +1049,7 @@ int zephir_update_static_property_ce(zend_class_entry *ce, const char *property_
/*
* Multiple array-offset update
*/
-int zephir_update_static_property_array_multi_ce(zend_class_entry *ce, const char *property, zend_uint property_length, zval *value, const char *types, int types_length, int types_count, ...)
+int zephir_update_static_property_array_multi_ce(zend_class_entry *ce, const char *property, uint32_t property_length, zval *value, const char *types, int types_length, int types_count, ...)
{
va_list ap;
zval tmp_arr;
@@ -1191,7 +1191,7 @@ typedef struct _zend_closure {
/**
* Creates a closure
*/
-int zephir_create_closure_ex(zval *return_value, zval *this_ptr, zend_class_entry *ce, const char *method_name, zend_uint method_length)
+int zephir_create_closure_ex(zval *return_value, zval *this_ptr, zend_class_entry *ce, const char *method_name, uint32_t method_length)
{
zend_function *function_ptr;
zend_closure *closure;
diff --git a/kernels/ZendEngine3/object.h b/kernels/ZendEngine3/object.h
index c2f91d3d89..230ba8e35c 100644
--- a/kernels/ZendEngine3/object.h
+++ b/kernels/ZendEngine3/object.h
@@ -42,10 +42,10 @@ int zephir_isset_property(zval *object, const char *property_name, unsigned int
int zephir_isset_property_zval(zval *object, const zval *property);
/** Reading properties */
-int zephir_read_property(zval *result, zval *object, const char *property_name, zend_uint property_length, int silent);
+int zephir_read_property(zval *result, zval *object, const char *property_name, uint32_t property_length, int silent);
int zephir_read_property_zval(zval *result, zval *object, zval *property, int silent);
int zephir_return_property(zval *return_value, zval *object, char *property_name, unsigned int property_length);
-int zephir_fetch_property(zval *result, zval *object, const char *property_name, zend_uint property_length, int silent);
+int zephir_fetch_property(zval *result, zval *object, const char *property_name, uint32_t property_length, int silent);
int zephir_fetch_property_zval(zval *result, zval *object, zval *property, int silent);
/** Updating properties */
@@ -53,10 +53,10 @@ int zephir_update_property_zval(zval *obj, const char *property_name, unsigned i
int zephir_update_property_zval_zval(zval *obj, zval *property, zval *value);
/** Updating array properties */
-int zephir_update_property_array(zval *object, const char *property, zend_uint property_length, const zval *index, zval *value);
+int zephir_update_property_array(zval *object, const char *property, uint32_t property_length, const zval *index, zval *value);
int zephir_update_property_array_string(zval *object, char *property, unsigned int property_length, char *index, unsigned int index_length, zval *value);
int zephir_update_property_array_append(zval *object, char *property, unsigned int property_length, zval *value);
-int zephir_update_property_array_multi(zval *object, const char *property, zend_uint property_length, zval *value, const char *types, int types_length, int types_count, ...);
+int zephir_update_property_array_multi(zval *object, const char *property, uint32_t property_length, zval *value, const char *types, int types_length, int types_count, ...);
/** Unset properties */
int zephir_unset_property(zval* object, const char* name);
@@ -65,10 +65,10 @@ int zephir_unset_property_array(zval *object, char *property, unsigned int prope
/** Static properties */
int zephir_read_static_property_ce(zval *result, zend_class_entry *ce, const char *property, int len, int flags);
int zephir_update_static_property_ce(zend_class_entry *ce, const char *property, uint32_t len, zval *value);
-int zephir_update_static_property_array_multi_ce(zend_class_entry *ce, const char *property, zend_uint property_length, zval *value, const char *types, int types_length, int types_count, ...);
+int zephir_update_static_property_array_multi_ce(zend_class_entry *ce, const char *property, uint32_t property_length, zval *value, const char *types, int types_length, int types_count, ...);
/** Create closures */
-int zephir_create_closure_ex(zval *return_value, zval *this_ptr, zend_class_entry *ce, const char *method_name, zend_uint method_length);
+int zephir_create_closure_ex(zval *return_value, zval *this_ptr, zend_class_entry *ce, const char *method_name, uint32_t method_length);
/** Create instances */
int zephir_create_instance(zval *return_value, const zval *class_name);
diff --git a/kernels/ZendEngine3/operators.h b/kernels/ZendEngine3/operators.h
index fb24bcd720..bb73bb704b 100644
--- a/kernels/ZendEngine3/operators.h
+++ b/kernels/ZendEngine3/operators.h
@@ -103,7 +103,7 @@ int zephir_compare_strict_long(zval *op1, long op2);
int zephir_compare_strict_double(zval *op1, double op2);
int zephir_compare_strict_bool(zval *op1, zend_bool op2);
-void zephir_cast(zval *result, zval *var, zend_uint type);
+void zephir_cast(zval *result, zval *var, uint32_t type);
void zephir_convert_to_object(zval *op);
long zephir_get_intval_ex(const zval *op);
long zephir_get_charval_ex(const zval *op);